parlour 5.0.0.beta.2 → 5.0.0.beta.3
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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/parlour/rbs_generator/parameter.rb +3 -2
- data/lib/parlour/version.rb +1 -1
- data/rbi/parlour.rbi +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c9fa581e9b41195e54a4716df7926d1beb225c47871ff39d2f08fb0fa462aeb
|
|
4
|
+
data.tar.gz: 1aa333b0896df783baefa79d87fdbda732dea8676b85e89b7d76de607716658c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 30486957baea0d7b30f827483ca69fbf589bd55039bedbcee6ea4f6258c0601612d191818a547569b32fe2e805dd29e34f27a46005eb3d5586dd7cb3462f7fb2
|
|
7
|
+
data.tar.gz: ed021b13ea01c171852be2d4892ba1042bc7dbf747e3413881e7d9c674553dea82337172c986dfec8ec78bfbed2be5519b6a091e2f3cd19f142797f54e35689e
|
data/CHANGELOG.md
CHANGED
|
@@ -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("
|
|
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
|
|
data/lib/parlour/version.rb
CHANGED
data/rbi/parlour.rbi
CHANGED
|
@@ -3,7 +3,7 @@ module Kernel
|
|
|
3
3
|
end
|
|
4
4
|
|
|
5
5
|
module Parlour
|
|
6
|
-
VERSION = '5.0.0.beta.
|
|
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.
|
|
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-
|
|
11
|
+
date: 2020-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sorbet-runtime
|