RubyGemsApi 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54de93714ccaab6d7aa97da29c42bd81a30925e0
4
- data.tar.gz: ee5b13ef796f562fa156b856ebb89a8909df6e8b
3
+ metadata.gz: 4d5a02ec6cdfeb6e9b9d00226966edc24000185c
4
+ data.tar.gz: 2447fe441095ac271e4ae0f3c8a237efc9013d27
5
5
  SHA512:
6
- metadata.gz: d85f3e69506ee94f646668d2cfac56dcad8902a09d85471009e90ba77510eacb2ba99c83f761ff351ac15f6b1b627860665575f7d784d1f228b193524e081452
7
- data.tar.gz: 744c2d3cec818c44e024757db6801341cf61fc52ba16e36a569c82dd7c3f4887fc56de707ff126258bb94035358c66049c11b81156c0f674be319c75cedf4cfa
6
+ metadata.gz: 5698963b7a4f4eb66e0f30ce5c17f74da1c22438d471304145953dacfd112092695276206e4508aab19505be6fefa6e1d94e5381b3ebddbace590228d3a24e14
7
+ data.tar.gz: 3867718dad4a4552dd5b229a41bad22f481dccc8565442132b7c93602b8385966c482558a464ce320d61a72e04992ddab78d8b8f3006b4c3d80bff6f0412af3d
data/README.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # RubyGemsApi
2
+ [![Code Climate](https://codeclimate.com/github/stevepm/rubygemsapi.png)](https://codeclimate.com/github/stevepm/rubygemsapi)
3
+ [![Coverage Status](https://coveralls.io/repos/stevepm/rubygemsapi/badge.png?branch=master)](https://coveralls.io/r/stevepm/rubygemsapi?branch=master)
4
+ [![Build Status](https://travis-ci.org/stevepm/rubygemsapi.svg?branch=master)](https://travis-ci.org/stevepm/rubygemsapi)
2
5
 
3
6
  Easy access to the RubyGems API through a convenient ruby interface
4
7
 
@@ -17,8 +20,22 @@ Or install it yourself as:
17
20
  $ gem install RubyGemsApi
18
21
 
19
22
  ## Usage
20
-
21
-
23
+ * Pass a valid gem name (must be the same as on RubyGems.org) to a new instance of `RubyGems`
24
+ * Command is on the left, output is on the right
25
+
26
+ ```ruby
27
+ faraday = RubyGems.new("faraday")
28
+ faraday.name # 'faraday'
29
+ faraday.version # '0.9.0'
30
+ faraday.downloads # 9588400
31
+ faraday.version_downloads # 1202947
32
+ 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"}
33
+ faraday.description # "HTTP/REST API client library."
34
+ faraday.dependencies # {"development" => [{"name" => "bundler", "requirements" => "~> 1.0"}], "runtime" => [{"name" => "multipart-post", "requirements" => "< 3, >= 1.2"}]}
35
+ faraday.licenses # ['MIT']
36
+ faraday.authors # ['Rick Olson']
37
+ faraday.platform # ['ruby']
38
+ ```
22
39
 
23
40
  ## Contributing
24
41
 
data/RubyGemsApi.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "rspec"
24
24
  spec.add_development_dependency "coveralls"
25
25
  spec.add_development_dependency "jazz_hands"
26
- spec.add_development_dependency "faraday"
26
+ spec.add_dependency "faraday"
27
27
  spec.add_development_dependency "vcr"
28
28
  spec.add_development_dependency "webmock"
29
29
  end
@@ -1,3 +1,3 @@
1
1
  module RubyGemsApi
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RubyGemsApi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - stevepm
@@ -87,7 +87,7 @@ dependencies:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
- type: :development
90
+ type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements: