chop 0.19.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chop/create.rb +4 -0
- data/lib/chop/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e79910191410ddc45d44ca8198e96be315b3706f
|
4
|
+
data.tar.gz: 0e919573c294fada4231b742b8245c0762e3b0bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bfb0082be34fdea29550652f8f5dee5e07c7d2a637e4ef53d45713a74497c46cb8bd5cff0c167b9865f00dcaa9918adb39d33591b60badd90b694246bb299a0
|
7
|
+
data.tar.gz: 947aa02f4654d87317ead72b289528002c0dfe520d749d5c6c294b4bab566835e41f101a54b25b9285557be5381bfdb854519f9a2b17d7f963bd8572b22c8529
|
data/lib/chop/create.rb
CHANGED
@@ -24,6 +24,10 @@ module Chop
|
|
24
24
|
FactoryGirl.create factory, attributes
|
25
25
|
end
|
26
26
|
|
27
|
+
register_creation_strategy :factory_bot do |factory, attributes|
|
28
|
+
FactoryBot.create factory, attributes
|
29
|
+
end
|
30
|
+
|
27
31
|
attr_accessor :transformations, :deferred_attributes, :after_hooks
|
28
32
|
|
29
33
|
def initialize(*, &other_block)
|
data/lib/chop/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|