I think is better to not couple the generator with RubyGems. Can we just copy the implementation?