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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6819af19dd3114b23d8591f37f7bac8c73889860
4
- data.tar.gz: 631ff9a19076f1168f0c01fb151ff800e04551d0
3
+ metadata.gz: ceb202dd04f53cb0e366e02b6134bff190eaf5e2
4
+ data.tar.gz: 99f6fd44659d7276a8d89d9b2457c29983f0c016
5
5
  SHA512:
6
- metadata.gz: 020d1363375501a10c51005374c34a4363d06a383c218e622089cfb36cb6da185bd1ea77c923a9733ad1f963b2647c11c4497e78f9a669f1bbb766d06b5a4f01
7
- data.tar.gz: f4d2c95e70c8cab5d51157c7264b19b7e89a659fdf60ecae2e94fc072c360c35d6cb4d417841cf7ca651a840813abbf1a5aa1472cd6f4b34fa80e70adf31806b
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
- page.driver.save_screenshot(path, :full => true)
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
@@ -1,3 +1,6 @@
1
+ require 'sequel'
2
+ Sequel.sqlite
3
+
1
4
  require 'waterpig'
2
5
 
3
6
  describe "Nothing" do
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.1
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-05 00:00:00.000000000 Z
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.1 Documentation
87
+ - waterpig-0.2.2 Documentation
88
88
  require_paths:
89
89
  - lib/
90
90
  required_ruby_version: !ruby/object:Gem::Requirement