fnando/i18n-js — pull request #68 by Gazler (2011-11-11 13:55:46+00:00)
Title: If a config file exists but doesn't contain a translations hash then export errors

I have added a spec for an empty config file as this was causing an export error.

To replicate the bug, create a config file but leave it empty.

gazler@gazler-desktop:~/development/rails/livestax$ rake i18n:js:export --trace
** Invoke i18n:js:export (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute i18n:js:export
rake aborted!
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.each
/home/gazler/.rvm/gems/ruby-1.9.2-p290@rails3_1/gems/i18n-js-2.0.1/lib/i18n-js.rb:34:in `export!'
/home/gazler/.rvm/gems/ruby-1.9.2-p290@rails3_1/gems/i18n-js-2.0.1/lib/i18n-js/rake.rb:9:in `block (2 levels) in '