percy-capybara 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/percy/capybara/client.rb +7 -2
- data/lib/percy/capybara/version.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: f4a03eaa175d191c05e9cd1f7cb55e9878603b0d
|
4
|
+
data.tar.gz: fba638315911963ec3fd00a71d9096d63dea83ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4052fbe640b617b98abca8cbc62db656bf33de2e6cc8ba2c703f54d8302bc8470d27bde13615a11558a09ad5204050a3741cc1384d2611cc520af6de8c4b5ef2
|
7
|
+
data.tar.gz: bf3ae34dce31c83e952ef09800969f4383ee7824d1d251238dc71052fcba8fc6ffc7cd1215b042c635fba716d34a6ba7eb25aa3a5deee0f32d5f0125ce62d348
|
@@ -29,8 +29,13 @@ module Percy
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def enabled?
|
32
|
-
|
33
|
-
|
32
|
+
return @enabled if !@enabled.nil?
|
33
|
+
|
34
|
+
# Enable if PERCY_ENABLE=1 in local dev (allow disabling if 0).
|
35
|
+
return @enabled ||= ENV['PERCY_ENABLE'] == '1' if ENV['PERCY_ENABLE']
|
36
|
+
|
37
|
+
# If in supported CI environment.
|
38
|
+
@enabled ||= !Percy::Client::Environment.current_ci.nil?
|
34
39
|
end
|
35
40
|
|
36
41
|
def initialize_loader(options = {})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: percy-capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
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-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: percy-client
|