rbs 3.9.4 → 4.2.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.
- checksums.yaml +4 -4
- data/.clang-format +75 -0
- data/.clangd +2 -0
- data/.dockerignore +37 -0
- data/.gitattributes +1 -0
- data/.github/dependabot.yml +16 -14
- data/.github/workflows/bundle-update.yml +63 -0
- data/.github/workflows/c-check.yml +66 -0
- data/.github/workflows/changelog.yml +121 -0
- data/.github/workflows/comments.yml +6 -4
- data/.github/workflows/dependabot.yml +2 -2
- data/.github/workflows/jruby.yml +74 -0
- data/.github/workflows/release-gems.yml +234 -0
- data/.github/workflows/ruby.yml +86 -32
- data/.github/workflows/rust.yml +186 -0
- data/.github/workflows/truffleruby.yml +54 -0
- data/.github/workflows/typecheck.yml +6 -3
- data/.github/workflows/wasm.yml +55 -0
- data/.github/workflows/windows.yml +10 -4
- data/.gitignore +16 -0
- data/.rubocop.yml +1 -2
- data/CHANGELOG.md +502 -0
- data/Dockerfile.jruby +53 -0
- data/README.md +42 -5
- data/Rakefile +892 -111
- data/Steepfile +11 -0
- data/config.yml +665 -62
- data/core/array.rbs +541 -398
- data/core/basic_object.rbs +9 -8
- data/core/binding.rbs +0 -2
- data/core/builtin.rbs +9 -8
- data/core/class.rbs +11 -8
- data/core/comparable.rbs +55 -34
- data/core/complex.rbs +104 -78
- data/core/dir.rbs +61 -49
- data/core/encoding.rbs +12 -15
- data/core/enumerable.rbs +297 -196
- data/core/enumerator/arithmetic_sequence.rbs +70 -0
- data/core/enumerator/product.rbs +5 -5
- data/core/enumerator.rbs +91 -28
- data/core/errno.rbs +11 -2
- data/core/errors.rbs +58 -29
- data/core/exception.rbs +13 -13
- data/core/fiber.rbs +74 -54
- data/core/file.rbs +260 -1151
- data/core/file_constants.rbs +463 -0
- data/core/file_stat.rbs +534 -0
- data/core/file_test.rbs +3 -3
- data/core/float.rbs +257 -116
- data/core/gc.rbs +425 -281
- data/core/hash.rbs +1151 -829
- data/core/integer.rbs +156 -195
- data/core/io/buffer.rbs +53 -42
- data/core/io/wait.rbs +13 -35
- data/core/io.rbs +222 -155
- data/core/kernel.rbs +239 -163
- data/core/marshal.rbs +4 -4
- data/core/match_data.rbs +16 -14
- data/core/math.rbs +107 -66
- data/core/method.rbs +69 -33
- data/core/module.rbs +302 -150
- data/core/nil_class.rbs +7 -6
- data/core/numeric.rbs +77 -63
- data/core/object.rbs +9 -11
- data/core/object_space/weak_key_map.rbs +7 -7
- data/core/object_space.rbs +30 -23
- data/core/pathname.rbs +1312 -0
- data/core/proc.rbs +95 -58
- data/core/process.rbs +222 -202
- data/core/ractor.rbs +364 -518
- data/core/random.rbs +21 -3
- data/core/range.rbs +181 -79
- data/core/rational.rbs +60 -89
- data/core/rbs/ops.rbs +154 -0
- data/core/rbs/unnamed/argf.rbs +63 -56
- data/core/rbs/unnamed/env_class.rbs +19 -14
- data/core/rbs/unnamed/main_class.rbs +123 -0
- data/core/rbs/unnamed/random.rbs +11 -118
- data/core/regexp.rbs +258 -214
- data/core/ruby.rbs +53 -0
- data/core/ruby_vm.rbs +78 -34
- data/core/rubygems/config_file.rbs +5 -5
- data/core/rubygems/errors.rbs +6 -70
- data/core/rubygems/requirement.rbs +5 -15
- data/core/rubygems/rubygems.rbs +18 -81
- data/core/rubygems/specification.rbs +8 -0
- data/core/rubygems/version.rbs +2 -163
- data/core/set.rbs +493 -363
- data/core/signal.rbs +26 -16
- data/core/string.rbs +3234 -1285
- data/core/struct.rbs +43 -42
- data/core/symbol.rbs +41 -34
- data/core/thread.rbs +139 -83
- data/core/time.rbs +81 -50
- data/core/trace_point.rbs +41 -35
- data/core/true_class.rbs +2 -2
- data/core/unbound_method.rbs +24 -16
- data/core/warning.rbs +7 -7
- data/docs/CONTRIBUTING.md +3 -2
- data/docs/aliases.md +79 -0
- data/docs/collection.md +3 -3
- data/docs/config.md +171 -0
- data/docs/encoding.md +56 -0
- data/docs/gem.md +0 -1
- data/docs/inline.md +634 -0
- data/docs/rbs_by_example.md +20 -20
- data/docs/release.md +303 -0
- data/docs/rust.md +96 -0
- data/docs/sigs.md +3 -3
- data/docs/stdlib.md +8 -0
- data/docs/syntax.md +60 -18
- data/docs/type_fingerprint.md +21 -0
- data/docs/wasm_serialization.md +80 -0
- data/exe/rbs +1 -1
- data/ext/rbs_extension/ast_translation.c +1870 -0
- data/ext/rbs_extension/ast_translation.h +41 -0
- data/ext/rbs_extension/class_constants.c +189 -0
- data/{include/rbs/constants.h → ext/rbs_extension/class_constants.h} +24 -1
- data/ext/rbs_extension/compat.h +10 -0
- data/ext/rbs_extension/extconf.rb +26 -1
- data/ext/rbs_extension/legacy_location.c +299 -0
- data/ext/rbs_extension/legacy_location.h +82 -0
- data/ext/rbs_extension/main.c +639 -23
- data/ext/rbs_extension/rbs_extension.h +6 -21
- data/ext/rbs_extension/rbs_string_bridging.c +9 -0
- data/ext/rbs_extension/rbs_string_bridging.h +24 -0
- data/include/rbs/ast.h +1055 -0
- data/include/rbs/defines.h +104 -0
- data/include/rbs/lexer.h +208 -0
- data/include/rbs/location.h +40 -0
- data/include/rbs/parser.h +187 -0
- data/include/rbs/serialize.h +39 -0
- data/include/rbs/string.h +47 -0
- data/include/rbs/util/rbs_allocator.h +59 -0
- data/include/rbs/util/rbs_assert.h +20 -0
- data/include/rbs/util/rbs_buffer.h +83 -0
- data/include/rbs/util/rbs_constant_pool.h +6 -70
- data/include/rbs/util/rbs_encoding.h +282 -0
- data/include/rbs/util/rbs_unescape.h +24 -0
- data/include/rbs.h +9 -2
- data/lib/rbs/annotate/formatter.rb +3 -13
- data/lib/rbs/annotate/rdoc_annotator.rb +30 -32
- data/lib/rbs/annotate/rdoc_source.rb +1 -1
- data/lib/rbs/ast/annotation.rb +1 -1
- data/lib/rbs/ast/comment.rb +1 -1
- data/lib/rbs/ast/declarations.rb +11 -11
- data/lib/rbs/ast/members.rb +14 -14
- data/lib/rbs/ast/ruby/annotations.rb +451 -0
- data/lib/rbs/ast/ruby/comment_block.rb +247 -0
- data/lib/rbs/ast/ruby/declarations.rb +291 -0
- data/lib/rbs/ast/ruby/helpers/constant_helper.rb +28 -0
- data/lib/rbs/ast/ruby/helpers/location_helper.rb +15 -0
- data/lib/rbs/ast/ruby/members.rb +762 -0
- data/lib/rbs/ast/type_param.rb +25 -5
- data/lib/rbs/buffer.rb +142 -20
- data/lib/rbs/cli/diff.rb +16 -15
- data/lib/rbs/cli/validate.rb +63 -126
- data/lib/rbs/cli.rb +59 -29
- data/lib/rbs/collection/config/lockfile_generator.rb +28 -3
- data/lib/rbs/collection/sources/git.rb +7 -0
- data/lib/rbs/definition.rb +6 -1
- data/lib/rbs/definition_builder/ancestor_builder.rb +129 -70
- data/lib/rbs/definition_builder/method_builder.rb +74 -33
- data/lib/rbs/definition_builder.rb +181 -21
- data/lib/rbs/diff.rb +7 -1
- data/lib/rbs/environment/class_entry.rb +81 -0
- data/lib/rbs/environment/module_entry.rb +91 -0
- data/lib/rbs/environment.rb +410 -215
- data/lib/rbs/environment_loader.rb +2 -8
- data/lib/rbs/errors.rb +31 -21
- data/lib/rbs/inline_parser/comment_association.rb +117 -0
- data/lib/rbs/inline_parser.rb +568 -0
- data/lib/rbs/location_aux.rb +36 -4
- data/lib/rbs/locator.rb +5 -1
- data/lib/rbs/method_type.rb +5 -3
- data/lib/rbs/namespace.rb +47 -18
- data/lib/rbs/parser_aux.rb +37 -7
- data/lib/rbs/prototype/helpers.rb +24 -0
- data/lib/rbs/prototype/rb.rb +3 -28
- data/lib/rbs/prototype/rbi.rb +196 -45
- data/lib/rbs/prototype/runtime/value_object_generator.rb +0 -1
- data/lib/rbs/prototype/runtime.rb +13 -3
- data/lib/rbs/resolver/constant_resolver.rb +2 -2
- data/lib/rbs/resolver/type_name_resolver.rb +120 -44
- data/lib/rbs/rewriter.rb +70 -0
- data/lib/rbs/source.rb +99 -0
- data/lib/rbs/subtractor.rb +7 -4
- data/lib/rbs/test/type_check.rb +25 -3
- data/lib/rbs/type_name.rb +34 -21
- data/lib/rbs/types.rb +135 -81
- data/lib/rbs/unit_test/convertibles.rb +1 -0
- data/lib/rbs/unit_test/type_assertions.rb +47 -11
- data/lib/rbs/validator.rb +2 -2
- data/lib/rbs/version.rb +1 -1
- data/lib/rbs/wasm/deserializer.rb +213 -0
- data/lib/rbs/wasm/location.rb +61 -0
- data/lib/rbs/wasm/parser.rb +174 -0
- data/lib/rbs/wasm/runtime.rb +211 -0
- data/lib/rbs/wasm/serialization_schema.rb +111 -0
- data/lib/rbs.rb +25 -2
- data/lib/rbs_jars.rb +39 -0
- data/lib/rdoc/discover.rb +1 -1
- data/lib/rdoc_plugin/parser.rb +8 -3
- data/rbs.gemspec +34 -6
- data/schema/function.json +12 -1
- data/schema/typeParam.json +17 -1
- data/sig/ancestor_builder.rbs +1 -1
- data/sig/annotate/formatter.rbs +2 -2
- data/sig/annotate/rdoc_annotater.rbs +13 -10
- data/sig/ast/ruby/annotations.rbs +470 -0
- data/sig/ast/ruby/comment_block.rbs +127 -0
- data/sig/ast/ruby/declarations.rbs +158 -0
- data/sig/ast/ruby/helpers/constant_helper.rbs +11 -0
- data/sig/ast/ruby/helpers/location_helper.rbs +15 -0
- data/sig/ast/ruby/members.rbs +198 -0
- data/sig/buffer.rbs +81 -5
- data/sig/cli/diff.rbs +5 -11
- data/sig/cli/validate.rbs +12 -8
- data/sig/cli.rbs +18 -18
- data/sig/collection/config/lockfile_generator.rbs +2 -0
- data/sig/definition.rbs +6 -0
- data/sig/definition_builder.rbs +3 -1
- data/sig/environment/class_entry.rbs +56 -0
- data/sig/environment/module_entry.rbs +65 -0
- data/sig/environment.rbs +94 -87
- data/sig/errors.rbs +26 -20
- data/sig/inline_parser/comment_association.rbs +71 -0
- data/sig/inline_parser.rbs +126 -0
- data/sig/location.rbs +32 -7
- data/sig/locator.rbs +0 -2
- data/sig/manifest.yaml +0 -2
- data/sig/method_builder.rbs +9 -4
- data/sig/namespace.rbs +20 -5
- data/sig/parser.rbs +79 -15
- data/sig/prototype/helpers.rbs +2 -0
- data/sig/prototype/rbi.rbs +33 -4
- data/sig/resolver/type_name_resolver.rbs +36 -10
- data/sig/rewriter.rbs +45 -0
- data/sig/source.rbs +48 -0
- data/sig/type_param.rbs +13 -8
- data/sig/typename.rbs +15 -5
- data/sig/types.rbs +21 -9
- data/sig/unit_test/spy.rbs +0 -8
- data/sig/unit_test/type_assertions.rbs +17 -2
- data/sig/wasm/deserializer.rbs +66 -0
- data/sig/wasm/serialization_schema.rbs +13 -0
- data/src/ast.c +1644 -0
- data/src/lexer.c +3223 -0
- data/src/lexer.re +187 -0
- data/src/lexstate.c +222 -0
- data/src/location.c +31 -0
- data/src/parser.c +4318 -0
- data/src/serialize.c +965 -0
- data/src/string.c +41 -0
- data/src/util/rbs_allocator.c +171 -0
- data/src/util/rbs_assert.c +19 -0
- data/src/util/rbs_buffer.c +54 -0
- data/src/util/rbs_constant_pool.c +18 -92
- data/src/util/rbs_encoding.c +21454 -0
- data/src/util/rbs_unescape.c +167 -0
- data/stdlib/abbrev/0/array.rbs +1 -1
- data/stdlib/bigdecimal/0/big_decimal.rbs +116 -98
- data/stdlib/bigdecimal-math/0/big_math.rbs +169 -8
- data/stdlib/cgi/0/core.rbs +9 -393
- data/stdlib/cgi/0/manifest.yaml +1 -0
- data/stdlib/cgi-escape/0/escape.rbs +171 -0
- data/stdlib/coverage/0/coverage.rbs +7 -4
- data/stdlib/csv/0/csv.rbs +5 -5
- data/stdlib/date/0/date.rbs +92 -79
- data/stdlib/date/0/date_time.rbs +25 -24
- data/stdlib/delegate/0/delegator.rbs +11 -7
- data/stdlib/did_you_mean/0/did_you_mean.rbs +17 -16
- data/stdlib/digest/0/digest.rbs +117 -1
- data/stdlib/erb/0/erb.rbs +754 -353
- data/stdlib/etc/0/etc.rbs +73 -54
- data/stdlib/fileutils/0/fileutils.rbs +179 -160
- data/stdlib/forwardable/0/forwardable.rbs +13 -10
- data/stdlib/io-console/0/io-console.rbs +2 -2
- data/stdlib/ipaddr/0/ipaddr.rbs +0 -5
- data/stdlib/json/0/json.rbs +232 -185
- data/stdlib/monitor/0/monitor.rbs +9 -9
- data/stdlib/net-http/0/net-http.rbs +162 -134
- data/stdlib/objspace/0/objspace.rbs +17 -34
- data/stdlib/open-uri/0/open-uri.rbs +48 -8
- data/stdlib/open3/0/open3.rbs +469 -10
- data/stdlib/openssl/0/openssl.rbs +521 -397
- data/stdlib/optparse/0/optparse.rbs +26 -17
- data/stdlib/pathname/0/pathname.rbs +11 -1381
- data/stdlib/pp/0/pp.rbs +9 -8
- data/stdlib/prettyprint/0/prettyprint.rbs +7 -7
- data/stdlib/pstore/0/pstore.rbs +35 -30
- data/stdlib/psych/0/psych.rbs +65 -12
- data/stdlib/psych/0/store.rbs +2 -4
- data/stdlib/pty/0/pty.rbs +9 -6
- data/stdlib/random-formatter/0/random-formatter.rbs +277 -0
- data/stdlib/rdoc/0/code_object.rbs +4 -3
- data/stdlib/rdoc/0/comment.rbs +2 -0
- data/stdlib/rdoc/0/options.rbs +76 -0
- data/stdlib/rdoc/0/parser.rbs +1 -1
- data/stdlib/rdoc/0/rdoc.rbs +7 -5
- data/stdlib/rdoc/0/store.rbs +2 -2
- data/stdlib/resolv/0/resolv.rbs +26 -69
- data/stdlib/ripper/0/ripper.rbs +25 -19
- data/stdlib/securerandom/0/manifest.yaml +2 -0
- data/stdlib/securerandom/0/securerandom.rbs +7 -20
- data/stdlib/shellwords/0/shellwords.rbs +3 -3
- data/stdlib/singleton/0/singleton.rbs +6 -0
- data/stdlib/socket/0/addrinfo.rbs +9 -9
- data/stdlib/socket/0/basic_socket.rbs +3 -3
- data/stdlib/socket/0/ip_socket.rbs +10 -8
- data/stdlib/socket/0/socket.rbs +23 -10
- data/stdlib/socket/0/tcp_server.rbs +1 -1
- data/stdlib/socket/0/tcp_socket.rbs +11 -3
- data/stdlib/socket/0/udp_socket.rbs +1 -1
- data/stdlib/socket/0/unix_server.rbs +1 -1
- data/stdlib/stringio/0/stringio.rbs +1211 -96
- data/stdlib/strscan/0/string_scanner.rbs +101 -80
- data/stdlib/tempfile/0/manifest.yaml +3 -0
- data/stdlib/tempfile/0/tempfile.rbs +25 -21
- data/stdlib/time/0/time.rbs +8 -6
- data/stdlib/timeout/0/timeout.rbs +58 -7
- data/stdlib/tsort/0/cyclic.rbs +4 -1
- data/stdlib/tsort/0/interfaces.rbs +8 -8
- data/stdlib/tsort/0/tsort.rbs +16 -15
- data/stdlib/uri/0/common.rbs +42 -20
- data/stdlib/uri/0/file.rbs +3 -3
- data/stdlib/uri/0/generic.rbs +21 -18
- data/stdlib/uri/0/http.rbs +2 -2
- data/stdlib/uri/0/ldap.rbs +2 -2
- data/stdlib/uri/0/mailto.rbs +3 -3
- data/stdlib/uri/0/rfc2396_parser.rbs +12 -12
- data/stdlib/zlib/0/deflate.rbs +4 -3
- data/stdlib/zlib/0/gzip_file.rbs +1 -1
- data/stdlib/zlib/0/gzip_reader.rbs +8 -8
- data/stdlib/zlib/0/gzip_writer.rbs +16 -13
- data/stdlib/zlib/0/inflate.rbs +1 -1
- data/stdlib/zlib/0/need_dict.rbs +1 -1
- data/wasm/README.md +109 -0
- data/wasm/rbs_wasm.c +479 -0
- metadata +133 -19
- data/ext/rbs_extension/lexer.c +0 -2728
- data/ext/rbs_extension/lexer.h +0 -179
- data/ext/rbs_extension/lexer.re +0 -147
- data/ext/rbs_extension/lexstate.c +0 -175
- data/ext/rbs_extension/location.c +0 -325
- data/ext/rbs_extension/location.h +0 -85
- data/ext/rbs_extension/parser.c +0 -2982
- data/ext/rbs_extension/parser.h +0 -18
- data/ext/rbs_extension/parserstate.c +0 -411
- data/ext/rbs_extension/parserstate.h +0 -163
- data/ext/rbs_extension/unescape.c +0 -32
- data/include/rbs/ruby_objs.h +0 -72
- data/src/constants.c +0 -153
- data/src/ruby_objs.c +0 -799
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rbs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 4.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Soutaro Matsumoto
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: logger
|
|
@@ -23,6 +23,34 @@ dependencies:
|
|
|
23
23
|
- - ">="
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
25
|
version: '0'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: prism
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: 1.6.0
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: 1.6.0
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: tsort
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '0'
|
|
26
54
|
description: RBS is the language for type signatures for Ruby and standard library
|
|
27
55
|
definitions.
|
|
28
56
|
email:
|
|
@@ -33,17 +61,30 @@ extensions:
|
|
|
33
61
|
- ext/rbs_extension/extconf.rb
|
|
34
62
|
extra_rdoc_files: []
|
|
35
63
|
files:
|
|
64
|
+
- ".clang-format"
|
|
65
|
+
- ".clangd"
|
|
66
|
+
- ".dockerignore"
|
|
67
|
+
- ".gitattributes"
|
|
36
68
|
- ".github/dependabot.yml"
|
|
69
|
+
- ".github/workflows/bundle-update.yml"
|
|
70
|
+
- ".github/workflows/c-check.yml"
|
|
71
|
+
- ".github/workflows/changelog.yml"
|
|
37
72
|
- ".github/workflows/comments.yml"
|
|
38
73
|
- ".github/workflows/dependabot.yml"
|
|
74
|
+
- ".github/workflows/jruby.yml"
|
|
75
|
+
- ".github/workflows/release-gems.yml"
|
|
39
76
|
- ".github/workflows/ruby.yml"
|
|
77
|
+
- ".github/workflows/rust.yml"
|
|
78
|
+
- ".github/workflows/truffleruby.yml"
|
|
40
79
|
- ".github/workflows/typecheck.yml"
|
|
80
|
+
- ".github/workflows/wasm.yml"
|
|
41
81
|
- ".github/workflows/windows.yml"
|
|
42
82
|
- ".gitignore"
|
|
43
83
|
- ".rubocop.yml"
|
|
44
84
|
- BSDL
|
|
45
85
|
- CHANGELOG.md
|
|
46
86
|
- COPYING
|
|
87
|
+
- Dockerfile.jruby
|
|
47
88
|
- README.md
|
|
48
89
|
- Rakefile
|
|
49
90
|
- Steepfile
|
|
@@ -61,6 +102,7 @@ files:
|
|
|
61
102
|
- core/encoding.rbs
|
|
62
103
|
- core/enumerable.rbs
|
|
63
104
|
- core/enumerator.rbs
|
|
105
|
+
- core/enumerator/arithmetic_sequence.rbs
|
|
64
106
|
- core/enumerator/product.rbs
|
|
65
107
|
- core/env.rbs
|
|
66
108
|
- core/errno.rbs
|
|
@@ -70,6 +112,8 @@ files:
|
|
|
70
112
|
- core/fiber.rbs
|
|
71
113
|
- core/fiber_error.rbs
|
|
72
114
|
- core/file.rbs
|
|
115
|
+
- core/file_constants.rbs
|
|
116
|
+
- core/file_stat.rbs
|
|
73
117
|
- core/file_test.rbs
|
|
74
118
|
- core/float.rbs
|
|
75
119
|
- core/gc.rbs
|
|
@@ -90,6 +134,7 @@ files:
|
|
|
90
134
|
- core/object.rbs
|
|
91
135
|
- core/object_space.rbs
|
|
92
136
|
- core/object_space/weak_key_map.rbs
|
|
137
|
+
- core/pathname.rbs
|
|
93
138
|
- core/proc.rbs
|
|
94
139
|
- core/process.rbs
|
|
95
140
|
- core/ractor.rbs
|
|
@@ -97,11 +142,14 @@ files:
|
|
|
97
142
|
- core/range.rbs
|
|
98
143
|
- core/rational.rbs
|
|
99
144
|
- core/rb_config.rbs
|
|
145
|
+
- core/rbs/ops.rbs
|
|
100
146
|
- core/rbs/unnamed/argf.rbs
|
|
101
147
|
- core/rbs/unnamed/env_class.rbs
|
|
148
|
+
- core/rbs/unnamed/main_class.rbs
|
|
102
149
|
- core/rbs/unnamed/random.rbs
|
|
103
150
|
- core/refinement.rbs
|
|
104
151
|
- core/regexp.rbs
|
|
152
|
+
- core/ruby.rbs
|
|
105
153
|
- core/ruby_vm.rbs
|
|
106
154
|
- core/rubygems/basic_specification.rbs
|
|
107
155
|
- core/rubygems/config_file.rbs
|
|
@@ -131,36 +179,52 @@ files:
|
|
|
131
179
|
- core/unbound_method.rbs
|
|
132
180
|
- core/warning.rbs
|
|
133
181
|
- docs/CONTRIBUTING.md
|
|
182
|
+
- docs/aliases.md
|
|
134
183
|
- docs/architecture.md
|
|
135
184
|
- docs/collection.md
|
|
185
|
+
- docs/config.md
|
|
136
186
|
- docs/data_and_struct.md
|
|
187
|
+
- docs/encoding.md
|
|
137
188
|
- docs/gem.md
|
|
189
|
+
- docs/inline.md
|
|
138
190
|
- docs/rbs_by_example.md
|
|
191
|
+
- docs/release.md
|
|
139
192
|
- docs/repo.md
|
|
193
|
+
- docs/rust.md
|
|
140
194
|
- docs/sigs.md
|
|
141
195
|
- docs/stdlib.md
|
|
142
196
|
- docs/syntax.md
|
|
143
197
|
- docs/tools.md
|
|
198
|
+
- docs/type_fingerprint.md
|
|
199
|
+
- docs/wasm_serialization.md
|
|
144
200
|
- exe/rbs
|
|
201
|
+
- ext/rbs_extension/ast_translation.c
|
|
202
|
+
- ext/rbs_extension/ast_translation.h
|
|
203
|
+
- ext/rbs_extension/class_constants.c
|
|
204
|
+
- ext/rbs_extension/class_constants.h
|
|
205
|
+
- ext/rbs_extension/compat.h
|
|
145
206
|
- ext/rbs_extension/extconf.rb
|
|
146
|
-
- ext/rbs_extension/
|
|
147
|
-
- ext/rbs_extension/
|
|
148
|
-
- ext/rbs_extension/lexer.re
|
|
149
|
-
- ext/rbs_extension/lexstate.c
|
|
150
|
-
- ext/rbs_extension/location.c
|
|
151
|
-
- ext/rbs_extension/location.h
|
|
207
|
+
- ext/rbs_extension/legacy_location.c
|
|
208
|
+
- ext/rbs_extension/legacy_location.h
|
|
152
209
|
- ext/rbs_extension/main.c
|
|
153
|
-
- ext/rbs_extension/parser.c
|
|
154
|
-
- ext/rbs_extension/parser.h
|
|
155
|
-
- ext/rbs_extension/parserstate.c
|
|
156
|
-
- ext/rbs_extension/parserstate.h
|
|
157
210
|
- ext/rbs_extension/rbs_extension.h
|
|
158
|
-
- ext/rbs_extension/
|
|
211
|
+
- ext/rbs_extension/rbs_string_bridging.c
|
|
212
|
+
- ext/rbs_extension/rbs_string_bridging.h
|
|
159
213
|
- goodcheck.yml
|
|
160
214
|
- include/rbs.h
|
|
161
|
-
- include/rbs/
|
|
162
|
-
- include/rbs/
|
|
215
|
+
- include/rbs/ast.h
|
|
216
|
+
- include/rbs/defines.h
|
|
217
|
+
- include/rbs/lexer.h
|
|
218
|
+
- include/rbs/location.h
|
|
219
|
+
- include/rbs/parser.h
|
|
220
|
+
- include/rbs/serialize.h
|
|
221
|
+
- include/rbs/string.h
|
|
222
|
+
- include/rbs/util/rbs_allocator.h
|
|
223
|
+
- include/rbs/util/rbs_assert.h
|
|
224
|
+
- include/rbs/util/rbs_buffer.h
|
|
163
225
|
- include/rbs/util/rbs_constant_pool.h
|
|
226
|
+
- include/rbs/util/rbs_encoding.h
|
|
227
|
+
- include/rbs/util/rbs_unescape.h
|
|
164
228
|
- lib/rbs.rb
|
|
165
229
|
- lib/rbs/ancestor_graph.rb
|
|
166
230
|
- lib/rbs/annotate.rb
|
|
@@ -173,6 +237,12 @@ files:
|
|
|
173
237
|
- lib/rbs/ast/declarations.rb
|
|
174
238
|
- lib/rbs/ast/directives.rb
|
|
175
239
|
- lib/rbs/ast/members.rb
|
|
240
|
+
- lib/rbs/ast/ruby/annotations.rb
|
|
241
|
+
- lib/rbs/ast/ruby/comment_block.rb
|
|
242
|
+
- lib/rbs/ast/ruby/declarations.rb
|
|
243
|
+
- lib/rbs/ast/ruby/helpers/constant_helper.rb
|
|
244
|
+
- lib/rbs/ast/ruby/helpers/location_helper.rb
|
|
245
|
+
- lib/rbs/ast/ruby/members.rb
|
|
176
246
|
- lib/rbs/ast/type_param.rb
|
|
177
247
|
- lib/rbs/ast/visitor.rb
|
|
178
248
|
- lib/rbs/buffer.rb
|
|
@@ -200,12 +270,16 @@ files:
|
|
|
200
270
|
- lib/rbs/definition_builder/method_builder.rb
|
|
201
271
|
- lib/rbs/diff.rb
|
|
202
272
|
- lib/rbs/environment.rb
|
|
273
|
+
- lib/rbs/environment/class_entry.rb
|
|
274
|
+
- lib/rbs/environment/module_entry.rb
|
|
203
275
|
- lib/rbs/environment/use_map.rb
|
|
204
276
|
- lib/rbs/environment_loader.rb
|
|
205
277
|
- lib/rbs/environment_walker.rb
|
|
206
278
|
- lib/rbs/errors.rb
|
|
207
279
|
- lib/rbs/factory.rb
|
|
208
280
|
- lib/rbs/file_finder.rb
|
|
281
|
+
- lib/rbs/inline_parser.rb
|
|
282
|
+
- lib/rbs/inline_parser/comment_association.rb
|
|
209
283
|
- lib/rbs/location_aux.rb
|
|
210
284
|
- lib/rbs/locator.rb
|
|
211
285
|
- lib/rbs/method_type.rb
|
|
@@ -224,7 +298,9 @@ files:
|
|
|
224
298
|
- lib/rbs/repository.rb
|
|
225
299
|
- lib/rbs/resolver/constant_resolver.rb
|
|
226
300
|
- lib/rbs/resolver/type_name_resolver.rb
|
|
301
|
+
- lib/rbs/rewriter.rb
|
|
227
302
|
- lib/rbs/sorter.rb
|
|
303
|
+
- lib/rbs/source.rb
|
|
228
304
|
- lib/rbs/substitution.rb
|
|
229
305
|
- lib/rbs/subtractor.rb
|
|
230
306
|
- lib/rbs/test.rb
|
|
@@ -249,7 +325,13 @@ files:
|
|
|
249
325
|
- lib/rbs/variance_calculator.rb
|
|
250
326
|
- lib/rbs/vendorer.rb
|
|
251
327
|
- lib/rbs/version.rb
|
|
328
|
+
- lib/rbs/wasm/deserializer.rb
|
|
329
|
+
- lib/rbs/wasm/location.rb
|
|
330
|
+
- lib/rbs/wasm/parser.rb
|
|
331
|
+
- lib/rbs/wasm/runtime.rb
|
|
332
|
+
- lib/rbs/wasm/serialization_schema.rb
|
|
252
333
|
- lib/rbs/writer.rb
|
|
334
|
+
- lib/rbs_jars.rb
|
|
253
335
|
- lib/rdoc/discover.rb
|
|
254
336
|
- lib/rdoc_plugin/parser.rb
|
|
255
337
|
- rbs.gemspec
|
|
@@ -269,6 +351,12 @@ files:
|
|
|
269
351
|
- sig/annotate/rdoc_annotater.rbs
|
|
270
352
|
- sig/annotate/rdoc_source.rbs
|
|
271
353
|
- sig/annotation.rbs
|
|
354
|
+
- sig/ast/ruby/annotations.rbs
|
|
355
|
+
- sig/ast/ruby/comment_block.rbs
|
|
356
|
+
- sig/ast/ruby/declarations.rbs
|
|
357
|
+
- sig/ast/ruby/helpers/constant_helper.rbs
|
|
358
|
+
- sig/ast/ruby/helpers/location_helper.rbs
|
|
359
|
+
- sig/ast/ruby/members.rbs
|
|
272
360
|
- sig/buffer.rbs
|
|
273
361
|
- sig/builtin_names.rbs
|
|
274
362
|
- sig/cli.rbs
|
|
@@ -290,11 +378,15 @@ files:
|
|
|
290
378
|
- sig/diff.rbs
|
|
291
379
|
- sig/directives.rbs
|
|
292
380
|
- sig/environment.rbs
|
|
381
|
+
- sig/environment/class_entry.rbs
|
|
382
|
+
- sig/environment/module_entry.rbs
|
|
293
383
|
- sig/environment_loader.rbs
|
|
294
384
|
- sig/environment_walker.rbs
|
|
295
385
|
- sig/errors.rbs
|
|
296
386
|
- sig/factory.rbs
|
|
297
387
|
- sig/file_finder.rbs
|
|
388
|
+
- sig/inline_parser.rbs
|
|
389
|
+
- sig/inline_parser/comment_association.rbs
|
|
298
390
|
- sig/location.rbs
|
|
299
391
|
- sig/locator.rbs
|
|
300
392
|
- sig/manifest.yaml
|
|
@@ -314,10 +406,12 @@ files:
|
|
|
314
406
|
- sig/resolver/constant_resolver.rbs
|
|
315
407
|
- sig/resolver/context.rbs
|
|
316
408
|
- sig/resolver/type_name_resolver.rbs
|
|
409
|
+
- sig/rewriter.rbs
|
|
317
410
|
- sig/shims/bundler.rbs
|
|
318
411
|
- sig/shims/enumerable.rbs
|
|
319
412
|
- sig/shims/rubygems.rbs
|
|
320
413
|
- sig/sorter.rbs
|
|
414
|
+
- sig/source.rbs
|
|
321
415
|
- sig/substitution.rbs
|
|
322
416
|
- sig/subtractor.rbs
|
|
323
417
|
- sig/test.rbs
|
|
@@ -340,10 +434,23 @@ files:
|
|
|
340
434
|
- sig/vendorer.rbs
|
|
341
435
|
- sig/version.rbs
|
|
342
436
|
- sig/visitor.rbs
|
|
437
|
+
- sig/wasm/deserializer.rbs
|
|
438
|
+
- sig/wasm/serialization_schema.rbs
|
|
343
439
|
- sig/writer.rbs
|
|
344
|
-
- src/
|
|
345
|
-
- src/
|
|
440
|
+
- src/ast.c
|
|
441
|
+
- src/lexer.c
|
|
442
|
+
- src/lexer.re
|
|
443
|
+
- src/lexstate.c
|
|
444
|
+
- src/location.c
|
|
445
|
+
- src/parser.c
|
|
446
|
+
- src/serialize.c
|
|
447
|
+
- src/string.c
|
|
448
|
+
- src/util/rbs_allocator.c
|
|
449
|
+
- src/util/rbs_assert.c
|
|
450
|
+
- src/util/rbs_buffer.c
|
|
346
451
|
- src/util/rbs_constant_pool.c
|
|
452
|
+
- src/util/rbs_encoding.c
|
|
453
|
+
- src/util/rbs_unescape.c
|
|
347
454
|
- stdlib/abbrev/0/abbrev.rbs
|
|
348
455
|
- stdlib/abbrev/0/array.rbs
|
|
349
456
|
- stdlib/base64/0/base64.rbs
|
|
@@ -351,6 +458,7 @@ files:
|
|
|
351
458
|
- stdlib/bigdecimal-math/0/big_math.rbs
|
|
352
459
|
- stdlib/bigdecimal-math/0/manifest.yaml
|
|
353
460
|
- stdlib/bigdecimal/0/big_decimal.rbs
|
|
461
|
+
- stdlib/cgi-escape/0/escape.rbs
|
|
354
462
|
- stdlib/cgi/0/core.rbs
|
|
355
463
|
- stdlib/cgi/0/manifest.yaml
|
|
356
464
|
- stdlib/coverage/0/coverage.rbs
|
|
@@ -446,10 +554,12 @@ files:
|
|
|
446
554
|
- stdlib/psych/0/psych.rbs
|
|
447
555
|
- stdlib/psych/0/store.rbs
|
|
448
556
|
- stdlib/pty/0/pty.rbs
|
|
557
|
+
- stdlib/random-formatter/0/random-formatter.rbs
|
|
449
558
|
- stdlib/rdoc/0/code_object.rbs
|
|
450
559
|
- stdlib/rdoc/0/comment.rbs
|
|
451
560
|
- stdlib/rdoc/0/context.rbs
|
|
452
561
|
- stdlib/rdoc/0/markup.rbs
|
|
562
|
+
- stdlib/rdoc/0/options.rbs
|
|
453
563
|
- stdlib/rdoc/0/parser.rbs
|
|
454
564
|
- stdlib/rdoc/0/rdoc.rbs
|
|
455
565
|
- stdlib/rdoc/0/ri.rbs
|
|
@@ -458,6 +568,7 @@ files:
|
|
|
458
568
|
- stdlib/resolv/0/manifest.yaml
|
|
459
569
|
- stdlib/resolv/0/resolv.rbs
|
|
460
570
|
- stdlib/ripper/0/ripper.rbs
|
|
571
|
+
- stdlib/securerandom/0/manifest.yaml
|
|
461
572
|
- stdlib/securerandom/0/securerandom.rbs
|
|
462
573
|
- stdlib/shellwords/0/shellwords.rbs
|
|
463
574
|
- stdlib/singleton/0/singleton.rbs
|
|
@@ -474,6 +585,7 @@ files:
|
|
|
474
585
|
- stdlib/socket/0/unix_socket.rbs
|
|
475
586
|
- stdlib/stringio/0/stringio.rbs
|
|
476
587
|
- stdlib/strscan/0/string_scanner.rbs
|
|
588
|
+
- stdlib/tempfile/0/manifest.yaml
|
|
477
589
|
- stdlib/tempfile/0/tempfile.rbs
|
|
478
590
|
- stdlib/time/0/time.rbs
|
|
479
591
|
- stdlib/timeout/0/timeout.rbs
|
|
@@ -515,6 +627,8 @@ files:
|
|
|
515
627
|
- stdlib/zlib/0/version_error.rbs
|
|
516
628
|
- stdlib/zlib/0/zlib.rbs
|
|
517
629
|
- stdlib/zlib/0/zstream.rbs
|
|
630
|
+
- wasm/README.md
|
|
631
|
+
- wasm/rbs_wasm.c
|
|
518
632
|
homepage: https://github.com/ruby/rbs
|
|
519
633
|
licenses:
|
|
520
634
|
- BSD-2-Clause
|
|
@@ -530,14 +644,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
530
644
|
requirements:
|
|
531
645
|
- - ">="
|
|
532
646
|
- !ruby/object:Gem::Version
|
|
533
|
-
version: '3.
|
|
647
|
+
version: '3.3'
|
|
534
648
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
535
649
|
requirements:
|
|
536
650
|
- - ">="
|
|
537
651
|
- !ruby/object:Gem::Version
|
|
538
652
|
version: '0'
|
|
539
653
|
requirements: []
|
|
540
|
-
rubygems_version:
|
|
654
|
+
rubygems_version: 4.0.19
|
|
541
655
|
specification_version: 4
|
|
542
656
|
summary: Type signature for Ruby.
|
|
543
657
|
test_files: []
|