Skip to content

Commit b043538

Browse files
committed
Removed deprecated Gem::Specification#has_rdoc, has_rdoc= and has_rdoc?
1 parent 14577bf commit b043538

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

lib/rubygems/specification.rb

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ def self._load(str)
13081308
spec.instance_variable_set :@authors, array[12]
13091309
spec.instance_variable_set :@description, array[13]
13101310
spec.instance_variable_set :@homepage, array[14]
1311-
spec.instance_variable_set :@has_rdoc, array[15]
1311+
# offset due to has_rdoc removal
13121312
spec.instance_variable_set :@licenses, array[17]
13131313
spec.instance_variable_set :@metadata, array[18]
13141314
spec.instance_variable_set :@loaded, false
@@ -1884,29 +1884,6 @@ def gems_dir
18841884
@gems_dir ||= File.join(base_dir, "gems")
18851885
end
18861886

1887-
##
1888-
# Deprecated and ignored, defaults to true.
1889-
#
1890-
# Formerly used to indicate this gem was RDoc-capable.
1891-
1892-
def has_rdoc # :nodoc:
1893-
true
1894-
end
1895-
rubygems_deprecate :has_rdoc
1896-
1897-
##
1898-
# Deprecated and ignored.
1899-
#
1900-
# Formerly used to indicate this gem was RDoc-capable.
1901-
1902-
def has_rdoc=(ignored) # :nodoc:
1903-
@has_rdoc = true
1904-
end
1905-
rubygems_deprecate :has_rdoc=
1906-
1907-
alias_method :has_rdoc?, :has_rdoc # :nodoc:
1908-
rubygems_deprecate :has_rdoc?
1909-
19101887
##
19111888
# True if this gem has files in test_files
19121889

@@ -2399,7 +2376,6 @@ def to_ruby
23992376
:required_rubygems_version,
24002377
:specification_version,
24012378
:version,
2402-
:has_rdoc,
24032379
:metadata,
24042380
:signing_key,
24052381
]

test/rubygems/test_gem_specification.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class TestGemSpecification < Gem::TestCase
3333
Gem::Specification.new do |s|
3434
s.name = %q{keyedlist}
3535
s.version = %q{0.4.0}
36-
s.has_rdoc = true
3736
s.summary = %q{A Hash which automatically computes keys.}
3837
s.files = [%q{lib/keyedlist.rb}]
3938
s.require_paths = [%q{lib}]

0 commit comments

Comments
 (0)