Skip to content

Commit eac4738

Browse files
committed
RDoc::Store.new interface has been changed.
1 parent 4abfb82 commit eac4738

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

lib/rbs/annotate/rdoc_source.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def load
2323
@stores.clear()
2424

2525
RDoc::RI::Paths.each(with_system_dir, with_site_dir, with_home_dir, with_gems_dir ? :latest : false, *extra_dirs.map(&:to_s)) do |path, type|
26-
store = RDoc::Store.new(path, type)
26+
store = RDoc::Store.new(RDoc::Options.new, path:, type:)
2727
store.load_all
2828

2929
@stores << store

stdlib/rdoc/0/options.rbs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
%a{annotate:rdoc:skip}
2+
module RDoc
3+
class Options
4+
def initialize: (?untyped loaded_options) -> void
5+
end
6+
end

stdlib/rdoc/0/store.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module RDoc
2626
# -->
2727
# Creates a new Store of `type` that will load or save to `path`
2828
#
29-
def initialize: (?String? path, ?Symbol? type) -> void
29+
def initialize: (Options, ?path: String? , ?type: Symbol?) -> void
3030

3131
# <!--
3232
# rdoc-file=lib/rdoc/store.rb

test/rbs/rdoc/rbs_parser_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class RDocPluginParserTest < Test::Unit::TestCase
66
def parser(content)
77
top_level = RDoc::TopLevel.new("a.rbs")
8-
top_level.store = RDoc::Store.new()
8+
top_level.store = RDoc::Store.new(RDoc::Options.new)
99

1010
RBS::RDocPlugin::Parser.new(top_level, content)
1111
end

0 commit comments

Comments
 (0)