evt-mimic 2.3.1.3 → 2.3.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mimic/build.rb +5 -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: 0add0e7fe81fc75241500f37747288fb82a6500cabb367a41a35b90122e773ea
|
4
|
+
data.tar.gz: 8c5c2b216a959dad72f0fb8735b196de4d6d1f4d7fe4143d363e2aa875486ad7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c41ee2a70a26f902c7706c3e6739f0aa13562e850f6aef3e3b62a260a0a719aec4c0f95eae2055734ff7109f617d31483c252aaf18e788bc62bf363a554b754
|
7
|
+
data.tar.gz: d825ea96f99d897b99d3c26051e5fedac35e977308ac4a3688a404cf5bd13d483acd8de8ab9e056c0fbdb4171edaf28ea890645d691805a7b3da4b0f5a42b40b
|
data/lib/mimic/build.rb
CHANGED
@@ -3,7 +3,7 @@ module Mimic
|
|
3
3
|
def self.call(subject_class, record: nil, &blk)
|
4
4
|
record ||= false
|
5
5
|
|
6
|
-
cls = Class.build(subject_class
|
6
|
+
cls = Class.build(subject_class)
|
7
7
|
|
8
8
|
subject_methods = Mimic.subject_methods(cls)
|
9
9
|
|
@@ -19,6 +19,10 @@ module Mimic
|
|
19
19
|
|
20
20
|
DefineMethods.(cls, subject_methods, record: record)
|
21
21
|
|
22
|
+
if not blk.nil?
|
23
|
+
cls.class_exec(&blk)
|
24
|
+
end
|
25
|
+
|
22
26
|
cls
|
23
27
|
end
|
24
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-mimic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.1.
|
4
|
+
version: 2.3.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-invocation
|