ae_easy-qa 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ae_easy/qa/validate_type.rb +2 -2
- data/lib/ae_easy/qa/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: febdd0bea00e94dc6dc192aed9f91816c0bf0460dce74f88ec8ff72bf5677846
|
|
4
|
+
data.tar.gz: 5611aae1a6bcf50c4a9282643e44bdbeb5343410dc8b8c4b0001660c5eeaf82f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 888b3ceac73bd866cafb17c05378ee8bd5b6c9a3da448b0002448f747c05ba13e227eb0a7e99a823327e55b5927aa65d650b341009b8f3d259fd2b1a3eaa3700
|
|
7
|
+
data.tar.gz: dfbe11520a99b2f0a8bfe742c4c9c80eeed1d87469121911873f3511c1fc35889bf565bb52a407cb468e6e70568d6760da6ce5d9c7478e1f7402b8a6d20efd04
|
|
@@ -24,9 +24,9 @@ module AeEasy
|
|
|
24
24
|
when 'String'
|
|
25
25
|
add_errored_item(data_hash, field_to_validate, 'type') if data_hash[field_to_validate].class != String
|
|
26
26
|
when 'Integer'
|
|
27
|
-
add_errored_item(data_hash, field_to_validate, 'type') unless data_hash[field_to_validate].class == Fixnum || data_hash[field_to_validate].to_s.strip =~ /\A\d+(\,\d+)
|
|
27
|
+
add_errored_item(data_hash, field_to_validate, 'type') unless data_hash[field_to_validate].class == Fixnum || data_hash[field_to_validate].to_s.strip =~ /\A\d+(\,\d+)?\z/
|
|
28
28
|
when 'Float'
|
|
29
|
-
add_errored_item(data_hash, field_to_validate, 'type') unless data_hash[field_to_validate].class == Float || data_hash[field_to_validate].to_s.strip =~ /\A
|
|
29
|
+
add_errored_item(data_hash, field_to_validate, 'type') unless data_hash[field_to_validate].class == Float || data_hash[field_to_validate].to_s.strip =~ /\A\.?\d+(\,\d+)?(\.\d+)?\z/
|
|
30
30
|
when 'Date'
|
|
31
31
|
validate_date_type
|
|
32
32
|
when 'Url'
|
data/lib/ae_easy/qa/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ae_easy-qa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Lynam
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-06-
|
|
11
|
+
date: 2019-06-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: answersengine
|
|
@@ -106,7 +106,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
106
106
|
- !ruby/object:Gem::Version
|
|
107
107
|
version: '0'
|
|
108
108
|
requirements: []
|
|
109
|
-
|
|
109
|
+
rubyforge_project:
|
|
110
|
+
rubygems_version: 2.7.8
|
|
110
111
|
signing_key:
|
|
111
112
|
specification_version: 4
|
|
112
113
|
summary: AnswersEngine Easy Quality Assurance gem
|