lib/bundler/injector.rb in bundler-1.10.6 vs lib/bundler/injector.rb in bundler-1.11.0.pre.1

- old
+ new

@@ -38,27 +38,25 @@ definition.lock(Bundler.default_lockfile) # return an array of the deps that we added return @new_deps ensure - Bundler.settings[:frozen] = '1' if frozen + Bundler.settings[:frozen] = "1" if frozen end private def new_gem_lines @new_deps.map do |d| - %|gem '#{d.name}', '#{d.requirement}'| + %(gem '#{d.name}', '#{d.requirement}') end.join("\n") end def append_to(gemfile_path) gemfile_path.open("a") do |f| f.puts f.puts "# Added at #{Time.now} by #{`whoami`.chomp}:" f.puts new_gem_lines end end - - end end