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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/percy/capybara/loaders/sprockets_loader.rb +3 -0
- 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: ba3abec61203467b5066ac44658753eab828b746
|
4
|
+
data.tar.gz: c7c22b0191494571c3d27209b14f7d0070f7845f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
|
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.
|
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-
|
11
|
+
date: 2016-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: percy-client
|