зеркало из https://github.com/github/ruby.git
[bundler/bundler] Remove unneeded `to_s` calls
They are implicit inside `gem_command!`. https://github.com/bundler/bundler/commit/6bdb13c899
This commit is contained in:
Родитель
f88237623f
Коммит
9925e1a10f
|
@ -231,7 +231,7 @@ RSpec.describe "The library itself" do
|
|||
spec = Gem::Specification.load(gemspec.to_s)
|
||||
spec.bindir = "libexec"
|
||||
File.open(root.join("bundler.gemspec").to_s, "w") {|f| f.write spec.to_ruby }
|
||||
gem_command! :build, root.join("bundler.gemspec").to_s
|
||||
gem_command! :build, root.join("bundler.gemspec")
|
||||
FileUtils.rm(root.join("bundler.gemspec").to_s)
|
||||
else
|
||||
gem_command! :build, gemspec
|
||||
|
|
|
@ -302,10 +302,10 @@ module Spec
|
|||
spec = Gem::Specification.load(gemspec.to_s)
|
||||
spec.bindir = "libexec"
|
||||
File.open(root.join("bundler.gemspec").to_s, "w") {|f| f.write spec.to_ruby }
|
||||
Dir.chdir(root) { gem_command! :build, root.join("bundler.gemspec").to_s }
|
||||
Dir.chdir(root) { gem_command! :build, root.join("bundler.gemspec") }
|
||||
FileUtils.rm(root.join("bundler.gemspec"))
|
||||
else
|
||||
Dir.chdir(root) { gem_command! :build, gemspec.to_s }
|
||||
Dir.chdir(root) { gem_command! :build, gemspec }
|
||||
end
|
||||
bundler_path = root.join("bundler-#{Bundler::VERSION}.gem")
|
||||
elsif g.to_s =~ %r{\A(?:[A-Z]:)?/.*\.gem\z}
|
||||
|
|
Загрузка…
Ссылка в новой задаче