stockpot 0.4.0 → 0.4.1
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/app/controllers/stockpot/records_controller.rb +1 -1
- data/lib/stockpot/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16ffdf5caea93560956e1c88a320c98c4771a0ac723198e6dd38b4ef9d090a83
|
|
4
|
+
data.tar.gz: 9890ac135a1e2f0c2a14add87424c77c76874da4ac8a1b492c9ed7edfc77ce9c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a4ee5011188ee3f3821eb67451f076d1475f255e07ac0878c42ac942576f9182bda644895ea06cdec1c470a5f96b3fd52ecf097ffb8b35cdfe6ef0f1cf29697
|
|
7
|
+
data.tar.gz: f579c9b5c0cea6f8f017c157d5c85b7326725ecb5e82d1cb04bd1e140711aac8bf34e6c05f967bed68601d4b2f8a47624d1eed517c74f244c530c187185a862f
|
|
@@ -37,9 +37,9 @@ module Stockpot
|
|
|
37
37
|
list = element[:list] || 1
|
|
38
38
|
factory = element[:factory]
|
|
39
39
|
traits = element[:traits].map(&:to_sym) if element[:traits].present?
|
|
40
|
-
attributes = element[:attributes].to_h if element[:attributes].present?
|
|
41
40
|
|
|
42
41
|
list.times do
|
|
42
|
+
attributes = element[:attributes][n].to_h if element[:attributes].present?
|
|
43
43
|
factory_arguments = [ factory, *traits, attributes ].compact
|
|
44
44
|
@factory_instance = FactoryBot.create(*factory_arguments)
|
|
45
45
|
ids << @factory_instance.id
|
data/lib/stockpot/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stockpot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jayson Smith
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-06-
|
|
11
|
+
date: 2020-06-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -240,8 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
240
240
|
- !ruby/object:Gem::Version
|
|
241
241
|
version: '0'
|
|
242
242
|
requirements: []
|
|
243
|
-
|
|
244
|
-
rubygems_version: 2.7.8
|
|
243
|
+
rubygems_version: 3.0.3
|
|
245
244
|
signing_key:
|
|
246
245
|
specification_version: 4
|
|
247
246
|
summary: Makes setting up test data in your Rails database from an external resource
|