diff options
author | bronzdoc <[email protected]> | 2020-03-28 18:11:40 -0600 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2020-05-08 07:38:50 +0900 |
commit | ff37dd7e9e80e7b8882f24b0e56c69674fb7bdb0 () | |
tree | 33411b1c192278c31846541e99404f2a0081f5e0 | |
parent | 42c91de9ce97556a9be2c702f317cf1d6107bc03 (diff) |
[rubygems/rubygems] Modify files to use new version horizon deprecations
https://.com/rubygems/rubygems/commit/4fe5bb5bf3
Notes: Merged: https://.com/ruby/ruby/pull/3087
-rw-r--r-- | lib/rubygems/basic_specification.rb | 2 | ||||
-rw-r--r-- | lib/rubygems/commands/query_command.rb | 2 | ||||
-rw-r--r-- | lib/rubygems/dependency_installer.rb | 2 | ||||
-rw-r--r-- | lib/rubygems/installer.rb | 2 | ||||
-rw-r--r-- | lib/rubygems/specification.rb | 12 | ||||
-rw-r--r-- | test/rubygems/test_deprecate.rb | 6 | ||||
-rw-r--r-- | test/rubygems/test_gem_command_manager.rb | 4 | ||||
-rw-r--r-- | test/rubygems/test_gem_gem_runner.rb | 2 |
8 files changed, 16 insertions, 16 deletions
@@ -41,7 +41,7 @@ class Gem::BasicSpecification class << self extend Gem::Deprecate - deprecate :default_specifications_dir, "Gem.default_specifications_dir", 2020, 02 end @@ -6,7 +6,7 @@ require 'rubygems/deprecate' class Gem::Commands::QueryCommand < Gem::Command extend Gem::Deprecate - deprecate_command(2020, 12) include Gem::QueryUtils @@ -195,7 +195,7 @@ class Gem::DependencyInstaller set end - deprecate :find_gems_with_sources, :none, 2020, 12 def in_background(what) # :nodoc: fork_happened = false @@ -422,7 +422,7 @@ class Gem::Installer @gem_dir = directory extract_files end - deprecate :unpack, :none, 2020, 04 ## # The location of the spec file that is installed. @@ -720,7 +720,7 @@ class Gem::Specification < Gem::BasicSpecification # Deprecated: You must now specify the executable name to Gem.bin_path. attr_writer :default_executable - deprecate :default_executable=, :none, 2018, 12 ## # Allows deinstallation of gems with legacy platforms. @@ -733,7 +733,7 @@ class Gem::Specification < Gem::BasicSpecification # Formerly used to set rubyforge project. attr_writer :rubyforge_project - deprecate :rubyforge_project=, :none, 2019, 12 ## # The Gem::Specification version of this gemspec. @@ -1725,7 +1725,7 @@ class Gem::Specification < Gem::BasicSpecification end result end - deprecate :default_executable, :none, 2018, 12 ## # The default value for specification attribute +name+ @@ -1928,7 +1928,7 @@ class Gem::Specification < Gem::BasicSpecification def has_rdoc # :nodoc: true end - deprecate :has_rdoc, :none, 2018, 12 ## # Deprecated and ignored. @@ -1938,10 +1938,10 @@ class Gem::Specification < Gem::BasicSpecification def has_rdoc=(ignored) # :nodoc: @has_rdoc = true end - deprecate :has_rdoc=, :none, 2018, 12 alias :has_rdoc? :has_rdoc # :nodoc: - deprecate :has_rdoc?, :none, 2018, 12 ## # True if this gem has files in test_files @@ -50,7 +50,7 @@ class TestDeprecate < Gem::TestCase def bar @message = "bar" end - deprecate :foo, :bar, 2099, 3 end @@ -70,7 +70,7 @@ class TestDeprecate < Gem::TestCase assert_equal "", out assert_match(/Thing#foo is deprecated; use bar instead\./, err) - assert_match(/on or after 2099-03-01/, err) end def test_deprecate_command @@ -78,7 +78,7 @@ class TestDeprecate < Gem::TestCase foo_command = Class.new(Gem::Command) do extend Gem::Deprecate - deprecate_command(2099, 4) def execute puts "pew pew!" @@ -281,7 +281,7 @@ class TestGemCommandManager < Gem::TestCase foo_command = Class.new(Gem::Command) do extend Gem::Deprecate - deprecate_command(2099, 4) def execute say "pew pew!" @@ -296,7 +296,7 @@ class TestGemCommandManager < Gem::TestCase end assert_equal "pew pew!\n", @ui.output - assert_equal("WARNING: foo command is deprecated. It will be removed on or after 2099-04-01.\n", @ui.error) ensure Gem::Commands.send(:remove_const, :FooCommand) end @@ -76,7 +76,7 @@ class TestGemGemRunner < Gem::TestCase assert_nil @runner.run(args) end - assert_equal "WARNING: query command is deprecated. It will be removed on or after 2020-12-01.\n", @ui.error end def test_info_succeeds |