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: 56b2acc64b1433c38e3122e3a333162c2cd26bfc26cf4113188c4b824cf0031d
4
- data.tar.gz: 62f64b83d730b16c28333efadec41f430fc661dcb5f63b08298f35beb8f5d306
3
+ metadata.gz: eced55ff8fd650f46b5a437e49173de21edbfc80476aba7451f56c18578ae511
4
+ data.tar.gz: b457f4c282ad0d137b82133ac7f3cf366ef850df20bb7deb4b5bb8ce2ec25029
5
5
  SHA512:
6
- metadata.gz: b788dbd937b974aad298d3dc1f2d022146356f832a8729d9f201be6dd49ca401a08bbf0368fa585055f80765ef9408d6c0f201d2a7709f6481b43ab2ea4bbb5b
7
- data.tar.gz: ff9b23ec44f8a40b896a12a73655d2be9123debec9174185d99db4f0fde1d2fcebc2ca46abe2e5fc675936bec0fd6f4ee7000879f41d897c9fd3974ed8a3a0c8
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, value|
22
+ errors.each{|error_name, output_hash|
23
23
  if error_name != :errored_items
24
- outputs << { error_name => 'fail', '_collection' => collection_name }
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
 
@@ -78,7 +78,7 @@ module AeEasy
78
78
  end
79
79
 
80
80
  def run
81
- ValidateGroups.new(data, errors).run
81
+ ValidateGroups.new(data, collection_name, errors).run
82
82
  ValidateRules.new(data, errors, rules).run
83
83
  SaveOutput.new(errors, outputs_collection_name, outputs).run
84
84
  end
@@ -1,5 +1,5 @@
1
1
  module AeEasy
2
2
  module Qa
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
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.7
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-19 00:00:00.000000000 Z
11
+ date: 2019-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: answersengine