active_type 0.7.4 → 0.7.5
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/.travis.yml +1 -5
- data/CHANGELOG.md +5 -0
- data/gemfiles/Gemfile.3.2.mysql2.lock +2 -2
- data/gemfiles/Gemfile.3.2.sqlite3.lock +2 -2
- data/gemfiles/Gemfile.4.0.sqlite3.lock +2 -2
- data/gemfiles/Gemfile.4.1.sqlite3.lock +2 -2
- data/gemfiles/Gemfile.4.2.1.mysql2.lock +2 -2
- data/gemfiles/Gemfile.4.2.1.pg.lock +2 -2
- data/gemfiles/Gemfile.4.2.1.sqlite3.lock +2 -2
- data/gemfiles/Gemfile.5.0.0.sqlite3.lock +2 -2
- data/gemfiles/Gemfile.5.1.0.mysql2.lock +2 -2
- data/gemfiles/Gemfile.5.1.0.pg.lock +2 -2
- data/gemfiles/Gemfile.5.1.0.sqlite3.lock +2 -2
- data/lib/active_type/nested_attributes/nests_one_association.rb +2 -1
- data/lib/active_type/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8e40c656b761439f7db54101905ac350792d30f
|
4
|
+
data.tar.gz: e986dc29174d96c5d7da9b611e123d885bc1954f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3565ee831f0c113f398cb341fff3d439081ab9c4ff23ec60d2ddd38601d3d93885d082be331cadda22b6b32ebc13140d6ac3ff01750883beea5d0a89e60f883f
|
7
|
+
data.tar.gz: 6ae73d04f66d3634933a158cb5e808f7e7bee0df5894d46242a68fea2a5967a5dea464b56616f34b0c893917fba000f13e3fc15ac1bb857b1d70d20ea1b794e2
|
data/.travis.yml
CHANGED
@@ -58,8 +58,4 @@ matrix:
|
|
58
58
|
- rvm: "2.2.4"
|
59
59
|
gemfile: gemfiles/Gemfile.4.1.sqlite3
|
60
60
|
install:
|
61
|
-
|
62
|
-
# explode when lockfile doesn't match recently bumped version
|
63
|
-
- gem uninstall bundler -x -I
|
64
|
-
- gem install bundler --version='=1.12.5'
|
65
|
-
- bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
61
|
+
- bundle install --no-deployment --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
|
5
5
|
ActiveType is in a pre-1.0 state. This means that its APIs and behavior are subject to breaking changes without deprecation notices. Until 1.0, version numbers will follow a [Semver][]-ish `0.y.z` format, where `y` is incremented when new features or breaking changes are introduced, and `z` is incremented for lesser changes or bug fixes.
|
6
6
|
|
7
|
+
## [0.7.5][] (2017-12-04)
|
8
|
+
|
9
|
+
* Fixed an `chird record did not match id` exception introduced in the 0.7.3 update when using `nests_one`. Credit to @cerdiogenes.
|
10
|
+
|
11
|
+
|
7
12
|
## [0.7.4][] (2017-09-01)
|
8
13
|
|
9
14
|
* Bugfix: ActiveType.cast sets #type correctly when casting to an STI class
|
@@ -19,7 +19,8 @@ module ActiveType
|
|
19
19
|
if id = attributes.delete(:id)
|
20
20
|
assigned_child ||= fetch_child(parent, id)
|
21
21
|
if assigned_child
|
22
|
-
|
22
|
+
assigned_child.id = id
|
23
|
+
if assigned_child.id == assigned_child.id_was
|
23
24
|
assigned_child.attributes = attributes
|
24
25
|
else
|
25
26
|
raise AssignmentError, "child record '#{@target_name}' did not match id '#{id}'"
|
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: 0.7.
|
4
|
+
version: 0.7.5
|
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: 2017-
|
12
|
+
date: 2017-12-04 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
|
version: '0'
|
128
128
|
requirements: []
|
129
129
|
rubyforge_project:
|
130
|
-
rubygems_version: 2.
|
130
|
+
rubygems_version: 2.4.5.1
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: Make any Ruby object quack like ActiveRecord
|