ae_easy-qa 0.0.16 → 0.0.17
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_internal.rb +11 -1
- data/lib/ae_easy/qa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fda6d4d8b4d987513a07ffb81bbf0dc992224b1b7fe34fc6829c4af0727710c5
|
4
|
+
data.tar.gz: e3842a3fde1d8e97c46ef020d98658a092c4dbc86b7b754ab1db5af28e860572
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b69425f8d2da55c228ac5da027768e8097f64ee54afdf98c8b34d2bfdc0c8b93785b77cffd1746992d347876f8dc07d0faacfb3145ee62ea8ff31f5616152dba
|
7
|
+
data.tar.gz: 0ecfe27130d7352646756b5dde6a29c78831f2709a518329b5fe3e6ca22d4a5a77da4f751c403bef54a114d51d7ec10875c154adc41147f982f0ddd861b00b31
|
@@ -32,8 +32,9 @@ module AeEasy
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def run
|
35
|
+
output_scraper
|
35
36
|
if status_ok?
|
36
|
-
validate_collections
|
37
|
+
validate_collections if collections && collections.any?
|
37
38
|
else
|
38
39
|
output_response
|
39
40
|
return nil
|
@@ -42,6 +43,10 @@ module AeEasy
|
|
42
43
|
|
43
44
|
private
|
44
45
|
|
46
|
+
def output_scraper
|
47
|
+
puts "Validating scraper: #{scraper_name}"
|
48
|
+
end
|
49
|
+
|
45
50
|
def status_ok?
|
46
51
|
collection_counts.code == 200
|
47
52
|
end
|
@@ -78,6 +83,7 @@ module AeEasy
|
|
78
83
|
end
|
79
84
|
|
80
85
|
def run
|
86
|
+
output_collection
|
81
87
|
if data.any?
|
82
88
|
ValidateGroups.new(data, collection_name, errors).run
|
83
89
|
ValidateRules.new(data, errors, rules).run if rules
|
@@ -87,6 +93,10 @@ module AeEasy
|
|
87
93
|
|
88
94
|
private
|
89
95
|
|
96
|
+
def output_collection
|
97
|
+
puts "Validating collection: #{collection_name}"
|
98
|
+
end
|
99
|
+
|
90
100
|
def outputs_collection_name
|
91
101
|
@outputs_collection_name ||= "#{scraper_name}_#{collection_name}"
|
92
102
|
end
|
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.17
|
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-07-
|
11
|
+
date: 2019-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: answersengine
|