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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7875f0bf89a8dbe060934afe02cca6ebc96ccf53a560f825a97da4adce796d8b
4
- data.tar.gz: 70803a4faa397bcece8b18306fd83123215f6e8e8afefc7b22f0b998b66a7cf8
3
+ metadata.gz: 20df732bb41259dc47be140ac8bea43bd7eceb7d198fa77fe3872400b817e2ab
4
+ data.tar.gz: 4b8401220093653e7541494d051c7b7bad8be43bb6ae323ffb3847e09c54614c
5
5
  SHA512:
6
- metadata.gz: ac08501f7445129fd70d1a4db8c2192b8e1ba466d7ffb4ff135fd1a5af852a336df91f46ddc9518fa81357cfe8689d61c92d4f3e1c7150be89ee2e5f57bed944
7
- data.tar.gz: f17c53c1e5ccc14aef18480c9b113886f33fb4a5f9e42dc05b7ef2768f4b23d22bae70720f02b4ff2783638ecea0ad91677df6a29cf35ec8657293157f153d3d
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 :scrapers, :rules, :outputs
4
+ attr_reader :scraper_name, :collections, :rules, :outputs
5
5
 
6
- def initialize(config, outputs)
7
- @scrapers = config['scrapers']
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
- scrapers.each do |scraper_name, collections|
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
@@ -1,5 +1,5 @@
1
1
  module AeEasy
2
2
  module Qa
3
- VERSION = "0.0.24"
3
+ VERSION = "0.0.25"
4
4
  end
5
5
  end
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ae_easy-qa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.24
4
+ version: 0.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Lynam