geminabox 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of geminabox might be problematic. Click here for more details.
- data/lib/geminabox.rb +1 -1
- data/lib/geminabox/incoming_gem.rb +7 -1
- data/lib/geminabox/version.rb +1 -1
- metadata +145 -150
data/lib/geminabox.rb
CHANGED
@@ -71,7 +71,7 @@ class Geminabox < Sinatra::Base
|
|
71
71
|
|
72
72
|
get '/api/v1/dependencies' do
|
73
73
|
query_gems = params[:gems].split(',')
|
74
|
-
deps = query_gems.
|
74
|
+
deps = query_gems.inject([]){|memo, query_gem| memo + gem_dependencies(query_gem) }
|
75
75
|
Marshal.dump(deps)
|
76
76
|
end
|
77
77
|
|
@@ -5,11 +5,17 @@ class Geminabox::IncomingGem
|
|
5
5
|
end
|
6
6
|
|
7
7
|
digest = Digest::SHA1.new
|
8
|
-
|
8
|
+
if RbConfig::CONFIG["MAJOR"].to_i <= 1 and RbConfig::CONFIG["MINOR"].to_i <= 8
|
9
|
+
@tempfile = Tempfile.new("gem")
|
10
|
+
else
|
11
|
+
@tempfile = Tempfile.new("gem", :encoding => 'binary')
|
12
|
+
end
|
13
|
+
|
9
14
|
while data = gem_data.read(1024**2)
|
10
15
|
@tempfile.write data
|
11
16
|
digest << data
|
12
17
|
end
|
18
|
+
|
13
19
|
@tempfile.close
|
14
20
|
@sha1 = digest.hexdigest
|
15
21
|
|
data/lib/geminabox/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
GeminaboxVersion = '0.10.
|
1
|
+
GeminaboxVersion = '0.10.1' unless defined? GeminaboxVersion
|
metadata
CHANGED
@@ -1,167 +1,159 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: geminabox
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 53
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 10
|
9
|
+
- 1
|
10
|
+
version: 0.10.1
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Tom Lea
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
version_requirements: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
17
|
+
|
18
|
+
date: 2013-01-22 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
22
21
|
name: sinatra
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
-
|
22
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 3
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
version: "0"
|
31
31
|
type: :runtime
|
32
|
-
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '0'
|
38
|
-
name: builder
|
32
|
+
requirement: *id001
|
39
33
|
prerelease: false
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
- !ruby/object:Gem::
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: builder
|
36
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
hash: 3
|
42
|
+
segments:
|
43
|
+
- 0
|
44
|
+
version: "0"
|
47
45
|
type: :runtime
|
48
|
-
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ! '>='
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 2.2.7
|
54
|
-
name: httpclient
|
46
|
+
requirement: *id002
|
55
47
|
prerelease: false
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: httpclient
|
50
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
hash: 9
|
56
|
+
segments:
|
57
|
+
- 2
|
58
|
+
- 2
|
59
|
+
- 7
|
61
60
|
version: 2.2.7
|
62
|
-
|
63
|
-
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
name: rake
|
61
|
+
type: :runtime
|
62
|
+
requirement: *id003
|
71
63
|
prerelease: false
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
- !ruby/object:Gem::
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
name: rake
|
66
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
79
75
|
type: :development
|
80
|
-
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ! '>='
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: '0'
|
86
|
-
name: rack-test
|
76
|
+
requirement: *id004
|
87
77
|
prerelease: false
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
- !ruby/object:Gem::
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rack-test
|
80
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
hash: 3
|
86
|
+
segments:
|
87
|
+
- 0
|
88
|
+
version: "0"
|
95
89
|
type: :development
|
96
|
-
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ! '>='
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '0'
|
102
|
-
name: minitest
|
90
|
+
requirement: *id005
|
103
91
|
prerelease: false
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
- !ruby/object:Gem::
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: minitest
|
94
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
hash: 3
|
100
|
+
segments:
|
101
|
+
- 0
|
102
|
+
version: "0"
|
111
103
|
type: :development
|
112
|
-
|
113
|
-
none: false
|
114
|
-
requirements:
|
115
|
-
- - ! '>='
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
name: capybara
|
104
|
+
requirement: *id006
|
119
105
|
prerelease: false
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
- !ruby/object:Gem::
|
106
|
+
- !ruby/object:Gem::Dependency
|
107
|
+
name: capybara
|
108
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
109
|
+
none: false
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
hash: 3
|
114
|
+
segments:
|
115
|
+
- 0
|
116
|
+
version: "0"
|
127
117
|
type: :development
|
128
|
-
|
129
|
-
none: false
|
130
|
-
requirements:
|
131
|
-
- - ! '>='
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: '0'
|
134
|
-
name: capybara-mechanize
|
118
|
+
requirement: *id007
|
135
119
|
prerelease: false
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
- !ruby/object:Gem::
|
120
|
+
- !ruby/object:Gem::Dependency
|
121
|
+
name: capybara-mechanize
|
122
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
123
|
+
none: false
|
124
|
+
requirements:
|
125
|
+
- - ">="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
hash: 3
|
128
|
+
segments:
|
129
|
+
- 0
|
130
|
+
version: "0"
|
143
131
|
type: :development
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
- - ! '>='
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: '0'
|
132
|
+
requirement: *id008
|
133
|
+
prerelease: false
|
134
|
+
- !ruby/object:Gem::Dependency
|
150
135
|
name: pry
|
136
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
hash: 3
|
142
|
+
segments:
|
143
|
+
- 0
|
144
|
+
version: "0"
|
145
|
+
type: :development
|
146
|
+
requirement: *id009
|
151
147
|
prerelease: false
|
152
|
-
requirement: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
|
-
requirements:
|
155
|
-
- - ! '>='
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: '0'
|
158
148
|
description: A sinatra based gem hosting app, with client side gem push style functionality.
|
159
149
|
email: contrib@tomlea.co.uk
|
160
150
|
executables: []
|
151
|
+
|
161
152
|
extensions: []
|
162
|
-
|
153
|
+
|
154
|
+
extra_rdoc_files:
|
163
155
|
- README.markdown
|
164
|
-
files:
|
156
|
+
files:
|
165
157
|
- README.markdown
|
166
158
|
- lib/geminabox/disk_cache.rb
|
167
159
|
- lib/geminabox/gem_version.rb
|
@@ -185,34 +177,37 @@ files:
|
|
185
177
|
- views/upload.erb
|
186
178
|
homepage: http://tomlea.co.uk/p/gem-in-a-box
|
187
179
|
licenses: []
|
180
|
+
|
188
181
|
post_install_message:
|
189
|
-
rdoc_options:
|
182
|
+
rdoc_options:
|
190
183
|
- --main
|
191
184
|
- README.markdown
|
192
|
-
require_paths:
|
185
|
+
require_paths:
|
193
186
|
- lib
|
194
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
187
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
195
188
|
none: false
|
196
|
-
requirements:
|
197
|
-
- -
|
198
|
-
- !ruby/object:Gem::Version
|
199
|
-
|
189
|
+
requirements:
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
hash: 3
|
193
|
+
segments:
|
200
194
|
- 0
|
201
|
-
|
202
|
-
|
203
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
|
+
version: "0"
|
196
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
204
197
|
none: false
|
205
|
-
requirements:
|
206
|
-
- -
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
hash: 3
|
202
|
+
segments:
|
209
203
|
- 0
|
210
|
-
|
211
|
-
version: '0'
|
204
|
+
version: "0"
|
212
205
|
requirements: []
|
206
|
+
|
213
207
|
rubyforge_project:
|
214
208
|
rubygems_version: 1.8.24
|
215
209
|
signing_key:
|
216
210
|
specification_version: 3
|
217
211
|
summary: Really simple rubygem hosting
|
218
212
|
test_files: []
|
213
|
+
|