live_fixtures 0.3.0 → 0.3.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
  SHA1:
3
- metadata.gz: a728fd952006fc7d03f41ba8a0e7680005937f08
4
- data.tar.gz: 169ea945ee73cc0d6183ddd590b72f520d851186
3
+ metadata.gz: b30af4bf80a77296eab60dbddfd2ff1240ca52b7
4
+ data.tar.gz: 2c24a1898e6ec545603ba57dc8f3c5f674f5169b
5
5
  SHA512:
6
- metadata.gz: e7b69490985e19b66e30726fda1d0a1c41f031a6f166512f1b1c929658453259ed7945237b926cd73991233284f35717dcb9a9076a5e307d80c8abed30b11a9f
7
- data.tar.gz: 2fc58a3b1b222bea1a9869269a5241cf269dec3447ad00c17dcec0a9f6a2ffa0e356795c84a88abfab3f793c6ddde7dcec9d4dec446c48eff4f62371e1eee2af
6
+ metadata.gz: 39f4ea9917b27ad09739d524d578d5a8cdaa2247b0dc7b78cbdb6873ab30e959be08b88f4570860529cdb99628d1c97d64951b6edb35be2f37ebafdb859910dd
7
+ data.tar.gz: a7f9561e6f244a615c4a7df18cd3d6e01fa1774b37c01607577246a5fcb13c67a20235b8544fa970232d36735f53def6a4207238e25dfbb9116f5045387b2d47
@@ -2,6 +2,16 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [0.3.1] - 2018-03-28
6
+ ### Breaking changes
7
+ - None
8
+
9
+ ### Fixed
10
+ - None
11
+
12
+ ### Added
13
+ - It is now possible to export an attribute named "id" when it is included among the [additional attributes](https://github.com/NoRedInk/live_fixtures/tree/3868aaddbeb1c0174261673855610c4f8d9e7842#additional-attributes). #25
14
+
5
15
  ## [0.3.0] - 2017-08-10
6
16
  ### Breaking changes
7
17
  - Imports now raise an error when unable to find a referenced model.
@@ -36,8 +36,7 @@ module LiveFixtures::Export::Fixture
36
36
  end
37
37
 
38
38
  private_class_method def yml_attributes(model, more_attributes)
39
- model.attributes.merge(more_attributes).map do |name, value|
40
- next if %w{id}.include? name
39
+ model.attributes.except("id").merge(more_attributes).map do |name, value|
41
40
  next if value.nil?
42
41
 
43
42
  serialize_attribute(model, name, value)
@@ -1,3 +1,3 @@
1
1
  module LiveFixtures
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: live_fixtures
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - jleven
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-10 00:00:00.000000000 Z
11
+ date: 2018-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord