see
- http://www.sonatype.org/nexus/
- https://github.com/sonatype/nexus-oss/tree/nexus-2.11.x/plugins/rubygem for current nexus-ruby-plugin
- https://github.com/sonatype/nexus-ruby-support for older nexus releases (before version 2.11.0)
gem install nexus
gem nexus my.gem
then the command will prompt for the url, username and password.
or you can specify --url URL
and --credential USER:PASS
to skip first prompt.
gem nexus --url http://localhost:8081/nexus/content/repositories/gems-internal --credential "your-account:${YOUR_PASS}" my.gem
for further info on how to deploy to more then one repo, keep the credentials file on different file system location (like on an external device) or encrypt the credentials file altogether with password based encryption:
gem help nexus
prepare the dependencies
bundle install
run tests
bundle exec rake
build and push gem to rubygems.org
gem build nexus.gemspec
gem push nexus-*.gem
install the gem into your local rubgems repository
gem install -l nexus-*.gem
- fork it
- create your feature branch (
git checkout -b my-new-feature
) - commit your changes (
git commit -am 'Added some feature'
) - push to the branch (
git push origin my-new-feature
) - create new pull request
enjoy :)