rbs 3.2.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/comments.yml +1 -1
  3. data/.github/workflows/ruby.yml +7 -2
  4. data/.rubocop.yml +1 -1
  5. data/CHANGELOG.md +134 -0
  6. data/Gemfile +3 -0
  7. data/Gemfile.lock +21 -15
  8. data/README.md +11 -2
  9. data/Rakefile +10 -7
  10. data/Steepfile +7 -7
  11. data/core/basic_object.rbs +7 -7
  12. data/core/binding.rbs +3 -3
  13. data/core/builtin.rbs +171 -5
  14. data/core/constants.rbs +17 -17
  15. data/core/dir.rbs +3 -3
  16. data/core/encoding.rbs +434 -628
  17. data/core/enumerator.rbs +37 -0
  18. data/core/exception.rbs +11 -11
  19. data/core/false_class.rbs +5 -11
  20. data/core/fiber.rbs +5 -5
  21. data/core/file_test.rbs +28 -26
  22. data/core/kernel.rbs +900 -21
  23. data/core/marshal.rbs +24 -14
  24. data/core/match_data.rbs +8 -8
  25. data/core/math.rbs +57 -53
  26. data/core/method.rbs +3 -1
  27. data/core/module.rbs +38 -36
  28. data/core/nil_class.rbs +7 -13
  29. data/core/object.rbs +3 -966
  30. data/core/process.rbs +3 -3
  31. data/core/ractor.rbs +2 -2
  32. data/core/rb_config.rbs +64 -43
  33. data/core/regexp.rbs +3 -3
  34. data/core/set.rbs +3 -2
  35. data/core/signal.rbs +10 -4
  36. data/core/struct.rbs +1 -1
  37. data/core/thread.rbs +7 -7
  38. data/core/thread_group.rbs +9 -9
  39. data/core/true_class.rbs +5 -11
  40. data/core/unbound_method.rbs +56 -7
  41. data/core/warning.rbs +33 -0
  42. data/docs/collection.md +56 -6
  43. data/docs/data_and_struct.md +57 -0
  44. data/docs/stdlib.md +61 -2
  45. data/docs/syntax.md +123 -2
  46. data/ext/rbs_extension/constants.c +73 -72
  47. data/ext/rbs_extension/lexer.c +624 -569
  48. data/ext/rbs_extension/lexer.h +1 -0
  49. data/ext/rbs_extension/lexer.re +1 -0
  50. data/ext/rbs_extension/lexstate.c +1 -0
  51. data/ext/rbs_extension/parser.c +6 -0
  52. data/goodcheck.yml +2 -2
  53. data/lib/rbs/annotate/formatter.rb +13 -3
  54. data/lib/rbs/annotate/rdoc_source.rb +10 -1
  55. data/lib/rbs/cli/colored_io.rb +48 -0
  56. data/lib/rbs/cli/diff.rb +80 -0
  57. data/lib/rbs/cli.rb +169 -17
  58. data/lib/rbs/collection/config/lockfile.rb +0 -25
  59. data/lib/rbs/collection/config/lockfile_generator.rb +0 -6
  60. data/lib/rbs/collection/installer.rb +1 -1
  61. data/lib/rbs/collection/sources/git.rb +6 -4
  62. data/lib/rbs/collection/sources/local.rb +7 -5
  63. data/lib/rbs/diff.rb +121 -0
  64. data/lib/rbs/environment.rb +7 -4
  65. data/lib/rbs/method_type.rb +23 -0
  66. data/lib/rbs/prototype/rb.rb +2 -9
  67. data/lib/rbs/prototype/rbi.rb +1 -1
  68. data/lib/rbs/prototype/runtime/helpers.rb +59 -0
  69. data/lib/rbs/prototype/runtime/reflection.rb +19 -0
  70. data/lib/rbs/prototype/runtime/value_object_generator.rb +275 -0
  71. data/lib/rbs/prototype/runtime.rb +233 -153
  72. data/lib/rbs/resolver/constant_resolver.rb +1 -1
  73. data/lib/rbs/sorter.rb +144 -117
  74. data/lib/rbs/test/guaranteed.rb +31 -0
  75. data/lib/rbs/test/type_check.rb +4 -4
  76. data/lib/rbs/test.rb +3 -0
  77. data/lib/rbs/types.rb +184 -3
  78. data/lib/rbs/version.rb +1 -1
  79. data/lib/rbs/writer.rb +4 -4
  80. data/lib/rbs.rb +1 -0
  81. data/rbs.gemspec +1 -0
  82. data/sig/annotate/formatter.rbs +2 -2
  83. data/sig/annotate/rdoc_annotater.rbs +1 -1
  84. data/sig/cli/colored_io.rbs +15 -0
  85. data/sig/cli/diff.rbs +21 -0
  86. data/sig/cli.rbs +2 -0
  87. data/sig/collection/config/lockfile.rbs +0 -6
  88. data/sig/diff.rbs +23 -0
  89. data/sig/errors.rbs +1 -5
  90. data/sig/method_types.rbs +6 -0
  91. data/sig/prototype/runtime.rbs +166 -0
  92. data/sig/rdoc/rbs.rbs +4 -0
  93. data/sig/shims/bundler.rbs +5 -0
  94. data/sig/sorter.rbs +23 -5
  95. data/sig/types.rbs +29 -0
  96. data/stdlib/benchmark/0/benchmark.rbs +1 -1
  97. data/stdlib/cgi/0/core.rbs +2 -2
  98. data/stdlib/did_you_mean/0/did_you_mean.rbs +2 -2
  99. data/stdlib/digest/0/digest.rbs +1 -1
  100. data/stdlib/fileutils/0/fileutils.rbs +1 -1
  101. data/stdlib/forwardable/0/forwardable.rbs +4 -4
  102. data/stdlib/io-console/0/io-console.rbs +1 -1
  103. data/stdlib/json/0/json.rbs +37 -0
  104. data/stdlib/logger/0/logger.rbs +2 -2
  105. data/stdlib/net-http/0/manifest.yaml +1 -1
  106. data/stdlib/net-http/0/net-http.rbs +16 -63
  107. data/stdlib/net-protocol/0/manifest.yaml +2 -0
  108. data/stdlib/net-protocol/0/net-protocol.rbs +56 -0
  109. data/stdlib/net-smtp/0/manifest.yaml +2 -0
  110. data/stdlib/net-smtp/0/net-smtp.rbs +55 -0
  111. data/stdlib/open-uri/0/manifest.yaml +3 -0
  112. data/stdlib/open-uri/0/open-uri.rbs +341 -0
  113. data/stdlib/openssl/0/openssl.rbs +1 -1
  114. data/stdlib/pp/0/manifest.yaml +2 -0
  115. data/stdlib/pp/0/pp.rbs +301 -0
  116. data/stdlib/{yaml → psych}/0/dbm.rbs +3 -3
  117. data/stdlib/psych/0/manifest.yaml +3 -0
  118. data/stdlib/psych/0/psych.rbs +391 -0
  119. data/stdlib/{yaml → psych}/0/store.rbs +2 -2
  120. data/stdlib/rdoc/0/code_object.rbs +55 -0
  121. data/stdlib/rdoc/0/comment.rbs +60 -0
  122. data/stdlib/rdoc/0/context.rbs +153 -0
  123. data/stdlib/rdoc/0/markup.rbs +119 -0
  124. data/stdlib/rdoc/0/parser.rbs +56 -0
  125. data/stdlib/rdoc/0/rdoc.rbs +0 -372
  126. data/stdlib/rdoc/0/ri.rbs +17 -0
  127. data/stdlib/rdoc/0/store.rbs +48 -0
  128. data/stdlib/rdoc/0/top_level.rbs +97 -0
  129. data/stdlib/socket/0/basic_socket.rbs +1 -1
  130. data/stdlib/socket/0/socket.rbs +1 -1
  131. data/stdlib/uri/0/common.rbs +1 -1
  132. data/stdlib/yaml/0/manifest.yaml +1 -2
  133. data/stdlib/yaml/0/yaml.rbs +1 -199
  134. metadata +49 -7
  135. data/sig/shims/pp.rbs +0 -3
  136. data/sig/shims.rbs +0 -47
@@ -0,0 +1,97 @@
1
+ %a{annotate:rdoc:skip}
2
+ module RDoc
3
+ # <!-- rdoc-file=lib/rdoc/top_level.rb -->
4
+ # A TopLevel context is a representation of the contents of a single file
5
+ #
6
+ class TopLevel < Context
7
+ MARSHAL_VERSION: 0
8
+
9
+ # <!-- rdoc-file=lib/rdoc/top_level.rb -->
10
+ # Relative name of this file
11
+ #
12
+ attr_accessor relative_name: String
13
+
14
+ # <!--
15
+ # rdoc-file=lib/rdoc/top_level.rb
16
+ # - new(absolute_name, relative_name = absolute_name)
17
+ # -->
18
+ # Creates a new TopLevel for the file at `absolute_name`. If documentation is
19
+ # being generated outside the source dir `relative_name` is relative to the
20
+ # source directory.
21
+ #
22
+ def initialize: (String absolute_name, ?String relative_name) -> void
23
+
24
+ # <!--
25
+ # rdoc-file=lib/rdoc/top_level.rb
26
+ # - ==(other)
27
+ # -->
28
+ # An RDoc::TopLevel is equal to another with the same relative_name
29
+ #
30
+ def ==: (untyped other) -> bool
31
+
32
+ # <!--
33
+ # rdoc-file=lib/rdoc/top_level.rb
34
+ # - eql?(other)
35
+ # -->
36
+ #
37
+ alias eql? ==
38
+
39
+ # <!--
40
+ # rdoc-file=lib/rdoc/top_level.rb
41
+ # - add_alias(an_alias)
42
+ # -->
43
+ # Adds `an_alias` to `Object` instead of `self`.
44
+ #
45
+ def add_alias: (RDoc::Alias an_alias) -> RDoc::Alias
46
+
47
+ # <!--
48
+ # rdoc-file=lib/rdoc/top_level.rb
49
+ # - add_constant(constant)
50
+ # -->
51
+ # Adds `constant` to `Object` instead of `self`.
52
+ #
53
+ def add_constant: (RDoc::Constant constant) -> RDoc::Constant
54
+
55
+ # <!--
56
+ # rdoc-file=lib/rdoc/top_level.rb
57
+ # - add_include(include)
58
+ # -->
59
+ # Adds `include` to `Object` instead of `self`.
60
+ #
61
+ def add_include: (RDoc::Include `include`) -> RDoc::Include
62
+
63
+ # <!--
64
+ # rdoc-file=lib/rdoc/top_level.rb
65
+ # - add_method(method)
66
+ # -->
67
+ # Adds `method` to `Object` instead of `self`.
68
+ #
69
+ def add_method: (RDoc::AnyMethod method) -> RDoc::AnyMethod
70
+
71
+ # <!--
72
+ # rdoc-file=lib/rdoc/top_level.rb
73
+ # - find_class_or_module(name)
74
+ # -->
75
+ # See RDoc::TopLevel::find_class_or_module
76
+ #
77
+ def find_class_or_module: (::String name) -> RDoc::Context
78
+
79
+ # <!--
80
+ # rdoc-file=lib/rdoc/top_level.rb
81
+ # - find_module_named(name)
82
+ # -->
83
+ # Finds a module or class with `name`
84
+ #
85
+ def find_module_named: (String name) -> RDoc::Context
86
+
87
+ # <!--
88
+ # rdoc-file=lib/rdoc/top_level.rb
89
+ # - full_name()
90
+ # -->
91
+ # Returns the relative name of this file
92
+ #
93
+ def full_name: () -> String
94
+
95
+ def to_s: () -> ::String
96
+ end
97
+ end
@@ -579,7 +579,7 @@ class BasicSocket < IO
579
579
  #
580
580
  # }
581
581
  #
582
- def shutdown: (Symbol | String | Integer flags) -> void
582
+ def shutdown: (interned | Integer flags) -> void
583
583
 
584
584
  private
585
585
 
@@ -4155,5 +4155,5 @@ class Socket::AncillaryData
4155
4155
  # p Socket::AncillaryData.new(:INET6, :IPV6, :PKTINFO, "")
4156
4156
  # #=> #<Socket::AncillaryData: INET6 IPV6 PKTINFO "">
4157
4157
  #
4158
- def initialize: (Symbol | String | Integer family, Symbol | String | Integer cmsg_level, Symbol | String | Integer cmsg_data, String cmsg_data) -> untyped
4158
+ def initialize: (interned | Integer family, interned | Integer cmsg_level, interned | Integer cmsg_data, String cmsg_data) -> untyped
4159
4159
  end
@@ -278,7 +278,7 @@ module URI
278
278
  # URI.join('http://example.com', '/foo/', 'bar')
279
279
  # # => #<URI::HTTP http://example.com/foo/bar>
280
280
  #
281
- def self.join: (String str, *String strs) -> URI::Generic
281
+ def self.join: (_ToStr | URI::Generic str, *_ToStr | URI::Generic strs) -> URI::Generic
282
282
 
283
283
  # <!--
284
284
  # rdoc-file=lib/uri/common.rb
@@ -1,3 +1,2 @@
1
1
  dependencies:
2
- - name: dbm
3
- - name: pstore
2
+ - name: psych
@@ -1,199 +1 @@
1
- # <!-- rdoc-file=lib/yaml.rb -->
2
- # YAML Ain't Markup Language
3
- #
4
- # This module provides a Ruby interface for data serialization in YAML format.
5
- #
6
- # The YAML module is an alias of Psych, the YAML engine for Ruby.
7
- #
8
- # ## Usage
9
- #
10
- # Working with YAML can be very simple, for example:
11
- #
12
- # require 'yaml'
13
- # # Parse a YAML string
14
- # YAML.load("--- foo") #=> "foo"
15
- #
16
- # # Emit some YAML
17
- # YAML.dump("foo") # => "--- foo\n...\n"
18
- # { :a => 'b'}.to_yaml # => "---\n:a: b\n"
19
- #
20
- # As the implementation is provided by the Psych library, detailed documentation
21
- # can be found in that library's docs (also part of standard library).
22
- #
23
- # ## Security
24
- #
25
- # Do not use YAML to load untrusted data. Doing so is unsafe and could allow
26
- # malicious input to execute arbitrary code inside your application. Please see
27
- # doc/security.rdoc for more information.
28
- #
29
- # ## History
30
- #
31
- # Syck was the original YAML implementation in Ruby's standard library developed
32
- # by why the lucky stiff.
33
- #
34
- # You can still use Syck, if you prefer, for parsing and emitting YAML, but you
35
- # must install the 'syck' gem now in order to use it.
36
- #
37
- # In older Ruby versions, ie. <= 1.9, Syck is still provided, however it was
38
- # completely removed with the release of Ruby 2.0.0.
39
- #
40
- # ## More info
41
- #
42
- # For more advanced details on the implementation see Psych, and also check out
43
- # http://yaml.org for spec details and other helpful information.
44
- #
45
- # Psych is maintained by Aaron Patterson on github:
46
- # https://github.com/ruby/psych
47
- #
48
- # Syck can also be found on github: https://github.com/ruby/syck
49
- #
50
- module YAML
51
- # <!--
52
- # rdoc-file=ext/psych/lib/psych.rb
53
- # - Psych.dump(o) -> string of yaml
54
- # - Psych.dump(o, options) -> string of yaml
55
- # - Psych.dump(o, io) -> io object passed in
56
- # - Psych.dump(o, io, options) -> io object passed in
57
- # -->
58
- # Dump Ruby object `o` to a YAML string. Optional `options` may be passed in to
59
- # control the output format. If an IO object is passed in, the YAML will be
60
- # dumped to that IO object.
61
- #
62
- # Currently supported options are:
63
- #
64
- # `:indentation`
65
- # : Number of space characters used to indent. Acceptable value should be in
66
- # `0..9` range, otherwise option is ignored.
67
- #
68
- # Default: `2`.
69
- # `:line_width`
70
- # : Max character to wrap line at.
71
- #
72
- # Default: `0` (meaning "wrap at 81").
73
- # `:canonical`
74
- # : Write "canonical" YAML form (very verbose, yet strictly formal).
75
- #
76
- # Default: `false`.
77
- # `:header`
78
- # : Write `%YAML [version]` at the beginning of document.
79
- #
80
- # Default: `false`.
81
- #
82
- #
83
- # Example:
84
- #
85
- # # Dump an array, get back a YAML string
86
- # Psych.dump(['a', 'b']) # => "---\n- a\n- b\n"
87
- #
88
- # # Dump an array to an IO object
89
- # Psych.dump(['a', 'b'], StringIO.new) # => #<StringIO:0x000001009d0890>
90
- #
91
- # # Dump an array with indentation set
92
- # Psych.dump(['a', ['b']], indentation: 3) # => "---\n- a\n- - b\n"
93
- #
94
- # # Dump an array to an IO with indentation set
95
- # Psych.dump(['a', ['b']], StringIO.new, indentation: 3)
96
- #
97
- %a{annotate:rdoc:copy:Psych.dump}
98
- def self.dump: (untyped o, ?indentation: Integer, ?line_width: Integer, ?canonical: bool, ?header: bool) -> String
99
- | [IO] (untyped o, IO, ?indentation: Integer, ?line_width: Integer, ?canonical: bool, ?header: bool) -> IO
100
-
101
- # <!--
102
- # rdoc-file=ext/psych/lib/psych.rb
103
- # - load(yaml, permitted_classes: [Symbol], permitted_symbols: [], aliases: false, filename: nil, fallback: nil, symbolize_names: false, freeze: false, strict_integer: false)
104
- # -->
105
- # Load `yaml` in to a Ruby data structure. If multiple documents are provided,
106
- # the object contained in the first document will be returned. `filename` will
107
- # be used in the exception message if any exception is raised while parsing. If
108
- # `yaml` is empty, it returns the specified `fallback` return value, which
109
- # defaults to `false`.
110
- #
111
- # Raises a Psych::SyntaxError when a YAML syntax error is detected.
112
- #
113
- # Example:
114
- #
115
- # Psych.load("--- a") # => 'a'
116
- # Psych.load("---\n - a\n - b") # => ['a', 'b']
117
- #
118
- # begin
119
- # Psych.load("--- `", filename: "file.txt")
120
- # rescue Psych::SyntaxError => ex
121
- # ex.file # => 'file.txt'
122
- # ex.message # => "(file.txt): found character that cannot start any token"
123
- # end
124
- #
125
- # When the optional `symbolize_names` keyword argument is set to a true value,
126
- # returns symbols for keys in Hash objects (default: strings).
127
- #
128
- # Psych.load("---\n foo: bar") # => {"foo"=>"bar"}
129
- # Psych.load("---\n foo: bar", symbolize_names: true) # => {:foo=>"bar"}
130
- #
131
- # Raises a TypeError when `yaml` parameter is NilClass. This method is similar
132
- # to `safe_load` except that `Symbol` objects are allowed by default.
133
- #
134
- %a{annotate:rdoc:copy:Psych.load}
135
- def self.load: (String yaml, ?filename: String | _ToStr | _ToS?, ?fallback: untyped, ?symbolize_names: bool, ?freeze: bool) -> untyped
136
-
137
- # <!--
138
- # rdoc-file=ext/psych/lib/psych.rb
139
- # - load_file(filename, **kwargs)
140
- # -->
141
- # Loads the document contained in `filename`. Returns the yaml contained in
142
- # `filename` as a Ruby object, or if the file is empty, it returns the specified
143
- # `fallback` return value, which defaults to `false`. See load for options.
144
- #
145
- %a{annotate:rdoc:copy:Psych.load_file}
146
- def self.load_file: (string | _ToPath, ?fallback: untyped, ?symbolize_names: bool, ?freeze: bool) -> untyped
147
-
148
- # <!--
149
- # rdoc-file=ext/psych/lib/psych.rb
150
- # - safe_load(yaml, permitted_classes: [], permitted_symbols: [], aliases: false, filename: nil, fallback: nil, symbolize_names: false, freeze: false, strict_integer: false)
151
- # -->
152
- # Safely load the yaml string in `yaml`. By default, only the following classes
153
- # are allowed to be deserialized:
154
- #
155
- # * TrueClass
156
- # * FalseClass
157
- # * NilClass
158
- # * Integer
159
- # * Float
160
- # * String
161
- # * Array
162
- # * Hash
163
- #
164
- #
165
- # Recursive data structures are not allowed by default. Arbitrary classes can
166
- # be allowed by adding those classes to the `permitted_classes` keyword
167
- # argument. They are additive. For example, to allow Date deserialization:
168
- #
169
- # Psych.safe_load(yaml, permitted_classes: [Date])
170
- #
171
- # Now the Date class can be loaded in addition to the classes listed above.
172
- #
173
- # Aliases can be explicitly allowed by changing the `aliases` keyword argument.
174
- # For example:
175
- #
176
- # x = []
177
- # x << x
178
- # yaml = Psych.dump x
179
- # Psych.safe_load yaml # => raises an exception
180
- # Psych.safe_load yaml, aliases: true # => loads the aliases
181
- #
182
- # A Psych::DisallowedClass exception will be raised if the yaml contains a class
183
- # that isn't in the `permitted_classes` list.
184
- #
185
- # A Psych::AliasesNotEnabled exception will be raised if the yaml contains
186
- # aliases but the `aliases` keyword argument is set to false.
187
- #
188
- # `filename` will be used in the exception message if any exception is raised
189
- # while parsing.
190
- #
191
- # When the optional `symbolize_names` keyword argument is set to a true value,
192
- # returns symbols for keys in Hash objects (default: strings).
193
- #
194
- # Psych.safe_load("---\n foo: bar") # => {"foo"=>"bar"}
195
- # Psych.safe_load("---\n foo: bar", symbolize_names: true) # => {:foo=>"bar"}
196
- #
197
- %a{annotate:rdoc:copy:Psych.safe_load}
198
- def self.safe_load: (String yaml, ?permitted_classes: Array[Class], ?permitted_symbols: Array[Symbol], ?aliases: bool, ?filename: String | _ToStr | _ToS?, ?fallback: untyped, ?symbolize_names: bool, ?freeze: bool) -> untyped
199
- end
1
+ module YAML = Psych
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbs
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soutaro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-22 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2023-11-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: abbrev
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  description: RBS is the language for type signatures for Ruby and standard library
14
28
  definitions.
15
29
  email:
@@ -117,6 +131,7 @@ files:
117
131
  - core/warning.rbs
118
132
  - docs/CONTRIBUTING.md
119
133
  - docs/collection.md
134
+ - docs/data_and_struct.md
120
135
  - docs/rbs_by_example.md
121
136
  - docs/repo.md
122
137
  - docs/sigs.md
@@ -159,6 +174,8 @@ files:
159
174
  - lib/rbs/buffer.rb
160
175
  - lib/rbs/builtin_names.rb
161
176
  - lib/rbs/cli.rb
177
+ - lib/rbs/cli/colored_io.rb
178
+ - lib/rbs/cli/diff.rb
162
179
  - lib/rbs/collection.rb
163
180
  - lib/rbs/collection/cleaner.rb
164
181
  - lib/rbs/collection/config.rb
@@ -176,6 +193,7 @@ files:
176
193
  - lib/rbs/definition_builder.rb
177
194
  - lib/rbs/definition_builder/ancestor_builder.rb
178
195
  - lib/rbs/definition_builder/method_builder.rb
196
+ - lib/rbs/diff.rb
179
197
  - lib/rbs/environment.rb
180
198
  - lib/rbs/environment/use_map.rb
181
199
  - lib/rbs/environment_loader.rb
@@ -197,6 +215,9 @@ files:
197
215
  - lib/rbs/prototype/rb.rb
198
216
  - lib/rbs/prototype/rbi.rb
199
217
  - lib/rbs/prototype/runtime.rb
218
+ - lib/rbs/prototype/runtime/helpers.rb
219
+ - lib/rbs/prototype/runtime/reflection.rb
220
+ - lib/rbs/prototype/runtime/value_object_generator.rb
200
221
  - lib/rbs/repository.rb
201
222
  - lib/rbs/resolver/constant_resolver.rb
202
223
  - lib/rbs/resolver/type_name_resolver.rb
@@ -205,6 +226,7 @@ files:
205
226
  - lib/rbs/subtractor.rb
206
227
  - lib/rbs/test.rb
207
228
  - lib/rbs/test/errors.rb
229
+ - lib/rbs/test/guaranteed.rb
208
230
  - lib/rbs/test/hook.rb
209
231
  - lib/rbs/test/observer.rb
210
232
  - lib/rbs/test/setup.rb
@@ -243,6 +265,8 @@ files:
243
265
  - sig/buffer.rbs
244
266
  - sig/builtin_names.rbs
245
267
  - sig/cli.rbs
268
+ - sig/cli/colored_io.rbs
269
+ - sig/cli/diff.rbs
246
270
  - sig/collection.rbs
247
271
  - sig/collection/cleaner.rbs
248
272
  - sig/collection/config.rbs
@@ -255,6 +279,7 @@ files:
255
279
  - sig/declarations.rbs
256
280
  - sig/definition.rbs
257
281
  - sig/definition_builder.rbs
282
+ - sig/diff.rbs
258
283
  - sig/directives.rbs
259
284
  - sig/environment.rbs
260
285
  - sig/environment_loader.rbs
@@ -274,16 +299,15 @@ files:
274
299
  - sig/prototype/node_usage.rbs
275
300
  - sig/prototype/rb.rbs
276
301
  - sig/prototype/rbi.rbs
302
+ - sig/prototype/runtime.rbs
277
303
  - sig/rbs.rbs
278
304
  - sig/rdoc/rbs.rbs
279
305
  - sig/repository.rbs
280
306
  - sig/resolver/constant_resolver.rbs
281
307
  - sig/resolver/context.rbs
282
308
  - sig/resolver/type_name_resolver.rbs
283
- - sig/shims.rbs
284
309
  - sig/shims/bundler.rbs
285
310
  - sig/shims/enumerable.rbs
286
- - sig/shims/pp.rbs
287
311
  - sig/shims/rubygems.rbs
288
312
  - sig/sorter.rbs
289
313
  - sig/substitution.rbs
@@ -372,17 +396,37 @@ files:
372
396
  - stdlib/mutex_m/0/mutex_m.rbs
373
397
  - stdlib/net-http/0/manifest.yaml
374
398
  - stdlib/net-http/0/net-http.rbs
399
+ - stdlib/net-protocol/0/manifest.yaml
400
+ - stdlib/net-protocol/0/net-protocol.rbs
401
+ - stdlib/net-smtp/0/manifest.yaml
402
+ - stdlib/net-smtp/0/net-smtp.rbs
375
403
  - stdlib/nkf/0/nkf.rbs
376
404
  - stdlib/objspace/0/objspace.rbs
377
405
  - stdlib/observable/0/observable.rbs
406
+ - stdlib/open-uri/0/manifest.yaml
407
+ - stdlib/open-uri/0/open-uri.rbs
378
408
  - stdlib/openssl/0/manifest.yaml
379
409
  - stdlib/openssl/0/openssl.rbs
380
410
  - stdlib/optparse/0/optparse.rbs
381
411
  - stdlib/pathname/0/pathname.rbs
412
+ - stdlib/pp/0/manifest.yaml
413
+ - stdlib/pp/0/pp.rbs
382
414
  - stdlib/prettyprint/0/prettyprint.rbs
383
415
  - stdlib/pstore/0/pstore.rbs
416
+ - stdlib/psych/0/dbm.rbs
417
+ - stdlib/psych/0/manifest.yaml
418
+ - stdlib/psych/0/psych.rbs
419
+ - stdlib/psych/0/store.rbs
384
420
  - stdlib/pty/0/pty.rbs
421
+ - stdlib/rdoc/0/code_object.rbs
422
+ - stdlib/rdoc/0/comment.rbs
423
+ - stdlib/rdoc/0/context.rbs
424
+ - stdlib/rdoc/0/markup.rbs
425
+ - stdlib/rdoc/0/parser.rbs
385
426
  - stdlib/rdoc/0/rdoc.rbs
427
+ - stdlib/rdoc/0/ri.rbs
428
+ - stdlib/rdoc/0/store.rbs
429
+ - stdlib/rdoc/0/top_level.rbs
386
430
  - stdlib/resolv/0/manifest.yaml
387
431
  - stdlib/resolv/0/resolv.rbs
388
432
  - stdlib/ripper/0/ripper.rbs
@@ -421,9 +465,7 @@ files:
421
465
  - stdlib/uri/0/rfc3986_parser.rbs
422
466
  - stdlib/uri/0/ws.rbs
423
467
  - stdlib/uri/0/wss.rbs
424
- - stdlib/yaml/0/dbm.rbs
425
468
  - stdlib/yaml/0/manifest.yaml
426
- - stdlib/yaml/0/store.rbs
427
469
  - stdlib/yaml/0/yaml.rbs
428
470
  - stdlib/zlib/0/buf_error.rbs
429
471
  - stdlib/zlib/0/data_error.rbs
data/sig/shims/pp.rbs DELETED
@@ -1,3 +0,0 @@
1
- class PP
2
- def self.pp: (untyped obj, IO out, ?Integer width) -> void
3
- end
data/sig/shims.rbs DELETED
@@ -1,47 +0,0 @@
1
- module RDoc
2
- class Store
3
- def initialize: (?String? path, ?Symbol? type) -> void
4
-
5
- def find_class_or_module: (String) -> ClassModule?
6
-
7
- def load_all: () -> void
8
- end
9
-
10
- module RI
11
- module Paths
12
- type path_type = :system | :site | :home | :gem | :extra
13
-
14
- type gem_filter = :latest | :all
15
-
16
- def self.each: (?bool system, ?bool site, ?bool home, ?gem_filter | false gems, *String extra_dirs) { (String, path_type) -> void } -> void
17
- end
18
- end
19
-
20
- class Context < CodeObject
21
-
22
- end
23
-
24
- class ClassModule < Context
25
- def constants: () -> Array[Constant]
26
-
27
- def method_list: () -> Array[AnyMethod]
28
-
29
- def attributes: () -> Array[Attr]
30
- end
31
-
32
- class Markup
33
- class Document
34
- include Enumerable[Document]
35
-
36
- def each: () { (Document) -> void } -> void
37
- | () -> Enumerator[Document, void]
38
-
39
- def file: () -> String?
40
-
41
- def accept: (untyped) -> String
42
- end
43
-
44
- class ToMarkdown
45
- end
46
- end
47
- end