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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e5e99f35e7a900299c8ca79bf1edecc57a73209c8fab7c292ef5fff11f1e467
4
- data.tar.gz: a28ad622475c98957079ee5a000c02f91b1df05c6f3fd9492bcdfd10a6751edc
3
+ metadata.gz: 8f629915e6b2fee5ae5fcb9c63e340cd19880a72a3b53e06e33d3daff39ffa6a
4
+ data.tar.gz: c3fd0ec0a51e954fccd021c62098192b52913d44e1f0c35299cc77c56e428f57
5
5
  SHA512:
6
- metadata.gz: 86bcd5fcd359872f8eab2b23206bd359b13ab1363d5b7d29eb8ef9899ed421605d3be10cbf4841d2791eeecf46de8292e63d97180c799ae2febb0c955b054c92
7
- data.tar.gz: b767db9489841a70489812bd51be1bb167de8a87b9c91a4f21cb82201d7023ed5e0a05747d853332f936bb0d05f2e3be44d6ed64c6bd24820fb19da1902c708f
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
@@ -1,3 +1,3 @@
1
1
  module Parametric
2
- VERSION = "0.2.9"
2
+ VERSION = "0.2.10"
3
3
  end
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.9
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-08-07 00:00:00.000000000 Z
11
+ date: 2019-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler