1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Autorequire was used by old RubyGems, it is neither supported nor functional.

cadb66037d
This commit is contained in:
bronzdoc 2019-07-16 18:07:07 -06:00 committed by Hiroshi SHIBATA
parent a2f0331c4e
commit a34168f2ac
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
3 changed files with 0 additions and 29 deletions

View file

@ -133,7 +133,6 @@ class Gem::Specification < Gem::BasicSpecification
@@default_value = { @@default_value = {
:authors => [], :authors => [],
:autorequire => nil,
:bindir => 'bin', :bindir => 'bin',
:cert_chain => [], :cert_chain => [],
:date => nil, :date => nil,
@ -706,13 +705,6 @@ class Gem::Specification < Gem::BasicSpecification
alias :activated? :activated 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. # Sets the default executable for this gem.
# #

View file

@ -369,9 +369,6 @@ http://spdx.org/licenses or '#{Gem::Licenses::NONSTANDARD}' for a nonstandard li
warning "description and summary are identical" warning "description and summary are identical"
end end
# TODO: raise at some given date
warning "deprecated autorequire specified" if autorequire
executables.each do |executable| executables.each do |executable|
validate_shebang_line_in(executable) validate_shebang_line_in(executable)
end end

View file

@ -23,7 +23,6 @@ require_paths:
- lib - lib
files: files:
- lib/keyedlist.rb - lib/keyedlist.rb
autorequire: keyedlist
author: Florian Gross author: Florian Gross
email: flgr@ccan.de email: flgr@ccan.de
has_rdoc: true has_rdoc: true
@ -37,7 +36,6 @@ Gem::Specification.new do |s|
s.summary = %q{A Hash which automatically computes keys.} s.summary = %q{A Hash which automatically computes keys.}
s.files = [%q{lib/keyedlist.rb}] s.files = [%q{lib/keyedlist.rb}]
s.require_paths = [%q{lib}] s.require_paths = [%q{lib}]
s.autorequire = %q{keyedlist}
s.author = %q{Florian Gross} s.author = %q{Florian Gross}
s.email = %q{flgr@ccan.de} s.email = %q{flgr@ccan.de}
end end
@ -679,7 +677,6 @@ end
def test_self_attribute_names def test_self_attribute_names
expected_value = %w[ expected_value = %w[
authors authors
autorequire
bindir bindir
cert_chain cert_chain
date date
@ -2694,21 +2691,6 @@ end
end 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 def test_validate_dependencies
util_setup_validate util_setup_validate