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 +4 -4
- data/lib/happo/uploader.rb +3 -2
- 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: 43b95ce6006d5d5246bca90fe6fafc4069d8455b
|
4
|
+
data.tar.gz: ccf5377c3bdde8d7c5d26f62cb20ed8528003856
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd127962736543218ba0358f0d237f45e72847432301711f48390aa7a8b12327c9bb8f622b4f2ca296de4b25cbb2f8eec62050eec659909fac67b896cdf4c190
|
7
|
+
data.tar.gz: 5611ae5b5f23aab6fa0ae94e729641b4a316684acd209384830aebef1d1452945c72012dd2bd64d360bd27228b4d3d43367092315e5dba93183541ab73e8fa84
|
data/lib/happo/uploader.rb
CHANGED
@@ -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
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.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-
|
12
|
+
date: 2016-08-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chunky_png
|