1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] Remove unnecessary assignment

https://github.com/bundler/bundler/commit/e483322519
This commit is contained in:
David Rodríguez 2019-08-15 16:37:18 +02:00 committed by Hiroshi SHIBATA
parent a2ca3a12ba
commit 9995ce64a2
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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)