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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bfa1d5f7b53de566a64a6710794a4deea0a756db
4
- data.tar.gz: db582e13b81de2322f8da87531e37230eea83800
3
+ metadata.gz: 18f5d726dd1c74633a7f5bf602c4006c177e07b3
4
+ data.tar.gz: 9cecfd90a7c6f8f69effd80ce8a6fc5283ed7365
5
5
  SHA512:
6
- metadata.gz: 762fc9435e4b284e6c2d3c5bb475d1b0e7d8bd23215acb9404b767311fa6328440c328450ce2f1f14ebd0cbb60fa13624c06c3bedf78ea0831f8b9f8ecb5f795
7
- data.tar.gz: cb059925a90d2398b09bb5a0aac0297911a8e221d4bdd73fff1920e722baefc715f0922caf653e14cef95de6540e8e3a3ba6f453cbdf8996d08cf96e4d98034d
6
+ metadata.gz: 0ab0b6cd8a3b1921fc7dd03e4e6daa485229a1d900fe5cfa0cb52ccf31e5672c670dc5dcb14cc7ea4ac632ebd0186aaaa0eeb182b61d43f6687afe9001dfe7d2
7
+ data.tar.gz: 54de4133466ed4fd3fe9ce7de53cf6e92da6954bf1381440e50921e08a9e9c01ff79809b1619618d8563bcb5c0a8a1065aaa68a99d5f94f7fc4ae77a8149a644
@@ -25,26 +25,26 @@ module Happo
25
25
  end
26
26
 
27
27
  diff_images = result_summary[:diff_examples].map do |diff|
28
- image = bucket.objects.build(
29
- "#{dir}/#{diff[:description]}_#{diff[:viewport]}.png")
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] = image.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
- image = bucket.objects.build(
41
- "#{dir}/#{example[:description]}_#{example[:viewport]}.png")
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] = image.url
47
+ example[:url] = img_url
48
48
  example
49
49
  end
50
50
 
@@ -1,4 +1,4 @@
1
1
  # Defines the gem version.
2
2
  module Happo
3
- VERSION = '2.0.3'
3
+ VERSION = '2.0.4'
4
4
  end
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.3
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-27 00:00:00.000000000 Z
12
+ date: 2016-07-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chunky_png