зеркало из https://github.com/github/ruby.git
[bundler/bundler] Remove unnecessary assignment
https://github.com/bundler/bundler/commit/e483322519
This commit is contained in:
Родитель
a2ca3a12ba
Коммит
9995ce64a2
|
@ -817,8 +817,8 @@ end
|
||||||
|
|
||||||
gemspec_file = ruby_core? ? "#{root}/lib/bundler/bundler.gemspec" : "#{root}/bundler.gemspec"
|
gemspec_file = ruby_core? ? "#{root}/lib/bundler/bundler.gemspec" : "#{root}/bundler.gemspec"
|
||||||
gemspec = File.binread(gemspec_file).
|
gemspec = File.binread(gemspec_file).
|
||||||
sub("Bundler::VERSION", %("#{Bundler::VERSION}"))
|
sub("Bundler::VERSION", %("#{Bundler::VERSION}")).
|
||||||
gemspec = gemspec.lines.reject {|line| line =~ %r{lib/bundler/version} }.join
|
lines.reject {|line| line =~ %r{lib/bundler/version} }.join
|
||||||
|
|
||||||
File.open(File.join(specifications_dir, "#{full_name}.gemspec"), "wb") do |f|
|
File.open(File.join(specifications_dir, "#{full_name}.gemspec"), "wb") do |f|
|
||||||
f.write(gemspec)
|
f.write(gemspec)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче