rbs 1.7.0.beta.3 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/CHANGELOG.md +44 -10
- data/Steepfile +0 -1
- data/core/binding.rbs +2 -0
- data/core/complex.rbs +0 -2
- data/core/env.rbs +881 -0
- data/core/false_class.rbs +2 -0
- data/core/float.rbs +0 -2
- data/core/integer.rbs +0 -2
- data/core/nil_class.rbs +2 -0
- data/core/numeric.rbs +7 -0
- data/core/object.rbs +1 -1
- data/core/proc.rbs +2 -0
- data/core/rational.rbs +0 -2
- data/core/symbol.rbs +2 -0
- data/core/thread.rbs +1 -1
- data/core/true_class.rbs +2 -0
- data/core/unbound_method.rbs +13 -0
- data/docs/rbs_by_example.md +2 -2
- data/docs/syntax.md +2 -3
- data/ext/rbs_extension/parser.c +3 -1
- data/ext/rbs_extension/parserstate.c +0 -1
- data/ext/rbs_extension/rbs_extension.h +1 -1
- data/ext/rbs_extension/ruby_objs.h +0 -2
- data/lib/rbs/collection/sources/git.rb +6 -1
- data/lib/rbs/parser_aux.rb +33 -33
- data/lib/rbs/prototype/helpers.rb +113 -0
- data/lib/rbs/prototype/rb.rb +2 -105
- data/lib/rbs/prototype/runtime.rb +16 -0
- data/lib/rbs/test/setup.rb +1 -0
- data/lib/rbs/types.rb +1 -1
- data/lib/rbs/version.rb +1 -1
- data/lib/rbs.rb +1 -0
- data/sig/collection/collections.rbs +2 -0
- data/sig/parser.rbs +1 -1
- data/stdlib/bigdecimal/0/big_decimal.rbs +44 -0
- data/stdlib/csv/0/csv.rbs +49 -3
- metadata +6 -6
- data/lib/rbs/parser.y +0 -1805
- data/lib/ruby/signature.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d93b02ff74da3638b4aee35967e4ccc34460c1103ceb51ecfd5406d39e732f21
|
4
|
+
data.tar.gz: b11beb145022527d5d16e2c6545fcc4aa847790e3502b6054f77785685b7fe6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 689cdd0da1b18d8d0d6c9cde454cd3a2de0d44f66e19d52400734bb13001770b44bf0f66a87db403d31fb91ddccdefee87a056686055165d1935ade8fd376ff6
|
7
|
+
data.tar.gz: 488b07051aea9edb7c3c32e9fafc8b1bfcd16f38b8dc492aa4656a0a15a1577615522a15f22c3e900acb458f0bce4620998c2dfc79b17638dd64f025bd0ff29c
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,28 +2,62 @@
|
|
2
2
|
|
3
3
|
## master
|
4
4
|
|
5
|
-
## 1.7.
|
5
|
+
## 1.7.1 (2021-11-18)
|
6
6
|
|
7
|
-
|
7
|
+
### Signature updates
|
8
|
+
|
9
|
+
* `Thread#value` ([\#824](https://github.com/ruby/rbs/pull/824/files))
|
10
|
+
|
11
|
+
### Library changes
|
12
|
+
|
13
|
+
* Unquote parameter name ([\#827](https://github.com/ruby/rbs/pull/827))
|
14
|
+
* Remove `ruby/signature.rb` ([\#825](https://github.com/ruby/rbs/pull/825))
|
15
|
+
|
16
|
+
### Miscellaneous
|
17
|
+
|
18
|
+
* Use `untyped` as an expectation of return value of `IO#ready?` in test ([\#828](https://github.com/ruby/rbs/pull/828/files))
|
19
|
+
|
20
|
+
## 1.7.0 (2021-11-11)
|
21
|
+
|
22
|
+
This version replaces `RBS::Parser` implementation from pure Ruby code based on [Racc](https://github.com/ruby/racc) to C extension.
|
23
|
+
It improves the RBS file parsing performance up to 5 times faster. :rocket:
|
24
|
+
|
25
|
+
* There are some incompatibilties to drop obsolete syntax rules: `super` keyword and `any` type are no longer supported.
|
26
|
+
* [re2c](https://github.com/skvadrik/re2c) is used to generate lexical generator.
|
27
|
+
|
28
|
+
When you want to change the parser/lexer, change the files under `ext/rbs_extension` directory and run `rake compile` to compile the extension.
|
29
|
+
|
30
|
+
### Signature updates
|
8
31
|
|
9
32
|
* io/console ([\#783](https://github.com/ruby/rbs/pull/783))
|
33
|
+
* `ENV` -- Note that it introduces a dummy `::ENVClass` class, which is not defined in Ruby. ([\#812](https://github.com/ruby/rbs/pull/812))
|
10
34
|
* `Net::HTTPRequest` ([\#784](https://github.com/ruby/rbs/pull/784))
|
35
|
+
* `#clone` ([#811](https://github.com/ruby/rbs/pull/811), [\#813](https://github.com/ruby/rbs/pull/813))
|
36
|
+
* `Kernel#BigDecimal` ([\#817](https://github.com/ruby/rbs/pull/817))
|
11
37
|
* `Tempfile.new`, `Tempfile.create` ([\#792](https://github.com/ruby/rbs/pull/792), [\#791](https://github.com/ruby/rbs/pull/791))
|
12
38
|
|
13
|
-
|
39
|
+
### Library changes
|
14
40
|
|
41
|
+
* Replace `RBS::Parser` ([#788](https://github.com/ruby/rbs/pull/788), [#789](https://github.com/ruby/rbs/pull/789))
|
15
42
|
* Fix unexpected `CollectionNotAvailable` without `gems` from git source ([\#795](https://github.com/ruby/rbs/pull/795))
|
16
|
-
* Replace RBS::Parser ([#788](https://github.com/ruby/rbs/pull/788), [#789](https://github.com/ruby/rbs/pull/789))
|
17
43
|
* Print deprecation warning ([\#801](https://github.com/ruby/rbs/pull/801))
|
44
|
+
* Make `Parser::KEYWORDS` a hash ([\#804](https://github.com/ruby/rbs/pull/804))
|
45
|
+
* Use _partial clone_ for `rbs collection` installer ([#805](https://github.com/ruby/rbs/pull/805))
|
46
|
+
* Respect logger level for test/setup logger ([\#819](https://github.com/ruby/rbs/pull/819), [\#822](https://github.com/ruby/rbs/pull/822))
|
47
|
+
|
48
|
+
## Miscellaneous
|
49
|
+
|
50
|
+
* Avoid a mixture of `Array#filter` and `Array#select` ([\#820](https://github.com/ruby/rbs/pull/820))
|
51
|
+
* Remove leftover documentation about `super` ([\#807](https://github.com/ruby/rbs/pull/807))
|
18
52
|
|
19
53
|
## 1.6.2 (2021-09-09)
|
20
54
|
|
21
|
-
|
55
|
+
### Signature updates
|
22
56
|
|
23
57
|
* `Enumerator::Lazy#force` ([\#782](https://github.com/ruby/rbs/pull/782))
|
24
58
|
* `IO.readlines` ([\#780](https://github.com/ruby/rbs/pull/780))
|
25
59
|
|
26
|
-
|
60
|
+
### Miscellaneous
|
27
61
|
|
28
62
|
* Set `$XDG_CACHE_HOME` during test ([\#781](https://github.com/ruby/rbs/pull/781))
|
29
63
|
|
@@ -31,7 +65,7 @@
|
|
31
65
|
|
32
66
|
This is a minor release including test fixes.
|
33
67
|
|
34
|
-
|
68
|
+
### Miscellaneous
|
35
69
|
|
36
70
|
* Fix stdlib test for `Resolv::Hosts` by removing `/etc/hosts` dependency ([\#779](https://github.com/ruby/rbs/pull/779))
|
37
71
|
* Fix bundler related test for test-bundled-gems ([\#778](https://github.com/ruby/rbs/pull/778))
|
@@ -43,18 +77,18 @@ The command helps you manage RBS files from gem_rbs_collection or other reposito
|
|
43
77
|
|
44
78
|
This feature is a preview, and any feedback is welcome!
|
45
79
|
|
46
|
-
|
80
|
+
### Signature updates
|
47
81
|
|
48
82
|
* objspace ([\#763](https://github.com/ruby/rbs/pull/763), [\#776](https://github.com/ruby/rbs/pull/776))
|
49
83
|
* tempfile ([\#767](https://github.com/ruby/rbs/pull/767), [\#775](https://github.com/ruby/rbs/pull/775))
|
50
84
|
* `IO#set_encoding_by_bom` ([\#106](https://github.com/ruby/rbs/pull/106))
|
51
85
|
* `OpenSSL::PKey::EC#dh_compute_key` ([\#775](https://github.com/ruby/rbs/pull/775))
|
52
86
|
|
53
|
-
|
87
|
+
### Library changes
|
54
88
|
|
55
89
|
* Add `rbs collection` ([\#589](https://github.com/ruby/rbs/pull/589), [\#772](https://github.com/ruby/rbs/pull/772), [\#773](https://github.com/ruby/rbs/pull/773))
|
56
90
|
|
57
|
-
|
91
|
+
### Miscellaneous
|
58
92
|
|
59
93
|
* Let `bin/annotate-with-rdoc` process nested constants/classes ([\#766](https://github.com/ruby/rbs/pull/766), [\#768](https://github.com/ruby/rbs/pull/768))
|
60
94
|
* Stop printing version mismatch message in CI ([\#777](https://github.com/ruby/rbs/pull/777))
|
data/Steepfile
CHANGED
data/core/binding.rbs
CHANGED