geminabox 0.2.2 → 0.2.3
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 +3 -1
- metadata +2 -2
data/lib/geminabox.rb
CHANGED
@@ -52,9 +52,11 @@ class Geminabox < Sinatra::Base
|
|
52
52
|
return erb(:upload)
|
53
53
|
end
|
54
54
|
|
55
|
+
tmpfile.binmode
|
56
|
+
|
55
57
|
Dir.mkdir(File.join(options.data, "gems")) unless File.directory? File.join(options.data, "gems")
|
56
58
|
|
57
|
-
File.open(File.join(options.data, "gems", File.basename(name)), "
|
59
|
+
File.open(File.join(options.data, "gems", File.basename(name)), "wb") do |f|
|
58
60
|
while blk = tmpfile.read(65536)
|
59
61
|
f << blk
|
60
62
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geminabox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Lea
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02-
|
12
|
+
date: 2010-02-24 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|