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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca7c4a93ad35d6334dc6e45b4fc7382e17ebe4c9
4
- data.tar.gz: 2cdf7d8861aa8dc1c448e962709d5d4ed9b428f9
3
+ metadata.gz: 9ecce4a7d6a8c137eebdf8d8e0e326285aeacd66
4
+ data.tar.gz: 1efcd2dfaabb64533869b496b079ccfd5fce6e23
5
5
  SHA512:
6
- metadata.gz: e944acd2c19e71af37a43834ad40fc344daaf6f75481dc31fd0b06ebad805769d3598f336f522d1c0b2d73592c52d06d1053b10fac53684d0f1f6799af196737
7
- data.tar.gz: 630bc7c355bb0c209b6f054992fc66fd73bf94ef251d7c42d796b1ba21acf8a6e67a5ef8c30c2a03316367c0abcb07c250d7e908840a3fadedff37432e436d43
6
+ metadata.gz: 969a51a6ec2d9cdca4c29495ffd7cecfc1eec3ecba1ad52109d8e765bf53ee1414eb0a5e9dc37dfac0a170c60f2817444a9e921a18717c0ca516b0a8c1a3d1c8
7
+ data.tar.gz: 53cfa65d2d10e9c22079d0f75d607960d200db368af618c2d7df37b6d39c78bb33409473b8e7ac2471eb36827fd936138dfdaa1250bd653279b2aee61026244a
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SeedPacket
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
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
- �l�R���c�����<�gd �(2bZM�VA­\y�Og�*H�3K6Z��$�Q�Jr��1 X�xu�C�*fu3m��p�JQu��+ؑ�Њū����?4 ��P�|4^�� ��6�H��7������x���o�_Ye�m��-��$�����\�Z���cY}�ڥ̝�n�6�H�v .W>���?���#�؉�V��G��ӽ�v��Q"�#�T�*�a���Lסu��1Z;.��k
1
+ }9)b7:(DM�r-�aE�^`�� ���|�W*��n Zƹ�z����~�eޛL7Aw����V1�о�B͞�!�ǥї~)�}��+�Ho���O�-�,t=��}@@U�͢!�����V�PPra�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.0
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-22 00:00:00.000000000 Z
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