class Gem::Tasks::Build::Gem
The ‘build:gem` task.
def build(path,gemspec)
- Api: - semipublic
Parameters:
-
gemspec
(Gem::Specification
) -- -
path
(String
) --
def build(path,gemspec) gem = if ::Gem::VERSION > '2.' ::Gem::Package.build(gemspec) else ::Gem::Builder.new(gemspec).build end mv gem, 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={})
-
options
(Hash
) --
def initialize(options={}) super() yield self if block_given? define end