parametric 0.2.9 → 0.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parametric/block_validator.rb +4 -4
- data/lib/parametric/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: 8f629915e6b2fee5ae5fcb9c63e340cd19880a72a3b53e06e33d3daff39ffa6a
|
4
|
+
data.tar.gz: c3fd0ec0a51e954fccd021c62098192b52913d44e1f0c35299cc77c56e428f57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b46933db3b2bddd50ea66ec5e03faeb637248382e9a6fab81b2c539e201f148dc88ddc49e77f467974813a0c30a9c5196d48c3eef69f324ac47b15f39cd3d9e
|
7
|
+
data.tar.gz: 14ce2da62e976fa4c234d25087cfa9abeff2b4d4a077dbeab2a85654cbcc641f33fadcd9f42c76f02cf21321468d971e754e9ed4ff76ee0c314c1382d0201770
|
@@ -8,12 +8,12 @@ module Parametric
|
|
8
8
|
|
9
9
|
def self.message(&block)
|
10
10
|
@message_block = block if block_given?
|
11
|
-
@message_block
|
11
|
+
@message_block if instance_variable_defined?('@message_block')
|
12
12
|
end
|
13
13
|
|
14
14
|
def self.validate(&validate_block)
|
15
15
|
@validate_block = validate_block if block_given?
|
16
|
-
@validate_block
|
16
|
+
@validate_block if instance_variable_defined?('@validate_block')
|
17
17
|
end
|
18
18
|
|
19
19
|
def self.coerce(&coerce_block)
|
@@ -23,12 +23,12 @@ module Parametric
|
|
23
23
|
|
24
24
|
def self.eligible(&block)
|
25
25
|
@eligible_block = block if block_given?
|
26
|
-
@eligible_block
|
26
|
+
@eligible_block if instance_variable_defined?('@eligible_block')
|
27
27
|
end
|
28
28
|
|
29
29
|
def self.meta_data(&block)
|
30
30
|
@meta_data_block = block if block_given?
|
31
|
-
@meta_data_block
|
31
|
+
@meta_data_block if instance_variable_defined?('@meta_data_block')
|
32
32
|
end
|
33
33
|
|
34
34
|
attr_reader :message
|
data/lib/parametric/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parametric
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ismael Celis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|