mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Revert r35370 due to bad source branch
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
02dc9ae773
commit
0ebe38eedd
36 changed files with 153 additions and 1062 deletions
|
@ -4,11 +4,7 @@ require 'rubygems/builder'
|
|||
class Gem::Commands::BuildCommand < Gem::Command
|
||||
|
||||
def initialize
|
||||
super 'build', 'Build a gem from a gemspec'
|
||||
|
||||
add_option '--force', 'skip validation of the spec' do |value, options|
|
||||
options[:force] = true
|
||||
end
|
||||
super('build', 'Build a gem from a gemspec')
|
||||
end
|
||||
|
||||
def arguments # :nodoc:
|
||||
|
@ -26,7 +22,7 @@ class Gem::Commands::BuildCommand < Gem::Command
|
|||
spec = load_gemspec gemspec
|
||||
|
||||
if spec then
|
||||
Gem::Builder.new(spec).build options[:force]
|
||||
Gem::Builder.new(spec).build
|
||||
else
|
||||
alert_error "Error loading gemspec. Aborting."
|
||||
terminate_interaction 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue