rsl/stringex — pull request #34 by unpatioli (2011-11-22 16:58:16+00:00)
Title: verify_local_codepoints checks if arg is a Hash

When I tried to run test suite, it fell with the following message:

```raw
test_bad_localize_from_file(UnidecoderLocalizationAliasTest) [stringex/test/unidecoder_localization_alias_test.rb:59]:
[ArgumentError] exception expected, not
Class:
Message: <"undefined method `all?' for \"Anything not correct\":String">
---Backtrace---
stringex/lib/stringex/unidecoder.rb:118:in `verify_local_codepoints'
stringex/lib/stringex/unidecoder.rb:52:in `localize_from'
stringex/lib/stringex/unidecoder.rb:144:in `block (2 levels) in singletonclass'
stringex/test/unidecoder_localization_alias_test.rb:59:in `block in test_bad_localize_from_file'
---------------
```

It seems that the ```YAML#load_file``` method returns ```String``` instead of ```Hash``` for the bad_unidecoder_localization.yml file.
Maybe it's worth to check if ```verify_local_codepoints``` method gets ```Hash``` as an argument before the validation of hash's structure.