rbs 1.7.0.beta.3 → 1.7.0.beta.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7486f2fc540fa8039a9729a4447016b7c730f9460647c2b8c441a1df75aba708
4
- data.tar.gz: 0c2d486cd334b46eb101c3b5a6bf4724c7029bf9da95069bbfedbe001c4d4c04
3
+ metadata.gz: afd173e37912ce2897a5ff7b9ec6e54bed7258abd7015ac80ae5fa9baa380df5
4
+ data.tar.gz: 77b07c52dc592c5f5b01df9d4ab8c91d59942c67f158a8f3386926922e197042
5
5
  SHA512:
6
- metadata.gz: 9050aadaf5538fc9f1d132619df96da6039f3dc13e961a5c7fc75e9a7087d9aafe4db0be0e1bd545c1d870f180d8ecef38f071e7c8add8056e32bc8ba72fdce0
7
- data.tar.gz: 333011168ba724f6c12fa37d8df906e253578060d2e5ef7c54ba0373a5e22d1f665339e5c08c80fa39d2d9aef459f8a8f95b4378d93385c0b5f7c81124d94b47
6
+ metadata.gz: e03c35027deec7e866534c1f79fe02060ea5672a3e3e8abe9ac1ae5940f2dd7cd99eeed5ee71d9a5991b3074984a6daaaa58d09c380b0cdcb40c568bae50427d
7
+ data.tar.gz: 92a8cc1a171669ca98c5e323293258ff774747712fb24c0b342e28da866077fc10f4c4bbb2699857842ca7bba9829c014c3b69b5e80a1690aa77027f55c7b083
data/CHANGELOG.md CHANGED
@@ -2,28 +2,29 @@
2
2
 
3
3
  ## master
4
4
 
5
- ## 1.7.0 (beta.3)
5
+ ## 1.7.0 (beta.4)
6
6
 
7
- ## Signature updates
7
+ ### Signature updates
8
8
 
9
9
  * io/console ([\#783](https://github.com/ruby/rbs/pull/783))
10
10
  * `Net::HTTPRequest` ([\#784](https://github.com/ruby/rbs/pull/784))
11
11
  * `Tempfile.new`, `Tempfile.create` ([\#792](https://github.com/ruby/rbs/pull/792), [\#791](https://github.com/ruby/rbs/pull/791))
12
12
 
13
- ## Library changes
13
+ ### Library changes
14
14
 
15
15
  * Fix unexpected `CollectionNotAvailable` without `gems` from git source ([\#795](https://github.com/ruby/rbs/pull/795))
16
16
  * Replace RBS::Parser ([#788](https://github.com/ruby/rbs/pull/788), [#789](https://github.com/ruby/rbs/pull/789))
17
17
  * Print deprecation warning ([\#801](https://github.com/ruby/rbs/pull/801))
18
+ * Make `Parser::KEYWORDS` a hash ([\#804](https://github.com/ruby/rbs/pull/804))
18
19
 
19
20
  ## 1.6.2 (2021-09-09)
20
21
 
21
- ## Signature updates
22
+ ### Signature updates
22
23
 
23
24
  * `Enumerator::Lazy#force` ([\#782](https://github.com/ruby/rbs/pull/782))
24
25
  * `IO.readlines` ([\#780](https://github.com/ruby/rbs/pull/780))
25
26
 
26
- ## Miscellaneous
27
+ ### Miscellaneous
27
28
 
28
29
  * Set `$XDG_CACHE_HOME` during test ([\#781](https://github.com/ruby/rbs/pull/781))
29
30
 
@@ -31,7 +32,7 @@
31
32
 
32
33
  This is a minor release including test fixes.
33
34
 
34
- ## Miscellaneous
35
+ ### Miscellaneous
35
36
 
36
37
  * Fix stdlib test for `Resolv::Hosts` by removing `/etc/hosts` dependency ([\#779](https://github.com/ruby/rbs/pull/779))
37
38
  * Fix bundler related test for test-bundled-gems ([\#778](https://github.com/ruby/rbs/pull/778))
@@ -43,18 +44,18 @@ The command helps you manage RBS files from gem_rbs_collection or other reposito
43
44
 
44
45
  This feature is a preview, and any feedback is welcome!
45
46
 
46
- ## Signature updates
47
+ ### Signature updates
47
48
 
48
49
  * objspace ([\#763](https://github.com/ruby/rbs/pull/763), [\#776](https://github.com/ruby/rbs/pull/776))
49
50
  * tempfile ([\#767](https://github.com/ruby/rbs/pull/767), [\#775](https://github.com/ruby/rbs/pull/775))
50
51
  * `IO#set_encoding_by_bom` ([\#106](https://github.com/ruby/rbs/pull/106))
51
52
  * `OpenSSL::PKey::EC#dh_compute_key` ([\#775](https://github.com/ruby/rbs/pull/775))
52
53
 
53
- ## Library changes
54
+ ### Library changes
54
55
 
55
56
  * 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
57
 
57
- ## Miscellaneous
58
+ ### Miscellaneous
58
59
 
59
60
  * 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
61
  * Stop printing version mismatch message in CI ([\#777](https://github.com/ruby/rbs/pull/777))
@@ -26,38 +26,38 @@ module RBS
26
26
  autoload :LexerError, "rbs/parser_compat/lexer_error"
27
27
  autoload :LocatedValue, "rbs/parser_compat/located_value"
28
28
 
29
- KEYWORDS = Set.new(
30
- %w(
31
- bool
32
- bot
33
- class
34
- instance
35
- interface
36
- nil
37
- self
38
- singleton
39
- top
40
- void
41
- type
42
- unchecked
43
- in
44
- out
45
- end
46
- def
47
- include
48
- extend
49
- prepend
50
- alias
51
- module
52
- attr_reader
53
- attr_writer
54
- attr_accessor
55
- public
56
- private
57
- untyped
58
- true
59
- false
60
- )
61
- )
29
+ KEYWORDS = %w(
30
+ bool
31
+ bot
32
+ class
33
+ instance
34
+ interface
35
+ nil
36
+ self
37
+ singleton
38
+ top
39
+ void
40
+ type
41
+ unchecked
42
+ in
43
+ out
44
+ end
45
+ def
46
+ include
47
+ extend
48
+ prepend
49
+ alias
50
+ module
51
+ attr_reader
52
+ attr_writer
53
+ attr_accessor
54
+ public
55
+ private
56
+ untyped
57
+ true
58
+ false
59
+ ).each_with_object({}) do |keyword, hash|
60
+ hash[keyword] = nil
61
+ end
62
62
  end
63
63
  end
data/lib/rbs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RBS
2
- VERSION = "1.7.0.beta.3"
2
+ VERSION = "1.7.0.beta.4"
3
3
  end
data/sig/parser.rbs CHANGED
@@ -6,7 +6,7 @@ module RBS
6
6
 
7
7
  def self.parse_signature: (Buffer | String, ?line: Integer, ?column: Integer) -> Array[AST::Declarations::t]
8
8
 
9
- KEYWORDS: Set[String]
9
+ KEYWORDS: Hash[String, bot]
10
10
 
11
11
  private
12
12
 
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.7.0.beta.3
4
+ version: 1.7.0.beta.4
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-09-19 00:00:00.000000000 Z
11
+ date: 2021-09-22 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.