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.

@@ -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.each_with_object([]) {|query_gem, memo| memo.concat gem_dependencies(query_gem) }
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
- @tempfile = Tempfile.new("gem", :encoding => 'binary')
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
 
@@ -1 +1 @@
1
- GeminaboxVersion = '0.10.0' unless defined? GeminaboxVersion
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
- version: 0.10.0
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
- date: 2013-01-20 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- type: :runtime
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
- prerelease: false
24
- requirement: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
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
- requirement: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
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
- requirement: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
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
- - !ruby/object:Gem::Dependency
63
- type: :development
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
- requirement: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
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
- requirement: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
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
- requirement: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
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
- requirement: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
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
- requirement: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ! '>='
140
- - !ruby/object:Gem::Version
141
- version: '0'
142
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
145
- none: false
146
- requirements:
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
- extra_rdoc_files:
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
- segments:
189
+ requirements:
190
+ - - ">="
191
+ - !ruby/object:Gem::Version
192
+ hash: 3
193
+ segments:
200
194
  - 0
201
- hash: 1008215541658349139
202
- version: '0'
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
- segments:
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ hash: 3
202
+ segments:
209
203
  - 0
210
- hash: 1008215541658349139
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
+