parlour 7.0.0 → 8.0.0
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/.github/workflows/ruby.yml +5 -1
- data/CHANGELOG.md +6 -0
- data/lib/parlour/mixin/searchable.rb +1 -1
- data/lib/parlour/type_parser.rb +4 -2
- data/lib/parlour/version.rb +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: 582795fa8110d41a3772eefeb31873feccb06b60c5ee12e5c58681913a96ff51
|
4
|
+
data.tar.gz: 9035f9e26cb6b799f6c2982b4a0731fa5b4750bbea9e960158d0cf088b05fac8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d3987aaad533c76f3d63cb9187f815e3d8fab5616db8458e5676558526cdea9dcd808a4adec629bf4bd848c3a5886a1f1fb802ececf9aca0b16f29280e3f577
|
7
|
+
data.tar.gz: e3f80d41de1d9aeb73810720c2690016a05347e15fab5d00535fe1bc192305620b5fca58f881ea77fa114f5d2f6c41527a7dfc38cf53a7421dce4d658b9e61ba
|
data/.github/workflows/ruby.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,12 @@ 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
|
+
## [8.0.0] - 2022-05-10
|
7
|
+
### Changed
|
8
|
+
- The parser now loads untyped methods named `initialize` as returning `void`, rather than
|
9
|
+
`untyped`. Potentially breaking if you are relying on this behaviour, though Sorbet now considers
|
10
|
+
this an error.
|
11
|
+
|
6
12
|
## [7.0.0] - 2022-04-18
|
7
13
|
### Added
|
8
14
|
- `#describe` now uses a new, clearer format.
|
data/lib/parlour/type_parser.rb
CHANGED
@@ -672,7 +672,9 @@ module Parlour
|
|
672
672
|
class_method = true
|
673
673
|
end
|
674
674
|
|
675
|
-
return_type = "
|
675
|
+
return_type = unless def_names == ["initialize"]
|
676
|
+
"T.untyped"
|
677
|
+
end
|
676
678
|
|
677
679
|
if kind == :def
|
678
680
|
parameters = def_params.map do |def_param|
|
@@ -704,7 +706,7 @@ module Parlour
|
|
704
706
|
elsif kind == :attr
|
705
707
|
case attr_direction
|
706
708
|
when :reader, :accessor, :writer
|
707
|
-
attr_type = return_type
|
709
|
+
attr_type = return_type || "T.untyped"
|
708
710
|
else
|
709
711
|
raise "unknown attribute direction #{attr_direction}"
|
710
712
|
end
|
data/lib/parlour/version.rb
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:
|
4
|
+
version: 8.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Christiansen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet-runtime
|