lib/bundler.rb in bundler-1.0.0.rc.6 vs lib/bundler.rb in bundler-1.0.0

- old
+ new

@@ -209,9 +209,13 @@ def sudo(str) `sudo -p 'Enter your password to install the bundled RubyGems to your system: ' #{str}` end + def read_file(file) + File.open(file, "rb") { |file| file.read } + end + def load_gemspec(file) path = Pathname.new(file) # Eval the gemspec from its parent directory Dir.chdir(path.dirname) do begin