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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mimic/build.rb +5 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e914127f63af9cf5a3f1eaf9bbe106e95cc390241cf1bfb34e5f7f30312e91f
4
- data.tar.gz: 59f35d69cddfb389232537da6857be6c4d2a980172c9dd8021384017e503de10
3
+ metadata.gz: 0add0e7fe81fc75241500f37747288fb82a6500cabb367a41a35b90122e773ea
4
+ data.tar.gz: 8c5c2b216a959dad72f0fb8735b196de4d6d1f4d7fe4143d363e2aa875486ad7
5
5
  SHA512:
6
- metadata.gz: 558016928680a0aa153522429c38e7f25f662a8f2cdcdb41f9820b8d7e7a4181378d8a3ac91438f7e2f8bb44ccbeea49664fe41f42445717a1b21e5bc049cea4
7
- data.tar.gz: 553605c025140b601baa51e0b9b75304a0e8f2905e828c5efd724220af21ef7b7a258889e64bf818a0cc5833a992b895edc6097ea34c5fc2dc7d6d62bcc07372
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, &blk)
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.3
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-03-25 00:00:00.000000000 Z
11
+ date: 2022-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-invocation