summaryrefslogtreecommitdiff
path: root/spec/bundler
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-15 16:37:18 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-17 17:08:49 +0900
commit9995ce64a251e51eabc6300d38980c4139f92d86 (patch)
tree035eb6a9b2f74be96e3af70f2f12381de890b365 /spec/bundler
parenta2ca3a12ba35d8991099cb23be4bdeb15e5cd459 (diff)
[bundler/bundler] Remove unnecessary assignment
https://github.com/bundler/bundler/commit/e483322519
Diffstat (limited to 'spec/bundler')
-rw-r--r--spec/bundler/runtime/setup_spec.rb4
1 files changed, 2 insertions, 2 deletions
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)