Class: Jeweler::GemcutterTasks

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/jeweler/gemcutter_tasks.rb

Overview

Rake tasks for putting a Jeweler gem on Gemcutter.

Jeweler::Tasks.new needs to be used before this.

Basic usage:

Jeweler::Gemcutter.new

Easy enough, right?

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ GemcutterTasks

Returns a new instance of GemcutterTasks.

Yields:

  • (_self)

Yield Parameters:



17
18
19
20
21
22
23
# File 'lib/jeweler/gemcutter_tasks.rb', line 17

def initialize
  yield self if block_given?

  self.jeweler = Rake.application.jeweler

  define
end

Instance Attribute Details

#jewelerObject

Returns the value of attribute jeweler.



15
16
17
# File 'lib/jeweler/gemcutter_tasks.rb', line 15

def jeweler
  @jeweler
end

Instance Method Details

#defineObject



25
26
27
28
29
30
31
32
33
34
# File 'lib/jeweler/gemcutter_tasks.rb', line 25

def define
  namespace :gemcutter do
    desc "Release gem to Gemcutter"
    task :release => [:gemspec, :build] do
      jeweler.release_gem_to_gemcutter
    end
  end

  task :release => 'gemcutter:release'
end