waterpig 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/waterpig/browser-tools.rb +7 -3
- data/spec/embarrassing.rb +3 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceb202dd04f53cb0e366e02b6134bff190eaf5e2
|
4
|
+
data.tar.gz: 99f6fd44659d7276a8d89d9b2457c29983f0c016
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7ff70283b3a0d9ef8d1ff0ba2c8fb03618bd8de99d5bfd46b7487622ac864627f38fbfd61f86939d0558dfcb7a8657330b2ea686ab28bf25a60df4c31f244ca
|
7
|
+
data.tar.gz: 39491eb8746cd0599fa1bd425fcf23b0aef7bd21deead9310778493efd9e2160bcfe9ded71487b57e1051a3bab783c7703bc3386a028220500d7fac0971d1659
|
@@ -59,11 +59,15 @@ module Waterpig
|
|
59
59
|
dir = "tmp/#{dir}"
|
60
60
|
|
61
61
|
path = "#{dir}/#{"%03i" % frame_index(dir)}-#{name}.png"
|
62
|
-
|
62
|
+
begin
|
63
|
+
page.driver.save_screenshot(path, :full => true)
|
64
|
+
rescue Capybara::NotSupportedByDriverError => nsbde
|
65
|
+
BrowserTools.warn("Can't use snapshot", nsbde.inspect)
|
66
|
+
rescue Object => ex
|
67
|
+
BrowserTools.warn("Error attempted snapshot", ex.inspect)
|
68
|
+
end
|
63
69
|
|
64
70
|
yield path if block_given?
|
65
|
-
rescue Capybara::NotSupportedByDriverError => nsbde
|
66
|
-
BrowserTools.warn("Can't use snapshot", nsbde.inspect)
|
67
71
|
end
|
68
72
|
|
69
73
|
def snapshot(dir)
|
data/spec/embarrassing.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: waterpig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Judson Lester
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -84,7 +84,7 @@ rdoc_options:
|
|
84
84
|
- --main
|
85
85
|
- doc/README
|
86
86
|
- --title
|
87
|
-
- waterpig-0.2.
|
87
|
+
- waterpig-0.2.2 Documentation
|
88
88
|
require_paths:
|
89
89
|
- lib/
|
90
90
|
required_ruby_version: !ruby/object:Gem::Requirement
|