зеркало из https://github.com/github/ruby.git
[bundler/bundler] Remve another unneeded `to_s`
`FileUtils.rm` supports a `Pathname` argument. https://github.com/bundler/bundler/commit/7d982a5be9
This commit is contained in:
Родитель
9925e1a10f
Коммит
adfca752d6
|
@ -232,7 +232,7 @@ RSpec.describe "The library itself" do
|
||||||
spec.bindir = "libexec"
|
spec.bindir = "libexec"
|
||||||
File.open(root.join("bundler.gemspec").to_s, "w") {|f| f.write spec.to_ruby }
|
File.open(root.join("bundler.gemspec").to_s, "w") {|f| f.write spec.to_ruby }
|
||||||
gem_command! :build, root.join("bundler.gemspec")
|
gem_command! :build, root.join("bundler.gemspec")
|
||||||
FileUtils.rm(root.join("bundler.gemspec").to_s)
|
FileUtils.rm(root.join("bundler.gemspec"))
|
||||||
else
|
else
|
||||||
gem_command! :build, gemspec
|
gem_command! :build, gemspec
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче