happo 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/happo/uploader.rb +6 -6
- data/lib/happo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18f5d726dd1c74633a7f5bf602c4006c177e07b3
|
4
|
+
data.tar.gz: 9cecfd90a7c6f8f69effd80ce8a6fc5283ed7365
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ab0b6cd8a3b1921fc7dd03e4e6daa485229a1d900fe5cfa0cb52ccf31e5672c670dc5dcb14cc7ea4ac632ebd0186aaaa0eeb182b61d43f6687afe9001dfe7d2
|
7
|
+
data.tar.gz: 54de4133466ed4fd3fe9ce7de53cf6e92da6954bf1381440e50921e08a9e9c01ff79809b1619618d8563bcb5c0a8a1065aaa68a99d5f94f7fc4ae77a8149a644
|
data/lib/happo/uploader.rb
CHANGED
@@ -25,26 +25,26 @@ module Happo
|
|
25
25
|
end
|
26
26
|
|
27
27
|
diff_images = result_summary[:diff_examples].map do |diff|
|
28
|
-
|
29
|
-
|
28
|
+
img_url = "#{dir}/#{diff[:description]}_#{diff[:viewport]}.png"
|
29
|
+
image = bucket.objects.build(img_url)
|
30
30
|
image.content = open(Happo::Utils.path_to(diff[:description],
|
31
31
|
diff[:viewport],
|
32
32
|
'diff.png'))
|
33
33
|
image.content_type = 'image/png'
|
34
34
|
image.save
|
35
|
-
diff[:url] =
|
35
|
+
diff[:url] = img_url
|
36
36
|
diff
|
37
37
|
end
|
38
38
|
|
39
39
|
new_images = result_summary[:new_examples].map do |example|
|
40
|
-
|
41
|
-
|
40
|
+
img_url = "#{dir}/#{example[:description]}_#{example[:viewport]}.png"
|
41
|
+
image = bucket.objects.build(img_url)
|
42
42
|
image.content = open(Happo::Utils.path_to(example[:description],
|
43
43
|
example[:viewport],
|
44
44
|
'previous.png'))
|
45
45
|
image.content_type = 'image/png'
|
46
46
|
image.save
|
47
|
-
example[:url] =
|
47
|
+
example[:url] = img_url
|
48
48
|
example
|
49
49
|
end
|
50
50
|
|
data/lib/happo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: happo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henric Trotzig
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-07-
|
12
|
+
date: 2016-07-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chunky_png
|