seed_packet 0.0.3 → 0.0.4

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: 9cf9766d9096b986348b2f3fa2a830c3f3ddb335
4
- data.tar.gz: 6ed6a558c913478870a79064c01ccc27a419d931
3
+ metadata.gz: fa56d53e36945bbd136a74a3cea750c236bbb003
4
+ data.tar.gz: 277576254021eb86a5fbc6149d3ea3b12e29043c
5
5
  SHA512:
6
- metadata.gz: 1d14926434f9b55deeba61f86df0147cf37a924d84322d82ba15c2965eed349583a1278debbc60314cfd3517b5f860bd0683957f8d4f917b3f866f27bb5e5d4f
7
- data.tar.gz: a629c18b25d2ac6090d8239244981954d665ed71c3b16bdbc3f9268b0a94decaeb12aff3ae698512ed2ef3ce9b0e9369853d8d8654b5659a84798a0bf2676dc9
6
+ metadata.gz: 3191cc89dfcfa6a86bbc3d2742b7e24f462fe505f7aa0fd0a64282ca4eed137568d7440ea218a43d3b026adf1bf50f633dc2a0f232295f2b59f75fcde11056ae
7
+ data.tar.gz: 584d24edacbb400aae24f3f3090b7665b0853e418e4bbd09888d2d23632d6c542d816c821cfb77dacb79c411ef8509bb116610504f70698b83bc0743f01362d8
@@ -1,3 +1,3 @@
1
1
  module SeedPacket
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
data/lib/seed_packet.rb CHANGED
@@ -8,7 +8,10 @@ module SeedPacket
8
8
 
9
9
  def initialize(options = {})
10
10
  self.environment = options.key?(:environment) ? Environment.new(environment) : nil
11
- self.factory_class = Object.const_get(options.fetch(:factory_class, 'FactoryGirl'))
11
+
12
+ if environment.samples_allowed?
13
+ self.factory_class = Object.const_get(options.fetch(:factory_class, 'FactoryGirl'))
14
+ end
12
15
  end
13
16
 
14
17
  def seed
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seed_packet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - jfelchner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-06 00:00:00.000000000 Z
11
+ date: 2014-08-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: