Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix typo in Gzip logic

  • Loading branch information...
commit 4829901170527156f4cf532bc6f93f75629e20d4 1 parent 07b2138
@runpaint authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Rakefile
2  Rakefile
@@ -192,7 +192,7 @@ desc "Gzip the website"
task gzip: :www do
Dir.chdir(WEB_OUT) do
FileList['*', '**/*', '**/**/*'].each do |f|
- if File.file?(f) && ['html','css','js'].include?(f[-3..-1])
+ if File.file?(f) && ['html','css','js'].any?{|e| f.end_with?(e)}
new_f = "#{f}.en"
mv f, new_f
sh("gzip --best -c #{new_f} > #{new_f}.gz") or raise "Couldn't gzip #{new_f}: #$!"
Please sign in to comment.
Something went wrong with that request. Please try again.