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 +4 -4
- data/lib/percy/client/environment.rb +1 -1
- data/lib/percy/client/version.rb +1 -1
- data/spec/lib/percy/client/environment_spec.rb +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a88cabf223f1d717cc86375818e02d37627da2193c4b0fe1406f60515d4db8b
|
4
|
+
data.tar.gz: 2f8eeba9710b0d07f588b6a8c3c64b4b94ad99f6acc0040b510d740819485f86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef1d3c5a7641e276b4c044750cef300bb2ede4716cb4f9d2a8e9d0a52b0445c585c8f92e0429f11814f025e9b0b9705cf39a9d5f2de28f4da0ddbdf7a63b000d
|
7
|
+
data.tar.gz: f1897c81a9d3762f41878a2a55fbd77a19e4828ef3270773e25f5add2698514a51e259b5654474d4341992e767974a83a260ec9207b09417bcfffea0caa9494c
|
data/lib/percy/client/version.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2018-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|