percy-client 0.3.1 → 0.3.2

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: 8d2b12edbcf92649f7f63cf396884d852332bb38
4
- data.tar.gz: 4ebf745962d67e4bc58fa5b636c9d6b6f211aa49
3
+ metadata.gz: 927d2422558ddcdfc7ea1ba02f45a45657533a6c
4
+ data.tar.gz: 780462719756a3027f400015bdf6b2d548e605a2
5
5
  SHA512:
6
- metadata.gz: 3c29f557ff8cadba3b55e721b72fe0cd29493e2f4fc9ce6490d1cbff7ce43e5d8bd81002665923c45adb808ba364b6acb670bdb4e37da0f12c8e21fd0a1d244f
7
- data.tar.gz: 2a5363ce9f0a34254a6495bb8cb8e219de99057caa1035d885106851ac85cb748847ed32fb4bfce1c5dd38e91e5d2e1312cbf8f26b88d60254f5beab66fb90af
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
  },
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  class Client
3
- VERSION = '0.3.1'
3
+ VERSION = '0.3.2'
4
4
  end
5
5
  end
@@ -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.1
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-03 00:00:00.000000000 Z
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.2.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: