gems 0.7.1 → 0.8.0
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.
- data.tar.gz.sig +0 -0
- data/LICENSE.md +1 -1
- data/README.md +12 -7
- data/lib/gems/client.rb +11 -0
- data/lib/gems/version.rb +1 -1
- data/spec/fixtures/reverse_dependencies_short.yaml +70 -0
- data/spec/gems/client_spec.rb +11 -0
- data/spec/helper.rb +11 -6
- metadata +12 -10
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/LICENSE.md
CHANGED
data/README.md
CHANGED
@@ -1,11 +1,16 @@
|
|
1
1
|
# Gems
|
2
|
+
|
2
3
|
[][gem]
|
3
4
|
[][travis]
|
4
5
|
[][gemnasium]
|
6
|
+
[][codeclimate]
|
7
|
+
[][coveralls]
|
5
8
|
|
6
9
|
[gem]: https://rubygems.org/gems/gems
|
7
10
|
[travis]: http://travis-ci.org/rubygems/gems
|
8
11
|
[gemnasium]: https://gemnasium.com/rubygems/gems
|
12
|
+
[codeclimate]: https://codeclimate.com/github/rubygems/gems
|
13
|
+
[coveralls]: https://coveralls.io/r/rubygems/gems
|
9
14
|
|
10
15
|
Ruby wrapper for the RubyGems.org API.
|
11
16
|
|
@@ -127,14 +132,14 @@ implementations:
|
|
127
132
|
* Ruby 1.8.7
|
128
133
|
* Ruby 1.9.2
|
129
134
|
* Ruby 1.9.3
|
135
|
+
* Ruby 2.0.0
|
130
136
|
* [JRuby][]
|
131
137
|
* [Rubinius][]
|
132
138
|
|
133
139
|
[jruby]: http://www.jruby.org/
|
134
140
|
[rubinius]: http://rubini.us/
|
135
141
|
|
136
|
-
If something doesn't work on one of these interpreters, it
|
137
|
-
a bug.
|
142
|
+
If something doesn't work on one of these interpreters, it's a bug.
|
138
143
|
|
139
144
|
This library may inadvertently work (or seem to work) on other Ruby
|
140
145
|
implementations, however support will only be provided for the versions listed
|
@@ -143,11 +148,11 @@ above.
|
|
143
148
|
If you would like this library to support another Ruby version, you may
|
144
149
|
volunteer to be a maintainer. Being a maintainer entails making sure all tests
|
145
150
|
run and pass on that implementation. When something breaks on your
|
146
|
-
implementation, you will be
|
147
|
-
|
148
|
-
|
151
|
+
implementation, you will be responsible for providing patches in a timely
|
152
|
+
fashion. If critical issues for a particular implementation exist at the time
|
153
|
+
of a major release, support for that Ruby version may be dropped.
|
149
154
|
|
150
155
|
## Copyright
|
151
|
-
Copyright (c) 2011 Erik Michaels-Ober. See [LICENSE][] for details.
|
156
|
+
Copyright (c) 2011-2013 Erik Michaels-Ober. See [LICENSE][] for details.
|
152
157
|
|
153
|
-
[license]:
|
158
|
+
[license]: LICENSE.md
|
data/lib/gems/client.rb
CHANGED
@@ -301,5 +301,16 @@ module Gems
|
|
301
301
|
Marshal.load(response)
|
302
302
|
end
|
303
303
|
|
304
|
+
# Returns an array of all the reverse dependencies to the given gem.
|
305
|
+
#
|
306
|
+
# @authenticated false
|
307
|
+
# @param gem_name [String] The name of a gem
|
308
|
+
# @param options [Hash] A customizable set of options.
|
309
|
+
# @return [Array]
|
310
|
+
# @example
|
311
|
+
# Gems.reverse_dependencies 'money'
|
312
|
+
def reverse_dependencies(gem_name, options={})
|
313
|
+
get("/api/v1/gems/#{gem_name}/reverse_dependencies.yaml", options)
|
314
|
+
end
|
304
315
|
end
|
305
316
|
end
|
data/lib/gems/version.rb
CHANGED
@@ -0,0 +1,70 @@
|
|
1
|
+
---
|
2
|
+
- yajl-ruby
|
3
|
+
- xpath
|
4
|
+
- websocket
|
5
|
+
- webmock
|
6
|
+
- validates_formatting_of
|
7
|
+
- uglifier
|
8
|
+
- treetop
|
9
|
+
- thor
|
10
|
+
- therubyracer
|
11
|
+
- subexec
|
12
|
+
- sitemap_generator
|
13
|
+
- simplecov
|
14
|
+
- selenium-webdriver
|
15
|
+
- rspec-rails
|
16
|
+
- rspec-puppet
|
17
|
+
- rest-client
|
18
|
+
- redis-namespace
|
19
|
+
- rb-fsevent
|
20
|
+
- rb-fchange
|
21
|
+
- ransack
|
22
|
+
- rack-protection
|
23
|
+
- rack-maintenance
|
24
|
+
- puppet-lint
|
25
|
+
- polyamorous
|
26
|
+
- paul_revere
|
27
|
+
- orm_adapter
|
28
|
+
- origin
|
29
|
+
- omniauth-oauth2
|
30
|
+
- omniauth-github
|
31
|
+
- omniauth
|
32
|
+
- oauth2
|
33
|
+
- mysql2
|
34
|
+
- multi_xml
|
35
|
+
- multi_json
|
36
|
+
- mongoid
|
37
|
+
- money-rails
|
38
|
+
- money
|
39
|
+
- libv8
|
40
|
+
- kaminari
|
41
|
+
- hominid
|
42
|
+
- hashie
|
43
|
+
- guard-spork
|
44
|
+
- guard-rspec
|
45
|
+
- guard-bundler
|
46
|
+
- guard
|
47
|
+
- gon
|
48
|
+
- gherkin
|
49
|
+
- fssm
|
50
|
+
- fog
|
51
|
+
- ffi
|
52
|
+
- factory_girl_rails
|
53
|
+
- factory_girl
|
54
|
+
- diff-lcs
|
55
|
+
- currencies
|
56
|
+
- cucumber-rails
|
57
|
+
- cucumber
|
58
|
+
- countries
|
59
|
+
- chunky_png
|
60
|
+
- childprocess
|
61
|
+
- childlabor
|
62
|
+
- carrierwave
|
63
|
+
- capybara
|
64
|
+
- cancan
|
65
|
+
- bundler
|
66
|
+
- bcrypt-ruby
|
67
|
+
- awesome_print
|
68
|
+
- airbrake
|
69
|
+
- addressable
|
70
|
+
- RedCloth
|
data/spec/gems/client_spec.rb
CHANGED
@@ -402,4 +402,15 @@ describe Gems::Client do
|
|
402
402
|
end
|
403
403
|
end
|
404
404
|
|
405
|
+
describe "#reverse_dependencies" do
|
406
|
+
before do
|
407
|
+
stub_get("/api/v1/gems/rspec/reverse_dependencies.yaml").
|
408
|
+
to_return(:body => fixture("reverse_dependencies_short.yaml"))
|
409
|
+
end
|
410
|
+
|
411
|
+
it "returns an array of names for all gems which are reverse dependencies to the given gem" do
|
412
|
+
reverse_dependencies = Gems.reverse_dependencies 'rspec'
|
413
|
+
expect(a_get("/api/v1/gems/rspec/reverse_dependencies.yaml")).to have_been_made
|
414
|
+
end
|
415
|
+
end
|
405
416
|
end
|
data/spec/helper.rb
CHANGED
@@ -1,13 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
require 'simplecov'
|
2
|
+
require 'coveralls'
|
3
|
+
|
4
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
5
|
+
SimpleCov::Formatter::HTMLFormatter,
|
6
|
+
Coveralls::SimpleCov::Formatter
|
7
|
+
]
|
8
|
+
SimpleCov.start
|
9
|
+
|
7
10
|
require 'gems'
|
8
11
|
require 'rspec'
|
9
12
|
require 'webmock/rspec'
|
10
13
|
|
14
|
+
WebMock.disable_net_connect!(:allow => 'coveralls.io')
|
15
|
+
|
11
16
|
RSpec.configure do |config|
|
12
17
|
config.expect_with :rspec do |c|
|
13
18
|
c.syntax = :expect
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gems
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.0
|
4
5
|
prerelease:
|
5
|
-
version: 0.7.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Erik Michaels-Ober
|
@@ -36,24 +36,24 @@ cert_chain:
|
|
36
36
|
U0xxV3ZRUnNCbHlwSGZoczZKSnVMbHlaUEdoVTNSL3YKU2YzbFZLcEJDV2dS
|
37
37
|
cEdUdnk0NVhWcEIrNTl5MzNQSm1FdVExUFRFT1l2UXlhbzlVS01BQWFBTi83
|
38
38
|
cVdRdGpsMApobHc9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
|
39
|
-
date: 2013-
|
39
|
+
date: 2013-04-18 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
|
43
|
-
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
44
45
|
requirements:
|
45
46
|
- - ~>
|
46
47
|
- !ruby/object:Gem::Version
|
47
48
|
version: '1.0'
|
48
|
-
none: false
|
49
49
|
type: :development
|
50
|
-
|
51
|
-
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
52
53
|
requirements:
|
53
54
|
- - ~>
|
54
55
|
- !ruby/object:Gem::Version
|
55
56
|
version: '1.0'
|
56
|
-
none: false
|
57
57
|
description: Ruby wrapper for the RubyGems.org API
|
58
58
|
email:
|
59
59
|
- sferik@gmail.com
|
@@ -90,6 +90,7 @@ files:
|
|
90
90
|
- spec/fixtures/rails_admin-0.0.0.yaml
|
91
91
|
- spec/fixtures/remove_owner
|
92
92
|
- spec/fixtures/remove_web_hook
|
93
|
+
- spec/fixtures/reverse_dependencies_short.yaml
|
93
94
|
- spec/fixtures/script_helpers.yaml
|
94
95
|
- spec/fixtures/search.yaml
|
95
96
|
- spec/fixtures/total_downloads.yaml
|
@@ -107,17 +108,17 @@ rdoc_options: []
|
|
107
108
|
require_paths:
|
108
109
|
- lib
|
109
110
|
required_ruby_version: !ruby/object:Gem::Requirement
|
111
|
+
none: false
|
110
112
|
requirements:
|
111
113
|
- - ! '>='
|
112
114
|
- !ruby/object:Gem::Version
|
113
115
|
version: '0'
|
114
|
-
none: false
|
115
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
116
118
|
requirements:
|
117
119
|
- - ! '>='
|
118
120
|
- !ruby/object:Gem::Version
|
119
121
|
version: '0'
|
120
|
-
none: false
|
121
122
|
requirements: []
|
122
123
|
rubyforge_project:
|
123
124
|
rubygems_version: 1.8.25
|
@@ -143,6 +144,7 @@ test_files:
|
|
143
144
|
- spec/fixtures/rails_admin-0.0.0.yaml
|
144
145
|
- spec/fixtures/remove_owner
|
145
146
|
- spec/fixtures/remove_web_hook
|
147
|
+
- spec/fixtures/reverse_dependencies_short.yaml
|
146
148
|
- spec/fixtures/script_helpers.yaml
|
147
149
|
- spec/fixtures/search.yaml
|
148
150
|
- spec/fixtures/total_downloads.yaml
|
metadata.gz.sig
CHANGED
Binary file
|