prefer to use %x literal instead of back-tick
This commit is contained in:
parent
5ac709bc71
commit
18f8138e97
2
Rakefile
2
Rakefile
|
@ -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"
|
||||
|
|
|
@ -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) }
|
||||
|
|
Loading…
Reference in New Issue