Class: Jeweler::RubygemsDotOrgTasks

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/jeweler/rubygems_tasks.rb,
lib/jeweler/rubygems_dot_org_tasks.rb

Overview

Rake tasks for putting a Jeweler gem on Gemcutter.

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

Basic usage:

Jeweler::RubygemsDotOrgTasks.new

Easy enough, right?

Direct Known Subclasses

GemcutterTasks

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of RubygemsDotOrgTasks.

Yields:

  • (_self)

Yield Parameters:



17
18
19
20
21
# File 'lib/jeweler/rubygems_tasks.rb', line 17

def initialize
  yield self if block_given?

  define
end

Instance Attribute Details

#jewelerObject

Returns the value of attribute jeweler.



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

def jeweler
  @jeweler
end

Instance Method Details

#defineObject



27
28
29
30
31
32
33
34
35
36
# File 'lib/jeweler/rubygems_tasks.rb', line 27

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

  task :release => 'rubygems:release'
end