Skip to content

Commit

Permalink
Let the gemfile we're writing be binary (only affects DOS/Windows, bu…
Browse files Browse the repository at this point in the history
…t doesn't hurt the others)
  • Loading branch information
PerfectlyNormal authored and tomlea committed Feb 24, 2010
1 parent f29d2e9 commit f7c94ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/geminabox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Geminabox < Sinatra::Base

Dir.mkdir(File.join(options.data, "gems")) unless File.directory? File.join(options.data, "gems")

File.open(File.join(options.data, "gems", File.basename(name)), "w") do |f|
File.open(File.join(options.data, "gems", File.basename(name)), "wb") do |f|
while blk = tmpfile.read(65536)
f << blk
end
Expand Down

0 comments on commit f7c94ff

Please sign in to comment.