percy-client 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/percy/client/resources.rb +2 -1
- data/lib/percy/client/version.rb +1 -1
- data/spec/lib/percy/client/resources_spec.rb +2 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 927d2422558ddcdfc7ea1ba02f45a45657533a6c
|
4
|
+
data.tar.gz: 780462719756a3027f400015bdf6b2d548e605a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e639771570ab45a086fe5153d8b06b32f7b07ec963298eec85098b7e27d663d2466b48ea8b77ec08847687ca69ce54bdb5604c8fb311ca6bc652b5182010e74
|
7
|
+
data.tar.gz: 45bef59d37c95316520df8d3a8e74e154daf13ffb4f7683bfdf068060c57ee214972c536cebe0832d63516c232a2def18cd2ea63bab09bab030be45de46311b1
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'base64'
|
2
2
|
require 'digest'
|
3
|
+
require 'uri'
|
3
4
|
|
4
5
|
module Percy
|
5
6
|
class Client
|
@@ -36,7 +37,7 @@ module Percy
|
|
36
37
|
'type' => 'resources',
|
37
38
|
'id' => sha,
|
38
39
|
'attributes' => {
|
39
|
-
'resource-url' => resource_url,
|
40
|
+
'resource-url' => URI.escape(resource_url),
|
40
41
|
'mimetype' => mimetype,
|
41
42
|
'is-root' => is_root,
|
42
43
|
},
|
data/lib/percy/client/version.rb
CHANGED
@@ -19,7 +19,7 @@ RSpec.describe Percy::Client::Resources, :vcr do
|
|
19
19
|
end
|
20
20
|
it 'can be initialized with all data' do
|
21
21
|
resource = Percy::Client::Resource.new(
|
22
|
-
'/foo.html',
|
22
|
+
'/foo new.html',
|
23
23
|
sha: sha,
|
24
24
|
is_root: true,
|
25
25
|
mimetype: 'text/html',
|
@@ -29,7 +29,7 @@ RSpec.describe Percy::Client::Resources, :vcr do
|
|
29
29
|
'type' => 'resources',
|
30
30
|
'id' => sha,
|
31
31
|
'attributes' => {
|
32
|
-
'resource-url' => '/foo.html',
|
32
|
+
'resource-url' => '/foo%20new.html',
|
33
33
|
'mimetype' => 'text/html',
|
34
34
|
'is-root' => true,
|
35
35
|
},
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: percy-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Perceptual Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
169
|
version: '0'
|
170
170
|
requirements: []
|
171
171
|
rubyforge_project:
|
172
|
-
rubygems_version: 2.
|
172
|
+
rubygems_version: 2.4.5
|
173
173
|
signing_key:
|
174
174
|
specification_version: 4
|
175
175
|
summary: Percy::Client
|
@@ -190,3 +190,4 @@ test_files:
|
|
190
190
|
- spec/lib/percy_spec.rb
|
191
191
|
- spec/spec_helper.rb
|
192
192
|
- spec/support/vcr_setup.rb
|
193
|
+
has_rdoc:
|