Class: Precious::GemHelper

Inherits:
Bundler::GemHelper
  • Object
show all
Defined in:
lib/precious/gem_helper.rb,
lib/precious/gem_helper.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#installObject



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_gemObject 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