rbs 1.0.6 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +2 -2
  3. data/CHANGELOG.md +37 -0
  4. data/Rakefile +3 -2
  5. data/Steepfile +2 -0
  6. data/bin/rbs-prof +1 -1
  7. data/core/array.rbs +8 -4
  8. data/core/thread.rbs +14 -1
  9. data/lib/rbs.rb +3 -0
  10. data/lib/rbs/ancestor_graph.rb +90 -0
  11. data/lib/rbs/char_scanner.rb +20 -0
  12. data/lib/rbs/definition_builder.rb +38 -20
  13. data/lib/rbs/definition_builder/method_builder.rb +14 -0
  14. data/lib/rbs/environment.rb +42 -5
  15. data/lib/rbs/environment_walker.rb +4 -4
  16. data/lib/rbs/errors.rb +32 -17
  17. data/lib/rbs/parser.rb +437 -416
  18. data/lib/rbs/parser.y +29 -16
  19. data/lib/rbs/test/type_check.rb +7 -3
  20. data/lib/rbs/version.rb +1 -1
  21. data/sig/ancestor_graph.rbs +40 -0
  22. data/sig/char_scanner.rbs +9 -0
  23. data/sig/definition_builder.rbs +5 -1
  24. data/sig/environment.rbs +22 -2
  25. data/sig/environment_walker.rbs +39 -0
  26. data/sig/errors.rbs +42 -17
  27. data/sig/method_builder.rbs +2 -0
  28. data/sig/parser.rbs +11 -4
  29. data/sig/polyfill.rbs +0 -14
  30. data/stdlib/cgi/0/core.rbs +595 -0
  31. data/stdlib/rubygems/0/basic_specification.rbs +3 -0
  32. data/stdlib/rubygems/0/config_file.rbs +3 -0
  33. data/stdlib/rubygems/0/dependency_installer.rbs +5 -0
  34. data/stdlib/rubygems/0/installer.rbs +3 -0
  35. data/stdlib/rubygems/0/path_support.rbs +3 -0
  36. data/stdlib/rubygems/0/platform.rbs +3 -0
  37. data/stdlib/rubygems/0/request_set.rbs +7 -0
  38. data/stdlib/rubygems/0/requirement.rbs +3 -0
  39. data/stdlib/rubygems/0/rubygems.rbs +710 -0
  40. data/stdlib/rubygems/0/source_list.rbs +2 -0
  41. data/stdlib/rubygems/0/specification.rbs +3 -0
  42. data/stdlib/rubygems/0/stream_ui.rbs +3 -0
  43. data/stdlib/rubygems/0/uninstaller.rbs +3 -0
  44. data/stdlib/rubygems/0/version.rbs +228 -0
  45. data/stdlib/strscan/0/string_scanner.rbs +582 -0
  46. metadata +23 -2
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: 1.0.6
4
+ version: 1.1.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: 2021-02-16 00:00:00.000000000 Z
11
+ date: 2021-03-08 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.
@@ -102,12 +102,14 @@ files:
102
102
  - exe/rbs
103
103
  - goodcheck.yml
104
104
  - lib/rbs.rb
105
+ - lib/rbs/ancestor_graph.rb
105
106
  - lib/rbs/ast/annotation.rb
106
107
  - lib/rbs/ast/comment.rb
107
108
  - lib/rbs/ast/declarations.rb
108
109
  - lib/rbs/ast/members.rb
109
110
  - lib/rbs/buffer.rb
110
111
  - lib/rbs/builtin_names.rb
112
+ - lib/rbs/char_scanner.rb
111
113
  - lib/rbs/cli.rb
112
114
  - lib/rbs/constant.rb
113
115
  - lib/rbs/constant_table.rb
@@ -158,9 +160,11 @@ files:
158
160
  - schema/methodType.json
159
161
  - schema/types.json
160
162
  - sig/ancestor_builder.rbs
163
+ - sig/ancestor_graph.rbs
161
164
  - sig/annotation.rbs
162
165
  - sig/buffer.rbs
163
166
  - sig/builtin_names.rbs
167
+ - sig/char_scanner.rbs
164
168
  - sig/cli.rbs
165
169
  - sig/comment.rbs
166
170
  - sig/constant.rbs
@@ -170,6 +174,7 @@ files:
170
174
  - sig/definition_builder.rbs
171
175
  - sig/environment.rbs
172
176
  - sig/environment_loader.rbs
177
+ - sig/environment_walker.rbs
173
178
  - sig/errors.rbs
174
179
  - sig/location.rbs
175
180
  - sig/members.rbs
@@ -195,6 +200,7 @@ files:
195
200
  - stdlib/benchmark/0/benchmark.rbs
196
201
  - stdlib/bigdecimal-math/0/big_math.rbs
197
202
  - stdlib/bigdecimal/0/big_decimal.rbs
203
+ - stdlib/cgi/0/core.rbs
198
204
  - stdlib/coverage/0/coverage.rbs
199
205
  - stdlib/csv/0/csv.rbs
200
206
  - stdlib/date/0/date.rbs
@@ -220,9 +226,24 @@ files:
220
226
  - stdlib/prime/0/prime.rbs
221
227
  - stdlib/pstore/0/pstore.rbs
222
228
  - stdlib/pty/0/pty.rbs
229
+ - stdlib/rubygems/0/basic_specification.rbs
230
+ - stdlib/rubygems/0/config_file.rbs
231
+ - stdlib/rubygems/0/dependency_installer.rbs
232
+ - stdlib/rubygems/0/installer.rbs
233
+ - stdlib/rubygems/0/path_support.rbs
234
+ - stdlib/rubygems/0/platform.rbs
235
+ - stdlib/rubygems/0/request_set.rbs
236
+ - stdlib/rubygems/0/requirement.rbs
237
+ - stdlib/rubygems/0/rubygems.rbs
238
+ - stdlib/rubygems/0/source_list.rbs
239
+ - stdlib/rubygems/0/specification.rbs
240
+ - stdlib/rubygems/0/stream_ui.rbs
241
+ - stdlib/rubygems/0/uninstaller.rbs
242
+ - stdlib/rubygems/0/version.rbs
223
243
  - stdlib/securerandom/0/securerandom.rbs
224
244
  - stdlib/set/0/set.rbs
225
245
  - stdlib/singleton/0/singleton.rbs
246
+ - stdlib/strscan/0/string_scanner.rbs
226
247
  - stdlib/time/0/time.rbs
227
248
  - stdlib/timeout/0/timeout.rbs
228
249
  - stdlib/tmpdir/0/tmpdir.rbs