percy-capybara 0.1.1 → 0.1.2
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/client/snapshots.rb +3 -4
- 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: a138585a2c8cb1eda5cad2d69fe5462824f99718
|
4
|
+
data.tar.gz: 454f5f69e67bee8a859d8bc678c4c66e2d3b9376
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7a87b43488b3c31826f6162c547aa926c2ee097e2650e10186ef53ed480d04d73c2c39bbd48502f86172c179529ec3dcd8d4ea5efc19d85570cc4159e2882bd
|
7
|
+
data.tar.gz: 9976e107091eb0476bceccdbf80039e360287dd3d375a78caf3a8a2eba31068fa5c69bb5bbe99195284907de7dae0897fc289c7ece78d261aea4a2015974e487
|
@@ -47,10 +47,9 @@ module Percy
|
|
47
47
|
return htmlElement.outerHTML;
|
48
48
|
JS
|
49
49
|
html = _evaluate_script(page, script)
|
50
|
-
sha = Digest::SHA256.hexdigest(html)
|
51
50
|
resource_url = page.current_url
|
52
51
|
Percy::Client::Resource.new(
|
53
|
-
|
52
|
+
resource_url, is_root: true, mimetype: 'text/html', content: html)
|
54
53
|
end
|
55
54
|
private :_get_root_html_resource
|
56
55
|
|
@@ -100,7 +99,7 @@ module Percy
|
|
100
99
|
next if !response
|
101
100
|
sha = Digest::SHA256.hexdigest(response.body)
|
102
101
|
resources << Percy::Client::Resource.new(
|
103
|
-
|
102
|
+
resource_url, mimetype: 'text/css', content: response.body)
|
104
103
|
end
|
105
104
|
resources
|
106
105
|
end
|
@@ -178,7 +177,7 @@ module Percy
|
|
178
177
|
|
179
178
|
sha = Digest::SHA256.hexdigest(response.body)
|
180
179
|
resources << Percy::Client::Resource.new(
|
181
|
-
|
180
|
+
resource_url, mimetype: response.content_type, content: response.body)
|
182
181
|
end
|
183
182
|
resources
|
184
183
|
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.1.
|
4
|
+
version: 0.1.2
|
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-05-
|
11
|
+
date: 2015-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: percy-client
|