diff options
Diffstat (limited to 'lib/bundler/cli/init.rb')
-rw-r--r-- | lib/bundler/cli/init.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/cli/init.rb b/lib/bundler/cli/init.rb index 31299bb2..1d201a90 100644 --- a/lib/bundler/cli/init.rb +++ b/lib/bundler/cli/init.rb @@ -19,13 +19,13 @@ module Bundler end spec = Gem::Specification.load(gemspec) puts "Writing new Gemfile to #{SharedHelpers.pwd}/Gemfile" - File.open('Gemfile', 'wb') do |file| + File.open("Gemfile", "wb") do |file| file << "# Generated from #{gemspec}\n" file << spec.to_gemfile end else puts "Writing new Gemfile to #{SharedHelpers.pwd}/Gemfile" - FileUtils.cp(File.expand_path('../../templates/Gemfile', __FILE__), 'Gemfile') + FileUtils.cp(File.expand_path("../../templates/Gemfile", __FILE__), "Gemfile") end end end |