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 +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/live_fixtures/export/fixture.rb +1 -2
- data/lib/live_fixtures/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b30af4bf80a77296eab60dbddfd2ff1240ca52b7
|
4
|
+
data.tar.gz: 2c24a1898e6ec545603ba57dc8f3c5f674f5169b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39f4ea9917b27ad09739d524d578d5a8cdaa2247b0dc7b78cbdb6873ab30e959be08b88f4570860529cdb99628d1c97d64951b6edb35be2f37ebafdb859910dd
|
7
|
+
data.tar.gz: a7f9561e6f244a615c4a7df18cd3d6e01fa1774b37c01607577246a5fcb13c67a20235b8544fa970232d36735f53def6a4207238e25dfbb9116f5045387b2d47
|
data/CHANGELOG.md
CHANGED
@@ -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)
|
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.
|
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:
|
11
|
+
date: 2018-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|