Class: Jeweler::Tasks
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Jeweler::Tasks
- Defined in:
- lib/jeweler/tasks.rb
Instance Attribute Summary collapse
-
#gemspec ⇒ Object
Returns the value of attribute gemspec.
-
#jeweler ⇒ Object
Returns the value of attribute jeweler.
Instance Method Summary collapse
-
#initialize(gemspec = nil) {|@gemspec| ... } ⇒ Tasks
constructor
A new instance of Tasks.
Constructor Details
#initialize(gemspec = nil) {|@gemspec| ... } ⇒ Tasks
Returns a new instance of Tasks.
12 13 14 15 16 17 18 19 |
# File 'lib/jeweler/tasks.rb', line 12 def initialize(gemspec = nil, &block) @gemspec = gemspec || Gem::Specification.new @jeweler = Jeweler.new(@gemspec) yield @gemspec if block_given? Rake.application.jeweler = @jeweler define end |
Instance Attribute Details
#gemspec ⇒ Object
Returns the value of attribute gemspec.
10 11 12 |
# File 'lib/jeweler/tasks.rb', line 10 def gemspec @gemspec end |
#jeweler ⇒ Object
Returns the value of attribute jeweler.
10 11 12 |
# File 'lib/jeweler/tasks.rb', line 10 def jeweler @jeweler end |