RubyGemsApi

Code Climate Coverage Status Build Status

Easy access to the RubyGems API through a convenient ruby interface

Installation

Add this line to your application's Gemfile:

gem 'RubyGemsApi'

And then execute:

$ bundle

Or install it yourself as:

$ gem install RubyGemsApi

Usage

  • Pass a valid gem name (must be the same as on RubyGems.org) to a new instance of RubyGems
  • Command is on the left, output is on the right
  require 'ruby_gems'

  faraday = RubyGems.new("faraday")
  faraday.name # 'faraday'
  faraday.version # '0.9.0'
  faraday.downloads # 9588400
  faraday.version_downloads # 1202947
  faraday.urls # {:gem_uri => "http://rubygems.org/gems/faraday-0.9.0.gem",:homepage_uri => "https://github.com/lostisland/faraday",:project_uri => "http://rubygems.org/gems/faraday"}
  faraday.description # "HTTP/REST API client library."
  faraday.dependencies # {:development => [{:name => "bundler", :requirements => "~> 1.0"}], :runtime => [{:name => "multipart-post", :requirements => "< 3, >= 1.2"}]}
  faraday.licenses # ['MIT']
  faraday.authors # ['Rick Olson']
  faraday.platform # ['ruby']

Contributing

  1. Fork it ( https://github.com/stevepm/RubyGemsApi/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request