Class: Jeweler::RubygemsDotOrgTasks
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Jeweler::RubygemsDotOrgTasks
- Defined in:
- lib/jeweler/rubygems_tasks.rb,
lib/jeweler/rubygems_dot_org_tasks.rb
Overview
Direct Known Subclasses
Instance Attribute Summary collapse
-
#jeweler ⇒ Object
Returns the value of attribute jeweler.
Instance Method Summary collapse
- #define ⇒ Object
-
#initialize {|_self| ... } ⇒ RubygemsDotOrgTasks
constructor
A new instance of RubygemsDotOrgTasks.
Constructor Details
#initialize {|_self| ... } ⇒ RubygemsDotOrgTasks
Returns a new instance of RubygemsDotOrgTasks.
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
#jeweler ⇒ Object
Returns the value of attribute jeweler.
15 16 17 |
# File 'lib/jeweler/rubygems_tasks.rb', line 15 def jeweler @jeweler end |
Instance Method Details
#define ⇒ Object
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 |