validation_profiler 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: ddc89dc09d186c2e17e3ddbcbaf5858f0237c1d9
4
- data.tar.gz: 6c4ef20c8747364691427d3fe74842c3780d2898
3
+ metadata.gz: 9490c77f17ba1d1d2b7def8c794d94f6462f7339
4
+ data.tar.gz: b4895489d995672e613269b970ad9af43898947a
5
5
  SHA512:
6
- metadata.gz: 260d32323cec75dcb8689f4d6b40573c0e19bcbb1ffd6bf7ab9366778dd71d6c8e1d18f64ec0bb1df733566238e6ab73d0f361d587a9ec2aeec920ecfd9151cb
7
- data.tar.gz: 49ce790266fcbecb4d393277c7fe29ebe09389e292e361ceff70bb057e8796b77e070b932d986495d3e69d8a9361c3ad2cc14425a4e2e18781841bd20d921835
6
+ metadata.gz: 93465aea3f838984c77b090b0c56dddd0bd6dc1048e9192f518f0a025c1e1144a163a36048cb169cdb6a8ec6287d398b428fda008654e97a9499e9ff6ab160b6
7
+ data.tar.gz: b7c9bf9ffabe1674a835bcacfbc2cc9b8a6a2657bcf986640fee74967eb9a6014713165ac70bb92234b9dc5312900d81a85c713f33642cebfd91d7e8a8ae207c
@@ -1,3 +1,3 @@
1
1
  module ValidationProfiler
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -38,6 +38,10 @@ class ValidationManager
38
38
  validation_rules = profile.class_variable_get(:@@validation_rules)
39
39
  validation_rules.each do |r|
40
40
 
41
+ if ValidationRuleManager.instance == nil
42
+ ValidationRuleManager.new
43
+ end
44
+
41
45
  rule = ValidationRuleManager.instance.get_rule(r[:name])
42
46
  outcome = rule.validate(obj, r[:field], r[:attributes])
43
47
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validation_profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaughanbrittonsage