Open apinstein opened 12 years ago
You can keep jeweler if it's working for you. Bundler can also generate a raw skeleton for a gem, just run bundle gem
. Perhaps try it out and then look at the gemspec and other files it creates.
If your using bundler just add the project as a git source. See http://gembundler.com/git.html
This is a topic that seems to have it's partisans on different fronts. I like using the rake tasks provided by bundler for gem releasing myself. Rip out all the jeweler stuff, add one line (I could look up) requiring bundler's rake tasks into your Rakefile, then it's just "rake release".
You have to make sure the gemspec is up-to-date before doing a 'rake release', for instance up-to-date with it's file list. You can do that by making the file list dynamic ruby code (bundler's generator actually does a shell out to git
file list; rail's generator does a ruby Dir glob instead), or by doing it manually or whatever.
I'd just use bundler, as it's a bit simpler and more maintained. The easiest way to switch over is:
Jeweler::Tasks
in Rakefile to the generated capistrano-gitflow/capistrano-gitflow.gemspecrake release
dance
Josh originally set this up with Jeweler. I don't know if that's the best/right way to do a gem in Ruby these days.
Can someone who knows please update the code for current best-practices in Ruby and help me build the gem?
Thanks!