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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21de85e1b19fed7dd547f3301c82ec967997b7fed1d8b063b674e15f538bcc49
4
- data.tar.gz: 3e8b54eb5b1573b0d3284e7f6c216099d165b44c485f8881226a99447d78c18a
3
+ metadata.gz: 679ceb6ab663f4b896f785ef7a2812adc666cd2c0046f3e168ae61101450522c
4
+ data.tar.gz: 1b3638ab630426c42cc434b0d61f5c5443987da2057bac5731b0ab8c4e79fc3d
5
5
  SHA512:
6
- metadata.gz: 04dc0427781f01314b7535b97bca3d002489ec9db45e6231e428e050d732c80d70ef07a1300e4dc8ba306aa3e3ea55ab124a7b6245c1928ed0909b24df798d2d
7
- data.tar.gz: ebd393afc5b781ef4fd2edb3951b6d7c50ba691687c2c0a52ec76fbe013b9756776e61f4a655d3ce6221ed148c8aefff9d1cf770d95669f98102069affa67b72
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (1.6.0)
4
+ active_type (1.9.1)
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 (1.6.0)
4
+ active_type (1.9.1)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
data/Gemfile.4.2.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (1.6.0)
4
+ active_type (1.9.1)
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 (1.6.0)
4
+ active_type (1.9.1)
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 (1.9.0)
4
+ active_type (1.9.1)
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 (1.9.0)
4
+ active_type (1.9.1)
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 (1.9.0)
4
+ active_type (1.9.1)
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 (1.9.0)
4
+ active_type (1.9.1)
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 (1.9.0)
4
+ active_type (1.9.1)
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 (1.9.0)
4
+ active_type (1.9.1)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
data/Gemfile.lock CHANGED
@@ -1 +1 @@
1
- Gemfile.5.2.pg.lock
1
+ ./Gemfile.5.2.pg.lock
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module ActiveType
2
- VERSION = '1.9.0'
2
+ VERSION = '1.9.1'
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: 1.9.0
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-05-20 00:00:00.000000000 Z
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.2.17
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