percy-capybara 0.4.2 → 0.4.3
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/loaders/sprockets_loader.rb +6 -0
- data/lib/percy/capybara/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70aca91e87a7e8d095623d50aedc0b03a8583e64
|
4
|
+
data.tar.gz: b14d7b2bb34a0a9f7c7fc1c2046b7309287fead5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22f32ed1421975b3cb409f41d4c592bb25d23cc5dfbe30a6226858b9f1cb4f8f1a29c6b13ddea872fd43c0d0804fa5b3c873106bb259893c3076fed2a230f5a3
|
7
|
+
data.tar.gz: edf3d181816770e61dc8b8cff9a1eaf5051ae3c260ca5af741efd9c4d3fa54b7673817e8af0c4e14e82e5fdfcbab3aefbeb0150302d7e831be923f2240148d2b
|
@@ -11,6 +11,10 @@ module Percy
|
|
11
11
|
attr_reader :sprockets_environment
|
12
12
|
attr_reader :sprockets_options
|
13
13
|
|
14
|
+
SKIP_RESOURCE_EXTENSIONS = [
|
15
|
+
'.js',
|
16
|
+
]
|
17
|
+
|
14
18
|
def initialize(options = {})
|
15
19
|
@sprockets_environment = options[:sprockets_environment]
|
16
20
|
@sprockets_options = options[:sprockets_options]
|
@@ -40,6 +44,8 @@ module Percy
|
|
40
44
|
resource_url = URI.escape("/assets/#{path}")
|
41
45
|
end
|
42
46
|
|
47
|
+
next if SKIP_RESOURCE_EXTENSIONS.include?(File.extname(resource_url))
|
48
|
+
|
43
49
|
resources << Percy::Client::Resource.new(resource_url, sha: sha, content: content)
|
44
50
|
end
|
45
51
|
resources
|