diffux_ci 0.4.2 → 0.4.3

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
  SHA1:
3
- metadata.gz: 487ecb122914c87206dc4e593571f405b732b71c
4
- data.tar.gz: 7c49e81764fcf6c5e0553357cab570a7214be0b8
3
+ metadata.gz: f25586ff4d7dd99dbe60ef93c34fb501f1c61447
4
+ data.tar.gz: 0b16cf2a646f2fd16467f7bab6eca4d5a18f1b34
5
5
  SHA512:
6
- metadata.gz: 45d01fffa9f37fceac8764c6d7d1067e987e49e423aedf736aec068df69267f5330a19c3c9a57b05d699ed20bb64b89d5df96ec122be6e9a0c651307cfbafe20
7
- data.tar.gz: 8b2c46ca61c72880c664346f58a8ffc6efc5ae3fb14a9d5d8e2bdde22b572d90d8d1554964d4778ae251d9f8585042d6d86602437785a8b043f0bc18defe3535
6
+ metadata.gz: 0b6d5127b86bb9024e84d660f19eeafd933f902ca78dcde1b5b59b3fb1742fbfbf5122d8d099639691db913a522acc175a1418f2a195e5969a3cc3b2454ca730
7
+ data.tar.gz: 0ca9eb6f83b7419d5ec05d9d4cc17fe251cd2ad8fe14460f32a9f446ffa2c6161ed79fe804db1f7c4cbab3c67004ee8bd0e08bcd278b8c53b42aead87a49d1cf
@@ -10,15 +10,15 @@ class DiffuxCIUploader
10
10
  end
11
11
 
12
12
  def upload_diffs
13
- current_snapshots = DiffuxCIUtils.current_snapshots
14
- return [] if current_snapshots[:diffs].empty?
13
+ result_summary = YAML.load(File.read(File.join(
14
+ DiffuxCIUtils.config['snapshots_folder'], 'result_summary.yaml')))
15
15
 
16
- bucket = find_or_build_bucket
16
+ return [] if result_summary[:diff_examples].empty? &&
17
+ result_summary[:new_examples].empty?
17
18
 
19
+ bucket = find_or_build_bucket
18
20
  dir = SecureRandom.uuid
19
21
 
20
- result_summary = YAML.load(File.read(File.join(
21
- DiffuxCIUtils.config['snapshots_folder'], 'result_summary.yaml')))
22
22
  diff_images = result_summary[:diff_examples].map do |diff|
23
23
  image = bucket.objects.build(
24
24
  "#{dir}/#{diff[:description]}_#{diff[:viewport]}.png")
@@ -1,4 +1,4 @@
1
1
  # Defines the gem version.
2
2
  module DiffuxCI
3
- VERSION = '0.4.2'
3
+ VERSION = '0.4.3'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diffux_ci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henric Trotzig