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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5dffb07e3429393b766d73511fd620b2ff034d75
4
- data.tar.gz: 9eda5972527c4fb3accbaa4ed848d854fc3f5503
3
+ metadata.gz: f4a03eaa175d191c05e9cd1f7cb55e9878603b0d
4
+ data.tar.gz: fba638315911963ec3fd00a71d9096d63dea83ce
5
5
  SHA512:
6
- metadata.gz: 26db04a7290ce2b2d82f5ef147e742e089c1baf3382601c90affff84a523906cf8e75c1d12fd480a1dfbe0aedd325d13c9c4ac75e60d39dd3a2acd85b20d9506
7
- data.tar.gz: 47a023dcd7f8cf93a7220df15bf39a2bc88334961e4bcefe258b80ad5c46615860abe5bc96d6011d2a535f33af827596b6f2765f78301d49dfbdb5dc9825a3d3
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
- # Only enable if in supported CI environment or local dev with PERCY_ENABLE=1.
33
- @enabled ||= !Percy::Client::Environment.current_ci.nil? || ENV['PERCY_ENABLE'] == '1'
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 = {})
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  module Capybara
3
- VERSION = '0.4.4'
3
+ VERSION = '0.4.5'
4
4
  end
5
5
  end
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
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-08-21 00:00:00.000000000 Z
11
+ date: 2015-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: percy-client