rails-on-sorbet 0.3.0 → 0.3.1

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: fe4169663fb8997f73abd67b1c4194a1f74ec2feacd2d852e1591e6de8c10edc
4
- data.tar.gz: b2e5dbb4522948405d21ab34fb0bb6ed5efdbe1ca75f58098a190030b8de3615
3
+ metadata.gz: 0d2e5584be831c2f9ee13193b7330f3c4fcfcb38e23b58e647e447ea44fba206
4
+ data.tar.gz: f1dcacdc4b00dd531400fb81b208e2ed0593f241156978adf8846c131c89cdfb
5
5
  SHA512:
6
- metadata.gz: c0591ea92aef3fa4fd12eec00ad5f8fd8239b7caf94619bf80d0f0fe69568fa23a99eab69b2ab5c049efa1dc178021c3ee88acc0a2b877bdf03d50d0fa9f0f3d
7
- data.tar.gz: eea1bbe85c46586953ab218ef0398d122568109f0c8d67a710d348323f696d753e8360b8d48ac97175907294010e1ff9145f13e0667da8eb586cef7a44df2b06
6
+ metadata.gz: 5065d66ccba78ecf89b3b0aa3acc1db333b7223d048b5fe6584170d8f87219d3e0cd9a20595b8cd115ab309aaf777ab0a3c16de21d82dd08b2bb1606145f29a1
7
+ data.tar.gz: 8054062e2ccb3ef943a08735ecb54358c901ace2b387cc6c25022062b0ccd9ede91ca11498f5e6726d2def2b4097930a35adfccc00ed5dd8c977d80e721bb112
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.1] - 20.10.2025
16
+
17
+ [Diff](https://github.com/espago/rails-on-sorbet/compare/v0.3.0...v0.3.1)
18
+
19
+ ### Changes
20
+ - Fix `Tapioca::Compilers::RailsOnSorbetActiveRecordRelations` and `TypedRelation` definitions
21
+
15
22
  ## [0.3.0] - 20.10.2025
16
23
 
17
24
  [Diff](https://github.com/espago/rails-on-sorbet/compare/v0.2.8...v0.3.0)
@@ -3,7 +3,7 @@
3
3
  module Rails
4
4
  module On
5
5
  module Sorbet
6
- VERSION = '0.3.0'
6
+ VERSION = '0.3.1'
7
7
  end
8
8
  end
9
9
  end
@@ -29,18 +29,18 @@ module Tapioca
29
29
  private_relation_where_chain = klass.create_class('PrivateRelationWhereChain')
30
30
  private_relation_where_chain.create_include('::TypedRelation::WhereChain')
31
31
 
32
- private_collection_proxy = klass.create_class('PrivateCollectionProxy')
33
- private_collection_proxy.create_include('::TypedRelation::CollectionProxy')
34
-
35
32
 
36
33
  private_association_relation = klass.create_class('PrivateAssociationRelation')
37
- private_association_relation.create_include('::TypedAssociationRelation')
34
+ private_association_relation.create_include('::TypedAssociation::Relation')
38
35
 
39
36
  private_relation_group_chain = klass.create_class('PrivateAssociationRelationGroupChain')
40
- private_relation_group_chain.create_include('::TypedAssociationRelation::GroupChain')
37
+ private_relation_group_chain.create_include('::TypedAssociation::Relation::GroupChain')
41
38
 
42
39
  private_relation_where_chain = klass.create_class('PrivateAssociationRelationWhereChain')
43
- private_relation_where_chain.create_include('::TypedAssociationRelation::WhereChain')
40
+ private_relation_where_chain.create_include('::TypedAssociation::Relation::WhereChain')
41
+
42
+ private_collection_proxy = klass.create_class('PrivateCollectionProxy')
43
+ private_collection_proxy.create_include('::TypedAssociation::CollectionProxy')
44
44
  end
45
45
  end
46
46
 
@@ -416,7 +416,6 @@ module TypedCommonRelationMethods
416
416
  end
417
417
 
418
418
  # @abstract
419
- # @requires_ancestor: ActiveRecord::Relation
420
419
  module TypedRelation
421
420
  Elem = type_member(:out)
422
421
 
@@ -468,7 +467,6 @@ module TypedRelation
468
467
  def sum(column_name = nil, &block); end
469
468
  end
470
469
 
471
- # @requires_ancestor: ::ActiveRecord::QueryMethods::WhereChain
472
470
  # @abstract
473
471
  module WhereChain
474
472
  Elem = type_member(:out)
@@ -808,7 +806,6 @@ module TypedAssociation
808
806
  end
809
807
 
810
808
  # @abstract
811
- # @requires_ancestor: ActiveRecord::AssociationRelation
812
809
  module Relation
813
810
  include TypedCommonRelationMethods
814
811
  include TypedGeneratedAssociationRelationMethods
@@ -822,7 +819,6 @@ module TypedAssociation
822
819
  def WhereChain(val); end
823
820
  end
824
821
 
825
- # @requires_ancestor: ::ActiveRecord::QueryMethods::WhereChain
826
822
  # @abstract
827
823
  module WhereChain
828
824
  Elem = type_member(:out)
@@ -879,7 +875,6 @@ module TypedAssociation
879
875
  end
880
876
  end
881
877
 
882
- # @requires_ancestor: ActiveRecord::Associations::CollectionProxy
883
878
  # @abstract
884
879
  module CollectionProxy
885
880
  include TypedCommonRelationMethods
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-on-sorbet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Drewniak