rbs 0.14.0 → 0.18.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/ruby.yml +8 -4
- data/CHANGELOG.md +35 -0
- data/Gemfile +1 -0
- data/README.md +1 -1
- data/Rakefile +19 -1
- data/Steepfile +0 -1
- data/bin/test_runner.rb +15 -1
- data/{stdlib/builtin → core}/array.rbs +124 -120
- data/{stdlib/builtin → core}/basic_object.rbs +0 -0
- data/{stdlib/builtin → core}/binding.rbs +0 -0
- data/core/builtin.rbs +70 -0
- data/{stdlib/builtin → core}/class.rbs +0 -0
- data/{stdlib/builtin → core}/comparable.rbs +0 -0
- data/{stdlib/builtin → core}/complex.rbs +0 -0
- data/{stdlib/builtin → core}/constants.rbs +0 -0
- data/{stdlib/builtin → core}/data.rbs +0 -0
- data/{stdlib/builtin → core}/deprecated.rbs +0 -0
- data/{stdlib/builtin → core}/dir.rbs +1 -1
- data/{stdlib/builtin → core}/encoding.rbs +0 -0
- data/{stdlib/builtin → core}/enumerable.rbs +67 -60
- data/{stdlib/builtin → core}/enumerator.rbs +5 -5
- data/{stdlib/builtin → core}/errno.rbs +0 -0
- data/{stdlib/builtin → core}/errors.rbs +1 -1
- data/{stdlib/builtin → core}/exception.rbs +0 -0
- data/{stdlib/builtin → core}/false_class.rbs +0 -0
- data/{stdlib/builtin → core}/fiber.rbs +0 -0
- data/{stdlib/builtin → core}/fiber_error.rbs +0 -0
- data/{stdlib/builtin → core}/file.rbs +0 -0
- data/{stdlib/builtin → core}/file_test.rbs +0 -0
- data/{stdlib/builtin → core}/float.rbs +0 -0
- data/{stdlib/builtin → core}/gc.rbs +2 -2
- data/{stdlib/builtin → core}/hash.rbs +15 -15
- data/{stdlib/builtin → core}/integer.rbs +0 -0
- data/{stdlib/builtin → core}/io.rbs +6 -6
- data/{stdlib/builtin → core}/kernel.rbs +1 -85
- data/{stdlib/builtin → core}/marshal.rbs +0 -0
- data/{stdlib/builtin → core}/match_data.rbs +0 -0
- data/{stdlib/builtin → core}/math.rbs +0 -0
- data/{stdlib/builtin → core}/method.rbs +0 -0
- data/{stdlib/builtin → core}/module.rbs +13 -13
- data/{stdlib/builtin → core}/nil_class.rbs +0 -0
- data/{stdlib/builtin → core}/numeric.rbs +0 -0
- data/{stdlib/builtin → core}/object.rbs +1 -1
- data/core/object_space.rbs +98 -0
- data/{stdlib/builtin → core}/proc.rbs +0 -0
- data/{stdlib/builtin → core}/process.rbs +0 -0
- data/{stdlib/builtin → core}/random.rbs +1 -1
- data/{stdlib/builtin → core}/range.rbs +3 -3
- data/{stdlib/builtin → core}/rational.rbs +0 -0
- data/{stdlib/builtin → core}/rb_config.rbs +0 -0
- data/{stdlib/builtin → core}/regexp.rbs +0 -0
- data/{stdlib/builtin → core}/ruby_vm.rbs +0 -0
- data/{stdlib/builtin → core}/signal.rbs +0 -0
- data/{stdlib/builtin → core}/string.rbs +6 -6
- data/{stdlib/builtin → core}/string_io.rbs +7 -7
- data/{stdlib/builtin → core}/struct.rbs +2 -2
- data/{stdlib/builtin → core}/symbol.rbs +1 -1
- data/{stdlib/builtin → core}/thread.rbs +4 -4
- data/{stdlib/builtin → core}/thread_group.rbs +0 -0
- data/{stdlib/builtin → core}/time.rbs +0 -0
- data/{stdlib/builtin → core}/trace_point.rbs +0 -0
- data/{stdlib/builtin → core}/true_class.rbs +1 -1
- data/{stdlib/builtin → core}/unbound_method.rbs +0 -0
- data/{stdlib/builtin → core}/warning.rbs +0 -0
- data/docs/repo.md +125 -0
- data/docs/syntax.md +50 -6
- data/lib/rbs.rb +1 -0
- data/lib/rbs/cli.rb +105 -103
- data/lib/rbs/definition.rb +9 -4
- data/lib/rbs/definition_builder.rb +50 -17
- data/lib/rbs/environment_loader.rb +79 -105
- data/lib/rbs/environment_walker.rb +70 -35
- data/lib/rbs/parser.rb +404 -397
- data/lib/rbs/parser.y +18 -9
- data/lib/rbs/prototype/rb.rb +186 -25
- data/lib/rbs/prototype/runtime.rb +18 -7
- data/lib/rbs/repository.rb +121 -0
- data/lib/rbs/test/hook.rb +27 -15
- data/lib/rbs/test/setup.rb +5 -3
- data/lib/rbs/test/tester.rb +4 -1
- data/lib/rbs/test/type_check.rb +16 -5
- data/lib/rbs/type_name.rb +2 -1
- data/lib/rbs/vendorer.rb +38 -16
- data/lib/rbs/version.rb +1 -1
- data/sig/cli.rbs +58 -0
- data/sig/constant_table.rbs +1 -1
- data/sig/declarations.rbs +1 -1
- data/sig/definition.rbs +9 -4
- data/sig/definition_builder.rbs +4 -1
- data/sig/environment_loader.rbs +92 -46
- data/sig/members.rbs +2 -2
- data/sig/method_types.rbs +1 -1
- data/sig/namespace.rbs +1 -1
- data/sig/polyfill.rbs +42 -0
- data/sig/rbs.rbs +8 -0
- data/sig/repository.rbs +79 -0
- data/sig/vendorer.rbs +44 -0
- data/stdlib/abbrev/{abbrev.rbs → 0/abbrev.rbs} +0 -0
- data/stdlib/base64/{base64.rbs → 0/base64.rbs} +1 -1
- data/stdlib/benchmark/{benchmark.rbs → 0/benchmark.rbs} +0 -0
- data/stdlib/{bigdecimal/math → bigdecimal-math/0}/big_math.rbs +0 -0
- data/stdlib/bigdecimal/{big_decimal.rbs → 0/big_decimal.rbs} +0 -0
- data/stdlib/coverage/{coverage.rbs → 0/coverage.rbs} +2 -2
- data/stdlib/csv/{csv.rbs → 0/csv.rbs} +4 -4
- data/stdlib/date/{date.rbs → 0/date.rbs} +2 -2
- data/stdlib/date/{date_time.rbs → 0/date_time.rbs} +1 -1
- data/stdlib/dbm/0/dbm.rbs +277 -0
- data/stdlib/erb/{erb.rbs → 0/erb.rbs} +0 -0
- data/stdlib/fiber/{fiber.rbs → 0/fiber.rbs} +0 -0
- data/stdlib/find/{find.rbs → 0/find.rbs} +2 -2
- data/stdlib/forwardable/{forwardable.rbs → 0/forwardable.rbs} +0 -0
- data/stdlib/ipaddr/{ipaddr.rbs → 0/ipaddr.rbs} +0 -0
- data/stdlib/json/{json.rbs → 0/json.rbs} +0 -0
- data/stdlib/logger/{formatter.rbs → 0/formatter.rbs} +0 -0
- data/stdlib/logger/{log_device.rbs → 0/log_device.rbs} +1 -1
- data/stdlib/logger/{logger.rbs → 0/logger.rbs} +1 -1
- data/stdlib/logger/{period.rbs → 0/period.rbs} +0 -0
- data/stdlib/logger/{severity.rbs → 0/severity.rbs} +0 -0
- data/stdlib/mutex_m/{mutex_m.rbs → 0/mutex_m.rbs} +0 -0
- data/stdlib/pathname/{pathname.rbs → 0/pathname.rbs} +39 -39
- data/stdlib/prime/{integer-extension.rbs → 0/integer-extension.rbs} +0 -0
- data/stdlib/prime/{prime.rbs → 0/prime.rbs} +1 -1
- data/stdlib/pstore/0/pstore.rbs +287 -0
- data/stdlib/pty/{pty.rbs → 0/pty.rbs} +1 -1
- data/stdlib/securerandom/{securerandom.rbs → 0/securerandom.rbs} +0 -0
- data/stdlib/set/{set.rbs → 0/set.rbs} +10 -10
- data/stdlib/singleton/0/singleton.rbs +111 -0
- data/stdlib/tmpdir/{tmpdir.rbs → 0/tmpdir.rbs} +0 -0
- data/stdlib/tsort/0/cyclic.rbs +4 -0
- data/stdlib/tsort/0/interfaces.rbs +19 -0
- data/stdlib/tsort/0/tsort.rbs +363 -0
- data/stdlib/uri/{file.rbs → 0/file.rbs} +0 -0
- data/stdlib/uri/{generic.rbs → 0/generic.rbs} +1 -1
- data/stdlib/uri/{http.rbs → 0/http.rbs} +0 -0
- data/stdlib/uri/{https.rbs → 0/https.rbs} +0 -0
- data/stdlib/uri/{ldap.rbs → 0/ldap.rbs} +0 -0
- data/stdlib/uri/{ldaps.rbs → 0/ldaps.rbs} +0 -0
- data/stdlib/yaml/0/dbm.rbs +221 -0
- data/stdlib/yaml/0/store.rbs +53 -0
- data/stdlib/zlib/{zlib.rbs → 0/zlib.rbs} +0 -0
- data/steep/Gemfile.lock +9 -9
- metadata +108 -94
- data/stdlib/builtin/builtin.rbs +0 -42
@@ -0,0 +1,53 @@
|
|
1
|
+
# YAML::Store provides the same functionality as PStore, except it uses YAML to
|
2
|
+
# dump objects instead of Marshal.
|
3
|
+
#
|
4
|
+
# ## Example
|
5
|
+
#
|
6
|
+
# require 'yaml/store'
|
7
|
+
#
|
8
|
+
# Person = Struct.new :first_name, :last_name
|
9
|
+
#
|
10
|
+
# people = [Person.new("Bob", "Smith"), Person.new("Mary", "Johnson")]
|
11
|
+
#
|
12
|
+
# store = YAML::Store.new "test.store"
|
13
|
+
#
|
14
|
+
# store.transaction do
|
15
|
+
# store["people"] = people
|
16
|
+
# store["greeting"] = { "hello" => "world" }
|
17
|
+
# end
|
18
|
+
#
|
19
|
+
# After running the above code, the contents of "test.store" will be:
|
20
|
+
#
|
21
|
+
# ---
|
22
|
+
# people:
|
23
|
+
# - !ruby/struct:Person
|
24
|
+
# first_name: Bob
|
25
|
+
# last_name: Smith
|
26
|
+
# - !ruby/struct:Person
|
27
|
+
# first_name: Mary
|
28
|
+
# last_name: Johnson
|
29
|
+
# greeting:
|
30
|
+
# hello: world
|
31
|
+
#
|
32
|
+
class YAML::Store < ::PStore
|
33
|
+
# Creates a new YAML::Store object, which will store data in `file_name`. If the
|
34
|
+
# file does not already exist, it will be created.
|
35
|
+
#
|
36
|
+
# YAML::Store objects are always reentrant. But if *thread_safe* is set to true,
|
37
|
+
# then it will become thread-safe at the cost of a minor performance hit.
|
38
|
+
#
|
39
|
+
# Options passed in through `yaml_opts` will be used when converting the store
|
40
|
+
# to YAML via Hash#to_yaml().
|
41
|
+
#
|
42
|
+
def initialize: (*untyped o) -> YAML::Store
|
43
|
+
|
44
|
+
def dump: (untyped table) -> String
|
45
|
+
|
46
|
+
def empty_marshal_checksum: () -> String
|
47
|
+
|
48
|
+
def empty_marshal_data: () -> String
|
49
|
+
|
50
|
+
def load: (String) -> untyped
|
51
|
+
|
52
|
+
def marshal_dump_supports_canonical_option?: () -> ::FalseClass
|
53
|
+
end
|
File without changes
|
data/steep/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activesupport (6.0.3.
|
4
|
+
activesupport (6.0.3.4)
|
5
5
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
6
6
|
i18n (>= 0.7, < 2)
|
7
7
|
minitest (~> 5.1)
|
@@ -15,31 +15,31 @@ GEM
|
|
15
15
|
ffi (1.13.1)
|
16
16
|
i18n (1.8.5)
|
17
17
|
concurrent-ruby (~> 1.0)
|
18
|
-
language_server-protocol (3.
|
18
|
+
language_server-protocol (3.15.0.1)
|
19
19
|
listen (3.2.1)
|
20
20
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
21
21
|
rb-inotify (~> 0.9, >= 0.9.10)
|
22
22
|
minitest (5.14.2)
|
23
|
-
parser (2.7.
|
23
|
+
parser (2.7.2.0)
|
24
24
|
ast (~> 2.4.1)
|
25
25
|
rainbow (3.0.0)
|
26
26
|
rb-fsevent (0.10.4)
|
27
27
|
rb-inotify (0.10.1)
|
28
28
|
ffi (~> 1.0)
|
29
|
-
rbs (0.
|
30
|
-
steep (0.
|
29
|
+
rbs (0.14.0)
|
30
|
+
steep (0.34.0)
|
31
31
|
activesupport (>= 5.1)
|
32
32
|
ast_utils (~> 0.3.0)
|
33
|
-
language_server-protocol (~> 3.
|
34
|
-
listen (~> 3.
|
33
|
+
language_server-protocol (~> 3.15.0.1)
|
34
|
+
listen (~> 3.0)
|
35
35
|
parser (~> 2.7.0)
|
36
36
|
rainbow (>= 2.2.2, < 4.0)
|
37
|
-
rbs (~> 0.
|
37
|
+
rbs (~> 0.14.0)
|
38
38
|
thor (1.0.1)
|
39
39
|
thread_safe (0.3.6)
|
40
40
|
tzinfo (1.2.7)
|
41
41
|
thread_safe (~> 0.1)
|
42
|
-
zeitwerk (2.4.
|
42
|
+
zeitwerk (2.4.1)
|
43
43
|
|
44
44
|
PLATFORMS
|
45
45
|
ruby
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.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: 2020-
|
11
|
+
date: 2020-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: RBS is the language for type signatures for Ruby and standard library
|
14
14
|
definitions.
|
@@ -38,7 +38,65 @@ files:
|
|
38
38
|
- bin/sort
|
39
39
|
- bin/steep
|
40
40
|
- bin/test_runner.rb
|
41
|
+
- core/array.rbs
|
42
|
+
- core/basic_object.rbs
|
43
|
+
- core/binding.rbs
|
44
|
+
- core/builtin.rbs
|
45
|
+
- core/class.rbs
|
46
|
+
- core/comparable.rbs
|
47
|
+
- core/complex.rbs
|
48
|
+
- core/constants.rbs
|
49
|
+
- core/data.rbs
|
50
|
+
- core/deprecated.rbs
|
51
|
+
- core/dir.rbs
|
52
|
+
- core/encoding.rbs
|
53
|
+
- core/enumerable.rbs
|
54
|
+
- core/enumerator.rbs
|
55
|
+
- core/errno.rbs
|
56
|
+
- core/errors.rbs
|
57
|
+
- core/exception.rbs
|
58
|
+
- core/false_class.rbs
|
59
|
+
- core/fiber.rbs
|
60
|
+
- core/fiber_error.rbs
|
61
|
+
- core/file.rbs
|
62
|
+
- core/file_test.rbs
|
63
|
+
- core/float.rbs
|
64
|
+
- core/gc.rbs
|
65
|
+
- core/hash.rbs
|
66
|
+
- core/integer.rbs
|
67
|
+
- core/io.rbs
|
68
|
+
- core/kernel.rbs
|
69
|
+
- core/marshal.rbs
|
70
|
+
- core/match_data.rbs
|
71
|
+
- core/math.rbs
|
72
|
+
- core/method.rbs
|
73
|
+
- core/module.rbs
|
74
|
+
- core/nil_class.rbs
|
75
|
+
- core/numeric.rbs
|
76
|
+
- core/object.rbs
|
77
|
+
- core/object_space.rbs
|
78
|
+
- core/proc.rbs
|
79
|
+
- core/process.rbs
|
80
|
+
- core/random.rbs
|
81
|
+
- core/range.rbs
|
82
|
+
- core/rational.rbs
|
83
|
+
- core/rb_config.rbs
|
84
|
+
- core/regexp.rbs
|
85
|
+
- core/ruby_vm.rbs
|
86
|
+
- core/signal.rbs
|
87
|
+
- core/string.rbs
|
88
|
+
- core/string_io.rbs
|
89
|
+
- core/struct.rbs
|
90
|
+
- core/symbol.rbs
|
91
|
+
- core/thread.rbs
|
92
|
+
- core/thread_group.rbs
|
93
|
+
- core/time.rbs
|
94
|
+
- core/trace_point.rbs
|
95
|
+
- core/true_class.rbs
|
96
|
+
- core/unbound_method.rbs
|
97
|
+
- core/warning.rbs
|
41
98
|
- docs/CONTRIBUTING.md
|
99
|
+
- docs/repo.md
|
42
100
|
- docs/sigs.md
|
43
101
|
- docs/stdlib.md
|
44
102
|
- docs/syntax.md
|
@@ -69,6 +127,7 @@ files:
|
|
69
127
|
- lib/rbs/prototype/rb.rb
|
70
128
|
- lib/rbs/prototype/rbi.rb
|
71
129
|
- lib/rbs/prototype/runtime.rb
|
130
|
+
- lib/rbs/repository.rb
|
72
131
|
- lib/rbs/substitution.rb
|
73
132
|
- lib/rbs/test.rb
|
74
133
|
- lib/rbs/test/errors.rb
|
@@ -100,6 +159,7 @@ files:
|
|
100
159
|
- sig/annotation.rbs
|
101
160
|
- sig/buffer.rbs
|
102
161
|
- sig/builtin_names.rbs
|
162
|
+
- sig/cli.rbs
|
103
163
|
- sig/comment.rbs
|
104
164
|
- sig/constant.rbs
|
105
165
|
- sig/constant_table.rbs
|
@@ -115,105 +175,59 @@ files:
|
|
115
175
|
- sig/parser.rbs
|
116
176
|
- sig/polyfill.rbs
|
117
177
|
- sig/rbs.rbs
|
178
|
+
- sig/repository.rbs
|
118
179
|
- sig/substitution.rbs
|
119
180
|
- sig/type_name_resolver.rbs
|
120
181
|
- sig/typename.rbs
|
121
182
|
- sig/types.rbs
|
122
183
|
- sig/util.rbs
|
123
184
|
- sig/variance_calculator.rbs
|
185
|
+
- sig/vendorer.rbs
|
124
186
|
- sig/version.rbs
|
125
187
|
- sig/writer.rbs
|
126
|
-
- stdlib/abbrev/abbrev.rbs
|
127
|
-
- stdlib/base64/base64.rbs
|
128
|
-
- stdlib/benchmark/benchmark.rbs
|
129
|
-
- stdlib/bigdecimal/
|
130
|
-
- stdlib/bigdecimal/
|
131
|
-
- stdlib/
|
132
|
-
- stdlib/
|
133
|
-
- stdlib/
|
134
|
-
- stdlib/
|
135
|
-
- stdlib/
|
136
|
-
- stdlib/
|
137
|
-
- stdlib/
|
138
|
-
- stdlib/
|
139
|
-
- stdlib/
|
140
|
-
- stdlib/
|
141
|
-
- stdlib/
|
142
|
-
- stdlib/
|
143
|
-
- stdlib/
|
144
|
-
- stdlib/
|
145
|
-
- stdlib/
|
146
|
-
- stdlib/
|
147
|
-
- stdlib/
|
148
|
-
- stdlib/
|
149
|
-
- stdlib/
|
150
|
-
- stdlib/
|
151
|
-
- stdlib/
|
152
|
-
- stdlib/
|
153
|
-
- stdlib/
|
154
|
-
- stdlib/
|
155
|
-
- stdlib/
|
156
|
-
- stdlib/
|
157
|
-
- stdlib/
|
158
|
-
- stdlib/
|
159
|
-
- stdlib/
|
160
|
-
- stdlib/
|
161
|
-
- stdlib/
|
162
|
-
- stdlib/
|
163
|
-
- stdlib/
|
164
|
-
- stdlib/
|
165
|
-
- stdlib/
|
166
|
-
- stdlib/
|
167
|
-
- stdlib/
|
168
|
-
- stdlib/
|
169
|
-
- stdlib/builtin/random.rbs
|
170
|
-
- stdlib/builtin/range.rbs
|
171
|
-
- stdlib/builtin/rational.rbs
|
172
|
-
- stdlib/builtin/rb_config.rbs
|
173
|
-
- stdlib/builtin/regexp.rbs
|
174
|
-
- stdlib/builtin/ruby_vm.rbs
|
175
|
-
- stdlib/builtin/signal.rbs
|
176
|
-
- stdlib/builtin/string.rbs
|
177
|
-
- stdlib/builtin/string_io.rbs
|
178
|
-
- stdlib/builtin/struct.rbs
|
179
|
-
- stdlib/builtin/symbol.rbs
|
180
|
-
- stdlib/builtin/thread.rbs
|
181
|
-
- stdlib/builtin/thread_group.rbs
|
182
|
-
- stdlib/builtin/time.rbs
|
183
|
-
- stdlib/builtin/trace_point.rbs
|
184
|
-
- stdlib/builtin/true_class.rbs
|
185
|
-
- stdlib/builtin/unbound_method.rbs
|
186
|
-
- stdlib/builtin/warning.rbs
|
187
|
-
- stdlib/coverage/coverage.rbs
|
188
|
-
- stdlib/csv/csv.rbs
|
189
|
-
- stdlib/date/date.rbs
|
190
|
-
- stdlib/date/date_time.rbs
|
191
|
-
- stdlib/erb/erb.rbs
|
192
|
-
- stdlib/fiber/fiber.rbs
|
193
|
-
- stdlib/find/find.rbs
|
194
|
-
- stdlib/forwardable/forwardable.rbs
|
195
|
-
- stdlib/ipaddr/ipaddr.rbs
|
196
|
-
- stdlib/json/json.rbs
|
197
|
-
- stdlib/logger/formatter.rbs
|
198
|
-
- stdlib/logger/log_device.rbs
|
199
|
-
- stdlib/logger/logger.rbs
|
200
|
-
- stdlib/logger/period.rbs
|
201
|
-
- stdlib/logger/severity.rbs
|
202
|
-
- stdlib/mutex_m/mutex_m.rbs
|
203
|
-
- stdlib/pathname/pathname.rbs
|
204
|
-
- stdlib/prime/integer-extension.rbs
|
205
|
-
- stdlib/prime/prime.rbs
|
206
|
-
- stdlib/pty/pty.rbs
|
207
|
-
- stdlib/securerandom/securerandom.rbs
|
208
|
-
- stdlib/set/set.rbs
|
209
|
-
- stdlib/tmpdir/tmpdir.rbs
|
210
|
-
- stdlib/uri/file.rbs
|
211
|
-
- stdlib/uri/generic.rbs
|
212
|
-
- stdlib/uri/http.rbs
|
213
|
-
- stdlib/uri/https.rbs
|
214
|
-
- stdlib/uri/ldap.rbs
|
215
|
-
- stdlib/uri/ldaps.rbs
|
216
|
-
- stdlib/zlib/zlib.rbs
|
188
|
+
- stdlib/abbrev/0/abbrev.rbs
|
189
|
+
- stdlib/base64/0/base64.rbs
|
190
|
+
- stdlib/benchmark/0/benchmark.rbs
|
191
|
+
- stdlib/bigdecimal-math/0/big_math.rbs
|
192
|
+
- stdlib/bigdecimal/0/big_decimal.rbs
|
193
|
+
- stdlib/coverage/0/coverage.rbs
|
194
|
+
- stdlib/csv/0/csv.rbs
|
195
|
+
- stdlib/date/0/date.rbs
|
196
|
+
- stdlib/date/0/date_time.rbs
|
197
|
+
- stdlib/dbm/0/dbm.rbs
|
198
|
+
- stdlib/erb/0/erb.rbs
|
199
|
+
- stdlib/fiber/0/fiber.rbs
|
200
|
+
- stdlib/find/0/find.rbs
|
201
|
+
- stdlib/forwardable/0/forwardable.rbs
|
202
|
+
- stdlib/ipaddr/0/ipaddr.rbs
|
203
|
+
- stdlib/json/0/json.rbs
|
204
|
+
- stdlib/logger/0/formatter.rbs
|
205
|
+
- stdlib/logger/0/log_device.rbs
|
206
|
+
- stdlib/logger/0/logger.rbs
|
207
|
+
- stdlib/logger/0/period.rbs
|
208
|
+
- stdlib/logger/0/severity.rbs
|
209
|
+
- stdlib/mutex_m/0/mutex_m.rbs
|
210
|
+
- stdlib/pathname/0/pathname.rbs
|
211
|
+
- stdlib/prime/0/integer-extension.rbs
|
212
|
+
- stdlib/prime/0/prime.rbs
|
213
|
+
- stdlib/pstore/0/pstore.rbs
|
214
|
+
- stdlib/pty/0/pty.rbs
|
215
|
+
- stdlib/securerandom/0/securerandom.rbs
|
216
|
+
- stdlib/set/0/set.rbs
|
217
|
+
- stdlib/singleton/0/singleton.rbs
|
218
|
+
- stdlib/tmpdir/0/tmpdir.rbs
|
219
|
+
- stdlib/tsort/0/cyclic.rbs
|
220
|
+
- stdlib/tsort/0/interfaces.rbs
|
221
|
+
- stdlib/tsort/0/tsort.rbs
|
222
|
+
- stdlib/uri/0/file.rbs
|
223
|
+
- stdlib/uri/0/generic.rbs
|
224
|
+
- stdlib/uri/0/http.rbs
|
225
|
+
- stdlib/uri/0/https.rbs
|
226
|
+
- stdlib/uri/0/ldap.rbs
|
227
|
+
- stdlib/uri/0/ldaps.rbs
|
228
|
+
- stdlib/yaml/0/dbm.rbs
|
229
|
+
- stdlib/yaml/0/store.rbs
|
230
|
+
- stdlib/zlib/0/zlib.rbs
|
217
231
|
- steep/Gemfile
|
218
232
|
- steep/Gemfile.lock
|
219
233
|
homepage: https://github.com/ruby/rbs
|
@@ -239,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
253
|
- !ruby/object:Gem::Version
|
240
254
|
version: '0'
|
241
255
|
requirements: []
|
242
|
-
rubygems_version: 3.
|
256
|
+
rubygems_version: 3.2.0.rc.2
|
243
257
|
signing_key:
|
244
258
|
specification_version: 4
|
245
259
|
summary: Type signature for Ruby.
|
data/stdlib/builtin/builtin.rbs
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
interface _ToI
|
2
|
-
def to_i: -> Integer
|
3
|
-
end
|
4
|
-
|
5
|
-
interface _ToInt
|
6
|
-
def to_int: -> Integer
|
7
|
-
end
|
8
|
-
|
9
|
-
interface _ToS
|
10
|
-
def to_s: -> String
|
11
|
-
end
|
12
|
-
|
13
|
-
interface _ToStr
|
14
|
-
def to_str: () -> String
|
15
|
-
end
|
16
|
-
|
17
|
-
interface _ToHash[K, V]
|
18
|
-
def to_hash: () -> Hash[K, V]
|
19
|
-
end
|
20
|
-
|
21
|
-
interface _ToProc
|
22
|
-
def to_proc: () -> untyped
|
23
|
-
end
|
24
|
-
|
25
|
-
interface _ToPath
|
26
|
-
def to_path: () -> String
|
27
|
-
end
|
28
|
-
|
29
|
-
interface _Each[out A, out B]
|
30
|
-
def each: { (A) -> void } -> B
|
31
|
-
end
|
32
|
-
|
33
|
-
interface _Exception
|
34
|
-
def exception: () -> Exception
|
35
|
-
| (String arg0) -> Exception
|
36
|
-
end
|
37
|
-
|
38
|
-
type int = Integer | _ToInt
|
39
|
-
type real = Integer | Float | Rational
|
40
|
-
|
41
|
-
type string = String | _ToStr
|
42
|
-
type encoding = Encoding | string
|