summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorbronzdoc <lsagastume1990@gmail.com>2020-03-28 18:11:40 -0600
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-08 07:38:50 +0900
commitff37dd7e9e80e7b8882f24b0e56c69674fb7bdb0 (patch)
tree33411b1c192278c31846541e99404f2a0081f5e0 /lib
parent42c91de9ce97556a9be2c702f317cf1d6107bc03 (diff)
[rubygems/rubygems] Modify files to use new version horizon deprecations
https://github.com/rubygems/rubygems/commit/4fe5bb5bf3
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3087
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/basic_specification.rb2
-rw-r--r--lib/rubygems/commands/query_command.rb2
-rw-r--r--lib/rubygems/dependency_installer.rb2
-rw-r--r--lib/rubygems/installer.rb2
-rw-r--r--lib/rubygems/specification.rb12
5 files changed, 10 insertions, 10 deletions
diff --git a/lib/rubygems/basic_specification.rb b/lib/rubygems/basic_specification.rb
index a4bd11cae30..c9dff0704c7 100644
--- a/lib/rubygems/basic_specification.rb
+++ b/lib/rubygems/basic_specification.rb
@@ -41,7 +41,7 @@ class Gem::BasicSpecification
class << self
extend Gem::Deprecate
- deprecate :default_specifications_dir, "Gem.default_specifications_dir", 2020, 02
+ deprecate :default_specifications_dir, "Gem.default_specifications_dir"
end
diff --git a/lib/rubygems/commands/query_command.rb b/lib/rubygems/commands/query_command.rb
index 9d7f1b287f5..ed245f1b8f6 100644
--- a/lib/rubygems/commands/query_command.rb
+++ b/lib/rubygems/commands/query_command.rb
@@ -6,7 +6,7 @@ require 'rubygems/deprecate'
class Gem::Commands::QueryCommand < Gem::Command
extend Gem::Deprecate
- deprecate_command(2020, 12)
+ deprecate_command
include Gem::QueryUtils
diff --git a/lib/rubygems/dependency_installer.rb b/lib/rubygems/dependency_installer.rb
index fe89b0063de..082a6cedfad 100644
--- a/lib/rubygems/dependency_installer.rb
+++ b/lib/rubygems/dependency_installer.rb
@@ -195,7 +195,7 @@ class Gem::DependencyInstaller
set
end
- deprecate :find_gems_with_sources, :none, 2020, 12
+ deprecate :find_gems_with_sources
def in_background(what) # :nodoc:
fork_happened = false
diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb
index abb7048b00b..eb63029bd95 100644
--- a/lib/rubygems/installer.rb
+++ b/lib/rubygems/installer.rb
@@ -422,7 +422,7 @@ class Gem::Installer
@gem_dir = directory
extract_files
end
- deprecate :unpack, :none, 2020, 04
+ deprecate :unpack
##
# The location of the spec file that is installed.
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
index 6c37555dd06..ac44f73e986 100644
--- a/lib/rubygems/specification.rb
+++ b/lib/rubygems/specification.rb
@@ -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
+ deprecate :default_executable=
##
# 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
+ deprecate :rubyforge_project=
##
# 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
+ deprecate :default_executable
##
# 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
+ deprecate :has_rdoc
##
# 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
+ deprecate :has_rdoc=
alias :has_rdoc? :has_rdoc # :nodoc:
- deprecate :has_rdoc?, :none, 2018, 12
+ deprecate :has_rdoc?
##
# True if this gem has files in test_files