webdrone 0.8.0 → 0.8.2

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: 95fbea40c3e54989776ca05aa1c2b6d263432fd3
4
- data.tar.gz: 77b81600dd93c3d2802529511ecfce22915325da
3
+ metadata.gz: 6790658410d799dfbbd09b95c999f99e06b81939
4
+ data.tar.gz: 957efb63d2bab52b250d054b28f970bf2a571450
5
5
  SHA512:
6
- metadata.gz: e87fd8253681279f843a56e3ef2a170949dca72f29c84ed75e0c98715bf395f7c74ecfae5dd1dc8c3bfe55700ae8845bb4c4129b0928b0033e9889ea9cdee882
7
- data.tar.gz: 0fd5df47de47f19941cff84b2b250a3be22a9c2f9bfd5b37b612a3ffedf4c360d8afac928631a54d46c3ea4b7844de450c289f294abe25468de729eb72104308
6
+ metadata.gz: 8900c1d2f7302f9700eaead1748fa590056d44d9d1680e136f0ee28f7cc8212d3a40f3f808b37b6425c195da444ad99424e052197302dedabcba376576e4d6be
7
+ data.tar.gz: 5066d214ddfb0b011431f273317fe5f5409ee149c188ca035666e1475c201859ed9ca3a4f23b51000610961fec5a6a945afdeeefaa24029dcbb52b6810f6ec9f
data/lib/webdrone.rb CHANGED
@@ -22,7 +22,6 @@ require 'fileutils'
22
22
  require 'binding_of_caller'
23
23
  require 'pathname'
24
24
 
25
-
26
25
  module Webdrone
27
26
  def self.create(*args)
28
27
  a0 = Webdrone::Browser.new *args
@@ -3,23 +3,26 @@ module Webdrone
3
3
  attr_reader :original, :a0, :caller_locations
4
4
  def initialize(msg, original = $!, a0, caller_locations)
5
5
  super(msg)
6
- @original = original;
6
+ @original = original
7
7
  @a0 = a0
8
8
  @caller_locations = caller_locations
9
9
  @buffer = []
10
10
 
11
- # find location of user error
12
- @caller_locations[1..-1].each do |location|
13
- if not location.path.include? 'lib/webdrone/'
14
- @location = location
15
- break
11
+ begin
12
+ # find location of user error
13
+ @caller_locations[1..-1].each do |location|
14
+ if not location.path.include? 'lib/webdrone/'
15
+ @location = location
16
+ break
17
+ end
16
18
  end
17
- end
18
19
 
19
- report_script
20
- report_screenshot
21
- report_exception
22
- report_time
20
+ report_script
21
+ report_screenshot
22
+ report_exception
23
+ report_time
24
+ rescue
25
+ end
23
26
  end
24
27
 
25
28
  def write_line(line)
@@ -1,3 +1,3 @@
1
1
  module Webdrone
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webdrone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aldrin Martoq