Sha256: 60835b91b926f287ccc3efd61f9dbd13d336eaf5d0f5480e4047fc2d7faf7c5d
Contents?: true
Size: 1.88 KB
Versions: 2
Compression:
Stored size: 1.88 KB
Contents
# Bundler::Geminabox This gem provides `rake geminabox_release` command to release gem on internal rubygems server such as [geminabox](https://github.com/geminabox/geminabox), and disable `rake release` command for foolproof. ## Installation Add following to your Gemfile: ``` gem 'bundler-geminabox' ``` And then execute: ``` $ bundle ``` ## Usage ### How to release a gem Modify Rakefile as: ```diff - require "bundler/gem_tasks" + require "bundler/geminabox/gem_tasks" ``` Run following to release your gem to your internal rubygems server: ``` GEMINABOX=https://your.rubygems.org bundle exec rake geminabox_release ``` Note that `rake release` is disabled not to release to rubygems.org mistakenly. ### How to fetch gems from your.rubygems.jp Write your application's Gemfile as: ```ruby source 'https://your.rubygems.org' gem 'your_awesome_geminabox_gem' ``` And then execute: $ bundle ### How to create a new gem This gem also provides a command to create a skelton for a new gem to be released to https://your.rubygems.org Run ``` GEMINABOX=https://your.rubygems.org bundle-geminabox gem GEM ``` instead of ``` bundle gem GEM ``` Example: ``` $ GEMINABOX=https://your.rubygems.org bundle-geminabox gem foo create foo/Gemfile create foo/.gitignore create foo/lib/foo.rb create foo/lib/foo/version.rb create foo/LICENSE.txt create foo/foo.gemspec create foo/.consolerc create foo/Rakefile create foo/README.md force foo/Gemfile force foo/Rakefile ``` Note that `Gemfile` and `Rakefile` are updated. ## FOOTNOTE * This gem should not be limited with the use of geminabox but for any internal rubygems. I named as bundler-geminabox just because I am using it. * It would be nice to create a wrapper gem specific to your environment to omit setting GEMINABOX environment variable. I am actually doing so.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bundler-geminabox-1.0.0 | README.md |
bundler-geminabox-0.1.2 | README.md |