From 9995ce64a251e51eabc6300d38980c4139f92d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Thu, 15 Aug 2019 16:37:18 +0200 Subject: [bundler/bundler] Remove unnecessary assignment https://github.com/bundler/bundler/commit/e483322519 --- spec/bundler/runtime/setup_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/bundler/runtime') diff --git a/spec/bundler/runtime/setup_spec.rb b/spec/bundler/runtime/setup_spec.rb index abc8b454a5..9e92c513b8 100644 --- a/spec/bundler/runtime/setup_spec.rb +++ b/spec/bundler/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) -- cgit v1.2.3