Class: Jeweler::Tasks
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Jeweler::Tasks
- Defined in:
- lib/jeweler/tasks.rb
Overview
Rake tasks for managing your gem.
Here’s a basic usage example:
Jeweler::Tasks.new do |gem|
gem.name = "jeweler"
gem.summary = "Simple and opinionated helper for creating RubyGem projects on GitHub"
gem.email = "[email protected]"
gem.homepage = "http://github.com/technicalpickles/jeweler"
gem.description = "Simple and opinionated helper for creating RubyGem projects on GitHub"
gem. = ["Josh Nichols"]
end
The block variable gem is actually a Gem::Specification, so you can do anything you would normally do with a Gem::Specification. For more details, see the official gemspec reference: docs.rubygems.org/read/chapter/20
In addition, it provides reasonable defaults for several values. See Jeweler::Specification for more details.
Instance Attribute Summary collapse
-
#gemspec ⇒ Object
Returns the value of attribute gemspec.
-
#gemspec_building_block ⇒ Object
Returns the value of attribute gemspec_building_block.
-
#jeweler ⇒ Object
Returns the value of attribute jeweler.
Instance Method Summary collapse
-
#initialize(gemspec = nil, &gemspec_building_block) ⇒ Tasks
constructor
A new instance of Tasks.
Constructor Details
#initialize(gemspec = nil, &gemspec_building_block) ⇒ Tasks
Returns a new instance of Tasks.
38 39 40 41 42 43 44 |
# File 'lib/jeweler/tasks.rb', line 38 def initialize(gemspec = nil, &gemspec_building_block) @gemspec = gemspec || Gem::Specification.new self.gemspec_building_block = gemspec_building_block Rake.application.jeweler_tasks = self define end |
Instance Attribute Details
#gemspec ⇒ Object
Returns the value of attribute gemspec.
36 37 38 |
# File 'lib/jeweler/tasks.rb', line 36 def gemspec @gemspec end |
#gemspec_building_block ⇒ Object
Returns the value of attribute gemspec_building_block.
36 37 38 |
# File 'lib/jeweler/tasks.rb', line 36 def gemspec_building_block @gemspec_building_block end |
#jeweler ⇒ Object
Returns the value of attribute jeweler.
36 37 38 |
# File 'lib/jeweler/tasks.rb', line 36 def jeweler @jeweler end |