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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c40f2fce702a5073c7d359a726767ccf0cb574e0
4
- data.tar.gz: c70be2c8a6aa22737e2bc399c5579147b0f639fe
3
+ metadata.gz: fdce752815fe7704b3e42b0c05713b929dab7628
4
+ data.tar.gz: 0d09197fbd9412ab1158daed5d9b2839233e7423
5
5
  SHA512:
6
- metadata.gz: b0f7f2cdc3a3b7ca18c8fafd13ea104940d3eb71e2c0017b9dc1e7f760fba15c92a10424ed313037ff6b1afb72f2b21ceeb4150b546eed35bfebb5adb908ebf0
7
- data.tar.gz: 44a7d24594140db823ef0fa2fd845c9c1b2b6ee28b3674d05166d6e1db7aed30fc088346b1311cc035e74faaff81a91ae89112cb2867b10dd15d35a0993ecf48
6
+ metadata.gz: b4a961dd01c03576101f41357246c5b4aac09649639cec65fce775b26064fca4387004bff7dc27a7a718fdb2f9f82e5bf91bd1b7fc02f677e60726bda42a6514
7
+ data.tar.gz: b34a1fc5c74c2211a770440d439fa0561c9081bb714ba952bf7c41239da1b10d73349ec68cc939652187babfcf714a39560f61f3c48ab7702c0968d693b3e244
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Fabrication
2
- VERSION = '2.13.2'
2
+ VERSION = '2.14.0'
3
3
  end
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.13.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-04-30 00:00:00.000000000 Z
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.6
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.