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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4c3d03f7ad25f307d0068e73eb20a9f9b715b44e8b3ffbc9cd56965c10eb4a6
4
- data.tar.gz: 130a7c288d9aa96b0da8f1618ffcc6a5765bf4f286fc95561dbe37103a901214
3
+ metadata.gz: fda6d4d8b4d987513a07ffb81bbf0dc992224b1b7fe34fc6829c4af0727710c5
4
+ data.tar.gz: e3842a3fde1d8e97c46ef020d98658a092c4dbc86b7b754ab1db5af28e860572
5
5
  SHA512:
6
- metadata.gz: f6df567ad8782ea20a8b46513eeeb2df5a57258ade4ed543c11c7342b5a456588dd995bf6bd0beb913c3f92e466977c268757404f43d79bbb5599076695269a7
7
- data.tar.gz: 0c01d7f13f479d8a814f474f4e4517ad80e3539c74dfebb11bde91f455216edbef2eade537dd1278d803e11a62c5786a3680322512d9323b50d628a2b8309bd8
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
@@ -1,5 +1,5 @@
1
1
  module AeEasy
2
2
  module Qa
3
- VERSION = "0.0.16"
3
+ VERSION = "0.0.17"
4
4
  end
5
5
  end
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.16
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-22 00:00:00.000000000 Z
11
+ date: 2019-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: answersengine