| Class | Gem::Builder |
| In: |
lib/rubygems/builder.rb
|
| Parent: | Object |
The Builder class processes RubyGem specification files to produce a .gem file.
Constructs a builder instance for the provided specification
| spec: | [Gem::Specification] The specification instance |
# File lib/rubygems/builder.rb, line 27
27: def initialize(spec)
28: @spec = spec
29: end
Builds the gem from the specification. Returns the name of the file written.
# File lib/rubygems/builder.rb, line 35
35: def build(skip_validation=false)
36: @spec.mark_version
37: @spec.validate unless skip_validation
38: @signer = sign
39: write_package
40: say success if Gem.configuration.verbose
41: File.basename @spec.cache_file
42: end