gemlock 0.0.14 → 0.1.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.
@@ -37,7 +37,7 @@ module Gemlock
37
37
  end
38
38
 
39
39
  def lookup_version(name)
40
- json_hash = JSON.parse(RestClient.get("http://rubygems.org/api/v1/gems/#{name}.json"))
40
+ json_hash = JSON.parse(RestClient.get("http://gemlock.herokuapp.com/rubygems/#{name}/latest.json"))
41
41
 
42
42
  return json_hash["version"]
43
43
  end
@@ -1,3 +1,3 @@
1
1
  module Gemlock
2
- VERSION = "0.0.14"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -1,38 +1,34 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://rubygems.org:80/api/v1/gems/rails.json
6
- body:
7
- headers:
8
- accept:
9
- - "*/*; q=0.5, application/xml"
10
- accept-encoding:
5
+ uri: http://gemlock.herokuapp.com:80/rubygems/rails/latest.json
6
+ body: !!null
7
+ headers:
8
+ accept:
9
+ - ! '*/*; q=0.5, application/xml'
10
+ accept-encoding:
11
11
  - gzip, deflate
12
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
14
  code: 200
15
15
  message: OK
16
- headers:
17
- x-ua-compatible:
18
- - IE=Edge,chrome=1
19
- etag:
20
- - "\"5b9a3bfd4342827b3f980cb8f7ac90d4\""
21
- x-powered-by:
22
- - Phusion Passenger (mod_rails/mod_rack) 3.0.0
23
- content-type:
24
- - application/json; charset=utf-8
25
- x-runtime:
26
- - "0.021016"
27
- server:
28
- - Apache/2.2.3 (Red Hat) mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 Phusion_Passenger/3.0.0
29
- date:
30
- - Sun, 25 Sep 2011 05:56:03 GMT
31
- status:
32
- - "200"
33
- cache-control:
16
+ headers:
17
+ cache-control:
34
18
  - max-age=0, private, must-revalidate
35
- transfer-encoding:
19
+ content-type:
20
+ - application/json; charset=utf-8
21
+ etag:
22
+ - ! '"e48bc9e9a623234be1d8911ffbbdd8bc"'
23
+ server:
24
+ - thin 1.2.11 codename Bat-Shit Crazy
25
+ x-runtime:
26
+ - '0.074089'
27
+ x-ua-compatible:
28
+ - IE=Edge,chrome=1
29
+ transfer-encoding:
36
30
  - chunked
37
- body: "{\"dependencies\":{\"runtime\":[{\"name\":\"actionmailer\",\"requirements\":\"= 3.1.0\"},{\"name\":\"actionpack\",\"requirements\":\"= 3.1.0\"},{\"name\":\"activerecord\",\"requirements\":\"= 3.1.0\"},{\"name\":\"activeresource\",\"requirements\":\"= 3.1.0\"},{\"name\":\"activesupport\",\"requirements\":\"= 3.1.0\"},{\"name\":\"bundler\",\"requirements\":\"~> 1.0\"},{\"name\":\"railties\",\"requirements\":\"= 3.1.0\"}],\"development\":[]},\"name\":\"rails\",\"downloads\":5563606,\"info\":\"Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by favoring convention over configuration.\",\"version_downloads\":168699,\"version\":\"3.1.0\",\"homepage_uri\":\"http://www.rubyonrails.org\",\"bug_tracker_uri\":\"http://rails.lighthouseapp.com/projects/8994-ruby-on-rails\",\"source_code_uri\":\"http://github.com/rails/rails\",\"gem_uri\":\"http://rubygems.org/gems/rails-3.1.0.gem\",\"project_uri\":\"http://rubygems.org/gems/rails\",\"authors\":\"David Heinemeier Hansson\",\"mailing_list_uri\":\"http://groups.google.com/group/rubyonrails-talk\",\"documentation_uri\":\"http://api.rubyonrails.org\",\"wiki_uri\":\"http://wiki.rubyonrails.org\"}"
38
- http_version: "1.1"
31
+ connection:
32
+ - keep-alive
33
+ body: ! '{"version":"3.1.0"}'
34
+ http_version: '1.1'
@@ -1,334 +1,298 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://rubygems.org:80/api/v1/gems/coffee-rails.json
6
- body:
7
- headers:
8
- accept:
9
- - "*/*; q=0.5, application/xml"
10
- accept-encoding:
5
+ uri: http://gemlock.herokuapp.com:80/rubygems/coffee-rails/latest.json
6
+ body: !!null
7
+ headers:
8
+ accept:
9
+ - ! '*/*; q=0.5, application/xml'
10
+ accept-encoding:
11
11
  - gzip, deflate
12
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
14
  code: 200
15
15
  message: OK
16
- headers:
17
- x-ua-compatible:
18
- - IE=Edge,chrome=1
19
- etag:
20
- - "\"8617a792c13fd41114f6625f9c5229af\""
21
- x-powered-by:
22
- - Phusion Passenger (mod_rails/mod_rack) 3.0.0
23
- content-type:
24
- - application/json; charset=utf-8
25
- x-runtime:
26
- - "0.017452"
27
- server:
28
- - Apache/2.2.3 (Red Hat) mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 Phusion_Passenger/3.0.0
29
- date:
30
- - Sun, 25 Sep 2011 05:56:36 GMT
31
- status:
32
- - "200"
33
- cache-control:
16
+ headers:
17
+ cache-control:
34
18
  - max-age=0, private, must-revalidate
35
- transfer-encoding:
36
- - chunked
37
- body: "{\"dependencies\":{\"runtime\":[{\"name\":\"coffee-script\",\"requirements\":\">= 2.2.0\"},{\"name\":\"railties\",\"requirements\":\"~> 3.1.0\"}],\"development\":[]},\"name\":\"coffee-rails\",\"downloads\":148621,\"info\":\"Coffee Script adapter for the Rails asset pipeline.\",\"version_downloads\":51387,\"version\":\"3.1.1\",\"homepage_uri\":\"\",\"bug_tracker_uri\":\"\",\"source_code_uri\":\"https://github.com/rails/coffee-rails\",\"gem_uri\":\"http://rubygems.org/gems/coffee-rails-3.1.1.gem\",\"project_uri\":\"http://rubygems.org/gems/coffee-rails\",\"authors\":\"Santiago Pastorino\",\"mailing_list_uri\":\"\",\"documentation_uri\":\"\",\"wiki_uri\":\"\"}"
38
- http_version: "1.1"
39
- - !ruby/struct:VCR::HTTPInteraction
40
- request: !ruby/struct:VCR::Request
19
+ content-type:
20
+ - application/json; charset=utf-8
21
+ etag:
22
+ - ! '"e48bc9e9a623234be1d8911ffbbdd8bc"'
23
+ server:
24
+ - thin 1.2.11 codename Bat-Shit Crazy
25
+ x-runtime:
26
+ - '0.261532'
27
+ x-ua-compatible:
28
+ - IE=Edge,chrome=1
29
+ content-length:
30
+ - '19'
31
+ connection:
32
+ - keep-alive
33
+ body: ! '{"version":"3.1.1"}'
34
+ http_version: '1.1'
35
+ - !ruby/struct:VCR::HTTPInteraction
36
+ request: !ruby/struct:VCR::Request
41
37
  method: :get
42
- uri: http://rubygems.org:80/api/v1/gems/jquery-rails.json
43
- body:
44
- headers:
45
- accept:
46
- - "*/*; q=0.5, application/xml"
47
- accept-encoding:
38
+ uri: http://gemlock.herokuapp.com:80/rubygems/jquery-rails/latest.json
39
+ body: !!null
40
+ headers:
41
+ accept:
42
+ - ! '*/*; q=0.5, application/xml'
43
+ accept-encoding:
48
44
  - gzip, deflate
49
- response: !ruby/struct:VCR::Response
50
- status: !ruby/struct:VCR::ResponseStatus
45
+ response: !ruby/struct:VCR::Response
46
+ status: !ruby/struct:VCR::ResponseStatus
51
47
  code: 200
52
48
  message: OK
53
- headers:
54
- x-ua-compatible:
55
- - IE=Edge,chrome=1
56
- etag:
57
- - "\"0a33d8c12b5bdd770bb6acae9c3db6bf\""
58
- x-powered-by:
59
- - Phusion Passenger (mod_rails/mod_rack) 3.0.0
60
- content-type:
61
- - application/json; charset=utf-8
62
- x-runtime:
63
- - "0.020328"
64
- server:
65
- - Apache/2.2.3 (Red Hat) mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 Phusion_Passenger/3.0.0
66
- date:
67
- - Sun, 25 Sep 2011 05:56:37 GMT
68
- status:
69
- - "200"
70
- cache-control:
49
+ headers:
50
+ cache-control:
71
51
  - max-age=0, private, must-revalidate
72
- transfer-encoding:
73
- - chunked
74
- body: "{\"dependencies\":{\"runtime\":[{\"name\":\"railties\",\"requirements\":\"~> 3.0\"},{\"name\":\"thor\",\"requirements\":\"~> 0.14\"}],\"development\":[{\"name\":\"bundler\",\"requirements\":\"~> 1.0.0\"},{\"name\":\"rails\",\"requirements\":\"~> 3.0\"}]},\"name\":\"jquery-rails\",\"downloads\":807842,\"info\":\"This gem provides jQuery and the jQuery-ujs driver for your Rails 3 application.\",\"version_downloads\":90622,\"version\":\"1.0.14\",\"homepage_uri\":\"http://rubygems.org/gems/jquery-rails\",\"bug_tracker_uri\":\"https://github.com/rails/jquery-rails/issues\",\"source_code_uri\":\"https://github.com/rails/jquery-rails\",\"gem_uri\":\"http://rubygems.org/gems/jquery-rails-1.0.14.gem\",\"project_uri\":\"http://rubygems.org/gems/jquery-rails\",\"authors\":\"Andr\\u00e9 Arko\",\"mailing_list_uri\":\"\",\"documentation_uri\":\"\",\"wiki_uri\":\"\"}"
75
- http_version: "1.1"
76
- - !ruby/struct:VCR::HTTPInteraction
77
- request: !ruby/struct:VCR::Request
52
+ content-type:
53
+ - application/json; charset=utf-8
54
+ etag:
55
+ - ! '"ce311130187e1fa77e0100a80a2b4e2d"'
56
+ server:
57
+ - thin 1.2.11 codename Bat-Shit Crazy
58
+ x-runtime:
59
+ - '0.081613'
60
+ x-ua-compatible:
61
+ - IE=Edge,chrome=1
62
+ content-length:
63
+ - '20'
64
+ connection:
65
+ - keep-alive
66
+ body: ! '{"version":"1.0.16"}'
67
+ http_version: '1.1'
68
+ - !ruby/struct:VCR::HTTPInteraction
69
+ request: !ruby/struct:VCR::Request
78
70
  method: :get
79
- uri: http://rubygems.org:80/api/v1/gems/json.json
80
- body:
81
- headers:
82
- accept:
83
- - "*/*; q=0.5, application/xml"
84
- accept-encoding:
71
+ uri: http://gemlock.herokuapp.com:80/rubygems/json/latest.json
72
+ body: !!null
73
+ headers:
74
+ accept:
75
+ - ! '*/*; q=0.5, application/xml'
76
+ accept-encoding:
85
77
  - gzip, deflate
86
- response: !ruby/struct:VCR::Response
87
- status: !ruby/struct:VCR::ResponseStatus
78
+ response: !ruby/struct:VCR::Response
79
+ status: !ruby/struct:VCR::ResponseStatus
88
80
  code: 200
89
81
  message: OK
90
- headers:
91
- x-ua-compatible:
92
- - IE=Edge,chrome=1
93
- etag:
94
- - "\"8a71fb297b6baf6a6589ec59e2975d66\""
95
- x-powered-by:
96
- - Phusion Passenger (mod_rails/mod_rack) 3.0.0
97
- content-type:
98
- - application/json; charset=utf-8
99
- x-runtime:
100
- - "0.019527"
101
- server:
102
- - Apache/2.2.3 (Red Hat) mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 Phusion_Passenger/3.0.0
103
- date:
104
- - Sun, 25 Sep 2011 05:56:37 GMT
105
- status:
106
- - "200"
107
- cache-control:
82
+ headers:
83
+ cache-control:
108
84
  - max-age=0, private, must-revalidate
109
- transfer-encoding:
85
+ content-type:
86
+ - application/json; charset=utf-8
87
+ etag:
88
+ - ! '"b72b98a3bea046b262dba7c036cd90af"'
89
+ server:
90
+ - thin 1.2.11 codename Bat-Shit Crazy
91
+ x-runtime:
92
+ - '0.095792'
93
+ x-ua-compatible:
94
+ - IE=Edge,chrome=1
95
+ transfer-encoding:
110
96
  - chunked
111
- body: "{\"dependencies\":{\"runtime\":[],\"development\":[{\"name\":\"bullshit\",\"requirements\":\">= 0\"},{\"name\":\"permutation\",\"requirements\":\">= 0\"},{\"name\":\"sdoc\",\"requirements\":\">= 0\"}]},\"name\":\"json\",\"downloads\":2574832,\"info\":\"This is a JSON implementation as a Ruby extension in C.\",\"version_downloads\":35588,\"version\":\"1.6.1\",\"homepage_uri\":\"http://flori.github.com/json\",\"bug_tracker_uri\":\"http://github.com/flori/json/issues\",\"source_code_uri\":\"http://flori.github.com/json/\",\"gem_uri\":\"http://rubygems.org/gems/json-1.6.1.gem\",\"project_uri\":\"http://rubygems.org/gems/json\",\"authors\":\"Florian Frank\",\"mailing_list_uri\":\"\",\"documentation_uri\":\"http://flori.github.com/json/doc/index.html\",\"wiki_uri\":\"\"}"
112
- http_version: "1.1"
113
- - !ruby/struct:VCR::HTTPInteraction
114
- request: !ruby/struct:VCR::Request
97
+ connection:
98
+ - keep-alive
99
+ body: ! '{"version":"1.6.1"}'
100
+ http_version: '1.1'
101
+ - !ruby/struct:VCR::HTTPInteraction
102
+ request: !ruby/struct:VCR::Request
115
103
  method: :get
116
- uri: http://rubygems.org:80/api/v1/gems/rails.json
117
- body:
118
- headers:
119
- accept:
120
- - "*/*; q=0.5, application/xml"
121
- accept-encoding:
104
+ uri: http://gemlock.herokuapp.com:80/rubygems/rails/latest.json
105
+ body: !!null
106
+ headers:
107
+ accept:
108
+ - ! '*/*; q=0.5, application/xml'
109
+ accept-encoding:
122
110
  - gzip, deflate
123
- response: !ruby/struct:VCR::Response
124
- status: !ruby/struct:VCR::ResponseStatus
111
+ response: !ruby/struct:VCR::Response
112
+ status: !ruby/struct:VCR::ResponseStatus
125
113
  code: 200
126
114
  message: OK
127
- headers:
128
- x-ua-compatible:
129
- - IE=Edge,chrome=1
130
- etag:
131
- - "\"5b9a3bfd4342827b3f980cb8f7ac90d4\""
132
- x-powered-by:
133
- - Phusion Passenger (mod_rails/mod_rack) 3.0.0
134
- content-type:
135
- - application/json; charset=utf-8
136
- x-runtime:
137
- - "0.021418"
138
- server:
139
- - Apache/2.2.3 (Red Hat) mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 Phusion_Passenger/3.0.0
140
- date:
141
- - Sun, 25 Sep 2011 05:56:37 GMT
142
- status:
143
- - "200"
144
- cache-control:
115
+ headers:
116
+ cache-control:
145
117
  - max-age=0, private, must-revalidate
146
- transfer-encoding:
118
+ content-type:
119
+ - application/json; charset=utf-8
120
+ etag:
121
+ - ! '"e48bc9e9a623234be1d8911ffbbdd8bc"'
122
+ server:
123
+ - thin 1.2.11 codename Bat-Shit Crazy
124
+ x-runtime:
125
+ - '0.036095'
126
+ x-ua-compatible:
127
+ - IE=Edge,chrome=1
128
+ transfer-encoding:
147
129
  - chunked
148
- body: "{\"dependencies\":{\"runtime\":[{\"name\":\"actionmailer\",\"requirements\":\"= 3.1.0\"},{\"name\":\"actionpack\",\"requirements\":\"= 3.1.0\"},{\"name\":\"activerecord\",\"requirements\":\"= 3.1.0\"},{\"name\":\"activeresource\",\"requirements\":\"= 3.1.0\"},{\"name\":\"activesupport\",\"requirements\":\"= 3.1.0\"},{\"name\":\"bundler\",\"requirements\":\"~> 1.0\"},{\"name\":\"railties\",\"requirements\":\"= 3.1.0\"}],\"development\":[]},\"name\":\"rails\",\"downloads\":5563606,\"info\":\"Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by favoring convention over configuration.\",\"version_downloads\":168699,\"version\":\"3.1.0\",\"homepage_uri\":\"http://www.rubyonrails.org\",\"bug_tracker_uri\":\"http://rails.lighthouseapp.com/projects/8994-ruby-on-rails\",\"source_code_uri\":\"http://github.com/rails/rails\",\"gem_uri\":\"http://rubygems.org/gems/rails-3.1.0.gem\",\"project_uri\":\"http://rubygems.org/gems/rails\",\"authors\":\"David Heinemeier Hansson\",\"mailing_list_uri\":\"http://groups.google.com/group/rubyonrails-talk\",\"documentation_uri\":\"http://api.rubyonrails.org\",\"wiki_uri\":\"http://wiki.rubyonrails.org\"}"
149
- http_version: "1.1"
150
- - !ruby/struct:VCR::HTTPInteraction
151
- request: !ruby/struct:VCR::Request
130
+ connection:
131
+ - keep-alive
132
+ body: ! '{"version":"3.1.1"}'
133
+ http_version: '1.1'
134
+ - !ruby/struct:VCR::HTTPInteraction
135
+ request: !ruby/struct:VCR::Request
152
136
  method: :get
153
- uri: http://rubygems.org:80/api/v1/gems/ruby-debug.json
154
- body:
155
- headers:
156
- accept:
157
- - "*/*; q=0.5, application/xml"
158
- accept-encoding:
137
+ uri: http://gemlock.herokuapp.com:80/rubygems/ruby-debug/latest.json
138
+ body: !!null
139
+ headers:
140
+ accept:
141
+ - ! '*/*; q=0.5, application/xml'
142
+ accept-encoding:
159
143
  - gzip, deflate
160
- response: !ruby/struct:VCR::Response
161
- status: !ruby/struct:VCR::ResponseStatus
144
+ response: !ruby/struct:VCR::Response
145
+ status: !ruby/struct:VCR::ResponseStatus
162
146
  code: 200
163
147
  message: OK
164
- headers:
165
- x-ua-compatible:
166
- - IE=Edge,chrome=1
167
- etag:
168
- - "\"210801ca92754af8466240a53c948d81\""
169
- x-powered-by:
170
- - Phusion Passenger (mod_rails/mod_rack) 3.0.0
171
- content-type:
172
- - application/json; charset=utf-8
173
- x-runtime:
174
- - "0.150923"
175
- server:
176
- - Apache/2.2.3 (Red Hat) mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 Phusion_Passenger/3.0.0
177
- date:
178
- - Sun, 25 Sep 2011 05:56:37 GMT
179
- status:
180
- - "200"
181
- cache-control:
148
+ headers:
149
+ cache-control:
182
150
  - max-age=0, private, must-revalidate
183
- transfer-encoding:
151
+ content-type:
152
+ - application/json; charset=utf-8
153
+ etag:
154
+ - ! '"e444d5094868df5925e938d14cdb23b9"'
155
+ server:
156
+ - thin 1.2.11 codename Bat-Shit Crazy
157
+ x-runtime:
158
+ - '0.152282'
159
+ x-ua-compatible:
160
+ - IE=Edge,chrome=1
161
+ transfer-encoding:
184
162
  - chunked
185
- body: "{\"dependencies\":{\"runtime\":[{\"name\":\"columnize\",\"requirements\":\">= 0.1\"},{\"name\":\"ruby-debug-base\",\"requirements\":\"~> 0.10.4.0\"}],\"development\":[]},\"name\":\"ruby-debug\",\"downloads\":526808,\"info\":\"A generic command line interface for ruby-debug.\\n\",\"version_downloads\":300078,\"version\":\"0.10.4\",\"homepage_uri\":\"http://rubyforge.org/projects/ruby-debug/\",\"bug_tracker_uri\":null,\"source_code_uri\":null,\"gem_uri\":\"http://rubygems.org/gems/ruby-debug-0.10.4.gem\",\"project_uri\":\"http://rubygems.org/gems/ruby-debug\",\"authors\":\"Kent Sibilev\",\"mailing_list_uri\":null,\"documentation_uri\":null,\"wiki_uri\":null}"
186
- http_version: "1.1"
187
- - !ruby/struct:VCR::HTTPInteraction
188
- request: !ruby/struct:VCR::Request
163
+ connection:
164
+ - keep-alive
165
+ body: ! '{"version":"0.10.4"}'
166
+ http_version: '1.1'
167
+ - !ruby/struct:VCR::HTTPInteraction
168
+ request: !ruby/struct:VCR::Request
189
169
  method: :get
190
- uri: http://rubygems.org:80/api/v1/gems/sass-rails.json
191
- body:
192
- headers:
193
- accept:
194
- - "*/*; q=0.5, application/xml"
195
- accept-encoding:
170
+ uri: http://gemlock.herokuapp.com:80/rubygems/sass-rails/latest.json
171
+ body: !!null
172
+ headers:
173
+ accept:
174
+ - ! '*/*; q=0.5, application/xml'
175
+ accept-encoding:
196
176
  - gzip, deflate
197
- response: !ruby/struct:VCR::Response
198
- status: !ruby/struct:VCR::ResponseStatus
177
+ response: !ruby/struct:VCR::Response
178
+ status: !ruby/struct:VCR::ResponseStatus
199
179
  code: 200
200
180
  message: OK
201
- headers:
202
- x-ua-compatible:
203
- - IE=Edge,chrome=1
204
- etag:
205
- - "\"65f4791683b315d2362f9b23ee5bc4da\""
206
- x-powered-by:
207
- - Phusion Passenger (mod_rails/mod_rack) 3.0.0
208
- content-type:
209
- - application/json; charset=utf-8
210
- x-runtime:
211
- - "0.019185"
212
- server:
213
- - Apache/2.2.3 (Red Hat) mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 Phusion_Passenger/3.0.0
214
- date:
215
- - Sun, 25 Sep 2011 05:56:37 GMT
216
- status:
217
- - "200"
218
- cache-control:
181
+ headers:
182
+ cache-control:
219
183
  - max-age=0, private, must-revalidate
220
- transfer-encoding:
184
+ content-type:
185
+ - application/json; charset=utf-8
186
+ etag:
187
+ - ! '"412d8485398a9d5a18c2e6604442a6ae"'
188
+ server:
189
+ - thin 1.2.11 codename Bat-Shit Crazy
190
+ x-runtime:
191
+ - '0.060329'
192
+ x-ua-compatible:
193
+ - IE=Edge,chrome=1
194
+ transfer-encoding:
221
195
  - chunked
222
- body: "{\"dependencies\":{\"runtime\":[{\"name\":\"actionpack\",\"requirements\":\"~> 3.1.0\"},{\"name\":\"railties\",\"requirements\":\"~> 3.1.0\"},{\"name\":\"sass\",\"requirements\":\">= 3.1.4\"},{\"name\":\"sprockets\",\"requirements\":\"~> 2.0.0\"},{\"name\":\"tilt\",\"requirements\":\"~> 1.3.2\"}],\"development\":[]},\"name\":\"sass-rails\",\"downloads\":216333,\"info\":\"Sass adapter for the Rails asset pipeline.\",\"version_downloads\":39833,\"version\":\"3.1.2\",\"homepage_uri\":\"\",\"bug_tracker_uri\":\"https://github.com/rails/sass-rails/issues\",\"source_code_uri\":\"https://github.com/rails/sass-rails\",\"gem_uri\":\"http://rubygems.org/gems/sass-rails-3.1.2.gem\",\"project_uri\":\"http://rubygems.org/gems/sass-rails\",\"authors\":\"wycats, chriseppstein\",\"mailing_list_uri\":\"\",\"documentation_uri\":\"https://github.com/rails/sass-rails/blob/master/README.markdown\",\"wiki_uri\":\"\"}"
223
- http_version: "1.1"
224
- - !ruby/struct:VCR::HTTPInteraction
225
- request: !ruby/struct:VCR::Request
196
+ connection:
197
+ - keep-alive
198
+ body: ! '{"version":"3.1.4"}'
199
+ http_version: '1.1'
200
+ - !ruby/struct:VCR::HTTPInteraction
201
+ request: !ruby/struct:VCR::Request
226
202
  method: :get
227
- uri: http://rubygems.org:80/api/v1/gems/sqlite3.json
228
- body:
229
- headers:
230
- accept:
231
- - "*/*; q=0.5, application/xml"
232
- accept-encoding:
203
+ uri: http://gemlock.herokuapp.com:80/rubygems/sqlite3/latest.json
204
+ body: !!null
205
+ headers:
206
+ accept:
207
+ - ! '*/*; q=0.5, application/xml'
208
+ accept-encoding:
233
209
  - gzip, deflate
234
- response: !ruby/struct:VCR::Response
235
- status: !ruby/struct:VCR::ResponseStatus
210
+ response: !ruby/struct:VCR::Response
211
+ status: !ruby/struct:VCR::ResponseStatus
236
212
  code: 200
237
213
  message: OK
238
- headers:
239
- x-ua-compatible:
240
- - IE=Edge,chrome=1
241
- etag:
242
- - "\"d734864523607f57a32faefa0f488e5f\""
243
- x-powered-by:
244
- - Phusion Passenger (mod_rails/mod_rack) 3.0.0
245
- content-type:
246
- - application/json; charset=utf-8
247
- x-runtime:
248
- - "0.019085"
249
- server:
250
- - Apache/2.2.3 (Red Hat) mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 Phusion_Passenger/3.0.0
251
- date:
252
- - Sun, 25 Sep 2011 05:56:37 GMT
253
- status:
254
- - "200"
255
- cache-control:
214
+ headers:
215
+ cache-control:
256
216
  - max-age=0, private, must-revalidate
257
- transfer-encoding:
217
+ content-type:
218
+ - application/json; charset=utf-8
219
+ etag:
220
+ - ! '"dbb196aab8808e02b0cb33aa4e6a3052"'
221
+ server:
222
+ - thin 1.2.11 codename Bat-Shit Crazy
223
+ x-runtime:
224
+ - '0.076052'
225
+ x-ua-compatible:
226
+ - IE=Edge,chrome=1
227
+ transfer-encoding:
258
228
  - chunked
259
- body: "{\"dependencies\":{\"runtime\":[],\"development\":[{\"name\":\"hoe\",\"requirements\":\"~> 2.10\"},{\"name\":\"mini_portile\",\"requirements\":\"~> 0.2.2\"},{\"name\":\"rake-compiler\",\"requirements\":\"~> 0.7.0\"}]},\"name\":\"sqlite3\",\"downloads\":1096156,\"info\":\"This module allows Ruby programs to interface with the SQLite3\\ndatabase engine (http://www.sqlite.org). You must have the\\nSQLite engine installed in order to build this module.\\n\\nNote that this module is NOT compatible with SQLite 2.x.\",\"version_downloads\":258507,\"version\":\"1.3.4\",\"homepage_uri\":\"http://github.com/luislavena/sqlite3-ruby\",\"bug_tracker_uri\":null,\"source_code_uri\":null,\"gem_uri\":\"http://rubygems.org/gems/sqlite3-1.3.4.gem\",\"project_uri\":\"http://rubygems.org/gems/sqlite3\",\"authors\":\"Jamis Buck, Luis Lavena, Aaron Patterson\",\"mailing_list_uri\":null,\"documentation_uri\":null,\"wiki_uri\":null}"
260
- http_version: "1.1"
261
- - !ruby/struct:VCR::HTTPInteraction
262
- request: !ruby/struct:VCR::Request
229
+ connection:
230
+ - keep-alive
231
+ body: ! '{"version":"1.3.4"}'
232
+ http_version: '1.1'
233
+ - !ruby/struct:VCR::HTTPInteraction
234
+ request: !ruby/struct:VCR::Request
263
235
  method: :get
264
- uri: http://rubygems.org:80/api/v1/gems/uglifier.json
265
- body:
266
- headers:
267
- accept:
268
- - "*/*; q=0.5, application/xml"
269
- accept-encoding:
236
+ uri: http://gemlock.herokuapp.com:80/rubygems/uglifier/latest.json
237
+ body: !!null
238
+ headers:
239
+ accept:
240
+ - ! '*/*; q=0.5, application/xml'
241
+ accept-encoding:
270
242
  - gzip, deflate
271
- response: !ruby/struct:VCR::Response
272
- status: !ruby/struct:VCR::ResponseStatus
243
+ response: !ruby/struct:VCR::Response
244
+ status: !ruby/struct:VCR::ResponseStatus
273
245
  code: 200
274
246
  message: OK
275
- headers:
276
- x-ua-compatible:
277
- - IE=Edge,chrome=1
278
- etag:
279
- - "\"672e41201c949086dd5c78f356473803\""
280
- x-powered-by:
281
- - Phusion Passenger (mod_rails/mod_rack) 3.0.0
282
- content-type:
283
- - application/json; charset=utf-8
284
- x-runtime:
285
- - "0.021295"
286
- server:
287
- - Apache/2.2.3 (Red Hat) mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 Phusion_Passenger/3.0.0
288
- date:
289
- - Sun, 25 Sep 2011 05:56:37 GMT
290
- status:
291
- - "200"
292
- cache-control:
247
+ headers:
248
+ cache-control:
293
249
  - max-age=0, private, must-revalidate
294
- transfer-encoding:
250
+ content-type:
251
+ - application/json; charset=utf-8
252
+ etag:
253
+ - ! '"939c95352a2d69888fb560ca5e5d8e71"'
254
+ server:
255
+ - thin 1.2.11 codename Bat-Shit Crazy
256
+ x-runtime:
257
+ - '0.099565'
258
+ x-ua-compatible:
259
+ - IE=Edge,chrome=1
260
+ transfer-encoding:
295
261
  - chunked
296
- body: "{\"dependencies\":{\"runtime\":[{\"name\":\"execjs\",\"requirements\":\">= 0.3.0\"},{\"name\":\"multi_json\",\"requirements\":\">= 1.0.2\"}],\"development\":[{\"name\":\"bundler\",\"requirements\":\"~> 1.0.0\"},{\"name\":\"jeweler\",\"requirements\":\"~> 1.6.0\"},{\"name\":\"rcov\",\"requirements\":\">= 0\"},{\"name\":\"rspec\",\"requirements\":\"~> 2.6.0\"}]},\"name\":\"uglifier\",\"downloads\":256826,\"info\":\"Ruby wrapper for UglifyJS JavaScript compressor\",\"version_downloads\":88545,\"version\":\"1.0.3\",\"homepage_uri\":\"http://github.com/lautis/uglifier\",\"bug_tracker_uri\":\"https://github.com/lautis/uglifier/issues\",\"source_code_uri\":\"https://github.com/lautis/uglifier\",\"gem_uri\":\"http://rubygems.org/gems/uglifier-1.0.3.gem\",\"project_uri\":\"http://rubygems.org/gems/uglifier\",\"authors\":\"Ville Lautanala\",\"mailing_list_uri\":\"\",\"documentation_uri\":\"\",\"wiki_uri\":\"\"}"
297
- http_version: "1.1"
298
- - !ruby/struct:VCR::HTTPInteraction
299
- request: !ruby/struct:VCR::Request
262
+ connection:
263
+ - keep-alive
264
+ body: ! '{"version":"1.0.4"}'
265
+ http_version: '1.1'
266
+ - !ruby/struct:VCR::HTTPInteraction
267
+ request: !ruby/struct:VCR::Request
300
268
  method: :get
301
- uri: http://rubygems.org:80/api/v1/gems/unicorn.json
302
- body:
303
- headers:
304
- accept:
305
- - "*/*; q=0.5, application/xml"
306
- accept-encoding:
269
+ uri: http://gemlock.herokuapp.com:80/rubygems/unicorn/latest.json
270
+ body: !!null
271
+ headers:
272
+ accept:
273
+ - ! '*/*; q=0.5, application/xml'
274
+ accept-encoding:
307
275
  - gzip, deflate
308
- response: !ruby/struct:VCR::Response
309
- status: !ruby/struct:VCR::ResponseStatus
276
+ response: !ruby/struct:VCR::Response
277
+ status: !ruby/struct:VCR::ResponseStatus
310
278
  code: 200
311
279
  message: OK
312
- headers:
313
- x-ua-compatible:
314
- - IE=Edge,chrome=1
315
- etag:
316
- - "\"a6ab000a19e3f9a0b13715fba36ddea3\""
317
- x-powered-by:
318
- - Phusion Passenger (mod_rails/mod_rack) 3.0.0
319
- content-type:
320
- - application/json; charset=utf-8
321
- x-runtime:
322
- - "0.019786"
323
- server:
324
- - Apache/2.2.3 (Red Hat) mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 Phusion_Passenger/3.0.0
325
- date:
326
- - Sun, 25 Sep 2011 05:56:38 GMT
327
- status:
328
- - "200"
329
- cache-control:
280
+ headers:
281
+ cache-control:
330
282
  - max-age=0, private, must-revalidate
331
- transfer-encoding:
283
+ content-type:
284
+ - application/json; charset=utf-8
285
+ etag:
286
+ - ! '"37cd5df77bb485fe8e803759139301f7"'
287
+ server:
288
+ - thin 1.2.11 codename Bat-Shit Crazy
289
+ x-runtime:
290
+ - '0.091082'
291
+ x-ua-compatible:
292
+ - IE=Edge,chrome=1
293
+ transfer-encoding:
332
294
  - chunked
333
- body: "{\"dependencies\":{\"runtime\":[{\"name\":\"kgio\",\"requirements\":\"~> 2.4\"},{\"name\":\"rack\",\"requirements\":\">= 0\"},{\"name\":\"raindrops\",\"requirements\":\"~> 0.6\"}],\"development\":[{\"name\":\"isolate\",\"requirements\":\"~> 3.1\"},{\"name\":\"wrongdoc\",\"requirements\":\"~> 1.6\"}]},\"name\":\"unicorn\",\"downloads\":405901,\"info\":\"\\\\Unicorn is an HTTP server for Rack applications designed to only serve\\nfast clients on low-latency, high-bandwidth connections and take\\nadvantage of features in Unix/Unix-like kernels. Slow clients should\\nonly be served by placing a reverse proxy capable of fully buffering\\nboth the the request and response in between \\\\Unicorn and slow clients.\",\"version_downloads\":22397,\"version\":\"4.1.1\",\"homepage_uri\":\"http://unicorn.bogomips.org/\",\"bug_tracker_uri\":\"http://rubyforge.org/mailman/listinfo/mongrel-unicorn\",\"source_code_uri\":\"http://git.bogomips.org/cgit/unicorn.git\",\"gem_uri\":\"http://rubygems.org/gems/unicorn-4.1.1.gem\",\"project_uri\":\"http://rubygems.org/gems/unicorn\",\"authors\":\"Unicorn hackers\",\"mailing_list_uri\":\"http://rubyforge.org/mailman/listinfo/mongrel-unicorn\",\"documentation_uri\":\"http://unicorn.bogomips.org/\",\"wiki_uri\":\"\"}"
334
- http_version: "1.1"
295
+ connection:
296
+ - keep-alive
297
+ body: ! '{"version":"4.1.1"}'
298
+ http_version: '1.1'
@@ -6,10 +6,10 @@ describe Gemlock do
6
6
  Gemlock.stubs(:lockfile).returns((File.join(File.dirname(__FILE__), 'fixtures', 'Gemfile.lock')))
7
7
 
8
8
  specs = Gemlock.locked_gemfile_specs
9
- expected = [["coffee-rails", "3.1.0"], ["jquery-rails", "1.0.14"],
9
+ expected = [["coffee-rails", "3.1.0"], ["jquery-rails", "1.0.16"],
10
10
  ["json", "1.5.0"], ["rails", "3.1.0"],
11
11
  ["ruby-debug", "0.10.4"], ["sass-rails", "3.1.0"],
12
- ["sqlite3", "1.3.4"], ["uglifier", "1.0.3"],
12
+ ["sqlite3", "1.3.4"], ["uglifier", "1.0.4"],
13
13
  ["unicorn", "3.1.0"]]
14
14
 
15
15
  specs.should match_name_and_versions_of expected
@@ -59,11 +59,13 @@ describe Gemlock do
59
59
  expected = {'coffee-rails' => { :current => '3.1.0',
60
60
  :latest => '3.1.1' },
61
61
  'sass-rails' => { :current => '3.1.0',
62
- :latest => '3.1.2' },
62
+ :latest => '3.1.4' },
63
63
  'unicorn' => { :current => '3.1.0',
64
64
  :latest => '4.1.1' },
65
65
  'json' => { :current => '1.5.0',
66
- :latest => '1.6.1' } }
66
+ :latest => '1.6.1' },
67
+ 'rails' => { :current => '3.1.0',
68
+ :latest => '3.1.1'} }
67
69
 
68
70
  Gemlock.outdated.should eql expected
69
71
  end
@@ -74,9 +76,11 @@ describe Gemlock do
74
76
  expected = {'coffee-rails' => { :current => '3.1.0',
75
77
  :latest => '3.1.1' },
76
78
  'sass-rails' => { :current => '3.1.0',
77
- :latest => '3.1.2' },
79
+ :latest => '3.1.4' },
78
80
  'unicorn' => { :current => '3.1.0',
79
- :latest => '4.1.1' } }
81
+ :latest => '4.1.1' },
82
+ 'rails' => { :current => '3.1.0',
83
+ :latest => '3.1.1'} }
80
84
 
81
85
  Gemlock.outdated.should eql expected
82
86
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemlock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,11 +12,11 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2011-10-28 00:00:00.000000000Z
15
+ date: 2011-10-30 00:00:00.000000000Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rake
19
- requirement: &70359630111040 !ruby/object:Gem::Requirement
19
+ requirement: &70275899864940 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
22
  - - ! '>='
@@ -24,10 +24,10 @@ dependencies:
24
24
  version: 0.8.7
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *70359630111040
27
+ version_requirements: *70275899864940
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: bundler
30
- requirement: &70359630110220 !ruby/object:Gem::Requirement
30
+ requirement: &70275899864320 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ~>
@@ -35,10 +35,10 @@ dependencies:
35
35
  version: 1.0.0
36
36
  type: :runtime
37
37
  prerelease: false
38
- version_requirements: *70359630110220
38
+ version_requirements: *70275899864320
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: rest-client
41
- requirement: &70359630109780 !ruby/object:Gem::Requirement
41
+ requirement: &70275899863860 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ! '>='
@@ -46,10 +46,10 @@ dependencies:
46
46
  version: '0'
47
47
  type: :runtime
48
48
  prerelease: false
49
- version_requirements: *70359630109780
49
+ version_requirements: *70275899863860
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: json
52
- requirement: &70359630109240 !ruby/object:Gem::Requirement
52
+ requirement: &70275899863280 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ! '>='
@@ -57,10 +57,10 @@ dependencies:
57
57
  version: '0'
58
58
  type: :runtime
59
59
  prerelease: false
60
- version_requirements: *70359630109240
60
+ version_requirements: *70275899863280
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rspec
63
- requirement: &70359630108700 !ruby/object:Gem::Requirement
63
+ requirement: &70275899862660 !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
66
66
  - - ~>
@@ -68,10 +68,10 @@ dependencies:
68
68
  version: 2.7.0
69
69
  type: :development
70
70
  prerelease: false
71
- version_requirements: *70359630108700
71
+ version_requirements: *70275899862660
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: mocha
74
- requirement: &70359630107720 !ruby/object:Gem::Requirement
74
+ requirement: &70275899862060 !ruby/object:Gem::Requirement
75
75
  none: false
76
76
  requirements:
77
77
  - - ~>
@@ -79,10 +79,10 @@ dependencies:
79
79
  version: 0.10.0
80
80
  type: :development
81
81
  prerelease: false
82
- version_requirements: *70359630107720
82
+ version_requirements: *70275899862060
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pry
85
- requirement: &70359630101100 !ruby/object:Gem::Requirement
85
+ requirement: &70275899861460 !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements:
88
88
  - - ! '>='
@@ -90,10 +90,10 @@ dependencies:
90
90
  version: 0.9.5
91
91
  type: :development
92
92
  prerelease: false
93
- version_requirements: *70359630101100
93
+ version_requirements: *70275899861460
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: vcr
96
- requirement: &70359630095920 !ruby/object:Gem::Requirement
96
+ requirement: &70275899860920 !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
99
  - - ! '>='
@@ -101,10 +101,10 @@ dependencies:
101
101
  version: 1.11.0
102
102
  type: :development
103
103
  prerelease: false
104
- version_requirements: *70359630095920
104
+ version_requirements: *70275899860920
105
105
  - !ruby/object:Gem::Dependency
106
106
  name: fakeweb
107
- requirement: &70359630094240 !ruby/object:Gem::Requirement
107
+ requirement: &70275899860340 !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements:
110
110
  - - ! '>='
@@ -112,7 +112,7 @@ dependencies:
112
112
  version: 1.3.0
113
113
  type: :development
114
114
  prerelease: false
115
- version_requirements: *70359630094240
115
+ version_requirements: *70275899860340
116
116
  description: When installed, allows a user to check for updates in their Rails application
117
117
  email:
118
118
  - mskalnik@gatech.edu
@@ -139,7 +139,6 @@ files:
139
139
  - spec/fixtures/gemlock.yml
140
140
  - spec/fixtures/vcr_cassettes/Gemlock/_lookup_version.yml
141
141
  - spec/fixtures/vcr_cassettes/Gemlock/_outdated.yml
142
- - spec/fixtures/vcr_cassettes/rails_cassette.yml
143
142
  - spec/gemlock_spec.rb
144
143
  - spec/spec_helper.rb
145
144
  homepage: ''
@@ -172,6 +171,5 @@ test_files:
172
171
  - spec/fixtures/gemlock.yml
173
172
  - spec/fixtures/vcr_cassettes/Gemlock/_lookup_version.yml
174
173
  - spec/fixtures/vcr_cassettes/Gemlock/_outdated.yml
175
- - spec/fixtures/vcr_cassettes/rails_cassette.yml
176
174
  - spec/gemlock_spec.rb
177
175
  - spec/spec_helper.rb
@@ -1,45 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :get
5
- uri: https://rubygems.org:443/api/v1/gems/rails.json
6
- body: !!null
7
- headers:
8
- accept:
9
- - ! '*/*; q=0.5, application/xml'
10
- accept-encoding:
11
- - gzip, deflate
12
- response: !ruby/struct:VCR::Response
13
- status: !ruby/struct:VCR::ResponseStatus
14
- code: 200
15
- message: OK
16
- headers:
17
- date:
18
- - Fri, 23 Sep 2011 01:29:13 GMT
19
- server:
20
- - Apache/2.2.3 (Red Hat) mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 Phusion_Passenger/3.0.0
21
- x-powered-by:
22
- - Phusion Passenger (mod_rails/mod_rack) 3.0.0
23
- etag:
24
- - ! '"4b5b6772f8e96c437381a9738a92924c"'
25
- x-ua-compatible:
26
- - IE=Edge,chrome=1
27
- x-runtime:
28
- - '0.024993'
29
- cache-control:
30
- - max-age=0, private, must-revalidate
31
- status:
32
- - '200'
33
- transfer-encoding:
34
- - chunked
35
- content-type:
36
- - application/json; charset=utf-8
37
- body: ! '{"dependencies":{"runtime":[{"name":"actionmailer","requirements":"=
38
- 3.1.0"},{"name":"actionpack","requirements":"= 3.1.0"},{"name":"activerecord","requirements":"=
39
- 3.1.0"},{"name":"activeresource","requirements":"= 3.1.0"},{"name":"activesupport","requirements":"=
40
- 3.1.0"},{"name":"bundler","requirements":"~> 1.0"},{"name":"railties","requirements":"=
41
- 3.1.0"}],"development":[]},"name":"rails","downloads":5538650,"info":"Ruby on
42
- Rails is a full-stack web framework optimized for programmer happiness and sustainable
43
- productivity. It encourages beautiful code by favoring convention over configuration.","version_downloads":156960,"version":"3.1.0","homepage_uri":"http://www.rubyonrails.org","bug_tracker_uri":"http://rails.lighthouseapp.com/projects/8994-ruby-on-rails","source_code_uri":"http://github.com/rails/rails","gem_uri":"http://rubygems.org/gems/rails-3.1.0.gem","project_uri":"http://rubygems.org/gems/rails","authors":"David
44
- Heinemeier Hansson","mailing_list_uri":"http://groups.google.com/group/rubyonrails-talk","documentation_uri":"http://api.rubyonrails.org","wiki_uri":"http://wiki.rubyonrails.org"}'
45
- http_version: '1.1'