class Jeweler::Tasks

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 = "josh@technicalpickles.com"
  gem.homepage = "http://github.com/technicalpickles/jeweler"
  gem.description = "Simple and opinionated helper for creating RubyGem projects on GitHub"
  gem.authors = ["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.

Attributes

gemspec[RW]
gemspec_building_block[RW]
jeweler[RW]

Public Class Methods

new(gemspec = nil, &gemspec_building_block) click to toggle source
# File lib/jeweler/tasks.rb, line 42
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