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:
parent
a2ca3a12ba
commit
9995ce64a2
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue