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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f929f5a67990d008da09119f21354fb66e13865
4
- data.tar.gz: 54fea659f729113f711c61c06fc0e3d9c770b741
3
+ metadata.gz: 084784ad1c58603710ba3c4ab756ae1e6b967a74
4
+ data.tar.gz: d5bbad9f9802fea3f22384993ff0ad2fc4c43e9c
5
5
  SHA512:
6
- metadata.gz: 24f685931545d35fb1d8da97631c6a17725d9650a39cd8434b178994778e1a04c9d4b24c7d177dcbc681b160119a289cab22524e53ce55755808f2cc882823fd
7
- data.tar.gz: d8099b7ba65f411ade0c2b29166abfb939390fece04cbe14f7bd36ed858b09bdc3400548ecb3f32dff8f0dcac7e19241e166d01d8cd8e83973c8fe4331051243
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(',')[0]
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.
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  class Client
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'
4
4
  end
5
5
  end
@@ -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,234'
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.1
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-04 00:00:00.000000000 Z
11
+ date: 2015-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday