active_type 2.3.3 → 2.3.4

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: cdcf7c3fd638833572dc67e729b154148f26c7e7dfbe107b9752e1e4aec08c0a
4
- data.tar.gz: e7909485f8b1147a5d94079e5933bc5ee7f75f0eab32a68b6be9abd0be2d75b8
3
+ metadata.gz: bd2feb0207bfe501f78ebc8f53d783f773325f3ef50eb8d90795405a0b6e11a2
4
+ data.tar.gz: 4e160637b5f863125c41f1fc879a03d5d5b0d1a57da76685886ea8a9ba499401
5
5
  SHA512:
6
- metadata.gz: 93d20dd89b89f2764104074d36624feb091204f3e42f05100e715a1f36374dfcb13cc5f1c023be7fe75eecfdc2875cfb91c7ceeacfcc473ef424ebe7423060ba
7
- data.tar.gz: 721e41bb1299dbd7ed944c33dae47e10fac3f6e167cb5b31f67faa32a017a6f3e8bbd2b4316d9ed32ea0eed2ba8e995b334df3e7640eb8ec69f3c46726ae36c7
6
+ metadata.gz: 44834e4f7ed70fec35eaac3202546f5fa32761417c7a6aadac13533f3757dcff104cd6a8c10c34cd3a0f69f15b63a7809b08c9196ced7d570c0dccb4a96daede
7
+ data.tar.gz: 297442b7ef3c0a0a2dff9be7d64518ae41dc5cd79bbd359fb40a14c6cc5b8ae93a4ad7d14b3eee2768e6328a99b4991ed80947ba1259db4b3cbce28c6e798573
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## 2.3.4 (2023-05-11)
6
+
7
+ * Fixed: ActiveType.cast preserves `.strict_loading?` and `.readonly?`
8
+
5
9
  ## 2.3.3 (2023-05-11)
6
10
 
7
11
  * Fixed: `accepts_nested_attributes_for` ignores virtual attributes. Thanks to @nalabjp.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.3.3)
4
+ active_type (2.3.4)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
data/Gemfile.5.2.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.3.3)
4
+ active_type (2.3.4)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.3.3)
4
+ active_type (2.3.4)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.3.3)
4
+ active_type (2.3.4)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
data/Gemfile.6.1.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.3.3)
4
+ active_type (2.3.4)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.3.3)
4
+ active_type (2.3.4)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
data/Gemfile.7.0.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.3.3)
4
+ active_type (2.3.4)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (2.3.3)
4
+ active_type (2.3.4)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -43,6 +43,12 @@ module ActiveType
43
43
  casted.instance_variable_set(:@destroyed, record.destroyed?)
44
44
  # Rails 5.2+
45
45
  casted.instance_variable_set(:@mutations_from_database, record.instance_variable_get(:@mutations_from_database))
46
+ # Rails 6.1+
47
+ casted.instance_variable_set(:@strict_loading, record.instance_variable_get(:@strict_loading))
48
+ # Rails 7.0+
49
+ casted.instance_variable_set(:@strict_loading_mode, record.instance_variable_get(:@strict_loading_mode))
50
+ # Rails 1.0+
51
+ casted.instance_variable_set(:@readonly, record.instance_variable_get(:@readonly))
46
52
 
47
53
  # Rails 3.2, 4.2
48
54
  errors = record.errors
@@ -1,3 +1,3 @@
1
1
  module ActiveType
2
- VERSION = '2.3.3'
2
+ VERSION = '2.3.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_type
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Kraze
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-05-11 00:00:00.000000000 Z
12
+ date: 2023-12-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  requirements: []
131
- rubygems_version: 3.2.33
131
+ rubygems_version: 3.4.10
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: Make any Ruby object quack like ActiveRecord