aboutsummaryrefslogtreecommitdiffstats
path: root/guides/w3c_validator.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-08-06 19:21:59 +0200
committerXavier Noria <fxn@hashref.com>2016-08-06 19:21:59 +0200
commit6b3719b7577ab81171bab94a0492ae383dd279fe (patch)
treedda0bb85b771cafd16acf5bea1288233feca8e09 /guides/w3c_validator.rb
parent8b4e6bf23338e2080af537ea4f295e65a1d11388 (diff)
downloadrails-6b3719b7577ab81171bab94a0492ae383dd279fe.tar.gz
rails-6b3719b7577ab81171bab94a0492ae383dd279fe.tar.bz2
rails-6b3719b7577ab81171bab94a0492ae383dd279fe.zip
applies new string literal convention in guides
The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
Diffstat (limited to 'guides/w3c_validator.rb')
-rw-r--r--guides/w3c_validator.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/w3c_validator.rb b/guides/w3c_validator.rb
index e3bb964a60..6eddd08906 100644
--- a/guides/w3c_validator.rb
+++ b/guides/w3c_validator.rb
@@ -26,7 +26,7 @@
#
# ---------------------------------------------------------------------------
-require 'w3c_validators'
+require "w3c_validators"
include W3CValidators
module RailsGuides
@@ -62,11 +62,11 @@ module RailsGuides
guides.delete("./output/layout.html")
guides.delete("./output/_license.html")
guides.delete("./output/_welcome.html")
- ENV.key?('ONLY') ? select_only(guides) : guides
+ ENV.key?("ONLY") ? select_only(guides) : guides
end
def select_only(guides)
- prefixes = ENV['ONLY'].split(",").map(&:strip)
+ prefixes = ENV["ONLY"].split(",").map(&:strip)
guides.select do |guide|
prefixes.any? {|p| guide.start_with?("./output/#{p}")}
end