Permalink
Browse files

- Empty YAML files still raise InvalidLocaleData under 1.9.3

- add 1.9.3 to travis' rvm list
  • Loading branch information...
1 parent 6bb6f8e commit 44eba80d0278e13b362b700e36f1ed28b04056de @tigrish tigrish committed Jul 7, 2012
Showing with 6 additions and 1 deletion.
  1. +1 −0 .travis.yml
  2. +5 −1 lib/i18n/backend/base.rb
View
@@ -1,6 +1,7 @@
rvm:
- 1.8.7
- 1.9.2
+ - 1.9.3
- ree
- rbx
- jruby
View
@@ -168,7 +168,11 @@ def load_rb(filename)
# Loads a YAML translations file. The data must have locales as
# toplevel keys.
def load_yml(filename)
- YAML.load_file(filename)
+ begin
+ YAML.load_file(filename)
+ rescue TypeError
+ raise InvalidLocaleData.new(file)
+ end
end
end
end

0 comments on commit 44eba80

Please sign in to comment.