active_type 1.10.0 → 1.10.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: dd315f906e03d147dd627c8d3ba906f272ab449fc1a4b9575c4d5e693659f459
4
- data.tar.gz: 473332af36c476e5126f22918fa6d2ad0fcc77ff5fa74d2623d3cf161ea3a79b
3
+ metadata.gz: 69b64cf59cc14b34fae5a6ce26172b11e4877f763e5b2aef834004e66d697f8c
4
+ data.tar.gz: b446e1c689241ff6f4b96494a29e7b05347e6962322c3eda37c4cf01647a125e
5
5
  SHA512:
6
- metadata.gz: 5c52be3d4270400c51f926c16b25b0b208eafa1484b4c1f5e2393d5d16b049389ff98e6b9e82815b8cbfe7f0153ae113e8af1dcd2fe3c6224946ad7ef24ddd3c
7
- data.tar.gz: 96c02ce9e42ef02dbabca4e3b9402c4fcf6a4cf5e774303f77daa4697f692e0d0b25f39ee090175586ded4a01e8c8ca37acbea5a5b249d8095b0a1ed5b5638ba
6
+ metadata.gz: c9a257cb54508547e77592691c58193cf287866e32f51243a09b6300b58f78fe559ed8d6410d550906753cb850220178c23d35a5727850f23f7dad10f77e8b4f
7
+ data.tar.gz: ac3a81f9655a783fa15e928ee42c2d4a01ff04ff576f5709a7e862a99a2fdb2db1ca3107f50f1882ec57392f28cf23a25dfae57b0ecc3944d9da015edc7b4d3b
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.8
1
+ 2.7.2
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.10.1 (2021-10-19)
8
+
9
+ * Removed: When casting an unsaved record, the new record will no longer have the same associations as the base record. This was introduced with version 1.8.0 and lead to issues (#147 and #148). Therefore the change was rolled back.
10
+
7
11
  ## 1.10.0 (2021-08-11)
8
12
 
9
13
  * Removed: Tests for Ruby 2.4 and ActiveRecord 3.2.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_type (1.10.0)
4
+ active_type (1.10.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.10.0)
4
+ active_type (1.10.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.10.0)
4
+ active_type (1.10.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.10.0)
4
+ active_type (1.10.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.10.0)
4
+ active_type (1.10.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.10.0)
4
+ active_type (1.10.1)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -37,8 +37,6 @@ module ActiveType
37
37
  # Rails 5.2+
38
38
  casted.instance_variable_set(:@mutations_from_database, record.instance_variable_get(:@mutations_from_database))
39
39
 
40
- casted.instance_variable_set(:@association_cache, record.instance_variable_get(:@association_cache))
41
-
42
40
  # Rails 3.2, 4.2
43
41
  errors = record.errors
44
42
  if errors.kind_of? ActiveModel::Errors
@@ -1,3 +1,3 @@
1
1
  module ActiveType
2
- VERSION = '1.10.0'
2
+ VERSION = '1.10.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.10.0
4
+ version: 1.10.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-08-11 00:00:00.000000000 Z
12
+ date: 2021-10-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  requirements: []
126
- rubygems_version: 3.2.15
126
+ rubygems_version: 3.1.4
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Make any Ruby object quack like ActiveRecord