diff options
author | Xavier Noria <fxn@hashref.com> | 2011-07-23 14:41:30 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-07-23 14:50:29 +0200 |
commit | d352e0dff2c88bc1519ee7040b8381231b2b2fac (patch) | |
tree | ce3799046a078a5ad28ce3bfdd144e48304113fe | |
parent | 4d8aaff4ea7334ff3f88bedec8147904846f435e (diff) | |
download | rails-d352e0dff2c88bc1519ee7040b8381231b2b2fac.tar.gz rails-d352e0dff2c88bc1519ee7040b8381231b2b2fac.tar.bz2 rails-d352e0dff2c88bc1519ee7040b8381231b2b2fac.zip |
checked all .rb files in the project tree for missing magic comments, one was missing
Came with this one-liner for this:
find . -name '*.rb' | \
xargs chardet | \
grep -v ascii | \
cut -d: -f1 -s | \
xargs -n1 ruby -0777 -ne 'puts $FILENAME if $_ !~ /#.*coding:\s*utf/i'
Welcome $_.
-rw-r--r-- | actionpack/lib/action_view/helpers/number_helper.rb | 2 | ||||
-rw-r--r-- | activesupport/test/json/decoding_test.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/number_helper.rb b/actionpack/lib/action_view/helpers/number_helper.rb index fe0288521f..ec6c2c8db3 100644 --- a/actionpack/lib/action_view/helpers/number_helper.rb +++ b/actionpack/lib/action_view/helpers/number_helper.rb @@ -1,3 +1,5 @@ +# encoding: utf-8 + require 'active_support/core_ext/big_decimal/conversions' require 'active_support/core_ext/float/rounding' require 'active_support/core_ext/object/blank' diff --git a/activesupport/test/json/decoding_test.rb b/activesupport/test/json/decoding_test.rb index 6ccffa59b1..201729a6c2 100644 --- a/activesupport/test/json/decoding_test.rb +++ b/activesupport/test/json/decoding_test.rb @@ -1,4 +1,4 @@ -# encoding: UTF-8 +# encoding: utf-8 require 'abstract_unit' require 'active_support/json' require 'active_support/time' |