prefer to use %x literal instead of back-tick

This commit is contained in:
SHIBATA Hiroshi 2018-01-07 11:44:18 +09:00
parent 5ac709bc71
commit 18f8138e97
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ RDoc::Task.new do |doc|
end
task ghpages: :rdoc do
`git checkout gh-pages`
%x[git checkout gh-pages]
require "fileutils"
FileUtils.rm_rf "/tmp/html"
FileUtils.mv "html", "/tmp"

View File

@ -24,7 +24,7 @@ Rake has the following features:
s.homepage = "https://github.com/ruby/rake".freeze
s.licenses = ["MIT".freeze]
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } -
s.files = %x[git ls-files -z].split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } -
%w[.rubocop.yml .travis.yml appveyor.yml]
s.bindir = "exe"
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }