class Gem::Tasks::Build::Gem


The ‘build:gem` task.

def build(path,gemspec)

Other tags:
    Api: - semipublic

Parameters:
  • gemspec (Gem::Specification) --
  • path (String) --
def build(path,gemspec)
  builder = ::Gem::Builder.new(gemspec)
  mv builder.build, Project::PKG_DIR
end

def define


Defines the `build:gem` task.
def define
  build_task :gem
  # backwards compatibility for Gem::PackageTask
  task :gem => 'build:gem'
  # backwards compatibility for Hoe
  task :package => 'build:gem'
end

def initialize(options={})

Parameters:
  • options (Hash) --
def initialize(options={})
  super()
  yield self if block_given?
  define
end