diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-15 16:37:18 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-16 08:43:46 +0200 |
commit | e483322519fef4c1dcbab9a91f6e64379cce4fa7 (patch) | |
tree | bdc00550a189064d375aa982824e208b73d9c7b9 /spec/runtime | |
parent | ef55470cc676172b20d1d365cb0ce8c4bc1e3d9d (diff) | |
download | bundler-e483322519fef4c1dcbab9a91f6e64379cce4fa7.tar.gz |
Remove unnecessary assignment
Diffstat (limited to 'spec/runtime')
-rw-r--r-- | spec/runtime/setup_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb index abc8b454a5..9e92c513b8 100644 --- a/spec/runtime/setup_spec.rb +++ b/spec/runtime/setup_spec.rb @@ -817,8 +817,8 @@ end gemspec_file = ruby_core? ? "#{root}/lib/bundler/bundler.gemspec" : "#{root}/bundler.gemspec" gemspec = File.binread(gemspec_file). - sub("Bundler::VERSION", %("#{Bundler::VERSION}")) - gemspec = gemspec.lines.reject {|line| line =~ %r{lib/bundler/version} }.join + sub("Bundler::VERSION", %("#{Bundler::VERSION}")). + lines.reject {|line| line =~ %r{lib/bundler/version} }.join File.open(File.join(specifications_dir, "#{full_name}.gemspec"), "wb") do |f| f.write(gemspec) |