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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3e810f46e006579bd1532c1f2d2fc291110cec1f20fc432b1f073efb7f104f2
4
- data.tar.gz: 8373caf574a7f15a48ae2139606d85541f91c3ce26b05b7295ef293ddb592974
3
+ metadata.gz: 16ffdf5caea93560956e1c88a320c98c4771a0ac723198e6dd38b4ef9d090a83
4
+ data.tar.gz: 9890ac135a1e2f0c2a14add87424c77c76874da4ac8a1b492c9ed7edfc77ce9c
5
5
  SHA512:
6
- metadata.gz: 486f9a8a802130c36c0528a9dffb4d7d7dc90686b170058ecc590c04d182a70fabacbebfc73d9f0feb445cbfa55e98c5ea7bb49cc4412748b6c84548a1a71e4d
7
- data.tar.gz: b18a2ac9341c86fae9d69b91c9e6b008352bc4a5ec989bb14b6d31ed8d8982c01acf28da797f9afd8542667c8b5265891b8d032147343be7f64b82cd86563b82
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stockpot
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
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.0
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-01 00:00:00.000000000 Z
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
- rubyforge_project:
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