Skip to content

Commit a67609c

Browse files
committed
Update rdoc to v6.16
Interface of `RDoc::AnyMethod#start_collecting_tokens` has been changed from rdoc v6.16.
1 parent 3686510 commit a67609c

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ gem "json-schema"
1616
gem "goodcheck"
1717
gem 'digest'
1818
gem 'tempfile'
19-
gem "rdoc"
19+
gem "rdoc", "~> 6.16"
2020
gem "fileutils"
2121
gem "raap"
2222
gem "activesupport", "~> 7.0"

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ GEM
105105
rb-fsevent (0.11.2)
106106
rb-inotify (0.11.1)
107107
ffi (~> 1.0)
108-
rdoc (6.15.1)
108+
rdoc (6.16.0)
109109
erb
110110
psych (>= 4.0.0)
111111
tsort
@@ -217,7 +217,7 @@ DEPENDENCIES
217217
rake-compiler
218218
rbs!
219219
rbs-amber!
220-
rdoc
220+
rdoc (~> 6.16)
221221
rspec
222222
rubocop
223223
rubocop-on-rbs

lib/rdoc/discover.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
begin
4-
gem 'rdoc', '~> 6.13'
4+
gem 'rdoc', '~> 6.16'
55
require 'rdoc_plugin/parser'
66
module RDoc
77
class Parser

lib/rdoc_plugin/parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def parse_method_decl(decl:, context:, outer_name: nil)
7676
method.visibility = decl.visibility
7777
method.call_seq = decl.overloads.map {|overload| "#{decl.name.to_s}#{overload.method_type.to_s}" }.join("\n")
7878
if loc = decl.location
79-
method.start_collecting_tokens
79+
method.start_collecting_tokens(:ruby)
8080
method.add_token({ line_no: 1, char_no: 1, kind: :on_comment, text: "# File #{@top_level.relative_name}, line(s) #{loc.start_line}:#{loc.end_line}\n" })
8181
method.add_token({ line_no: 1, char_no: 1, text: loc.source })
8282
method.line = loc.start_line

stdlib/rdoc/0/rdoc.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module RDoc
8484
# -->
8585
# Starts collecting tokens
8686
#
87-
def collect_tokens: () -> void
87+
def collect_tokens: (Symbol) -> void
8888

8989
# <!--
9090
# rdoc-file=lib/rdoc/token_stream.rb

0 commit comments

Comments
 (0)