seed_packet 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/seed_packet/version.rb +1 -1
- data/lib/seed_packet.rb +3 -1
- data.tar.gz.sig +3 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ecce4a7d6a8c137eebdf8d8e0e326285aeacd66
|
4
|
+
data.tar.gz: 1efcd2dfaabb64533869b496b079ccfd5fce6e23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 969a51a6ec2d9cdca4c29495ffd7cecfc1eec3ecba1ad52109d8e765bf53ee1414eb0a5e9dc37dfac0a170c60f2817444a9e921a18717c0ca516b0a8c1a3d1c8
|
7
|
+
data.tar.gz: 53cfa65d2d10e9c22079d0f75d607960d200db368af618c2d7df37b6d39c78bb33409473b8e7ac2471eb36827fd936138dfdaa1250bd653279b2aee61026244a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/seed_packet/version.rb
CHANGED
data/lib/seed_packet.rb
CHANGED
@@ -8,11 +8,13 @@ module SeedPacket
|
|
8
8
|
attr_accessor :environment,
|
9
9
|
:factory_class
|
10
10
|
|
11
|
+
# rubocop:disable Metrics/LineLength
|
11
12
|
def initialize(environment: nil, factory_class: 'FactoryBot')
|
12
13
|
self.environment = environment ? Environment.new(environment) : nil
|
13
14
|
|
14
|
-
self.factory_class = Object.const_get(factory_class) if environment.samples_allowed?
|
15
|
+
self.factory_class = Object.const_get(factory_class) if self.environment.samples_allowed?
|
15
16
|
end
|
17
|
+
# rubocop:enable Metrics/LineLength
|
16
18
|
|
17
19
|
def seed
|
18
20
|
yield if environment.seeding_allowed?
|
data.tar.gz.sig
CHANGED
@@ -1 +1,3 @@
|
|
1
|
-
|
1
|
+
}9)b7:(DM�r-�aE�^`�����|�W*��n�Zƹ�z����~�eޛL7A�w����V1�о�B͞�!�ǥї~)�}��+�Ho���O�-�,t=��}@@U�͢!�����V�P�Pra�1�ۦJ�
|
2
|
+
���1�H��}{e��'�YF�+t1�if�6�
|
3
|
+
O��+�B~�>z�FJ���9���9ҋ�x�C���]#�zѱ)��p�1���F����Se6�w�:wc�٢���W54(]H
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seed_packet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jfelchner
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
etYUO0DlNY/qYfSfExrgt0W5dZeT09V++WPlYauHw/EZtAB0AsJwVdtIscq0HSvX
|
32
32
|
yH9AFp3KIe0v70EXzao/94n+XoDULrHEhqGMo34iS+37ZA==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2018-03-
|
34
|
+
date: 2018-03-27 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
metadata.gz.sig
CHANGED
Binary file
|