parlour 5.0.0.beta.5 → 5.0.0.beta.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/parlour/types.rb +6 -6
- data/lib/parlour/version.rb +1 -1
- data/rbi/parlour.rbi +1 -1
- 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: 1715bb17e55bec8c3c5e9879e2304b3357f4c56fa4969a7100e309be02c252a1
|
4
|
+
data.tar.gz: aea13230a97e42b09eed1b120d311d21e9b1deddf6530869a254e34b55745678
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2adc666069616d219bbdc22d817b6d26b3775f64be30c2fa889c50022979674f5c066b2eed71cb2427f6015dcab5bc4247d23e539ae8d91ec5196164524d7966
|
7
|
+
data.tar.gz: 5761fe954c1dd8bb2a6a17fa1b4a92b21d6d61ab2ad1478e0e5387f09e5918ce264acea38909c54dc89df77417301d26903a2697520a25101e1a154a4b3f0ddb
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@ 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.6] - 2020-10-04
|
7
|
+
### Fixed
|
8
|
+
- Fixed collection types sometimes generating as `T::::Array`
|
9
|
+
|
6
10
|
## [5.0.0.beta.5] - 2020-10-03
|
7
11
|
### Added
|
8
12
|
- Added `Types::Generic` for user-defined generic types
|
data/lib/parlour/types.rb
CHANGED
@@ -256,7 +256,7 @@ module Parlour
|
|
256
256
|
|
257
257
|
sig { override.returns(String) }
|
258
258
|
def generate_rbs
|
259
|
-
"
|
259
|
+
"::#{collection_name}[#{element.generate_rbs}]"
|
260
260
|
end
|
261
261
|
|
262
262
|
sig { override.returns(String) }
|
@@ -269,7 +269,7 @@ module Parlour
|
|
269
269
|
class Array < SingleElementCollection
|
270
270
|
sig { override.returns(String) }
|
271
271
|
def collection_name
|
272
|
-
'
|
272
|
+
'Array'
|
273
273
|
end
|
274
274
|
|
275
275
|
sig { params(other: Object).returns(T::Boolean) }
|
@@ -282,7 +282,7 @@ module Parlour
|
|
282
282
|
class Set < SingleElementCollection
|
283
283
|
sig { override.returns(String) }
|
284
284
|
def collection_name
|
285
|
-
'
|
285
|
+
'Set'
|
286
286
|
end
|
287
287
|
|
288
288
|
sig { params(other: Object).returns(T::Boolean) }
|
@@ -295,7 +295,7 @@ module Parlour
|
|
295
295
|
class Range < SingleElementCollection
|
296
296
|
sig { override.returns(String) }
|
297
297
|
def collection_name
|
298
|
-
'
|
298
|
+
'Range'
|
299
299
|
end
|
300
300
|
|
301
301
|
sig { params(other: Object).returns(T::Boolean) }
|
@@ -308,7 +308,7 @@ module Parlour
|
|
308
308
|
class Enumerable < SingleElementCollection
|
309
309
|
sig { override.returns(String) }
|
310
310
|
def collection_name
|
311
|
-
'
|
311
|
+
'Enumerable'
|
312
312
|
end
|
313
313
|
|
314
314
|
sig { params(other: Object).returns(T::Boolean) }
|
@@ -321,7 +321,7 @@ module Parlour
|
|
321
321
|
class Enumerator < SingleElementCollection
|
322
322
|
sig { override.returns(String) }
|
323
323
|
def collection_name
|
324
|
-
'
|
324
|
+
'Enumerator'
|
325
325
|
end
|
326
326
|
|
327
327
|
sig { params(other: Object).returns(T::Boolean) }
|
data/lib/parlour/version.rb
CHANGED
data/rbi/parlour.rbi
CHANGED
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.6
|
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-10-
|
11
|
+
date: 2020-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet-runtime
|