percy-client 0.5.0 → 0.6.0

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: e75bc0f2c8c81c6760bd43294b467c232a257c2c
4
- data.tar.gz: c99b03e4396aa30c6e012ed1e5c629bd44761f14
3
+ metadata.gz: 4b420067bd7cca13d8d2538511c7f12520909963
4
+ data.tar.gz: 91c592aa848deba4fe349353faac796fa9d4b6da
5
5
  SHA512:
6
- metadata.gz: f5f5412f33c7f120d0c12a2450fba57220c2a7a6a393977c5d8642346b02b265732b77fc8915257a3708dd94063715582b71c86654001355d8acecf41769a8f0
7
- data.tar.gz: 7808a2f4b246321aa6eb42e44999eda094e05d6479823facaf85e2d0a6a7d31ddc785cae0cfaa750d5d4a2c3d0432700dcddeb698932cacecfed56413d7e1b42
6
+ metadata.gz: c43fd0e973c8f07a8c1aa5b8c72b2827ed4178666a1886900f3b060a9278e27150648ecb89070cbc22ee7908ab0cdc097b11ed520f4a33baf1f9d6e16584507e
7
+ data.tar.gz: 480e45ef6ac7c23b0a804790d8040c3e49f39d97c1b03f5a6df5331ca58713c5ca4724f0493f0e3fe3c8ab3de015d7b3ad14e44b428a93ab265f403a2a55dd70
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  class Client
3
- VERSION = '0.5.0'
3
+ VERSION = '0.6.0'
4
4
  end
5
5
  end
@@ -7,6 +7,7 @@ module Percy
7
7
 
8
8
  attr_accessor :access_token
9
9
  attr_accessor :api_url
10
+ attr_accessor :debug
10
11
  attr_accessor :repo
11
12
 
12
13
  # List of configurable keys for {Percy::Client}
@@ -15,6 +16,7 @@ module Percy
15
16
  @keys ||= [
16
17
  :access_token,
17
18
  :api_url,
19
+ :debug,
18
20
  :repo,
19
21
  ]
20
22
  end
@@ -27,6 +29,10 @@ module Percy
27
29
  @api_url ||= ENV['PERCY_API'] || 'https://percy.io/api/v1'
28
30
  end
29
31
 
32
+ def debug
33
+ @debug ||= ENV['PERCY_DEBUG'] == '1'
34
+ end
35
+
30
36
  def repo
31
37
  @repo ||= Percy::Client::Environment.repo
32
38
  end
@@ -7,10 +7,12 @@ RSpec.describe Percy::Client do
7
7
  expect(client.config.keys).to eq([
8
8
  :access_token,
9
9
  :api_url,
10
+ :debug,
10
11
  :repo,
11
12
  ])
12
13
  expect(client.config.access_token).to be_nil
13
14
  expect(client.config.api_url).to eq(ENV['PERCY_API'])
15
+ expect(client.config.debug).to eq(false)
14
16
  expect(client.config.repo).to eq('percy/percy-client')
15
17
  end
16
18
  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: 0.5.0
4
+ version: 0.6.0
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-09-23 00:00:00.000000000 Z
11
+ date: 2015-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday