ae_easy-qa 0.0.7 → 0.0.8
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eced55ff8fd650f46b5a437e49173de21edbfc80476aba7451f56c18578ae511
|
4
|
+
data.tar.gz: b457f4c282ad0d137b82133ac7f3cf366ef850df20bb7deb4b5bb8ce2ec25029
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d584c2a78f1ef72b3093c943c809796519886b285114ebfed7fe5036fa4b3a71bd7a66d93558b9661d070816e6397b2daf4f7d17c2d193d1bbf7346cd1c9902
|
7
|
+
data.tar.gz: 1cafee926301aeda90c583b1184f1e37e8c642891295bea7173661f3d90efff71782946a29f0d464f7b9e706cdfefeeebdf91b21dd88d3b83957ff28a7d8498d
|
@@ -19,9 +19,11 @@ module AeEasy
|
|
19
19
|
private
|
20
20
|
|
21
21
|
def save_group_errors
|
22
|
-
errors.each{|error_name,
|
22
|
+
errors.each{|error_name, output_hash|
|
23
23
|
if error_name != :errored_items
|
24
|
-
|
24
|
+
output_hash['_collection'] = collection_name
|
25
|
+
outputs << output_hash
|
26
|
+
error_name = output_hash[:failure]
|
25
27
|
summary[error_name] += 1
|
26
28
|
end
|
27
29
|
}
|
@@ -13,7 +13,7 @@ module AeEasy
|
|
13
13
|
|
14
14
|
def run
|
15
15
|
begin
|
16
|
-
ValidateGroups.new(data, errors).run
|
16
|
+
ValidateGroups.new(data, collection_name, errors).run
|
17
17
|
ValidateRules.new(data, errors, config['individual_validations']).run if config
|
18
18
|
SaveOutput.new(errors, collection_name, outputs).run
|
19
19
|
return errors
|
@@ -1,10 +1,11 @@
|
|
1
1
|
module AeEasy
|
2
2
|
module Qa
|
3
3
|
class ValidateGroups
|
4
|
-
attr_reader :data, :errors
|
4
|
+
attr_reader :data, :collection_name, :errors
|
5
5
|
|
6
|
-
def initialize(data, errors)
|
6
|
+
def initialize(data, collection_name, errors)
|
7
7
|
@data = data
|
8
|
+
@collection_name = collection_name
|
8
9
|
@errors = errors
|
9
10
|
end
|
10
11
|
|
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.8
|
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-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: answersengine
|