percy-client 2.0.8 → 2.0.9

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
  SHA256:
3
- metadata.gz: 67e169f3a76e0b95cf9a89ba3626f27fe4bfa51cfca689be70be5bbcdd7b0467
4
- data.tar.gz: 2f0c2b2ea7b32c5037dbe07ccfeecfb49ae2620e2a62319f666a172fb9bdf806
3
+ metadata.gz: 2bcc36c89ce0d96276656d6c3c38a3d358b19f0137cf8dcc4a033dce771d9c16
4
+ data.tar.gz: 375f3e358b24b79b7e58f800f968b660972b7ed66cc9c0452645fea2351edab1
5
5
  SHA512:
6
- metadata.gz: d52a2fc7d595c153205499958d5b69bd907dc3f1134f2f471e352d3c7c4bb64237f91ac28028364025441ae25da9dda884346fffa68b277bd2325b8b7b1cf14e
7
- data.tar.gz: a7501fe654ced36b6b35ce62203e2a101e6ea1332b1b588e4ad2a048dc741b70fdd34b49b868186046a6d2249da4a79779f747d938510d6303b5b38510759708
6
+ metadata.gz: 3ac1f6cd819a63cfbf10a2231c540efc2f3173d12ef0d77a099d43444ba40f4c4f42d613abcdc9c6c674001197a2324beba3a604b277906c8455acf896ac7b44
7
+ data.tar.gz: cbf9d25f24c69f6ff2998071a461136d40bfe9d6d1677b3d9679ac97cd1b0d3c968ab57e5794ddd3335d4c957662d35095188b4d431f48563d4522cc44032818
@@ -41,7 +41,7 @@ module Percy
41
41
  'resource-url' => Addressable::URI.escape(resource_url),
42
42
  'mimetype' => mimetype,
43
43
  'is-root' => is_root,
44
- 'for-widths' => [root_for_width],
44
+ 'for-widths' => root_for_width ? [root_for_width] : nil,
45
45
  },
46
46
  }
47
47
  end
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  class Client
3
- VERSION = '2.0.8'.freeze
3
+ VERSION = '2.0.9'.freeze
4
4
  end
5
5
  end
@@ -31,7 +31,7 @@ RSpec.describe Percy::Client::Resource do
31
31
  'resource-url' => '/foo.html',
32
32
  'mimetype' => nil,
33
33
  'is-root' => nil,
34
- 'for-widths' => [nil],
34
+ 'for-widths' => nil,
35
35
  },
36
36
  )
37
37
  end
@@ -50,7 +50,7 @@ RSpec.describe Percy::Client::Resource do
50
50
  'resource-url' => '/foo%20new.html',
51
51
  'mimetype' => 'text/html',
52
52
  'is-root' => true,
53
- 'for-widths' => [nil],
53
+ 'for-widths' => nil,
54
54
  },
55
55
  )
56
56
  end
@@ -33,7 +33,7 @@ RSpec.describe Percy::Client::Snapshots, :vcr do
33
33
  'resource-url' => '/foo/test.html',
34
34
  'mimetype' => nil,
35
35
  'is-root' => true,
36
- 'for-widths' => [nil],
36
+ 'for-widths' => nil,
37
37
  },
38
38
  },
39
39
  {
@@ -43,7 +43,7 @@ RSpec.describe Percy::Client::Snapshots, :vcr do
43
43
  'resource-url' => '/css/test.css',
44
44
  'mimetype' => nil,
45
45
  'is-root' => nil,
46
- 'for-widths' => [nil],
46
+ 'for-widths' => nil,
47
47
  },
48
48
  },
49
49
  ],
@@ -97,7 +97,7 @@ RSpec.describe Percy::Client::Snapshots, :vcr do
97
97
  'resource-url' => '/foo/test.html',
98
98
  'mimetype' => nil,
99
99
  'is-root' => true,
100
- 'for-widths' => [nil],
100
+ 'for-widths' => nil,
101
101
  },
102
102
  },
103
103
  {
@@ -107,7 +107,7 @@ RSpec.describe Percy::Client::Snapshots, :vcr do
107
107
  'resource-url' => '/css/test.css',
108
108
  'mimetype' => nil,
109
109
  'is-root' => nil,
110
- 'for-widths' => [nil],
110
+ 'for-widths' => nil,
111
111
  },
112
112
  },
113
113
  ],
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: 2.0.8
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Perceptual Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-29 00:00:00.000000000 Z
11
+ date: 2023-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday