percy-capybara 2.2.0 → 2.2.1

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: af65d5970c1d8e9a7ad3fc82db10235d1ab5b6c3
4
- data.tar.gz: 53046e99547f380834dc2a965b0943aa07e73f56
3
+ metadata.gz: ba3abec61203467b5066ac44658753eab828b746
4
+ data.tar.gz: c7c22b0191494571c3d27209b14f7d0070f7845f
5
5
  SHA512:
6
- metadata.gz: 2bd0fc3b80bf5f6180eec99858c31a54fd8804639d5fc4e78fdfbc5dcbf9d5f41a74ded0ffa7e49ba0115ec81be1e04c46a3553fdc30e4ac7a40fa49bfa78e3c
7
- data.tar.gz: 9c3fa55f7c6084535cb17cec37cc4aa387ffb946ad47f2f6ff6945757a21d59399e2e2ceb8004cfc53d27f3a279649105ced69d22ec90dbddf6a5eea818c2083
6
+ metadata.gz: 9ee2ac9713252a33c5eae460c1f346f294cdd148f7395f835a427f61472e0972c18ea76379352b5043e9599fc9af8d3316dc9e268a4672e9d603860d39127dce
7
+ data.tar.gz: 7d4993b02becdf6e52e7b28f5a84b89725b365f88ddd36ba8cc7375f079b68634373c3d7a7b788c84d845a6bd436b36e3751391b1004dfbfd348da429d5f0e29
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- percy-capybara (2.2.0)
4
+ percy-capybara (2.2.1)
5
5
  percy-client (~> 1.4)
6
6
 
7
7
  GEM
@@ -61,7 +61,7 @@ GEM
61
61
  notiffany (0.0.8)
62
62
  nenv (~> 0.1)
63
63
  shellany (~> 0.0)
64
- percy-client (1.4.1)
64
+ percy-client (1.4.2)
65
65
  faraday (>= 0.9)
66
66
  httpclient (>= 2.6)
67
67
  pry (0.10.3)
@@ -16,6 +16,7 @@ module Percy
16
16
  SKIP_RESOURCE_EXTENSIONS = [
17
17
  '.map', # Ignore source maps.
18
18
  ]
19
+ MAX_FILESIZE_BYTES = 15 * 1024**2 # 15 MB.
19
20
 
20
21
  def initialize(options = {})
21
22
  @sprockets_environment = options[:sprockets_environment]
@@ -65,6 +66,8 @@ module Percy
65
66
  next if !FileTest.file?(path)
66
67
  # Skip certain extensions.
67
68
  next if SKIP_RESOURCE_EXTENSIONS.include?(File.extname(path))
69
+ # Skip large files, these are hopefully downloads and not used in page rendering.
70
+ next if File.size(path) > MAX_FILESIZE_BYTES
68
71
 
69
72
  # Strip the public_path from the beginning of the resource_url.
70
73
  # This assumes that everything in the Rails public/ directory is served at the root
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  module Capybara
3
- VERSION = '2.2.0'
3
+ VERSION = '2.2.1'
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: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Perceptual Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-07 00:00:00.000000000 Z
11
+ date: 2016-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: percy-client