validation_profiler 1.3.0 → 1.3.1

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: 3381f780d5f74c979b4fb6900070803ac626b45b
4
- data.tar.gz: 1a127233754e44b8a23a5ff0bd5bb88b1319d19e
3
+ metadata.gz: d2b5014c12eb5cb06db2536e8f16de6b5632cb96
4
+ data.tar.gz: f318a25ed57f3517e2a23493deccbd974d9f10b8
5
5
  SHA512:
6
- metadata.gz: 305a7a001b7bf0a378a467032311a94e1dfc5dde3d2d251dfa2323393212ed78c89ac6d68dc94f2241aef000862333f5add068eb33a6eb0c19174311f985f052
7
- data.tar.gz: 78926ac474b0a798a90fda96bba24603735f4552b5a10de723f08e2a22d7edf2912ed719214c960045a311925e9323e5c6ed04385a2402c34da1ea4a64a3d370
6
+ metadata.gz: d77cf55275d066bb5d083a8eb4039c82a6b57fdd52b44c452b2555425e892828ca8bcde274381e230eb895c5ab9fe708fa51a97457f2b72eb9764963847b96b1
7
+ data.tar.gz: 60cb934b0e2767f59c3b7ac78b0b6b1c75725a189dde6d17fa05fc2cde2b69d51c7726002f2d0c55053e16a751465f871a73d12bb4d05b6eeff0a3dd0c69690e
@@ -28,6 +28,10 @@ module ValidationProfiler
28
28
  return true
29
29
  end
30
30
 
31
+ if field_value == nil || field_value.to_s.gsub(' ','').length == 0
32
+ return false
33
+ end
34
+
31
35
  field_value = field_value.to_s
32
36
 
33
37
  if attributes[:hyphens] == true && attributes[:brackets] == true
@@ -1,3 +1,3 @@
1
1
  module ValidationProfiler
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
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: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaughanbrittonsage