Skip to content

Commit 18f8138

Browse files
committed
prefer to use %x literal instead of back-tick
1 parent 5ac709b commit 18f8138

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RDoc::Task.new do |doc|
3030
end
3131

3232
task ghpages: :rdoc do
33-
`git checkout gh-pages`
33+
%x[git checkout gh-pages]
3434
require "fileutils"
3535
FileUtils.rm_rf "/tmp/html"
3636
FileUtils.mv "html", "/tmp"

rake.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Rake has the following features:
2424
s.homepage = "https://github.com/ruby/rake".freeze
2525
s.licenses = ["MIT".freeze]
2626

27-
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } -
27+
s.files = %x[git ls-files -z].split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } -
2828
%w[.rubocop.yml .travis.yml appveyor.yml]
2929
s.bindir = "exe"
3030
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }

0 commit comments

Comments
 (0)