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 +4 -4
- data/lib/webdrone.rb +0 -1
- data/lib/webdrone/error.rb +14 -11
- data/lib/webdrone/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6790658410d799dfbbd09b95c999f99e06b81939
|
4
|
+
data.tar.gz: 957efb63d2bab52b250d054b28f970bf2a571450
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8900c1d2f7302f9700eaead1748fa590056d44d9d1680e136f0ee28f7cc8212d3a40f3f808b37b6425c195da444ad99424e052197302dedabcba376576e4d6be
|
7
|
+
data.tar.gz: 5066d214ddfb0b011431f273317fe5f5409ee149c188ca035666e1475c201859ed9ca3a4f23b51000610961fec5a6a945afdeeefaa24029dcbb52b6810f6ec9f
|
data/lib/webdrone.rb
CHANGED
data/lib/webdrone/error.rb
CHANGED
@@ -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
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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)
|
data/lib/webdrone/version.rb
CHANGED