diff options
author | Tobias Grasse <834914+tobias-grasse@users.noreply.github.com> | 2018-04-06 15:04:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-06 15:04:17 +0200 |
commit | 6a74c8bf6782af90cb76c481d22a65cdf454476f (patch) | |
tree | 86c3abcb324fe5ad653ee476fba6d0a336e312ae | |
parent | 257fb54da0003c3a67f6e7b3b5a242a4ba9c45cb (diff) | |
download | bundler-6a74c8bf6782af90cb76c481d22a65cdf454476f.tar.gz |
Update injector.rb
Use File.open instead of Kernel.open to avoid private method call when using Bundler::Injector in Ruby script.
-rw-r--r-- | lib/bundler/injector.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/injector.rb b/lib/bundler/injector.rb index 6f9669ae4f..4eb327b15e 100644 --- a/lib/bundler/injector.rb +++ b/lib/bundler/injector.rb @@ -82,7 +82,7 @@ module Bundler end def append_to(gemfile_path, new_gem_lines) - gemfile_path.open("a") do |f| + File.open(gemfile_path, "a") do |f| f.puts f.puts new_gem_lines end |