percy-client 1.11.0 → 1.12.0

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: 534de527720af99352b37a5d0874988c732510e7
4
- data.tar.gz: e37e54c7ceead61aaa64a72e22a77b8dc6863b1c
3
+ metadata.gz: 8556dfa5a032fd21caa62af7e38c2b93ce945a40
4
+ data.tar.gz: 0d176888922bc1309e4bdd217b34e6c6835356a0
5
5
  SHA512:
6
- metadata.gz: 4185a73fbcd468df520eaaff58cfacd988b68d0f38c64e4bd26864650cf03aba8349ca8a9f3b89cd10c5a716beac8bf5ceefa06654065b56ba2938a4f41a3fd0
7
- data.tar.gz: 30d5f6a43d1399081f41f76b5164f69057de5bb143402ba090a23e5075838734df987cf0be2ff3a50e70e0e8107e166b53745593268be954846a9bf69b670b4e
6
+ metadata.gz: 22b2d8ef3a9d9c79f106687ef66c4fb893354512598448c3c36cc193205f8d1746d1902b998a8a8ea90d73f6cfdc1b2edb09ac6a4ce9bab7e11ec288eacaefa1
7
+ data.tar.gz: 0ce75d192a413664ff2c032c326f688b17748b8cd30cac51746620b5081aedf5271d89ad73da6c02ef66f611602b7faab090e80e51d2426edf1032e8d7816b03
@@ -8,7 +8,7 @@
8
8
 
9
9
  ```bash
10
10
  bundle exec rake build
11
- gem publish pkg/percy-client-1.XX.XX.gem
11
+ gem push pkg/percy-client-1.XX.XX.gem
12
12
  ```
13
13
 
14
14
  * Announce the new release,
@@ -14,6 +14,7 @@ module Percy
14
14
  'attributes' => {
15
15
  'name' => options[:name],
16
16
  'enable-javascript' => options[:enable_javascript],
17
+ 'minimum-height' => options[:minimum_height],
17
18
  'widths' => widths,
18
19
  },
19
20
  'relationships' => {
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  class Client
3
- VERSION = '1.11.0'.freeze
3
+ VERSION = '1.12.0'.freeze
4
4
  end
5
5
  end
@@ -19,6 +19,7 @@ RSpec.describe Percy::Client::Snapshots, :vcr do
19
19
  'attributes' => {
20
20
  'name' => 'homepage',
21
21
  'enable-javascript' => true,
22
+ 'minimum-height' => nil,
22
23
  'widths' => Percy.config.default_widths,
23
24
  },
24
25
  'relationships' => {
@@ -62,7 +63,7 @@ RSpec.describe Percy::Client::Snapshots, :vcr do
62
63
  expect(snapshot['data']['attributes']['name']).to eq('homepage')
63
64
  expect(snapshot['data']['relationships']['missing-resources']).to be
64
65
  end
65
- it 'overrides default_widths if given' do
66
+ it 'passes through certain arguments' do
66
67
  build = Percy.create_build('fotinakis/percy-examples')
67
68
  resources = []
68
69
  resources << Percy::Client::Resource.new('/foo/test.html', sha: sha, is_root: true)
@@ -78,6 +79,7 @@ RSpec.describe Percy::Client::Snapshots, :vcr do
78
79
  'attributes' => {
79
80
  'name' => 'homepage',
80
81
  'enable-javascript' => nil,
82
+ 'minimum-height' => 700,
81
83
  'widths' => [320, 1280],
82
84
  },
83
85
  'relationships' => {
@@ -113,6 +115,7 @@ RSpec.describe Percy::Client::Snapshots, :vcr do
113
115
  resources,
114
116
  name: 'homepage',
115
117
  widths: [320, 1280],
118
+ minimum_height: 700,
116
119
  )
117
120
 
118
121
  expect(snapshot['data']).to be
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: 1.11.0
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Perceptual Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-10 00:00:00.000000000 Z
11
+ date: 2017-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -157,7 +157,7 @@ files:
157
157
  - spec/cassettes/Percy_Client_Resources/_upload_resource/returns_true_with_success.yml
158
158
  - spec/cassettes/Percy_Client_Snapshots/_create_snapshot/creates_a_snapshot.yml
159
159
  - spec/cassettes/Percy_Client_Snapshots/_create_snapshot/fails_if_no_resources_are_given.yml
160
- - spec/cassettes/Percy_Client_Snapshots/_create_snapshot/overrides_default_widths_if_given.yml
160
+ - spec/cassettes/Percy_Client_Snapshots/_create_snapshot/passes_through_certain_arguments.yml
161
161
  - spec/cassettes/Percy_Client_Snapshots/_finalize_snapshot/finalizes_a_snapshot.yml
162
162
  - spec/lib/percy/client/builds_spec.rb
163
163
  - spec/lib/percy/client/connection_spec.rb
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  version: '0'
190
190
  requirements: []
191
191
  rubyforge_project:
192
- rubygems_version: 2.6.3
192
+ rubygems_version: 2.6.12
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: Percy::Client
@@ -201,7 +201,7 @@ test_files:
201
201
  - spec/cassettes/Percy_Client_Resources/_upload_resource/returns_true_with_success.yml
202
202
  - spec/cassettes/Percy_Client_Snapshots/_create_snapshot/creates_a_snapshot.yml
203
203
  - spec/cassettes/Percy_Client_Snapshots/_create_snapshot/fails_if_no_resources_are_given.yml
204
- - spec/cassettes/Percy_Client_Snapshots/_create_snapshot/overrides_default_widths_if_given.yml
204
+ - spec/cassettes/Percy_Client_Snapshots/_create_snapshot/passes_through_certain_arguments.yml
205
205
  - spec/cassettes/Percy_Client_Snapshots/_finalize_snapshot/finalizes_a_snapshot.yml
206
206
  - spec/lib/percy/client/builds_spec.rb
207
207
  - spec/lib/percy/client/connection_spec.rb