mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 03:24:00 +02:00
Merge RubyGems-3.3.19 and Bundler-2.3.19
This commit is contained in:
parent
0918783347
commit
44c926f3a9
362 changed files with 7843 additions and 7605 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue