validation_profiler 0.1.8 → 0.1.9

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: e53851548256582e39989a8a22b0018199efdc0e
4
- data.tar.gz: 5f37078093a5739ca512b91e78889d9370944eae
3
+ metadata.gz: aeea0d261c5bc43478dfed9b8ee6375d8c2d98b4
4
+ data.tar.gz: 6a65fdbb426179c31dfde5b32a87d47e10e22922
5
5
  SHA512:
6
- metadata.gz: e1c2f130d07fed5ded2e1400601d1e025702f705acc146689b06878d570a84e31fd8ce1021fa9ffe4a1af17e3dbc6d09ac6a3c4c862f850febba8e07c22e3d5b
7
- data.tar.gz: e8214446621be710d79bc9466cd5d2e8633ccb10b6b5c5ab0dbdde3f5e4a3f2af44b98d16e803da05667f29475f059f082843fda6c9d6f5b66f4287541cebfaf
6
+ metadata.gz: a28cc2e043d6bf806a4d3aff87c0b7a04d750555824b3d72a8f0f2c34dc257cec9d0405315172cd0787e5719133a96cf94cc0787a42f450a3e43cf20505a9cba
7
+ data.tar.gz: 67aedd5f79c0ed5a7449beba86d48b325558a513668bd732f3c820fd0d3169b390d9da9f8a7d4645beea574342d0b570d49ef95c2264cd257129b83fd07ac5ea
@@ -73,7 +73,7 @@ class ValidationRule
73
73
  end
74
74
 
75
75
  #check if the field is required
76
- if (field_value == nil || ((field_value.is_a?(String) || field_value.is_a?(Array)) && field_value.empty?)) && required == false
76
+ if field_value == nil && required == false
77
77
  return false
78
78
  else
79
79
  return true
@@ -1,3 +1,3 @@
1
1
  module ValidationProfiler
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validation_profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaughanbrittonsage
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-16 00:00:00.000000000 Z
11
+ date: 2016-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -106,4 +106,3 @@ specification_version: 4
106
106
  summary: A Validation framework for creating validation profiles, allowing for the
107
107
  separation & reuse of validation logic from the object being validated.
108
108
  test_files: []
109
- has_rdoc: