geminabox 0.2.2 → 0.2.3

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.
Files changed (2) hide show
  1. data/lib/geminabox.rb +3 -1
  2. 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)), "w") do |f|
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.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-15 00:00:00 +00:00
12
+ date: 2010-02-24 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency