module Gems::API::ActivityEndpoints
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.
@api public
Public Instance Methods
Returns the 50 most recently updated gems
The endpoint answers with those 50 gems and no more; it has no pages.
@api public @authenticated false @return [Array<Gem>] @example
Gems.just_updated
# File lib/gems/api/activity_endpoints.rb, line 41 def just_updated Gem.list(parse_json(get("/api/v1/activity/just_updated.json"))) end
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.
@api public @authenticated false @return [Array<Gem>] @example
Gems.latest
# File lib/gems/api/activity_endpoints.rb, line 28 def latest Gem.list(parse_json(get("/api/v1/activity/latest.json"))) end