Geminabox::RakeTasks
To publish gems to your private gem in a box server instead of rubygems.org.
Installation
Add this line to your gemspec:
spec.add_development_dependency "geminabox-rake_tasks"
And then execute:
bundle
Usage
- Replace
require "bundler/gem_tasks"
withrequire "geminabox/rake_tasks"
inRakefile
. - Configure your geminabox server if you have not yet. (
bundle exec gem inabox -c
) - Use rake as
bundler/gem_tasks
.
Rake Tasks
$ bundle exec rake -T
rake build # Build yourgem-0.1.0.gem into the pkg directory
rake install # Build and install yourgem-0.1.0.gem into system gems
rake install:local # Build and install yourgem-0.1.0.gem into system gems without network access
rake release # Create tag v0.1.0 and build and push yourgem-0.1.0.gem to your gem in a box server
Use bundle exec rake release
to publish gems.
$ bundle exec rake release
yourgem 0.1.0 built to pkg/yourgem-0.1.0.gem.
Tagged v0.1.0.
Pushed git commits and tags.
Pushed yourgem 0.1.0
Development
After checking out the repo, run bin/setup
to install dependencies. Then, run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
to create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Contributing
- Fork it ( https://github.com/[my-github-username]/geminabox-rake_tasks/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request