active_type 0.7.4 → 0.7.5

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
  SHA1:
3
- metadata.gz: 3ceac0ff5d69e424f25db88876a0ccada3cb2e0d
4
- data.tar.gz: 119b57d99755e42b6825bac20b51c99f4f82af24
3
+ metadata.gz: f8e40c656b761439f7db54101905ac350792d30f
4
+ data.tar.gz: e986dc29174d96c5d7da9b611e123d885bc1954f
5
5
  SHA512:
6
- metadata.gz: 9b40e8952fdd1461482c4428b5d67a62472da336be0d7f378cd8e554e5075b49b7cce063263eabf9e31ea92f9c063127484f1d09fe0b49e06b788120ee008f5a
7
- data.tar.gz: ba9859e705d88a8cccffe9f3f4656177d0f3df045d81cdfc9e9fdc351dd21195ca2afa76901cb75c90d23466070681a96374f735ca2f8d7efb2e630df7a63372
6
+ metadata.gz: 3565ee831f0c113f398cb341fff3d439081ab9c4ff23ec60d2ddd38601d3d93885d082be331cadda22b6b32ebc13140d6ac3ff01750883beea5d0a89e60f883f
7
+ data.tar.gz: 6ae73d04f66d3634933a158cb5e808f7e7bee0df5894d46242a68fea2a5967a5dea464b56616f34b0c893917fba000f13e3fc15ac1bb857b1d70d20ea1b794e2
@@ -58,8 +58,4 @@ matrix:
58
58
  - rvm: "2.2.4"
59
59
  gemfile: gemfiles/Gemfile.4.1.sqlite3
60
60
  install:
61
- # Replace default Travis CI bundler script with a version that doesn't
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}
@@ -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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.7.4)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -52,4 +52,4 @@ DEPENDENCIES
52
52
  rspec (~> 3.4)
53
53
 
54
54
  BUNDLED WITH
55
- 1.12.1
55
+ 1.15.4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.7.4)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -52,4 +52,4 @@ DEPENDENCIES
52
52
  sqlite3
53
53
 
54
54
  BUNDLED WITH
55
- 1.12.1
55
+ 1.15.4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.7.4)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -57,4 +57,4 @@ DEPENDENCIES
57
57
  sqlite3
58
58
 
59
59
  BUNDLED WITH
60
- 1.12.1
60
+ 1.15.4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.7.4)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -56,4 +56,4 @@ DEPENDENCIES
56
56
  sqlite3
57
57
 
58
58
  BUNDLED WITH
59
- 1.12.1
59
+ 1.15.4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.7.4)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -56,4 +56,4 @@ DEPENDENCIES
56
56
  rspec (~> 3.4)
57
57
 
58
58
  BUNDLED WITH
59
- 1.12.1
59
+ 1.15.4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.7.4)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -56,4 +56,4 @@ DEPENDENCIES
56
56
  rspec (~> 3.4)
57
57
 
58
58
  BUNDLED WITH
59
- 1.12.1
59
+ 1.15.4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.7.4)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -56,4 +56,4 @@ DEPENDENCIES
56
56
  sqlite3
57
57
 
58
58
  BUNDLED WITH
59
- 1.12.1
59
+ 1.15.4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.7.4)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -53,4 +53,4 @@ DEPENDENCIES
53
53
  sqlite3
54
54
 
55
55
  BUNDLED WITH
56
- 1.12.1
56
+ 1.15.4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.7.4)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -53,4 +53,4 @@ DEPENDENCIES
53
53
  rspec (~> 3.4)
54
54
 
55
55
  BUNDLED WITH
56
- 1.12.1
56
+ 1.15.4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.7.4)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -53,4 +53,4 @@ DEPENDENCIES
53
53
  rspec (~> 3.4)
54
54
 
55
55
  BUNDLED WITH
56
- 1.12.1
56
+ 1.15.4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- active_type (0.7.4)
4
+ active_type (0.7.5)
5
5
  activerecord (>= 3.2)
6
6
 
7
7
  GEM
@@ -53,4 +53,4 @@ DEPENDENCIES
53
53
  sqlite3
54
54
 
55
55
  BUNDLED WITH
56
- 1.12.1
56
+ 1.15.4
@@ -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
- if assigned_child.id == id
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}'"
@@ -1,3 +1,3 @@
1
1
  module ActiveType
2
- VERSION = '0.7.4'
2
+ VERSION = '0.7.5'
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: 0.7.4
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-09-01 00:00:00.000000000 Z
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.6.13
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