percy-client 0.2.1 → 0.2.2
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 +1 -1
- 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: 084784ad1c58603710ba3c4ab756ae1e6b967a74
|
4
|
+
data.tar.gz: d5bbad9f9802fea3f22384993ff0ad2fc4c43e9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 276c2da441d8b1ed6500a836b1a4278caf86866daecf9e4eead798278bf783a890a95db5c81f55379450a6b25abc498a5e4f8c76855f41e6ead228a9179d185b
|
7
|
+
data.tar.gz: 960178bb671d79ab41f01f20d7eff872c7a510279b5cd9a60ce1ff228c7fe7b6b6b115a400e61a4dc5e7d8846e1820c87adc1ad1641f75cfabe10241f1c391eb
|
@@ -107,7 +107,7 @@ module Percy
|
|
107
107
|
ENV['TRAVIS_PULL_REQUEST'] if ENV['TRAVIS_PULL_REQUEST'] != 'false'
|
108
108
|
when :circle
|
109
109
|
if ENV['CI_PULL_REQUESTS'] && ENV['CI_PULL_REQUESTS'] != ''
|
110
|
-
ENV['CI_PULL_REQUESTS'].split('
|
110
|
+
ENV['CI_PULL_REQUESTS'].split('/')[-1]
|
111
111
|
end
|
112
112
|
when :codeship
|
113
113
|
# Unfortunately, codeship always returns 'false' for CI_PULL_REQUEST. For now, return nil.
|
data/lib/percy/client/version.rb
CHANGED
@@ -174,7 +174,7 @@ RSpec.describe Percy::Client::Environment do
|
|
174
174
|
ENV['CIRCLE_SHA1'] = 'circle-commit-sha'
|
175
175
|
ENV['CIRCLE_PROJECT_USERNAME'] = 'circle'
|
176
176
|
ENV['CIRCLE_PROJECT_REPONAME'] = 'repo-name'
|
177
|
-
ENV['CI_PULL_REQUESTS'] = '123
|
177
|
+
ENV['CI_PULL_REQUESTS'] = 'https://github.com/owner/repo-name/pull/123'
|
178
178
|
end
|
179
179
|
|
180
180
|
describe '#current_ci' do
|
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: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Perceptual Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|