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 +4 -4
- data/lib/percy/client/version.rb +1 -1
- data/lib/percy/config.rb +6 -0
- data/spec/lib/percy/client_spec.rb +2 -0
- 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: 4b420067bd7cca13d8d2538511c7f12520909963
|
4
|
+
data.tar.gz: 91c592aa848deba4fe349353faac796fa9d4b6da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c43fd0e973c8f07a8c1aa5b8c72b2827ed4178666a1886900f3b060a9278e27150648ecb89070cbc22ee7908ab0cdc097b11ed520f4a33baf1f9d6e16584507e
|
7
|
+
data.tar.gz: 480e45ef6ac7c23b0a804790d8040c3e49f39d97c1b03f5a6df5331ca58713c5ca4724f0493f0e3fe3c8ab3de015d7b3ad14e44b428a93ab265f403a2a55dd70
|
data/lib/percy/client/version.rb
CHANGED
data/lib/percy/config.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2015-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|