Merge RubyGems-3.3.19 and Bundler-2.3.19

This commit is contained in:
Hiroshi SHIBATA 2022-08-22 11:49:38 +09:00 committed by nagachika
parent 0918783347
commit 44c926f3a9
362 changed files with 7843 additions and 7605 deletions

View file

@ -1,29 +1,29 @@
# frozen_string_literal: true
require_relative '../command'
require_relative '../package'
require_relative '../version_option'
require_relative "../command"
require_relative "../package"
require_relative "../version_option"
class Gem::Commands::BuildCommand < Gem::Command
include Gem::VersionOption
def initialize
super 'build', 'Build a gem from a gemspec'
super "build", "Build a gem from a gemspec"
add_platform_option
add_option '--force', 'skip validation of the spec' do |value, options|
add_option "--force", "skip validation of the spec" do |value, options|
options[:force] = true
end
add_option '--strict', 'consider warnings as errors when validating the spec' do |value, options|
add_option "--strict", "consider warnings as errors when validating the spec" do |value, options|
options[:strict] = true
end
add_option '-o', '--output FILE', 'output gem with the given filename' do |value, options|
add_option "-o", "--output FILE", "output gem with the given filename" do |value, options|
options[:output] = value
end
add_option '-C PATH', 'Run as if gem build was started in <PATH> instead of the current working directory.' do |value, options|
add_option "-C PATH", "Run as if gem build was started in <PATH> instead of the current working directory." do |value, options|
options[:build_path] = value
end
end