Parent

Included Modules

Class/Module Index [+]

Quicksearch

Gem::Builder

The Builder class processes RubyGem specification files to produce a .gem file.

Public Class Methods

new(spec) click to toggle source

Constructs a builder instance for the provided specification

spec

Gem::Specification

The specification instance

# File lib/rubygems/builder.rb, line 27
def initialize(spec)
  @spec = spec
end

Public Instance Methods

build(skip_validation=false) click to toggle source

Builds the gem from the specification. Returns the name of the file written.

# File lib/rubygems/builder.rb, line 35
def build(skip_validation=false)
  @spec.mark_version
  @spec.validate unless skip_validation
  @signer = sign
  write_package
  say success if Gem.configuration.verbose
  File.basename @spec.cache_file
end
success() click to toggle source
# File lib/rubygems/builder.rb, line 44
def success
    Successfully built RubyGem  Name: #{@spec.name}  Version: #{@spec.version}  File: #{File.basename @spec.cache_file}
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.