wxianfeng/hanzi_to_pinyin — Issue #2: No 'require yaml'
Author: bytesource
Created: 2012-03-08 04:45:18+00:00
State: open

Hi Xianfeng,

When trying to use your gem outside of Rails I get the following error.

````
uninitialized constant HanziToPinyin::YAML
from /home/[...]/.rvm/gems/ruby-1.9.2-p290/gems/hanzi_to_pinyin-0.6.1/lib/hanzi_to_pinyin.rb:21:
in `'
````

Adding `require yaml` at the top of *hanzi_to_pinyin.rb* fixes the issue.

Best regards,

Stefan