diff options
author | bronzdoc <lsagastume1990@gmail.com> | 2019-07-16 18:07:07 -0600 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-07-31 07:47:02 +0800 |
commit | a34168f2ac674b2660fa895271faea258389a614 (patch) | |
tree | 0a79560a7a53fabdd7349f596b2499f24b6c73d8 | |
parent | a2f0331c4e1c47425ec6042f41f4f4b1b63e557f (diff) | |
download | ruby-a34168f2ac674b2660fa895271faea258389a614.tar.gz |
[rubygems/rubygems] Autorequire was used by old RubyGems, it is neither supported nor functional.
https://github.com/rubygems/rubygems/commit/cadb66037d
-rw-r--r-- | lib/rubygems/specification.rb | 8 | ||||
-rw-r--r-- | lib/rubygems/specification_policy.rb | 3 | ||||
-rw-r--r-- | test/rubygems/test_gem_specification.rb | 18 |
3 files changed, 0 insertions, 29 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index 7e071623b0..3b0b86230b 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -133,7 +133,6 @@ class Gem::Specification < Gem::BasicSpecification @@default_value = { :authors => [], - :autorequire => nil, :bindir => 'bin', :cert_chain => [], :date => nil, @@ -707,13 +706,6 @@ class Gem::Specification < Gem::BasicSpecification alias :activated? :activated ## - # Autorequire was used by old RubyGems to automatically require a file. - # - # Deprecated: It is neither supported nor functional. - - attr_accessor :autorequire # :nodoc: - - ## # Sets the default executable for this gem. # # Deprecated: You must now specify the executable name to Gem.bin_path. diff --git a/lib/rubygems/specification_policy.rb b/lib/rubygems/specification_policy.rb index 24c1145907..8413c87ea7 100644 --- a/lib/rubygems/specification_policy.rb +++ b/lib/rubygems/specification_policy.rb @@ -369,9 +369,6 @@ http://spdx.org/licenses or '#{Gem::Licenses::NONSTANDARD}' for a nonstandard li warning "description and summary are identical" end - # TODO: raise at some given date - warning "deprecated autorequire specified" if autorequire - executables.each do |executable| validate_shebang_line_in(executable) end diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index 7577a3ca7d..ffb6ca2ad4 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -23,7 +23,6 @@ require_paths: - lib files: - lib/keyedlist.rb -autorequire: keyedlist author: Florian Gross email: flgr@ccan.de has_rdoc: true @@ -37,7 +36,6 @@ Gem::Specification.new do |s| s.summary = %q{A Hash which automatically computes keys.} s.files = [%q{lib/keyedlist.rb}] s.require_paths = [%q{lib}] - s.autorequire = %q{keyedlist} s.author = %q{Florian Gross} s.email = %q{flgr@ccan.de} end @@ -679,7 +677,6 @@ end def test_self_attribute_names expected_value = %w[ authors - autorequire bindir cert_chain date @@ -2694,21 +2691,6 @@ end end end - def test_validate_autorequire - util_setup_validate - - Dir.chdir @tempdir do - @a1.autorequire = 'code' - - use_ui @ui do - @a1.validate - end - - assert_match "#{w}: deprecated autorequire specified\n", - @ui.error, 'error' - end - end - def test_validate_dependencies util_setup_validate |