ae_easy-qa 0.0.24 → 0.0.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ae_easy/qa/save_output.rb +8 -0
- data/lib/ae_easy/qa/validate_internal.rb +5 -6
- data/lib/ae_easy/qa/version.rb +1 -1
- data/lib/ae_easy/qa.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20df732bb41259dc47be140ac8bea43bd7eceb7d198fa77fe3872400b817e2ab
|
4
|
+
data.tar.gz: 4b8401220093653e7541494d051c7b7bad8be43bb6ae323ffb3847e09c54614c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b87c67688d101fc3fc7693fb9d68a1268dde592af4ba024eaf8661f833aa813e6fc14f7a7bd70ef5aad08d204f5ff32eabe0e4ab990073c1d650d573e1f3a467
|
7
|
+
data.tar.gz: 04c2c0819eb074ef0b8b0164c2a85bd1a2d2ca243909ac28dfa95f28bd78c0513a8fa2f5ea3c66ef92ccd0577186251af34c73eda0cadfcf189cf42e08a821de
|
@@ -24,6 +24,7 @@ module AeEasy
|
|
24
24
|
save_group_errors
|
25
25
|
save_errors
|
26
26
|
save_summary
|
27
|
+
save_current_outputs
|
27
28
|
end
|
28
29
|
|
29
30
|
private
|
@@ -152,6 +153,13 @@ module AeEasy
|
|
152
153
|
a.pop
|
153
154
|
a.join('_')
|
154
155
|
end
|
156
|
+
|
157
|
+
def save_the_outputs
|
158
|
+
if outputs.count > 100
|
159
|
+
puts 'Saving outputs'
|
160
|
+
save_outputs(outputs)
|
161
|
+
end
|
162
|
+
end
|
155
163
|
end
|
156
164
|
end
|
157
165
|
end
|
@@ -1,19 +1,18 @@
|
|
1
1
|
module AeEasy
|
2
2
|
module Qa
|
3
3
|
class ValidateInternal
|
4
|
-
attr_reader :
|
4
|
+
attr_reader :scraper_name, :collections, :rules, :outputs
|
5
5
|
|
6
|
-
def initialize(config, outputs)
|
7
|
-
@
|
6
|
+
def initialize(vars, config, outputs)
|
7
|
+
@scraper_name = vars['scraper_name']
|
8
|
+
@collections = vars['collections']
|
8
9
|
@rules = config['individual_validations']
|
9
10
|
@outputs = outputs
|
10
11
|
end
|
11
12
|
|
12
13
|
def run
|
13
14
|
begin
|
14
|
-
|
15
|
-
ValidateScraper.new(scraper_name, collections, rules, outputs, thresholds).run
|
16
|
-
end
|
15
|
+
ValidateScraper.new(scraper_name, collections, rules, outputs, thresholds).run
|
17
16
|
rescue StandardError => e
|
18
17
|
puts "An error has occurred: #{e}"
|
19
18
|
return nil
|
data/lib/ae_easy/qa/version.rb
CHANGED
data/lib/ae_easy/qa.rb
CHANGED
@@ -22,8 +22,8 @@ module AeEasy
|
|
22
22
|
@data = data
|
23
23
|
end
|
24
24
|
|
25
|
-
def validate_internal(outputs)
|
26
|
-
ValidateInternal.new(config, outputs).run
|
25
|
+
def validate_internal(vars, outputs)
|
26
|
+
ValidateInternal.new(vars, config, outputs).run
|
27
27
|
end
|
28
28
|
|
29
29
|
def validate_external(outputs, collection_name)
|