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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5897b9782db61c4a242df39bcb2f57124260d7c4
4
- data.tar.gz: e38619b2dcc0b856fcc21963180aa187838b531a
3
+ metadata.gz: a138585a2c8cb1eda5cad2d69fe5462824f99718
4
+ data.tar.gz: 454f5f69e67bee8a859d8bc678c4c66e2d3b9376
5
5
  SHA512:
6
- metadata.gz: cb70c98eb8a3fdbaf66e75762cbbd6b5eef5e1e9eda8a05fd2bfc77e49cd76cfe20e33b478e9ca8c588ddc8fb4fefe5aa34f3513d58928cc0328351a53290513
7
- data.tar.gz: 520bf4dadc5e701b0736a1b305b872c2766446995c046b36c2b58ec907b2000d2d90b8977ae05caea084d8d25cbfa4ff43c9a1cb27d792b45665828f2ecaf08b
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
- sha, resource_url, is_root: true, mimetype: 'text/html', content: html)
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
- sha, resource_url, mimetype: 'text/css', content: response.body)
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
- sha, resource_url, mimetype: response.content_type, content: response.body)
180
+ resource_url, mimetype: response.content_type, content: response.body)
182
181
  end
183
182
  resources
184
183
  end
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  module Capybara
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  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.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-21 00:00:00.000000000 Z
11
+ date: 2015-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: percy-client