Improve CRuby rake compatible
Merge pull request #1139 from masuidrive/build

Improve recent CRuby rake compatibility