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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9549ee1204882c83ad555150b8d1919f47d43719
4
- data.tar.gz: 51e0ace21cde7c1a3a5bf77ae780e406da466401
3
+ metadata.gz: 70aca91e87a7e8d095623d50aedc0b03a8583e64
4
+ data.tar.gz: b14d7b2bb34a0a9f7c7fc1c2046b7309287fead5
5
5
  SHA512:
6
- metadata.gz: 93a99ef8a201048bf6732acff16409a3f6d2fd7253a4ae6cea4a36f438e9d51b34b97f16990a056347f1cc9f5efc7ed97937133a47f92c49bcef7a8bf889d164
7
- data.tar.gz: 617e0c118c2d91de594d013b64b0e10a0e179761aa16cde5888a5f0805500ea38c11c27adda1fac34cd1848ee080ca6a16d689b2828359bcc626da4ba92fa542
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
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  module Capybara
3
- VERSION = '0.4.2'
3
+ VERSION = '0.4.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: percy-capybara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Perceptual Inc.