Class: Precious::GemHelper
- Inherits:
-
Bundler::GemHelper
- Object
- Bundler::GemHelper
- Precious::GemHelper
- Defined in:
- lib/precious/gem_helper.rb,
lib/precious/gem_helper.rb
Class Method Summary collapse
Instance Method Summary collapse
- #install ⇒ Object
-
#release_gem ⇒ Object
(also: #release_git)
Modify existing behavior, then call it something else.
Class Method Details
.install_tasks(opts = {}) ⇒ Object
8 9 10 |
# File 'lib/precious/gem_helper.rb', line 8 def self.install_tasks(opts={}) # Do nothing. end |
Instance Method Details
#install ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/precious/gem_helper.rb', line 17 def install desc "Build #{name}-#{version}.gem into the pkg directory" task 'build' do build_gem end desc "Build and install #{name}-#{version}.gem into system gems" task 'install' do install_gem end desc "Create tag #{version_tag} and push to your default, remote Git repository" task 'release' do release_git end end |
#release_gem ⇒ Object Also known as: release_git
Modify existing behavior, then call it something else.
35 36 37 38 39 40 41 42 |
# File 'lib/precious/gem_helper.rb', line 35 def release_gem guard_clean guard_already_tagged tag_version { build_gem git_push } end |