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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/rails/on/sorbet/version.rb +1 -1
- data/lib/tapioca/dsl/compilers/rails_on_sorbet_active_record.rb +12 -7
- 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: 3c69ce8e6ba929ec4b1b32e4c95a67a8ae725df81e960e0cccceb05472c114e5
|
4
|
+
data.tar.gz: b5736376c29c5a0d82275a5a82eb48743401293a4ed0cad2343d063abc9e1803
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
@@ -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',
|
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:
|
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:
|
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:
|
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:
|
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:
|
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',
|
57
|
+
private_collection_proxy.create_type_variable('Elem', type: 'type_member', fixed: klass.fully_qualified_name)
|
53
58
|
end
|
54
59
|
end
|
55
60
|
|