percy-capybara 0.4.9 → 0.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3bd7a8b9ccd58fb68750703d4effc419933898d0
|
|
4
|
+
data.tar.gz: 32775dbb3e2dca89ac653de1a856d0b9340078eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 65b62b3f47f51dd0a16d111db24518036908623c96026ec93e4f94b932fca722711cbd333290dc78dad65a133a00c90bbbee114584791942b7afffdf09b5411f
|
|
7
|
+
data.tar.gz: 48adeb046364691f91a1f0f045e4624d78090540d97a57455a39c89f4e12838a8ea099570dfc05ec0b5522105a248762d2322c0b6ca65165e769c8baa639f882
|
|
@@ -12,7 +12,8 @@ module Percy
|
|
|
12
12
|
attr_reader :sprockets_options
|
|
13
13
|
|
|
14
14
|
SKIP_RESOURCE_EXTENSIONS = [
|
|
15
|
-
'.js',
|
|
15
|
+
'.js', # Ignore JavaScript.
|
|
16
|
+
'.map', # Ignore source maps.
|
|
16
17
|
]
|
|
17
18
|
|
|
18
19
|
def initialize(options = {})
|
|
@@ -31,7 +32,7 @@ module Percy
|
|
|
31
32
|
resources = []
|
|
32
33
|
_asset_logical_paths.each do |logical_path|
|
|
33
34
|
next if SKIP_RESOURCE_EXTENSIONS.include?(File.extname(logical_path))
|
|
34
|
-
|
|
35
|
+
|
|
35
36
|
asset = sprockets_environment.find_asset(logical_path)
|
|
36
37
|
content = asset.to_s
|
|
37
38
|
sha = Digest::SHA256.hexdigest(content)
|
|
@@ -22,7 +22,7 @@ RSpec.describe Percy::Capybara::Loaders::SprocketsLoader do
|
|
|
22
22
|
end
|
|
23
23
|
let(:sprockets_options) do
|
|
24
24
|
options = double('options')
|
|
25
|
-
allow(options).to receive(:precompile).and_return([/(?:\/|\\|\A)base\.(css|js)
|
|
25
|
+
allow(options).to receive(:precompile).and_return([/(?:\/|\\|\A)base\.(css|js)$|\.map/])
|
|
26
26
|
allow(options).to receive(:digest).and_return(false)
|
|
27
27
|
options
|
|
28
28
|
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
|
+
version: 0.4.10
|
|
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-09-
|
|
11
|
+
date: 2015-09-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: percy-client
|
|
@@ -185,6 +185,7 @@ files:
|
|
|
185
185
|
- spec/lib/percy/capybara/client/testdata/css/level1-imports.css
|
|
186
186
|
- spec/lib/percy/capybara/client/testdata/css/level2-imports.css
|
|
187
187
|
- spec/lib/percy/capybara/client/testdata/css/simple-imports.css
|
|
188
|
+
- spec/lib/percy/capybara/client/testdata/css/source.css.map
|
|
188
189
|
- spec/lib/percy/capybara/client/testdata/images/bg-relative-to-root.png
|
|
189
190
|
- spec/lib/percy/capybara/client/testdata/images/bg-relative.png
|
|
190
191
|
- spec/lib/percy/capybara/client/testdata/images/bg-stacked.png
|
|
@@ -226,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
226
227
|
version: '0'
|
|
227
228
|
requirements: []
|
|
228
229
|
rubyforge_project:
|
|
229
|
-
rubygems_version: 2.
|
|
230
|
+
rubygems_version: 2.2.2
|
|
230
231
|
signing_key:
|
|
231
232
|
specification_version: 4
|
|
232
233
|
summary: Percy::Capybara
|
|
@@ -239,6 +240,7 @@ test_files:
|
|
|
239
240
|
- spec/lib/percy/capybara/client/testdata/css/level1-imports.css
|
|
240
241
|
- spec/lib/percy/capybara/client/testdata/css/level2-imports.css
|
|
241
242
|
- spec/lib/percy/capybara/client/testdata/css/simple-imports.css
|
|
243
|
+
- spec/lib/percy/capybara/client/testdata/css/source.css.map
|
|
242
244
|
- spec/lib/percy/capybara/client/testdata/images/bg-relative-to-root.png
|
|
243
245
|
- spec/lib/percy/capybara/client/testdata/images/bg-relative.png
|
|
244
246
|
- spec/lib/percy/capybara/client/testdata/images/bg-stacked.png
|
|
@@ -260,4 +262,3 @@ test_files:
|
|
|
260
262
|
- spec/lib/percy/capybara_spec.rb
|
|
261
263
|
- spec/spec_helper.rb
|
|
262
264
|
- spec/support/test_helpers.rb
|
|
263
|
-
has_rdoc:
|