fabrication 2.24.0 → 2.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fabrication/generator/base.rb +2 -2
- data/lib/fabrication/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 25bf46c387fd321a6b7fb9f35b7a67862ced410dd318ad2c29a0bca8dd61479b
|
|
4
|
+
data.tar.gz: 367a2d9d5bc7213443a4de423447c99f9141e92c47fecc5ea0092df2b7821dbe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ad4fc489704de95e48fd156f043ef22638d5e910e1d684db9e09798e9eb2064003056616cfbd08ec944aab4e024ad65f6bdca6d993e6f5a04aaa395bb48cf2c
|
|
7
|
+
data.tar.gz: 2f1cbf6bc060c00578234773534148eac605271f32e08b636aa873e232bc532da3e531c301830577dd1a2842a9592d4976485226d6804296110fea358a923c01
|
|
@@ -54,12 +54,12 @@ module Fabrication
|
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
def build_instance_with_constructor_override(callback)
|
|
57
|
-
self._instance =
|
|
57
|
+
self._instance = instance_exec(_transient_attributes, &callback)
|
|
58
58
|
set_attributes
|
|
59
59
|
end
|
|
60
60
|
|
|
61
61
|
def build_instance_with_init_callback(callback)
|
|
62
|
-
self._instance = _klass.new(*callback.call)
|
|
62
|
+
self._instance = _klass.new(*callback.call(_transient_attributes))
|
|
63
63
|
set_attributes
|
|
64
64
|
end
|
|
65
65
|
|
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.25.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: 2022-01-
|
|
11
|
+
date: 2022-01-28 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.
|