happo 2.0.4 → 2.0.5

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: 18f5d726dd1c74633a7f5bf602c4006c177e07b3
4
- data.tar.gz: 9cecfd90a7c6f8f69effd80ce8a6fc5283ed7365
3
+ metadata.gz: be27b4eeb9508f8a6886ce3f030bc7f9d8598faa
4
+ data.tar.gz: 54adb00c4d569281e0bf0f6f4485d03a15e99c28
5
5
  SHA512:
6
- metadata.gz: 0ab0b6cd8a3b1921fc7dd03e4e6daa485229a1d900fe5cfa0cb52ccf31e5672c670dc5dcb14cc7ea4ac632ebd0186aaaa0eeb182b61d43f6687afe9001dfe7d2
7
- data.tar.gz: 54de4133466ed4fd3fe9ce7de53cf6e92da6954bf1381440e50921e08a9e9c01ff79809b1619618d8563bcb5c0a8a1065aaa68a99d5f94f7fc4ae77a8149a644
6
+ metadata.gz: be8404dfc4c159f7c58860c4fe22dbce9e0f000b348c670a9940153fc43339881ad610b50484c27ef3745fd83816de8f9dc4e5598c203fb5a54b7000f31e9f76
7
+ data.tar.gz: 7d4518cd0cbf90d98c2c4a5f01f0095a8102c6edf66d44fa0f15093624960047c40e06ff7e27ed2d51071ece9fe50420fef0337e569d3813b47290371dcd0936
@@ -25,26 +25,26 @@ module Happo
25
25
  end
26
26
 
27
27
  diff_images = result_summary[:diff_examples].map do |diff|
28
- img_url = "#{dir}/#{diff[:description]}_#{diff[:viewport]}.png"
29
- image = bucket.objects.build(img_url)
28
+ img_name = "#{diff[:description]}_#{diff[:viewport]}.png"
29
+ image = bucket.objects.build("#{dir}/#{img_name}")
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] = img_url
35
+ diff[:url] = img_name
36
36
  diff
37
37
  end
38
38
 
39
39
  new_images = result_summary[:new_examples].map do |example|
40
- img_url = "#{dir}/#{example[:description]}_#{example[:viewport]}.png"
41
- image = bucket.objects.build(img_url)
40
+ img_name = "#{example[:description]}_#{example[:viewport]}.png"
41
+ image = bucket.objects.build("#{dir}/#{img_name}")
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] = img_url
47
+ example[:url] = img_name
48
48
  example
49
49
  end
50
50
 
data/lib/happo/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # Defines the gem version.
2
2
  module Happo
3
- VERSION = '2.0.4'
3
+ VERSION = '2.0.5'
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.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henric Trotzig