Module: Gems::API::ActivityEndpoints
- Included in:
- Gems::API
- Defined in:
- lib/gems/api/activity_endpoints.rb
Overview
The activity endpoints, which list recently added and updated gems
Neither endpoint is paginated: each answers with the 50 gems it names, whatever query parameters it is given, so there are no further pages to ask for.
Instance Method Summary collapse
-
#just_updated ⇒ Array<Gem>
Returns the 50 most recently updated gems.
-
#latest ⇒ Array<Gem>
Returns the 50 gems most recently added to RubyGems.org (for the first time).
Instance Method Details
#just_updated ⇒ Array<Gem>
Returns the 50 most recently updated gems
The endpoint answers with those 50 gems and no more; it has no pages.
41 42 43 |
# File 'lib/gems/api/activity_endpoints.rb', line 41 def just_updated Gem.list(parse_json(get("/api/v1/activity/just_updated.json"))) end |
#latest ⇒ Array<Gem>
Returns the 50 gems most recently added to RubyGems.org (for the first time)
The endpoint answers with those 50 gems and no more; it has no pages.
28 29 30 |
# File 'lib/gems/api/activity_endpoints.rb', line 28 def latest Gem.list(parse_json(get("/api/v1/activity/latest.json"))) end |