(Not documented)
# File lib/rubygems/commands/build_command.rb, line 18 def execute gemspec = get_one_gem_name if File.exist?(gemspec) specs = load_gemspecs(gemspec) specs.each do |spec| Gem::Builder.new(spec).build end else alert_error "Gemspec file not found: #{gemspec}" end end
(Not documented)
# File lib/rubygems/commands/build_command.rb, line 30 def load_gemspecs(filename) if yaml?(filename) result = [] open(filename) do |f| begin while not f.eof? and spec = Gem::Specification.from_yaml(f) result << spec end rescue Gem::EndOfYAMLException => e # OK end end else result = [Gem::Specification.load(filename)] end result end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.