gems 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,9 @@
1
1
  rvm:
2
+ - 1.8.7
2
3
  - 1.9.1
3
4
  - 1.9.2
4
5
  - 1.9.3
6
+ - jruby
7
+ - rbx
8
+ - rbx-2.0
9
+ - ree
data/README.md CHANGED
@@ -1,21 +1,16 @@
1
- Gems
2
- ====
1
+ # Gems
3
2
  Ruby wrapper for the RubyGems.org API.
4
3
 
5
- Installation
6
- ------------
4
+ ## <a name="installation">Installation</a>
7
5
  gem install gems
8
6
 
9
- Documentation
10
- -------------
7
+ ## <a name="documentation">Documentation</a>
11
8
  [http://rdoc.info/gems/gems](http://rdoc.info/gems/gems)
12
9
 
13
- Continuous Integration
14
- ----------------------
10
+ ## <a name="ci">Continuous Integration</a>
15
11
  [![Build Status](https://secure.travis-ci.org/rubygems/gems.png)](http://travis-ci.org/rubygems/gems)
16
12
 
17
- Usage Examples
18
- --------------
13
+ ## <a name="examples">Usage Examples</a>
19
14
  require 'rubygems'
20
15
  require 'gems'
21
16
 
@@ -92,8 +87,7 @@ Usage Examples
92
87
  # Defaults to the latest version if no version is specified.
93
88
  Gems.unyank 'bills', '0.0.1'
94
89
 
95
- Contributing
96
- ------------
90
+ ## <a name="contributing">Contributing</a>
97
91
  In the spirit of [free software](http://www.fsf.org/licensing/essays/free-sw.html), **everyone** is encouraged to help improve this project.
98
92
 
99
93
  Here are some ways *you* can contribute:
@@ -108,8 +102,7 @@ Here are some ways *you* can contribute:
108
102
  * by closing [issues](https://github.com/rubygems/gems/issues)
109
103
  * by reviewing patches
110
104
 
111
- Submitting an Issue
112
- -------------------
105
+ ## <a name="issues">Submitting an Issue</a>
113
106
  We use the [GitHub issue tracker](https://github.com/rubygems/gems/issues) to track bugs and
114
107
  features. Before submitting a bug report or feature request, check to make sure it hasn't already
115
108
  been submitted. You can indicate support for an existing issuse by voting it up. When submitting a
@@ -117,8 +110,7 @@ bug report, please include a [Gist](https://gist.github.com/) that includes a st
117
110
  details that may be necessary to reproduce the bug, including your gem version, Ruby version, and
118
111
  operating system. Ideally, a bug report should include a pull request with failing specs.
119
112
 
120
- Submitting a Pull Request
121
- -------------------------
113
+ ## <a name="pulls">Submitting a Pull Request</a>
122
114
  1. Fork the project.
123
115
  2. Create a topic branch.
124
116
  3. Implement your feature or bug fix.
@@ -129,8 +121,7 @@ Submitting a Pull Request
129
121
  8. Commit and push your changes.
130
122
  9. Submit a pull request. Please do not include changes to the gemspec, version, or history file. (If you want to create your own version for some reason, please do so in a separate commit.)
131
123
 
132
- Supported Rubies
133
- ----------------
124
+ ## <a name="rubies">Supported Rubies</a>
134
125
  This library aims to support and is [tested
135
126
  against](http://travis-ci.org/rubygems/gems) the following Ruby
136
127
  implementations:
@@ -152,7 +143,6 @@ implementation, you will be personally responsible for providing patches in a
152
143
  timely fashion. If critical issues for a particular implementation exist at the
153
144
  time of a major release, support for that Ruby version may be dropped.
154
145
 
155
- Copyright
156
- ---------
146
+ ## <a name="copyright">Copyright</a>
157
147
  Copyright (c) 2011 Erik Michaels-Ober.
158
148
  See [LICENSE](https://github.com/rubygems/gems/blob/master/LICENSE.md) for details.
data/Rakefile CHANGED
File without changes
@@ -1,26 +1,21 @@
1
- # -*- encoding: utf-8 -*-
1
+ # encoding: utf-8
2
2
  require File.expand_path('../lib/gems/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
- gem.add_development_dependency 'ZenTest', '~> 4.5'
6
- gem.add_development_dependency 'maruku', '~> 0.6'
7
5
  gem.add_development_dependency 'rake', '~> 0.9'
6
+ gem.add_development_dependency 'rdiscount', '~> 1.6'
8
7
  gem.add_development_dependency 'rspec', '~> 2.6'
9
8
  gem.add_development_dependency 'simplecov', '~> 0.4'
10
- gem.add_development_dependency 'webmock', '~> 1.6'
9
+ gem.add_development_dependency 'webmock', '~> 1.7'
11
10
  gem.add_development_dependency 'yard', '~> 0.7'
12
-
13
- gem.authors = ["Erik Michaels-Ober"]
14
- gem.email = ['sferik@gmail.com']
15
- gem.description = %q{Ruby wrapper for the RubyGems.org API}
16
- gem.summary = gem.description
17
- gem.homepage = 'https://github.com/rubygems/gems'
18
-
19
- gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
- gem.files = `git ls-files`.split("\n")
21
- gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
22
- gem.name = 'gems'
23
- gem.require_paths = ['lib']
24
- gem.required_ruby_version = '>= 1.9'
25
- gem.version = Gems::VERSION
11
+ gem.authors = ["Erik Michaels-Ober"]
12
+ gem.description = %q{Ruby wrapper for the RubyGems.org API}
13
+ gem.email = ['sferik@gmail.com']
14
+ gem.files = `git ls-files`.split("\n")
15
+ gem.homepage = 'https://github.com/rubygems/gems'
16
+ gem.name = 'gems'
17
+ gem.require_paths = ['lib']
18
+ gem.summary = gem.description
19
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
+ gem.version = Gems::VERSION
26
21
  end
@@ -1,7 +1,6 @@
1
1
  require 'date'
2
2
  require 'gems/configuration'
3
3
  require 'gems/request'
4
- require 'json'
5
4
  require 'yaml'
6
5
 
7
6
  module Gems
@@ -48,8 +47,8 @@ module Gems
48
47
  # @example
49
48
  # Gems.versions 'coulda'
50
49
  def versions(gem_name)
51
- response = get("/api/v1/versions/#{gem_name}.json")
52
- JSON.parse(response)
50
+ response = get("/api/v1/versions/#{gem_name}.yaml")
51
+ YAML.load(response)
53
52
  end
54
53
 
55
54
  # Returns the total number of downloads for a particular gem
@@ -1,3 +1,3 @@
1
1
  module Gems
2
- VERSION = "0.4.0" unless defined? ::Gems::VERSION
2
+ VERSION = "0.5.0" unless defined? ::Gems::VERSION
3
3
  end
@@ -0,0 +1,17 @@
1
+ ---
2
+ - built_at: "2011-07-11T07:00:00Z"
3
+ number: 0.1.0
4
+ prerelease: false
5
+ authors: Mike Stone
6
+ description: A Rails 3 gem that allows easy inlining of css and JavaScript
7
+ summary: Script Helpers
8
+ downloads_count: 0
9
+ platform: ruby
10
+ - built_at: "2011-07-11T07:00:00Z"
11
+ number: 0.0.1
12
+ prerelease: false
13
+ authors: Mike Stone
14
+ description: A Rails 3 gem that allows easy inlining of css and JavaScript
15
+ summary: Script Helpers
16
+ downloads_count: 0
17
+ platform: ruby
@@ -37,15 +37,15 @@ describe Gems::Client do
37
37
 
38
38
  describe ".versions" do
39
39
  before do
40
- stub_get("/api/v1/versions/coulda.json").
41
- to_return(:body => fixture("coulda.json"))
40
+ stub_get("/api/v1/versions/script_helpers.yaml").
41
+ to_return(:body => fixture("script_helpers.yaml"))
42
42
  end
43
43
 
44
44
  it "should return an array of gem version details" do
45
- versions = Gems.versions 'coulda'
46
- a_get("/api/v1/versions/coulda.json").
45
+ versions = Gems.versions 'script_helpers'
46
+ a_get("/api/v1/versions/script_helpers.yaml").
47
47
  should have_been_made
48
- versions.first['number'].should == '0.6.3'
48
+ versions.first['number'].should == '0.1.0'
49
49
  end
50
50
  end
51
51
 
metadata CHANGED
@@ -1,101 +1,123 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gems
3
- version: !ruby/object:Gem::Version
4
- version: 0.4.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 11
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 5
9
+ - 0
10
+ version: 0.5.0
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Erik Michaels-Ober
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-08-02 00:00:00.000000000 -07:00
17
+
18
+ date: 2011-08-28 00:00:00 -07:00
13
19
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: ZenTest
17
- requirement: &70290861639460 !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ~>
21
- - !ruby/object:Gem::Version
22
- version: '4.5'
23
- type: :development
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: rake
24
23
  prerelease: false
25
- version_requirements: *70290861639460
26
- - !ruby/object:Gem::Dependency
27
- name: maruku
28
- requirement: &70290861638960 !ruby/object:Gem::Requirement
24
+ requirement: &id001 !ruby/object:Gem::Requirement
29
25
  none: false
30
- requirements:
26
+ requirements:
31
27
  - - ~>
32
- - !ruby/object:Gem::Version
33
- version: '0.6'
28
+ - !ruby/object:Gem::Version
29
+ hash: 25
30
+ segments:
31
+ - 0
32
+ - 9
33
+ version: "0.9"
34
34
  type: :development
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: rdiscount
35
38
  prerelease: false
36
- version_requirements: *70290861638960
37
- - !ruby/object:Gem::Dependency
38
- name: rake
39
- requirement: &70290861638500 !ruby/object:Gem::Requirement
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
40
  none: false
41
- requirements:
41
+ requirements:
42
42
  - - ~>
43
- - !ruby/object:Gem::Version
44
- version: '0.9'
43
+ - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 1
47
+ - 6
48
+ version: "1.6"
45
49
  type: :development
46
- prerelease: false
47
- version_requirements: *70290861638500
48
- - !ruby/object:Gem::Dependency
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
49
52
  name: rspec
50
- requirement: &70290861638040 !ruby/object:Gem::Requirement
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
51
55
  none: false
52
- requirements:
56
+ requirements:
53
57
  - - ~>
54
- - !ruby/object:Gem::Version
55
- version: '2.6'
58
+ - !ruby/object:Gem::Version
59
+ hash: 15
60
+ segments:
61
+ - 2
62
+ - 6
63
+ version: "2.6"
56
64
  type: :development
57
- prerelease: false
58
- version_requirements: *70290861638040
59
- - !ruby/object:Gem::Dependency
65
+ version_requirements: *id003
66
+ - !ruby/object:Gem::Dependency
60
67
  name: simplecov
61
- requirement: &70290861637580 !ruby/object:Gem::Requirement
68
+ prerelease: false
69
+ requirement: &id004 !ruby/object:Gem::Requirement
62
70
  none: false
63
- requirements:
71
+ requirements:
64
72
  - - ~>
65
- - !ruby/object:Gem::Version
66
- version: '0.4'
73
+ - !ruby/object:Gem::Version
74
+ hash: 3
75
+ segments:
76
+ - 0
77
+ - 4
78
+ version: "0.4"
67
79
  type: :development
68
- prerelease: false
69
- version_requirements: *70290861637580
70
- - !ruby/object:Gem::Dependency
80
+ version_requirements: *id004
81
+ - !ruby/object:Gem::Dependency
71
82
  name: webmock
72
- requirement: &70290861637120 !ruby/object:Gem::Requirement
83
+ prerelease: false
84
+ requirement: &id005 !ruby/object:Gem::Requirement
73
85
  none: false
74
- requirements:
86
+ requirements:
75
87
  - - ~>
76
- - !ruby/object:Gem::Version
77
- version: '1.6'
88
+ - !ruby/object:Gem::Version
89
+ hash: 1
90
+ segments:
91
+ - 1
92
+ - 7
93
+ version: "1.7"
78
94
  type: :development
79
- prerelease: false
80
- version_requirements: *70290861637120
81
- - !ruby/object:Gem::Dependency
95
+ version_requirements: *id005
96
+ - !ruby/object:Gem::Dependency
82
97
  name: yard
83
- requirement: &70290861666840 !ruby/object:Gem::Requirement
98
+ prerelease: false
99
+ requirement: &id006 !ruby/object:Gem::Requirement
84
100
  none: false
85
- requirements:
101
+ requirements:
86
102
  - - ~>
87
- - !ruby/object:Gem::Version
88
- version: '0.7'
103
+ - !ruby/object:Gem::Version
104
+ hash: 5
105
+ segments:
106
+ - 0
107
+ - 7
108
+ version: "0.7"
89
109
  type: :development
90
- prerelease: false
91
- version_requirements: *70290861666840
110
+ version_requirements: *id006
92
111
  description: Ruby wrapper for the RubyGems.org API
93
- email:
112
+ email:
94
113
  - sferik@gmail.com
95
114
  executables: []
115
+
96
116
  extensions: []
117
+
97
118
  extra_rdoc_files: []
98
- files:
119
+
120
+ files:
99
121
  - .gemtest
100
122
  - .gitignore
101
123
  - .rspec
@@ -114,7 +136,6 @@ files:
114
136
  - spec/fixtures/add_owner
115
137
  - spec/fixtures/add_web_hook
116
138
  - spec/fixtures/api_key
117
- - spec/fixtures/coulda.json
118
139
  - spec/fixtures/dependencies
119
140
  - spec/fixtures/downloads.yaml
120
141
  - spec/fixtures/fire_web_hook
@@ -126,6 +147,7 @@ files:
126
147
  - spec/fixtures/rails_admin-0.0.0.yaml
127
148
  - spec/fixtures/remove_owner
128
149
  - spec/fixtures/remove_web_hook
150
+ - spec/fixtures/script_helpers.yaml
129
151
  - spec/fixtures/search.yaml
130
152
  - spec/fixtures/total_downloads.yaml
131
153
  - spec/fixtures/unyank
@@ -137,33 +159,41 @@ files:
137
159
  has_rdoc: true
138
160
  homepage: https://github.com/rubygems/gems
139
161
  licenses: []
162
+
140
163
  post_install_message:
141
164
  rdoc_options: []
142
- require_paths:
165
+
166
+ require_paths:
143
167
  - lib
144
- required_ruby_version: !ruby/object:Gem::Requirement
168
+ required_ruby_version: !ruby/object:Gem::Requirement
145
169
  none: false
146
- requirements:
147
- - - ! '>='
148
- - !ruby/object:Gem::Version
149
- version: '1.9'
150
- required_rubygems_version: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ hash: 3
174
+ segments:
175
+ - 0
176
+ version: "0"
177
+ required_rubygems_version: !ruby/object:Gem::Requirement
151
178
  none: false
152
- requirements:
153
- - - ! '>='
154
- - !ruby/object:Gem::Version
155
- version: '0'
179
+ requirements:
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ hash: 3
183
+ segments:
184
+ - 0
185
+ version: "0"
156
186
  requirements: []
187
+
157
188
  rubyforge_project:
158
189
  rubygems_version: 1.6.2
159
190
  signing_key:
160
191
  specification_version: 3
161
192
  summary: Ruby wrapper for the RubyGems.org API
162
- test_files:
193
+ test_files:
163
194
  - spec/fixtures/add_owner
164
195
  - spec/fixtures/add_web_hook
165
196
  - spec/fixtures/api_key
166
- - spec/fixtures/coulda.json
167
197
  - spec/fixtures/dependencies
168
198
  - spec/fixtures/downloads.yaml
169
199
  - spec/fixtures/fire_web_hook
@@ -175,6 +205,7 @@ test_files:
175
205
  - spec/fixtures/rails_admin-0.0.0.yaml
176
206
  - spec/fixtures/remove_owner
177
207
  - spec/fixtures/remove_web_hook
208
+ - spec/fixtures/script_helpers.yaml
178
209
  - spec/fixtures/search.yaml
179
210
  - spec/fixtures/total_downloads.yaml
180
211
  - spec/fixtures/unyank
@@ -1 +0,0 @@
1
- [{"number":"0.6.3","built_at":"2010-12-23T05:00:00Z","prerelease":false,"downloads_count":808,"summary":"Test::Unit-based acceptance testing DSL","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.6.1","built_at":"2010-11-20T05:00:00Z","prerelease":false,"downloads_count":289,"summary":"Test::Unit-based acceptance testing DSL","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.6.0","built_at":"2010-10-29T04:00:00Z","prerelease":false,"downloads_count":281,"summary":"Test::Unit-based acceptance testing DSL","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.5.5","built_at":"2010-09-10T04:00:00Z","prerelease":false,"downloads_count":230,"summary":"Test::Unit-based acceptance testing DSL","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.5.3","built_at":"2009-12-08T05:00:00Z","prerelease":false,"downloads_count":741,"summary":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.5.2","built_at":"2009-12-06T05:00:00Z","prerelease":false,"downloads_count":387,"summary":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.5.1","built_at":"2009-12-04T05:00:00Z","prerelease":false,"downloads_count":365,"summary":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.5.0","built_at":"2009-12-04T05:00:00Z","prerelease":false,"downloads_count":365,"summary":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.4.7","built_at":"2009-11-30T05:00:00Z","prerelease":false,"downloads_count":365,"summary":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.4.6","built_at":"2009-11-30T05:00:00Z","prerelease":false,"downloads_count":362,"summary":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.4.5","built_at":"2009-11-26T05:00:00Z","prerelease":false,"downloads_count":367,"summary":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.4.4","built_at":"2009-11-24T05:00:00Z","prerelease":false,"downloads_count":366,"summary":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.4.3","built_at":"2009-11-24T05:00:00Z","prerelease":false,"downloads_count":363,"summary":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.4.2","built_at":"2009-11-24T05:00:00Z","prerelease":false,"downloads_count":363,"summary":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.4.1","built_at":"2009-11-24T05:00:00Z","prerelease":false,"downloads_count":367,"summary":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.4.0","built_at":"2009-11-23T05:00:00Z","prerelease":false,"downloads_count":369,"summary":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.3.1","built_at":"2009-09-23T07:00:00Z","prerelease":false,"downloads_count":398,"summary":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.3.0","built_at":"2009-09-23T07:00:00Z","prerelease":false,"downloads_count":346,"summary":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"},{"number":"0.2.0","built_at":"2009-09-12T07:00:00Z","prerelease":false,"downloads_count":347,"summary":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","description":"Behaviour Driven Development derived from Cucumber but as an internal DSL with methods for reuse","authors":"Evan David Light","platform":"ruby"}]