rails-on-sorbet 0.3.1 → 0.3.2
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/rails/on/sorbet/version.rb +1 -1
- data/rbi/typed_relation.rbi +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 933a41943fa0c0f4f3c967a1797fd1349e84aec021fa7aaa16f84daa947b04a3
|
4
|
+
data.tar.gz: ad9925cfdff086e01e69b1738baca8ca6752435567e21c31a5829d926100addd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 693d8fe1a3d5d77200da6cbfa5a844075d48c3ec2dc65171bb528686f9dfaeb32d49992c2d3d08eee2359f4bd56748c70b38913a26a8f72f0d5c881ca041afd1
|
7
|
+
data.tar.gz: 4065d3008fb38b9159c619c0eeda6ef7475aefffcbb6a22aca10137b754924e351cf6a6579b0639a18eef9e9ada1fa883af20fbd68c0de638c938341a4fa988e
|
data/CHANGELOG.md
CHANGED
@@ -12,6 +12,13 @@ Add changes in new features here. Do not change the gem's version in pull/merge
|
|
12
12
|
### Changes
|
13
13
|
-
|
14
14
|
|
15
|
+
## [0.3.2] - 20.10.2025
|
16
|
+
|
17
|
+
[Diff](https://github.com/espago/rails-on-sorbet/compare/v0.3.1...v0.3.2)
|
18
|
+
|
19
|
+
### Changes
|
20
|
+
- Add `extend T::Generic` to `TypedRelation` definitions
|
21
|
+
|
15
22
|
## [0.3.1] - 20.10.2025
|
16
23
|
|
17
24
|
[Diff](https://github.com/espago/rails-on-sorbet/compare/v0.3.0...v0.3.1)
|
data/rbi/typed_relation.rbi
CHANGED
@@ -5,6 +5,8 @@ def TypedRelation(val); end
|
|
5
5
|
|
6
6
|
# @abstract
|
7
7
|
module TypedCommonRelationMethods
|
8
|
+
extend T::Generic
|
9
|
+
|
8
10
|
Elem = type_member(:out)
|
9
11
|
|
10
12
|
# START CommonRelationMethods
|
@@ -417,6 +419,7 @@ end
|
|
417
419
|
|
418
420
|
# @abstract
|
419
421
|
module TypedRelation
|
422
|
+
extend T::Generic
|
420
423
|
Elem = type_member(:out)
|
421
424
|
|
422
425
|
class << self
|
@@ -428,6 +431,7 @@ module TypedRelation
|
|
428
431
|
|
429
432
|
# @abstract
|
430
433
|
module GroupChain
|
434
|
+
extend T::Generic
|
431
435
|
include TypedRelation
|
432
436
|
|
433
437
|
Elem = type_member(:out)
|
@@ -469,6 +473,7 @@ module TypedRelation
|
|
469
473
|
|
470
474
|
# @abstract
|
471
475
|
module WhereChain
|
476
|
+
extend T::Generic
|
472
477
|
Elem = type_member(:out)
|
473
478
|
|
474
479
|
sig { abstract.params(args: T.untyped).returns(TypedRelation[Elem]) }
|
@@ -638,6 +643,7 @@ end
|
|
638
643
|
|
639
644
|
# @abstract
|
640
645
|
module TypedGeneratedAssociationRelationMethods
|
646
|
+
extend T::Generic
|
641
647
|
Elem = type_member(:out)
|
642
648
|
|
643
649
|
sig { abstract.returns(T::Array[Elem]) }
|
@@ -807,6 +813,7 @@ module TypedAssociation
|
|
807
813
|
|
808
814
|
# @abstract
|
809
815
|
module Relation
|
816
|
+
extend T::Generic
|
810
817
|
include TypedCommonRelationMethods
|
811
818
|
include TypedGeneratedAssociationRelationMethods
|
812
819
|
|
@@ -821,6 +828,7 @@ module TypedAssociation
|
|
821
828
|
|
822
829
|
# @abstract
|
823
830
|
module WhereChain
|
831
|
+
extend T::Generic
|
824
832
|
Elem = type_member(:out)
|
825
833
|
|
826
834
|
sig { abstract.params(args: T.untyped).returns(Relation[Elem]) }
|
@@ -835,6 +843,7 @@ module TypedAssociation
|
|
835
843
|
|
836
844
|
# @abstract
|
837
845
|
module GroupChain
|
846
|
+
extend T::Generic
|
838
847
|
include Relation
|
839
848
|
|
840
849
|
Elem = type_member(:out)
|
@@ -877,6 +886,7 @@ module TypedAssociation
|
|
877
886
|
|
878
887
|
# @abstract
|
879
888
|
module CollectionProxy
|
889
|
+
extend T::Generic
|
880
890
|
include TypedCommonRelationMethods
|
881
891
|
include TypedGeneratedAssociationRelationMethods
|
882
892
|
|