rbs 3.2.2 → 3.3.0.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/comments.yml +1 -1
- data/.github/workflows/ruby.yml +7 -2
- data/CHANGELOG.md +85 -0
- data/Gemfile.lock +14 -14
- data/README.md +11 -2
- data/Rakefile +10 -7
- data/Steepfile +7 -7
- data/core/basic_object.rbs +7 -7
- data/core/binding.rbs +3 -3
- data/core/builtin.rbs +171 -5
- data/core/constants.rbs +17 -17
- data/core/dir.rbs +3 -3
- data/core/encoding.rbs +434 -628
- data/core/enumerator.rbs +37 -0
- data/core/exception.rbs +11 -11
- data/core/false_class.rbs +5 -11
- data/core/fiber.rbs +3 -3
- data/core/file_test.rbs +28 -26
- data/core/kernel.rbs +900 -21
- data/core/marshal.rbs +24 -14
- data/core/match_data.rbs +8 -8
- data/core/math.rbs +57 -53
- data/core/method.rbs +3 -1
- data/core/module.rbs +38 -36
- data/core/nil_class.rbs +7 -13
- data/core/object.rbs +3 -966
- data/core/process.rbs +3 -3
- data/core/ractor.rbs +2 -2
- data/core/rb_config.rbs +64 -43
- data/core/regexp.rbs +3 -3
- data/core/signal.rbs +10 -4
- data/core/struct.rbs +1 -1
- data/core/thread.rbs +7 -7
- data/core/thread_group.rbs +9 -9
- data/core/true_class.rbs +5 -11
- data/core/unbound_method.rbs +56 -7
- data/core/warning.rbs +33 -0
- data/docs/collection.md +56 -6
- data/docs/data_and_struct.md +57 -0
- data/docs/stdlib.md +61 -2
- data/docs/syntax.md +123 -2
- data/ext/rbs_extension/lexer.c +624 -569
- data/ext/rbs_extension/lexer.h +1 -0
- data/ext/rbs_extension/lexer.re +1 -0
- data/ext/rbs_extension/lexstate.c +1 -0
- data/ext/rbs_extension/parser.c +6 -0
- data/goodcheck.yml +2 -2
- data/lib/rbs/annotate/formatter.rb +13 -3
- data/lib/rbs/annotate/rdoc_source.rb +10 -1
- data/lib/rbs/cli/colored_io.rb +48 -0
- data/lib/rbs/cli/diff.rb +80 -0
- data/lib/rbs/cli.rb +151 -16
- data/lib/rbs/collection/config/lockfile.rb +0 -25
- data/lib/rbs/collection/config/lockfile_generator.rb +0 -6
- data/lib/rbs/collection/installer.rb +1 -1
- data/lib/rbs/collection/sources/git.rb +6 -4
- data/lib/rbs/collection/sources/local.rb +7 -5
- data/lib/rbs/diff.rb +104 -0
- data/lib/rbs/environment.rb +1 -1
- data/lib/rbs/method_type.rb +23 -0
- data/lib/rbs/prototype/rb.rb +2 -9
- data/lib/rbs/prototype/runtime/helpers.rb +59 -0
- data/lib/rbs/prototype/runtime/value_object_generator.rb +236 -0
- data/lib/rbs/prototype/runtime.rb +234 -150
- data/lib/rbs/sorter.rb +144 -117
- data/lib/rbs/test/guaranteed.rb +31 -0
- data/lib/rbs/test/type_check.rb +4 -4
- data/lib/rbs/test.rb +3 -0
- data/lib/rbs/types.rb +184 -3
- data/lib/rbs/version.rb +1 -1
- data/lib/rbs/writer.rb +4 -4
- data/lib/rbs.rb +1 -0
- data/rbs.gemspec +1 -0
- data/sig/annotate/formatter.rbs +2 -2
- data/sig/annotate/rdoc_annotater.rbs +1 -1
- data/sig/cli/colored_io.rbs +15 -0
- data/sig/cli/diff.rbs +21 -0
- data/sig/cli.rbs +2 -0
- data/sig/collection/config/lockfile.rbs +0 -6
- data/sig/diff.rbs +23 -0
- data/sig/errors.rbs +1 -5
- data/sig/method_types.rbs +6 -0
- data/sig/prototype/runtime.rbs +108 -0
- data/sig/rdoc/rbs.rbs +4 -0
- data/sig/shims/bundler.rbs +5 -0
- data/sig/sorter.rbs +23 -5
- data/sig/types.rbs +29 -0
- data/stdlib/benchmark/0/benchmark.rbs +1 -1
- data/stdlib/cgi/0/core.rbs +2 -2
- data/stdlib/did_you_mean/0/did_you_mean.rbs +2 -2
- data/stdlib/digest/0/digest.rbs +1 -1
- data/stdlib/fileutils/0/fileutils.rbs +1 -1
- data/stdlib/forwardable/0/forwardable.rbs +4 -4
- data/stdlib/io-console/0/io-console.rbs +1 -1
- data/stdlib/json/0/json.rbs +37 -0
- data/stdlib/logger/0/logger.rbs +2 -2
- data/stdlib/net-http/0/manifest.yaml +1 -1
- data/stdlib/net-http/0/net-http.rbs +16 -63
- data/stdlib/net-protocol/0/manifest.yaml +2 -0
- data/stdlib/net-protocol/0/net-protocol.rbs +56 -0
- data/stdlib/openssl/0/openssl.rbs +1 -1
- data/stdlib/pp/0/manifest.yaml +2 -0
- data/stdlib/pp/0/pp.rbs +301 -0
- data/stdlib/{yaml → psych}/0/dbm.rbs +3 -3
- data/stdlib/psych/0/manifest.yaml +3 -0
- data/stdlib/psych/0/psych.rbs +391 -0
- data/stdlib/{yaml → psych}/0/store.rbs +2 -2
- data/stdlib/rdoc/0/code_object.rbs +55 -0
- data/stdlib/rdoc/0/comment.rbs +60 -0
- data/stdlib/rdoc/0/context.rbs +153 -0
- data/stdlib/rdoc/0/markup.rbs +119 -0
- data/stdlib/rdoc/0/parser.rbs +56 -0
- data/stdlib/rdoc/0/rdoc.rbs +0 -372
- data/stdlib/rdoc/0/ri.rbs +17 -0
- data/stdlib/rdoc/0/store.rbs +48 -0
- data/stdlib/rdoc/0/top_level.rbs +97 -0
- data/stdlib/socket/0/basic_socket.rbs +1 -1
- data/stdlib/socket/0/socket.rbs +1 -1
- data/stdlib/uri/0/common.rbs +1 -1
- data/stdlib/yaml/0/manifest.yaml +1 -2
- data/stdlib/yaml/0/yaml.rbs +1 -199
- metadata +46 -9
- data/sig/shims/pp.rbs +0 -3
- 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
|
data/stdlib/socket/0/socket.rbs
CHANGED
@@ -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: (
|
4158
|
+
def initialize: (interned | Integer family, interned | Integer cmsg_level, interned | Integer cmsg_data, String cmsg_data) -> untyped
|
4159
4159
|
end
|
data/stdlib/uri/0/common.rbs
CHANGED
@@ -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: (
|
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
|
data/stdlib/yaml/0/manifest.yaml
CHANGED
data/stdlib/yaml/0/yaml.rbs
CHANGED
@@ -1,199 +1 @@
|
|
1
|
-
|
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.
|
4
|
+
version: 3.3.0.pre.1
|
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-
|
12
|
-
dependencies:
|
11
|
+
date: 2023-10-31 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,8 @@ 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/value_object_generator.rb
|
200
220
|
- lib/rbs/repository.rb
|
201
221
|
- lib/rbs/resolver/constant_resolver.rb
|
202
222
|
- lib/rbs/resolver/type_name_resolver.rb
|
@@ -205,6 +225,7 @@ files:
|
|
205
225
|
- lib/rbs/subtractor.rb
|
206
226
|
- lib/rbs/test.rb
|
207
227
|
- lib/rbs/test/errors.rb
|
228
|
+
- lib/rbs/test/guaranteed.rb
|
208
229
|
- lib/rbs/test/hook.rb
|
209
230
|
- lib/rbs/test/observer.rb
|
210
231
|
- lib/rbs/test/setup.rb
|
@@ -243,6 +264,8 @@ files:
|
|
243
264
|
- sig/buffer.rbs
|
244
265
|
- sig/builtin_names.rbs
|
245
266
|
- sig/cli.rbs
|
267
|
+
- sig/cli/colored_io.rbs
|
268
|
+
- sig/cli/diff.rbs
|
246
269
|
- sig/collection.rbs
|
247
270
|
- sig/collection/cleaner.rbs
|
248
271
|
- sig/collection/config.rbs
|
@@ -255,6 +278,7 @@ files:
|
|
255
278
|
- sig/declarations.rbs
|
256
279
|
- sig/definition.rbs
|
257
280
|
- sig/definition_builder.rbs
|
281
|
+
- sig/diff.rbs
|
258
282
|
- sig/directives.rbs
|
259
283
|
- sig/environment.rbs
|
260
284
|
- sig/environment_loader.rbs
|
@@ -274,16 +298,15 @@ files:
|
|
274
298
|
- sig/prototype/node_usage.rbs
|
275
299
|
- sig/prototype/rb.rbs
|
276
300
|
- sig/prototype/rbi.rbs
|
301
|
+
- sig/prototype/runtime.rbs
|
277
302
|
- sig/rbs.rbs
|
278
303
|
- sig/rdoc/rbs.rbs
|
279
304
|
- sig/repository.rbs
|
280
305
|
- sig/resolver/constant_resolver.rbs
|
281
306
|
- sig/resolver/context.rbs
|
282
307
|
- sig/resolver/type_name_resolver.rbs
|
283
|
-
- sig/shims.rbs
|
284
308
|
- sig/shims/bundler.rbs
|
285
309
|
- sig/shims/enumerable.rbs
|
286
|
-
- sig/shims/pp.rbs
|
287
310
|
- sig/shims/rubygems.rbs
|
288
311
|
- sig/sorter.rbs
|
289
312
|
- sig/substitution.rbs
|
@@ -372,6 +395,8 @@ files:
|
|
372
395
|
- stdlib/mutex_m/0/mutex_m.rbs
|
373
396
|
- stdlib/net-http/0/manifest.yaml
|
374
397
|
- stdlib/net-http/0/net-http.rbs
|
398
|
+
- stdlib/net-protocol/0/manifest.yaml
|
399
|
+
- stdlib/net-protocol/0/net-protocol.rbs
|
375
400
|
- stdlib/nkf/0/nkf.rbs
|
376
401
|
- stdlib/objspace/0/objspace.rbs
|
377
402
|
- stdlib/observable/0/observable.rbs
|
@@ -379,10 +404,24 @@ files:
|
|
379
404
|
- stdlib/openssl/0/openssl.rbs
|
380
405
|
- stdlib/optparse/0/optparse.rbs
|
381
406
|
- stdlib/pathname/0/pathname.rbs
|
407
|
+
- stdlib/pp/0/manifest.yaml
|
408
|
+
- stdlib/pp/0/pp.rbs
|
382
409
|
- stdlib/prettyprint/0/prettyprint.rbs
|
383
410
|
- stdlib/pstore/0/pstore.rbs
|
411
|
+
- stdlib/psych/0/dbm.rbs
|
412
|
+
- stdlib/psych/0/manifest.yaml
|
413
|
+
- stdlib/psych/0/psych.rbs
|
414
|
+
- stdlib/psych/0/store.rbs
|
384
415
|
- stdlib/pty/0/pty.rbs
|
416
|
+
- stdlib/rdoc/0/code_object.rbs
|
417
|
+
- stdlib/rdoc/0/comment.rbs
|
418
|
+
- stdlib/rdoc/0/context.rbs
|
419
|
+
- stdlib/rdoc/0/markup.rbs
|
420
|
+
- stdlib/rdoc/0/parser.rbs
|
385
421
|
- stdlib/rdoc/0/rdoc.rbs
|
422
|
+
- stdlib/rdoc/0/ri.rbs
|
423
|
+
- stdlib/rdoc/0/store.rbs
|
424
|
+
- stdlib/rdoc/0/top_level.rbs
|
386
425
|
- stdlib/resolv/0/manifest.yaml
|
387
426
|
- stdlib/resolv/0/resolv.rbs
|
388
427
|
- stdlib/ripper/0/ripper.rbs
|
@@ -421,9 +460,7 @@ files:
|
|
421
460
|
- stdlib/uri/0/rfc3986_parser.rbs
|
422
461
|
- stdlib/uri/0/ws.rbs
|
423
462
|
- stdlib/uri/0/wss.rbs
|
424
|
-
- stdlib/yaml/0/dbm.rbs
|
425
463
|
- stdlib/yaml/0/manifest.yaml
|
426
|
-
- stdlib/yaml/0/store.rbs
|
427
464
|
- stdlib/yaml/0/yaml.rbs
|
428
465
|
- stdlib/zlib/0/buf_error.rbs
|
429
466
|
- stdlib/zlib/0/data_error.rbs
|
@@ -463,9 +500,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
463
500
|
version: '3.0'
|
464
501
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
465
502
|
requirements:
|
466
|
-
- - "
|
503
|
+
- - ">"
|
467
504
|
- !ruby/object:Gem::Version
|
468
|
-
version:
|
505
|
+
version: 1.3.1
|
469
506
|
requirements: []
|
470
507
|
rubygems_version: 3.4.10
|
471
508
|
signing_key:
|
data/sig/shims/pp.rbs
DELETED
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
|