Generate a Gemfile based on a Hoe spec's declared dependencies.
Creates a rake task to generate a bundler Gemfile based on your declared hoe dependencies.
Why would you want to do this? I mean, why would anyone want to use bundler to test their gem?
- to make sure you've declared all your dependencies in your Hoe.spec.
- to make sure you're testing against the exact versions of dependencies that you're claiming in your Hoe.spec.
Just add the following line to your Rakefile before you call
And then run the following command to generate a Gemfile:
Reference a gemspec file
To generate a Gemfile which uses
gemspec and the default source:
Use a custom gem source
To generate a Gemfile which uses a custom source:
Reference a gemspec file and use a custom gem source
Or the combination of custom source and gemspec:
- hoe >= 2.2.0
- gem install hoe-bundler
Generate a gem spec using hoe-gemspec.
Distributed under the MIT license. See
LICENSE file for details.