fabrication 2.13.2 → 2.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fabricate.rb +4 -0
- data/lib/fabrication/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdce752815fe7704b3e42b0c05713b929dab7628
|
4
|
+
data.tar.gz: 0d09197fbd9412ab1158daed5d9b2839233e7423
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4a961dd01c03576101f41357246c5b4aac09649639cec65fce775b26064fca4387004bff7dc27a7a718fdb2f9f82e5bf91bd1b7fc02f677e60726bda42a6514
|
7
|
+
data.tar.gz: b34a1fc5c74c2211a770440d439fa0561c9081bb714ba952bf7c41239da1b10d73349ec68cc939652187babfcf714a39560f61f3c48ab7702c0968d693b3e244
|
data/lib/fabricate.rb
CHANGED
@@ -7,6 +7,10 @@ class Fabricate
|
|
7
7
|
count.times.map { Fabricate.build(name, overrides, &block) }
|
8
8
|
end
|
9
9
|
|
10
|
+
def self.attributes_for_times(count, name, overrides={}, &block)
|
11
|
+
count.times.map { Fabricate.attributes_for(name, overrides, &block) }
|
12
|
+
end
|
13
|
+
|
10
14
|
def self.attributes_for(name, overrides={}, &block)
|
11
15
|
fail_if_initializing(name)
|
12
16
|
schematic(name).to_attributes(overrides, &block)
|
data/lib/fabrication/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fabrication
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Elliott
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Fabrication is an object generation framework for ActiveRecord, Mongoid,
|
14
14
|
DataMapper, Sequel, or any other Ruby object.
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
71
|
rubyforge_project:
|
72
|
-
rubygems_version: 2.4.
|
72
|
+
rubygems_version: 2.4.8
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Implementing the factory pattern in Ruby so you don't have to.
|