Module: Outdated::RubyGems

Defined in:
lib/outdated/ruby_gems.rb,
lib/outdated/ruby_gems/gem.rb,
lib/outdated/ruby_gems/spec.rb

Defined Under Namespace

Classes: Gem, Spec

Class Method Summary collapse

Class Method Details

.gem(name) ⇒ Object



5
6
7
8
# File 'lib/outdated/ruby_gems.rb', line 5

def self.gem(name)
  response = HTTP.get("https://rubygems.org/api/v1/versions/#{name}.json")
  Outdated::RubyGems::Gem.from_response(name, response)
end