aboutsummaryrefslogtreecommitdiffstats
path: root/guides/Rakefile
diff options
context:
space:
mode:
authorBart de Water <bartdewater@gmail.com>2018-07-28 17:37:17 -0400
committerBart de Water <bartdewater@gmail.com>2018-07-28 17:37:17 -0400
commiteb5fea40a404e829f00552859ae1b206728d99d7 (patch)
tree3abe3c813b8e64c5bb009902166953a616786232 /guides/Rakefile
parent8741052ba25722283ea057f6f022f16b1931ce3e (diff)
downloadrails-eb5fea40a404e829f00552859ae1b206728d99d7.tar.gz
rails-eb5fea40a404e829f00552859ae1b206728d99d7.tar.bz2
rails-eb5fea40a404e829f00552859ae1b206728d99d7.zip
Enable Start/EndWith and RegexpMatch cops
In cases where the MatchData object is not used, this provides a speed-up: https://github.com/JuanitoFatas/fast-ruby/#stringmatch-vs-stringmatch-vs-stringstart_withstringend_with-code-start-code-end
Diffstat (limited to 'guides/Rakefile')
-rw-r--r--guides/Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/Rakefile b/guides/Rakefile
index 84e18e0972..4116e6f9cc 100644
--- a/guides/Rakefile
+++ b/guides/Rakefile
@@ -30,7 +30,7 @@ namespace :guides do
unless Kindlerb.kindlegen_available?
abort "Please run `setupkindlerb` to install kindlegen"
end
- unless `convert` =~ /convert/
+ unless /convert/.match?(`convert`)
abort "Please install ImageMagick"
end
ENV["KINDLE"] = "1"