fixtures_dump 0.2.0 → 0.3.0
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/Gemfile.lock +35 -0
- data/lib/fixtures_dump/version.rb +1 -1
- data/lib/tasks/fixtures_dump.rake +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4721913e0f37a383f2cc492d57c9b6719b18c4140778516db1c80a2a92c1f97c
|
4
|
+
data.tar.gz: d1f8df448a9e34291c652f43c2c72bdc33c02ddaf25e0b01cff55775c0abcff8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f92b3fb462708244b9e67a039db4e7388b3900da82403a87e2a4fee3fc4e972a37b70243ced90ee2e10c66a3877c4c01b7019ff98ed60163781c8fbf159f05c
|
7
|
+
data.tar.gz: 80ddf026250cdb8bdc485c9463a5ca6c439725ee75ad17bb7f9164f35498aefc64961887dfb0e6f4ba09a135956e7a1d35f962e01c1eab29a333631d62c21afe
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
fixtures_dump (0.3.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
diff-lcs (1.3)
|
10
|
+
rake (10.5.0)
|
11
|
+
rspec (3.8.0)
|
12
|
+
rspec-core (~> 3.8.0)
|
13
|
+
rspec-expectations (~> 3.8.0)
|
14
|
+
rspec-mocks (~> 3.8.0)
|
15
|
+
rspec-core (3.8.0)
|
16
|
+
rspec-support (~> 3.8.0)
|
17
|
+
rspec-expectations (3.8.2)
|
18
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
+
rspec-support (~> 3.8.0)
|
20
|
+
rspec-mocks (3.8.0)
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
+
rspec-support (~> 3.8.0)
|
23
|
+
rspec-support (3.8.0)
|
24
|
+
|
25
|
+
PLATFORMS
|
26
|
+
ruby
|
27
|
+
|
28
|
+
DEPENDENCIES
|
29
|
+
bundler (~> 1.16)
|
30
|
+
fixtures_dump!
|
31
|
+
rake (~> 10.0)
|
32
|
+
rspec (~> 3.0)
|
33
|
+
|
34
|
+
BUNDLED WITH
|
35
|
+
1.16.3
|
@@ -13,7 +13,7 @@ namespace 'db:fixtures' do
|
|
13
13
|
puts "Required models: #{required.join(", ")}"
|
14
14
|
puts "Excluded models: #{excluded.join(", ")}"
|
15
15
|
|
16
|
-
models_to_dump = required.any? ? required.map(&:constantize) : models
|
16
|
+
models_to_dump = required.any? ? required.compact.map(&:constantize) : models
|
17
17
|
models_to_dump.each do |model|
|
18
18
|
puts "exporting: #{model.to_s}"
|
19
19
|
|
@@ -30,7 +30,7 @@ namespace 'db:fixtures' do
|
|
30
30
|
else
|
31
31
|
"#{model.to_s.underscore}_#{r.id}"
|
32
32
|
end
|
33
|
-
attributes = r.attributes.except(:password_digest).delete_if{|k,v| v.nil?}
|
33
|
+
attributes = r.attributes.except(:password_digest, :created_at, :updated_at).delete_if{|k,v| v.nil?}
|
34
34
|
hash[key.underscore] = attributes
|
35
35
|
end
|
36
36
|
file.write hash.to_yaml
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fixtures_dump
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Catalin Ionescu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- ".travis.yml"
|
65
65
|
- CODE_OF_CONDUCT.md
|
66
66
|
- Gemfile
|
67
|
+
- Gemfile.lock
|
67
68
|
- LICENSE.txt
|
68
69
|
- README.md
|
69
70
|
- Rakefile
|