rbs 1.7.0.beta.3 → 1.7.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7486f2fc540fa8039a9729a4447016b7c730f9460647c2b8c441a1df75aba708
4
- data.tar.gz: 0c2d486cd334b46eb101c3b5a6bf4724c7029bf9da95069bbfedbe001c4d4c04
3
+ metadata.gz: d93b02ff74da3638b4aee35967e4ccc34460c1103ceb51ecfd5406d39e732f21
4
+ data.tar.gz: b11beb145022527d5d16e2c6545fcc4aa847790e3502b6054f77785685b7fe6c
5
5
  SHA512:
6
- metadata.gz: 9050aadaf5538fc9f1d132619df96da6039f3dc13e961a5c7fc75e9a7087d9aafe4db0be0e1bd545c1d870f180d8ecef38f071e7c8add8056e32bc8ba72fdce0
7
- data.tar.gz: 333011168ba724f6c12fa37d8df906e253578060d2e5ef7c54ba0373a5e22d1f665339e5c08c80fa39d2d9aef459f8a8f95b4378d93385c0b5f7c81124d94b47
6
+ metadata.gz: 689cdd0da1b18d8d0d6c9cde454cd3a2de0d44f66e19d52400734bb13001770b44bf0f66a87db403d31fb91ddccdefee87a056686055165d1935ade8fd376ff6
7
+ data.tar.gz: 488b07051aea9edb7c3c32e9fafc8b1bfcd16f38b8dc492aa4656a0a15a1577615522a15f22c3e900acb458f0bce4620998c2dfc79b17638dd64f025bd0ff29c
data/.gitignore CHANGED
@@ -13,7 +13,6 @@
13
13
  **/.rbfu-version
14
14
  **/.rbenv-version
15
15
  **/.versions.conf
16
- /lib/rbs/parser.output
17
16
  /vendor/sigs
18
17
  /Gemfile.lock
19
18
 
data/CHANGELOG.md CHANGED
@@ -2,28 +2,62 @@
2
2
 
3
3
  ## master
4
4
 
5
- ## 1.7.0 (beta.3)
5
+ ## 1.7.1 (2021-11-18)
6
6
 
7
- ## Signature updates
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
- ## Library changes
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
- ## Signature updates
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
- ## Miscellaneous
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
- ## Miscellaneous
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
- ## Signature updates
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
- ## Library changes
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
- ## Miscellaneous
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
@@ -3,7 +3,6 @@ D = Steep::Diagnostic
3
3
  target :lib do
4
4
  signature "sig"
5
5
  check "lib"
6
- ignore "lib/rbs/parser.rb"
7
6
  ignore "lib/rbs/prototype", "lib/rbs/test", "lib/rbs/test.rb"
8
7
 
9
8
  library "set", "pathname", "json", "logger", "monitor", "tsort", "uri"
data/core/binding.rbs CHANGED
@@ -31,6 +31,8 @@
31
31
  class Binding
32
32
  public
33
33
 
34
+ def clone: () -> self
35
+
34
36
  # Evaluates the Ruby expression(s) in *string*, in the *binding*'s context. If
35
37
  # the optional *filename* and *lineno* parameters are present, they will be used
36
38
  # when reporting syntax errors.
data/core/complex.rbs CHANGED
@@ -165,8 +165,6 @@ class Complex < Numeric
165
165
 
166
166
  def ceil: (*untyped) -> bot
167
167
 
168
- def clone: (?freeze: bool) -> self
169
-
170
168
  def coerce: (Numeric) -> [ Complex, Complex ]
171
169
 
172
170
  # Returns the complex conjugate.