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

Methods
B
N
S
Included Modules
Class Public methods
new(spec)

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
Instance Public methods
build(skip_validation=false)

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()
# File lib/rubygems/builder.rb, line 44
  def success
    <<-EOM
  Successfully built RubyGem
  Name: #{@spec.name}
  Version: #{@spec.version}
  File: #{File.basename @spec.cache_file}
EOM
  end