Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions lib/rubygems/commands/build_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ def initialize
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|
options[:build_path] = value
end
deprecate_option "-C",
version: "4.0",
extra_msg: "-C is a global flag now. Use `gem -C PATH build GEMSPEC_FILE [options]` instead"
end

def arguments # :nodoc:
Expand Down
2 changes: 0 additions & 2 deletions lib/rubygems/dependency_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@
require_relative "spec_fetcher"
require_relative "user_interaction"
require_relative "available_set"
require_relative "deprecate"

##
# Installs a gem along with all its dependencies from local and remote gems.

class Gem::DependencyInstaller
include Gem::UserInteraction
extend Gem::Deprecate

DEFAULT_OPTIONS = { # :nodoc:
env_shebang: false,
Expand Down
1 change: 0 additions & 1 deletion lib/rubygems/dependency_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#++

require_relative "vendored_tsort"
require_relative "deprecate"

##
# Gem::DependencyList is used for installing and uninstalling gems in the
Expand Down
1 change: 0 additions & 1 deletion lib/rubygems/exceptions.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: true

require_relative "deprecate"
require_relative "unknown_command_spell_checker"

##
Expand Down
1 change: 0 additions & 1 deletion lib/rubygems/gem_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

require_relative "../rubygems"
require_relative "command_manager"
require_relative "deprecate"

##
# Run an instance of the gem program.
Expand Down
3 changes: 0 additions & 3 deletions lib/rubygems/user_interaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# See LICENSE.txt for permissions.
#++

require_relative "deprecate"
require_relative "text"

##
Expand Down Expand Up @@ -170,8 +169,6 @@ def verbose(msg = nil)
# Gem::StreamUI implements a simple stream based user interface.

class Gem::StreamUI
extend Gem::Deprecate

##
# The input stream

Expand Down
10 changes: 0 additions & 10 deletions test/rubygems/test_gem_commands_build_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,6 @@ def test_handle_options
assert_includes Gem.platforms, Gem::Platform.local
end

def test_handle_deprecated_options
use_ui @ui do
@cmd.handle_options %w[-C ./test/dir]
end

assert_equal "WARNING: The \"-C\" option has been deprecated and will be removed in Rubygems 4.0. " \
"-C is a global flag now. Use `gem -C PATH build GEMSPEC_FILE [options]` instead\n",
@ui.error
end

def test_options_filename
gemspec_file = File.join(@tempdir, @gem.spec_name)

Expand Down
2 changes: 1 addition & 1 deletion test/rubygems/test_gem_commands_help_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_gem_help_platforms

def test_gem_help_build
util_gem "build" do |out, err|
assert_match(/-C PATH *Run as if gem build was started in <PATH>/, out)
assert_match(/--platform PLATFORM\s+Specify the platform of gem to build/, out)
assert_equal "", err
end
end
Expand Down