diff options
author | Terence Lee <hone02@gmail.com> | 2012-12-08 09:37:58 -0800 |
---|---|---|
committer | Terence Lee <hone02@gmail.com> | 2012-12-08 09:37:58 -0800 |
commit | da99c98225950fdbb53133f72cbfc5694a72e1bd (patch) | |
tree | 23613c6b24e1f6dbbb4231e548267501a7e29fd3 /lib/bundler/source/git.rb | |
parent | 0127b174c3c562f142cb177cc8955194102b89b7 (diff) | |
download | bundler-da99c98225950fdbb53133f72cbfc5694a72e1bd.tar.gz |
File.write doesn't work in ruby 1.8.7
Diffstat (limited to 'lib/bundler/source/git.rb')
-rw-r--r-- | lib/bundler/source/git.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source/git.rb b/lib/bundler/source/git.rb index 0308951b49..546f67f25e 100644 --- a/lib/bundler/source/git.rb +++ b/lib/bundler/source/git.rb @@ -170,7 +170,7 @@ module Bundler # in git might require git or other dependencies. # The gemspecs we cache should already be evaluated. spec_path = app_cache_path.join(File.basename(spec.loaded_from)) - File.write(spec_path, spec.to_ruby) + File.open(spec_path, 'wb') {|file| file.print spec.to_ruby } end def load_spec_files |