parlour 5.0.0.beta.2 → 5.0.0.beta.3

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: 67507b0ea29af60c22d4e326220ea362441969c56c06d357767660356ff39b6c
4
- data.tar.gz: 1f2cc037d17d4a3bfabc86b34b937d9a7fc9986af0302eb950fe310146944739
3
+ metadata.gz: 9c9fa581e9b41195e54a4716df7926d1beb225c47871ff39d2f08fb0fa462aeb
4
+ data.tar.gz: 1aa333b0896df783baefa79d87fdbda732dea8676b85e89b7d76de607716658c
5
5
  SHA512:
6
- metadata.gz: 446a15c1a26e799b3d407ef0e1e2c02b441a559da38a327cda3d2110ea6013825beb6870c14a42531425bb6b83a8595d1298cfe70d9bbd87cc27ebff9e397985
7
- data.tar.gz: 8b4df35779cd3b6c1129811a271788a303bf1c57fe271bebea135a48c06dafbb1ecead10a9e3da3ae36b4d17953848767a0a546b2a7de00fc24b3ff02ec71e04
6
+ metadata.gz: 30486957baea0d7b30f827483ca69fbf589bd55039bedbcee6ea4f6258c0601612d191818a547569b32fe2e805dd29e34f27a46005eb3d5586dd7cb3462f7fb2
7
+ data.tar.gz: ed021b13ea01c171852be2d4892ba1042bc7dbf747e3413881e7d9c674553dea82337172c986dfec8ec78bfbed2be5519b6a091e2f3cd19f142797f54e35689e
@@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
5
5
 
6
+ ## [5.0.0.beta.3] - 2020-09-15
7
+ ### Changed
8
+ - Changed the RBS keyword warning to come from "RBS generation" rather than
9
+ "Type generalization"
10
+ - Added many more of RBS' keywords which are detected and prefixed with an
11
+ underscore to avoid syntax errors
12
+
6
13
  ## [5.0.0.beta.2] - 2020-09-14
7
14
  ### Added
8
15
  - Added `Types::Type#describe` for simple text descriptions of types
@@ -101,7 +101,8 @@ module Parlour
101
101
  # names in standard Ruby.
102
102
  # TODO: probably incomplete
103
103
  RBS_KEYWORDS = [
104
- 'type', 'interface', 'out', 'in', 'instance'
104
+ 'type', 'interface', 'out', 'in', 'instance', 'extension', 'top', 'bot',
105
+ 'self', 'nil', 'void'
105
106
  ]
106
107
 
107
108
  # A mapping of {kind} values to the characteristic prefixes each kind has.
@@ -124,7 +125,7 @@ module Parlour
124
125
  if RBS_KEYWORDS.include? name_without_kind
125
126
  unless $VERBOSE.nil?
126
127
  print Rainbow("Parlour warning: ").yellow.dark.bold
127
- print Rainbow("Type generalization: ").magenta.bright.bold
128
+ print Rainbow("RBS generation: ").magenta.bright.bold
128
129
  puts "'#{name_without_kind}' is a keyword in RBS, renaming method parameter to '_#{name_without_kind}'"
129
130
  end
130
131
 
@@ -1,5 +1,5 @@
1
1
  # typed: strong
2
2
  module Parlour
3
3
  # The library version.
4
- VERSION = '5.0.0.beta.2'
4
+ VERSION = '5.0.0.beta.3'
5
5
  end
@@ -3,7 +3,7 @@ module Kernel
3
3
  end
4
4
 
5
5
  module Parlour
6
- VERSION = '5.0.0.beta.2'
6
+ VERSION = '5.0.0.beta.3'
7
7
 
8
8
  class ConflictResolver
9
9
  extend T::Sig
@@ -1767,7 +1767,8 @@ module Parlour
1767
1767
  class Parameter
1768
1768
  extend T::Sig
1769
1769
  RBS_KEYWORDS = [
1770
- 'type', 'interface', 'out', 'in', 'instance'
1770
+ 'type', 'interface', 'out', 'in', 'instance', 'extension', 'top', 'bot',
1771
+ 'self', 'nil', 'void'
1771
1772
  ]
1772
1773
  PREFIXES = {
1773
1774
  normal: '',
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parlour
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.beta.2
4
+ version: 5.0.0.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Christiansen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-14 00:00:00.000000000 Z
11
+ date: 2020-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime