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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc5c6c8baabe95bbc999a4143264b1dad8b84260bdc156d2a35526244322db2f
4
- data.tar.gz: 580430b0cfe37f80b60f9dd47f8673f4d1d973e6ef6abca44efa299355d19fed
3
+ metadata.gz: 582795fa8110d41a3772eefeb31873feccb06b60c5ee12e5c58681913a96ff51
4
+ data.tar.gz: 9035f9e26cb6b799f6c2982b4a0731fa5b4750bbea9e960158d0cf088b05fac8
5
5
  SHA512:
6
- metadata.gz: ae2fd0263a3d955ff7904a28e69bf16eb21b413bda3e71be42636e0829e730a33ee0eb477712fc45dffbce948de3a4c3d6ae6e19147e21b114cd58fe93679676
7
- data.tar.gz: 549cd5f91736b8aa5c1f5e1ebaa69fd2d8e4e9f905f1d4aa9ed799677e2d2367a573548d6a9ea220f3c6c6dbf268cc2679c8d0e26516c52224574563974070b6
6
+ metadata.gz: 3d3987aaad533c76f3d63cb9187f815e3d8fab5616db8458e5676558526cdea9dcd808a4adec629bf4bd848c3a5886a1f1fb802ececf9aca0b16f29280e3f577
7
+ data.tar.gz: e3f80d41de1d9aeb73810720c2690016a05347e15fab5d00535fe1bc192305620b5fca58f881ea77fa114f5d2f6c41527a7dfc38cf53a7421dce4d658b9e61ba
@@ -1,6 +1,10 @@
1
1
  name: Run tests
2
2
 
3
- on: [push, pull_request]
3
+ on:
4
+ push: {}
5
+ pull_request: {}
6
+ schedule:
7
+ - cron: "18 18 * * *"
4
8
 
5
9
  jobs:
6
10
  test:
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.
@@ -8,7 +8,7 @@ module Parlour
8
8
  extend T::Sig
9
9
  extend T::Generic
10
10
 
11
- Child = type_member
11
+ Child = type_member {{ upper: TypedObject }}
12
12
 
13
13
  abstract!
14
14
 
@@ -672,7 +672,9 @@ module Parlour
672
672
  class_method = true
673
673
  end
674
674
 
675
- return_type = "T.untyped"
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
@@ -1,5 +1,5 @@
1
1
  # typed: strong
2
2
  module Parlour
3
3
  # The library version.
4
- VERSION = '7.0.0'
4
+ VERSION = '8.0.0'
5
5
  end
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: 7.0.0
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-04-18 00:00:00.000000000 Z
11
+ date: 2022-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet-runtime