webdrone 1.0.6 → 1.0.8
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 +1 -5
- data/lib/webdrone/browser.rb +8 -1
- data/lib/webdrone/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 179f4cb1903c007a0a97dd9d4d257f262f0db41c
|
4
|
+
data.tar.gz: 5ba334f9f7998ba63aafe7aa45c65129d86fbe75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66e6468b14d89751c3c0643fd31e28d9092692bc273af26bafc2f38ce2c5bc94a3e48702f402830fe80409e6a989a36f1f03b72aec50a127aca82ffae063fbbd
|
7
|
+
data.tar.gz: 963bdc3e4a9c5f2a7b5c1c17315db126b17bccba0498cc40c0d45d6d89a9740f6f173539df23a13874cad8234fd61ed70d4f7ac12248cd69c012945d5112a975
|
data/lib/webdrone.rb
CHANGED
@@ -42,15 +42,11 @@ module Webdrone
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def self.irb_console(binding = nil)
|
45
|
+
puts "Warning: Webdrone.irb_console is deprecated, please use a0.console instead"
|
45
46
|
return if IRB.CurrentContext and not binding
|
46
47
|
binding = Kernel.binding.of_caller(1) if binding == nil
|
47
48
|
IRB.start_session(binding)
|
48
49
|
end
|
49
|
-
|
50
|
-
def self.pry_console(binding = nil)
|
51
|
-
binding = Kernel.binding_of_caller(1) unless binding
|
52
|
-
binding.pry
|
53
|
-
end
|
54
50
|
end
|
55
51
|
|
56
52
|
module IRB
|
data/lib/webdrone/browser.rb
CHANGED
@@ -68,7 +68,7 @@ module Webdrone
|
|
68
68
|
end
|
69
69
|
self.conf.error = error.to_sym
|
70
70
|
self.conf.developer = developer
|
71
|
-
self.conf.timeout = timeout if timeout
|
71
|
+
self.conf.timeout = timeout.to_i if timeout
|
72
72
|
|
73
73
|
if developer
|
74
74
|
win_x = win_y = 0
|
@@ -103,5 +103,12 @@ module Webdrone
|
|
103
103
|
def quit
|
104
104
|
@driver.quit
|
105
105
|
end
|
106
|
+
|
107
|
+
def console(binding = nil)
|
108
|
+
binding = Kernel.binding.of_caller(1) unless binding
|
109
|
+
@ctxt.with_conf developer: false do
|
110
|
+
binding.pry
|
111
|
+
end
|
112
|
+
end
|
106
113
|
end
|
107
114
|
end
|
data/lib/webdrone/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webdrone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aldrin Martoq
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|