happo 2.0.6 → 2.0.7

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: 7603d4cba7e75cb4a0614454c3ae8a3e7e0fac3e
4
- data.tar.gz: c5c8603a917d60d44bad0bf8a78a8cb5ba4d2e43
3
+ metadata.gz: 43b95ce6006d5d5246bca90fe6fafc4069d8455b
4
+ data.tar.gz: ccf5377c3bdde8d7c5d26f62cb20ed8528003856
5
5
  SHA512:
6
- metadata.gz: 894ef9b1e71cddcb00d24e8b5c7afe3c311f37afd682143d02b3c713749ae509986e71a45cd77a6e7676d58036273d77946f72835d6e253d1791bad6aac70003
7
- data.tar.gz: 728e351db9869e5e533049d42740759b1d543eb5fc3322358cb1d000204961d6a6ec85812bcc0d2e197725691326a0bcbf4fcb51881246e01e71c67e8c5ecc65
6
+ metadata.gz: cd127962736543218ba0358f0d237f45e72847432301711f48390aa7a8b12327c9bb8f622b4f2ca296de4b25cbb2f8eec62050eec659909fac67b896cdf4c190
7
+ data.tar.gz: 5611ae5b5f23aab6fa0ae94e729641b4a316684acd209384830aebef1d1452945c72012dd2bd64d360bd27228b4d3d43367092315e5dba93183541ab73e8fa84
@@ -1,5 +1,6 @@
1
1
  require 's3'
2
2
  require 'securerandom'
3
+ require 'uri'
3
4
 
4
5
  module Happo
5
6
  class Uploader
@@ -32,7 +33,7 @@ module Happo
32
33
  'diff.png'))
33
34
  image.content_type = 'image/png'
34
35
  image.save
35
- diff[:url] = img_name
36
+ diff[:url] = URI.escape(img_name)
36
37
  diff
37
38
  end
38
39
 
@@ -44,7 +45,7 @@ module Happo
44
45
  'current.png'))
45
46
  image.content_type = 'image/png'
46
47
  image.save
47
- example[:url] = img_name
48
+ example[:url] = URI.escape(img_name)
48
49
  example
49
50
  end
50
51
 
data/lib/happo/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # Defines the gem version.
2
2
  module Happo
3
- VERSION = '2.0.6'
3
+ VERSION = '2.0.7'
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.6
4
+ version: 2.0.7
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-29 00:00:00.000000000 Z
12
+ date: 2016-08-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chunky_png