Skip to content

Commit

Permalink
prefer to use %x literal instead of back-tick
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Jan 7, 2018
1 parent 5ac709b commit 18f8138
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion rake.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down

0 comments on commit 18f8138

Please sign in to comment.