percy-client 1.13.8 → 1.13.9
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 +3 -7
- data/lib/percy/client/version.rb +1 -1
- data/spec/lib/percy/client/environment_spec.rb +1 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a16b942c84f592b826d287a82f41f2074b4be2d2
|
4
|
+
data.tar.gz: c5479a27de43ec27a7bda79f290da629da91a4de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dba0925a4383d33b56dd8f4c29e5f83a0b4bdff2494fe48bad52d4a248a7916924bbc4236de04d10c77cd18a0509f9a07c5c166f24a28401a3cc9c97ebd86282
|
7
|
+
data.tar.gz: aea989cc284e350ae3a6f0c0986dadb1293ec3e99ce7fd6861a18423b1f52ed3f0493240cea6a4ba2d4050c895b665330a9ee2fb140d66595ad6b53c6059e5f6
|
@@ -5,8 +5,8 @@ module Percy
|
|
5
5
|
'COMMIT_SHA:%H',
|
6
6
|
'AUTHOR_NAME:%an',
|
7
7
|
'AUTHOR_EMAIL:%ae',
|
8
|
-
'COMMITTER_NAME:%
|
9
|
-
'COMMITTER_EMAIL:%
|
8
|
+
'COMMITTER_NAME:%cn',
|
9
|
+
'COMMITTER_EMAIL:%ce',
|
10
10
|
'COMMITTED_DATE:%ai',
|
11
11
|
# Note: order is important, this must come last because the regex is a multiline match.
|
12
12
|
'COMMIT_MESSAGE:%B',
|
@@ -75,11 +75,7 @@ module Percy
|
|
75
75
|
# Pull Request Builder Plugin OR Git Plugin.
|
76
76
|
ENV['ghprbActualCommit'] || ENV['GIT_COMMIT']
|
77
77
|
when :travis
|
78
|
-
|
79
|
-
ENV['TRAVIS_PULL_REQUEST_SHA']
|
80
|
-
else
|
81
|
-
ENV['TRAVIS_COMMIT']
|
82
|
-
end
|
78
|
+
ENV['TRAVIS_COMMIT']
|
83
79
|
when :circle
|
84
80
|
ENV['CIRCLE_SHA1']
|
85
81
|
when :codeship
|
data/lib/percy/client/version.rb
CHANGED
@@ -17,7 +17,6 @@ RSpec.describe Percy::Client::Environment do
|
|
17
17
|
ENV['TRAVIS_BRANCH'] = nil
|
18
18
|
ENV['TRAVIS_PULL_REQUEST'] = nil
|
19
19
|
ENV['TRAVIS_PULL_REQUEST_BRANCH'] = nil
|
20
|
-
ENV['TRAVIS_PULL_REQUEST_SHA'] = nil
|
21
20
|
ENV['TRAVIS_REPO_SLUG'] = nil
|
22
21
|
ENV['CI_NODE_TOTAL'] = nil
|
23
22
|
|
@@ -85,7 +84,6 @@ RSpec.describe Percy::Client::Environment do
|
|
85
84
|
'TRAVIS_BRANCH' => ENV['TRAVIS_BRANCH'],
|
86
85
|
'TRAVIS_PULL_REQUEST' => ENV['TRAVIS_PULL_REQUEST'],
|
87
86
|
'TRAVIS_PULL_REQUEST_BRANCH' => ENV['TRAVIS_PULL_REQUEST_BRANCH'],
|
88
|
-
'TRAVIS_PULL_REQUEST_SHA' => ENV['TRAVIS_PULL_REQUEST_SHA'],
|
89
87
|
'TRAVIS_REPO_SLUG' => ENV['TRAVIS_REPO_SLUG'],
|
90
88
|
}
|
91
89
|
clear_env_vars
|
@@ -99,7 +97,6 @@ RSpec.describe Percy::Client::Environment do
|
|
99
97
|
ENV['TRAVIS_BRANCH'] = @original_env['TRAVIS_BRANCH']
|
100
98
|
ENV['TRAVIS_PULL_REQUEST'] = @original_env['TRAVIS_PULL_REQUEST']
|
101
99
|
ENV['TRAVIS_PULL_REQUEST_BRANCH'] = @original_env['TRAVIS_PULL_REQUEST_BRANCH']
|
102
|
-
ENV['TRAVIS_PULL_REQUEST_SHA'] = @original_env['TRAVIS_PULL_REQUEST_SHA']
|
103
100
|
ENV['TRAVIS_REPO_SLUG'] = @original_env['TRAVIS_REPO_SLUG']
|
104
101
|
end
|
105
102
|
|
@@ -269,7 +266,6 @@ RSpec.describe Percy::Client::Environment do
|
|
269
266
|
ENV['TRAVIS_BUILD_NUMBER'] = 'build-number'
|
270
267
|
ENV['TRAVIS_PULL_REQUEST'] = 'false'
|
271
268
|
ENV['TRAVIS_PULL_REQUEST_BRANCH'] = ''
|
272
|
-
ENV['TRAVIS_PULL_REQUEST_SHA'] = ''
|
273
269
|
ENV['TRAVIS_REPO_SLUG'] = 'travis/repo-slug'
|
274
270
|
ENV['TRAVIS_COMMIT'] = 'travis-commit-sha'
|
275
271
|
ENV['TRAVIS_BRANCH'] = 'travis-branch'
|
@@ -290,12 +286,11 @@ RSpec.describe Percy::Client::Environment do
|
|
290
286
|
before(:each) do
|
291
287
|
ENV['TRAVIS_PULL_REQUEST'] = '256'
|
292
288
|
ENV['TRAVIS_PULL_REQUEST_BRANCH'] = 'travis-pr-branch'
|
293
|
-
ENV['TRAVIS_PULL_REQUEST_SHA'] = 'travis-pr-head-commit-sha'
|
294
289
|
end
|
295
290
|
|
296
291
|
it 'has the correct properties' do
|
297
292
|
expect(Percy::Client::Environment.branch).to eq('travis-pr-branch')
|
298
|
-
expect(Percy::Client::Environment._commit_sha).to eq('travis-
|
293
|
+
expect(Percy::Client::Environment._commit_sha).to eq('travis-commit-sha')
|
299
294
|
expect(Percy::Client::Environment.pull_request_number).to eq('256')
|
300
295
|
end
|
301
296
|
end
|
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.13.
|
4
|
+
version: 1.13.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: 2018-04-
|
11
|
+
date: 2018-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|