active_type 1.9.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/Gemfile.3.2.sqlite3.lock +1 -1
- data/Gemfile.4.2.mysql2.lock +1 -1
- data/Gemfile.4.2.pg.lock +1 -1
- data/Gemfile.4.2.sqlite3.lock +1 -1
- data/Gemfile.5.2.mysql2.lock +1 -1
- data/Gemfile.5.2.pg.lock +1 -1
- data/Gemfile.5.2.sqlite3.lock +1 -1
- data/Gemfile.6.0.sqlite3.lock +1 -1
- data/Gemfile.6.1.pg.lock +1 -1
- data/Gemfile.6.1.sqlite3.lock +1 -1
- data/Gemfile.lock +1 -1
- data/lib/active_type/util.rb +2 -0
- data/lib/active_type/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 679ceb6ab663f4b896f785ef7a2812adc666cd2c0046f3e168ae61101450522c
|
4
|
+
data.tar.gz: 1b3638ab630426c42cc434b0d61f5c5443987da2057bac5731b0ab8c4e79fc3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 158f10de45935c7e86aa05437389a7e37c0b2e25187c749b9f57573eea2c088eeb0bb3ea8974b6b1361f0ccb8b334fb470f8e9127861f267e8e3956356f5a278
|
7
|
+
data.tar.gz: a4548b9bb42574175f58b4c485f34cc28a61a164c8f3b7de446ad64b28b46a5c65d266f740cb31f078d3951aabc8ebbf2c765bd96ff8fb5d7f3f77ca14e034d0
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
|
5
5
|
## Unreleased changes
|
6
6
|
|
7
|
+
## 1.9.1 (2021-06-29)
|
8
|
+
|
9
|
+
* Fixed: Retain `#mutations_from_database` when using ActiveType.cast (Rails 5.2+). Thanks to @unrooty-infinum.
|
10
|
+
|
7
11
|
## 1.9.0 (2021-05-20)
|
8
12
|
|
9
13
|
* Fixed: Extended records now use their own I18n namespace when looking up translations for models or attributes.
|
data/Gemfile
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Gemfile.5.2.pg
|
1
|
+
./Gemfile.5.2.pg
|
data/Gemfile.3.2.sqlite3.lock
CHANGED
data/Gemfile.4.2.mysql2.lock
CHANGED
data/Gemfile.4.2.pg.lock
CHANGED
data/Gemfile.4.2.sqlite3.lock
CHANGED
data/Gemfile.5.2.mysql2.lock
CHANGED
data/Gemfile.5.2.pg.lock
CHANGED
data/Gemfile.5.2.sqlite3.lock
CHANGED
data/Gemfile.6.0.sqlite3.lock
CHANGED
data/Gemfile.6.1.pg.lock
CHANGED
data/Gemfile.6.1.sqlite3.lock
CHANGED
data/Gemfile.lock
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Gemfile.5.2.pg.lock
|
1
|
+
./Gemfile.5.2.pg.lock
|
data/lib/active_type/util.rb
CHANGED
@@ -34,6 +34,8 @@ module ActiveType
|
|
34
34
|
casted.instance_variable_set(:@new_record, record.new_record?)
|
35
35
|
# Rails 3.2, 4.2
|
36
36
|
casted.instance_variable_set(:@destroyed, record.destroyed?)
|
37
|
+
# Rails 5.2+
|
38
|
+
casted.instance_variable_set(:@mutations_from_database, record.instance_variable_get(:@mutations_from_database))
|
37
39
|
|
38
40
|
casted.instance_variable_set(:@association_cache, record.instance_variable_get(:@association_cache))
|
39
41
|
|
data/lib/active_type/version.rb
CHANGED
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: 1.9.
|
4
|
+
version: 1.9.1
|
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: 2021-
|
12
|
+
date: 2021-06-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
127
|
- !ruby/object:Gem::Version
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
|
-
rubygems_version: 3.
|
130
|
+
rubygems_version: 3.1.4
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: Make any Ruby object quack like ActiveRecord
|