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 +4 -4
- data/lib/diffux_ci_uploader.rb +5 -5
- data/lib/diffux_ci_version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f25586ff4d7dd99dbe60ef93c34fb501f1c61447
|
4
|
+
data.tar.gz: 0b16cf2a646f2fd16467f7bab6eca4d5a18f1b34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b6d5127b86bb9024e84d660f19eeafd933f902ca78dcde1b5b59b3fb1742fbfbf5122d8d099639691db913a522acc175a1418f2a195e5969a3cc3b2454ca730
|
7
|
+
data.tar.gz: 0ca9eb6f83b7419d5ec05d9d4cc17fe251cd2ad8fe14460f32a9f446ffa2c6161ed79fe804db1f7c4cbab3c67004ee8bd0e08bcd278b8c53b42aead87a49d1cf
|
data/lib/diffux_ci_uploader.rb
CHANGED
@@ -10,15 +10,15 @@ class DiffuxCIUploader
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def upload_diffs
|
13
|
-
|
14
|
-
|
13
|
+
result_summary = YAML.load(File.read(File.join(
|
14
|
+
DiffuxCIUtils.config['snapshots_folder'], 'result_summary.yaml')))
|
15
15
|
|
16
|
-
|
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")
|
data/lib/diffux_ci_version.rb
CHANGED