percy-client 2.0.0 → 2.0.1

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: e10f04f7f40f0eb144df84018041f83e0a1c527cacf70b5ac20982155f57b845
4
- data.tar.gz: 3375ae5ec84774af2a45b135dc66d75d3301f2c1b21a1114051c2e338d25133d
3
+ metadata.gz: 6a88cabf223f1d717cc86375818e02d37627da2193c4b0fe1406f60515d4db8b
4
+ data.tar.gz: 2f8eeba9710b0d07f588b6a8c3c64b4b94ad99f6acc0040b510d740819485f86
5
5
  SHA512:
6
- metadata.gz: 48b8e48c3307aa0f712e105580c43b16cd2bd0a4a36fc1046bf7a66a1045c82a3dc743c6e0b8b89187d76c639b32858e4afa6099e30bde41014962e884b34a61
7
- data.tar.gz: 7d9599369cde0f1885a6917c184479af587d9e522a5b58d0410cc06128184c74de5845682338a8df0566e19e97ccdb5df2d12ea9a28d49b0727ff8d624207d78
6
+ metadata.gz: ef1d3c5a7641e276b4c044750cef300bb2ede4716cb4f9d2a8e9d0a52b0445c585c8f92e0429f11814f025e9b0b9705cf39a9d5f2de28f4da0ddbdf7a63b000d
7
+ data.tar.gz: f1897c81a9d3762f41878a2a55fbd77a19e4828ef3270773e25f5add2698514a51e259b5654474d4341992e767974a83a260ec9207b09417bcfffea0caa9494c
@@ -204,7 +204,7 @@ module Percy
204
204
  when :travis
205
205
  ENV['TRAVIS_BUILD_NUMBER']
206
206
  when :circle
207
- ENV['CIRCLE_BUILD_NUM']
207
+ ENV['CIRCLE_WORKFLOW_WORKSPACE_ID'] || ENV['CIRCLE_BUILD_NUM']
208
208
  when :jenkins
209
209
  ENV['BUILD_NUMBER']
210
210
  when :codeship
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  class Client
3
- VERSION = '2.0.0'.freeze
3
+ VERSION = '2.0.1'.freeze
4
4
  end
5
5
  end
@@ -30,6 +30,7 @@ RSpec.describe Percy::Client::Environment do
30
30
  ENV['CIRCLE_SHA1'] = nil
31
31
  ENV['CIRCLE_BRANCH'] = nil
32
32
  ENV['CIRCLE_BUILD_NUM'] = nil
33
+ ENV['CIRCLE_WORKFLOW_WORKSPACE_ID'] = nil
33
34
  ENV['CI_PULL_REQUESTS'] = nil
34
35
 
35
36
  # Unset Codeship vars.
@@ -279,6 +280,16 @@ RSpec.describe Percy::Client::Environment do
279
280
  expect(Percy::Client::Environment.parallel_total_shards).to be_nil
280
281
  end
281
282
 
283
+ context 'in Circle 2.0' do
284
+ before(:each) do
285
+ ENV['CIRCLE_WORKFLOW_WORKSPACE_ID'] = 'circle-workflow-workspace-id'
286
+ end
287
+
288
+ it 'has the correct properties' do
289
+ expect(Percy::Client::Environment.parallel_nonce).to eq('circle-workflow-workspace-id')
290
+ end
291
+ end
292
+
282
293
  context 'with a parallel build' do
283
294
  before(:each) do
284
295
  ENV['CIRCLE_NODE_TOTAL'] = '3'
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.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Perceptual Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-31 00:00:00.000000000 Z
11
+ date: 2018-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday