rails-on-sorbet 0.3.5 → 0.3.6

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: 20f5398f4347bd7235077b77dcbce2916b0ec30001eab8ce4da12d290322515d
4
- data.tar.gz: 59caf094a17595e0e6c4d5ea26b870098dc0d7b9a06d8f8edcb55fa9aeecd033
3
+ metadata.gz: 3c69ce8e6ba929ec4b1b32e4c95a67a8ae725df81e960e0cccceb05472c114e5
4
+ data.tar.gz: b5736376c29c5a0d82275a5a82eb48743401293a4ed0cad2343d063abc9e1803
5
5
  SHA512:
6
- metadata.gz: e389aaf40e8f111aec4c8d2bbdf6cc7e17af5d70ebcefd18d65b5876339cc0223c8e6c2dbec086dcb4840d2fcd75fa9a0092dfd8a32be46d1ae0932a03daed54
7
- data.tar.gz: 4a54cd049174abcb664f80e8c22fdda7b18b62234f29d63f35cb8c285c79677a986a01a59190cab94a53a884e9724513bbdeaabeb258083e4a0f06429107cbe0
6
+ metadata.gz: cd4ac3dc4916298efbee9e558750f52d848b438d9b89f0c0f4e5844d2ce0296e58608c4749b7efbe3fb870cd2783daa7a58dc5f878168aef2703aed62bb4c8f9
7
+ data.tar.gz: '0419b6a41c67225f443ab3b2575eee9d66009fc3f51fd2b41fcdcaa697118a8197db9fc6eeaa24803e7e2574e4e9a104d27f0f5cdef04a44992fd5fbc2da0bd3'
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.6] - 21.10.2025
16
+
17
+ [Diff](https://github.com/espago/rails-on-sorbet/compare/v0.3.5...v0.3.6)
18
+
19
+ ### Changes
20
+ - Another fix for `TypedRelation` tapioca compiler (type member declarations)
21
+
15
22
  ## [0.3.5] - 21.10.2025
16
23
 
17
24
  [Diff](https://github.com/espago/rails-on-sorbet/compare/v0.3.4...v0.3.5)
@@ -3,7 +3,7 @@
3
3
  module Rails
4
4
  module On
5
5
  module Sorbet
6
- VERSION = '0.3.5'
6
+ VERSION = '0.3.6'
7
7
  end
8
8
  end
9
9
  end
@@ -22,34 +22,39 @@ module Tapioca
22
22
  root.create_path(constant) do |klass|
23
23
  private_relation = klass.create_class('PrivateRelation', superclass_name: '::ActiveRecord::Relation')
24
24
  private_relation.create_include('::TypedRelation')
25
- private_relation.create_type_variable('Elem', type: 'type_member', variance: :out)
25
+ private_relation.create_type_variable('Elem', type: 'type_member', fixed: klass.fully_qualified_name)
26
26
 
27
27
  private_relation_group_chain = klass.create_class('PrivateRelationGroupChain',
28
28
  superclass_name: 'PrivateRelation',)
29
29
  private_relation_group_chain.create_include('::TypedRelation::GroupChain')
30
- private_relation_group_chain.create_type_variable('Elem', type: 'type_member', variance: :out)
30
+ private_relation_group_chain.create_type_variable('Elem', type: 'type_member',
31
+ fixed: klass.fully_qualified_name,)
31
32
 
32
33
  private_relation_where_chain = klass.create_class('PrivateRelationWhereChain', superclass_name: '::ActiveRecord::QueryMethods::WhereChain')
33
34
  private_relation_where_chain.create_include('::TypedRelation::WhereChain')
34
- private_relation_where_chain.create_type_variable('Elem', type: 'type_member', variance: :out)
35
+ private_relation_where_chain.create_type_variable('Elem', type: 'type_member',
36
+ fixed: klass.fully_qualified_name,)
35
37
 
36
38
  private_association_relation = klass.create_class('PrivateAssociationRelation', superclass_name: '::ActiveRecord::AssociationRelation')
37
39
  private_association_relation.create_include('::TypedAssociation::Relation')
38
- private_association_relation.create_type_variable('Elem', type: 'type_member', variance: :out)
40
+ private_association_relation.create_type_variable('Elem', type: 'type_member',
41
+ fixed: klass.fully_qualified_name,)
39
42
 
40
43
  private_relation_group_chain = klass.create_class('PrivateAssociationRelationGroupChain',
41
44
  superclass_name: 'PrivateAssociationRelation',)
42
45
  private_relation_group_chain.create_include('::TypedAssociation::Relation::GroupChain')
43
- private_relation_group_chain.create_type_variable('Elem', type: 'type_member', variance: :out)
46
+ private_relation_group_chain.create_type_variable('Elem', type: 'type_member',
47
+ fixed: klass.fully_qualified_name,)
44
48
 
45
49
  private_relation_where_chain = klass.create_class('PrivateAssociationRelationWhereChain',
46
50
  superclass_name: '::ActiveRecord::QueryMethods::WhereChain',)
47
51
  private_relation_where_chain.create_include('::TypedAssociation::Relation::WhereChain')
48
- private_relation_where_chain.create_type_variable('Elem', type: 'type_member', variance: :out)
52
+ private_relation_where_chain.create_type_variable('Elem', type: 'type_member',
53
+ fixed: klass.fully_qualified_name,)
49
54
 
50
55
  private_collection_proxy = klass.create_class('PrivateCollectionProxy', superclass_name: '::ActiveRecord::Associations::CollectionProxy')
51
56
  private_collection_proxy.create_include('::TypedAssociation::CollectionProxy')
52
- private_collection_proxy.create_type_variable('Elem', type: 'type_member', variance: :out)
57
+ private_collection_proxy.create_type_variable('Elem', type: 'type_member', fixed: klass.fully_qualified_name)
53
58
  end
54
59
  end
55
60
 
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.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Drewniak