webdrone 1.8.2 → 1.8.4
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/CHANGELOG.md +7 -0
- data/lib/webdrone/form.rb +8 -2
- data/lib/webdrone/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a7f12a7053f038ff4a6e4f1b3d3624eb26b78e72b3048eae567859d84ff7dcdb
|
|
4
|
+
data.tar.gz: b0ff6fcf00b34183934c47a76a2e973cfe4a265c60005ef22d6ce336652a8dc8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2514fa76503edfff2e9c2eef590b0613c797237366dd3575ff27357e8b070b26372fe6088ad12f76e572e34b978271ce46bd42f6f3c0dc1c453732f08323b24
|
|
7
|
+
data.tar.gz: 5b3a228a0f8c5b48ab279d937b12e42df5299e65d8af8067fed48b1137ba18a98c070f51ab6ca6115d3c84d5bb3f2f169fc6344418cf2dd48c650160f41e1186
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ New features are summarized here.
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
## v.1.8.4 - 2018-09-28
|
|
8
|
+
### Changed
|
|
9
|
+
- Added the method `a0.form.selected?` that returns if a checkbox is checked.
|
|
10
|
+
- Make the method `a0.form.find_item` public.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
7
14
|
## v.1.8.2 - 2018-08-15
|
|
8
15
|
### Fixed
|
|
9
16
|
- This changelog (again 🙄)
|
data/lib/webdrone/form.rb
CHANGED
|
@@ -122,6 +122,14 @@ module Webdrone
|
|
|
122
122
|
Webdrone.report_error(@a0, error)
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
+
def selected?(key, n: 1, visible: true, scroll: false, parent: nil, mark: false)
|
|
126
|
+
item = find_item(key, n: n, visible: visible, scroll: scroll, parent: parent)
|
|
127
|
+
@a0.mark.mark_item item if mark
|
|
128
|
+
item.selected?
|
|
129
|
+
rescue StandardError => error
|
|
130
|
+
Webdrone.report_error(@a0, error)
|
|
131
|
+
end
|
|
132
|
+
|
|
125
133
|
def mark(key, n: 1, visible: true, scroll: false, parent: nil, color: '#af1616', times: nil, delay: nil, shot: nil)
|
|
126
134
|
@a0.mark.mark_item find_item(key, n: n, visible: visible, scroll: scroll, parent: parent), color: color, times: times, delay: delay, shot: shot
|
|
127
135
|
rescue StandardError => error
|
|
@@ -144,8 +152,6 @@ module Webdrone
|
|
|
144
152
|
Webdrone.report_error(@a0, error)
|
|
145
153
|
end
|
|
146
154
|
|
|
147
|
-
protected
|
|
148
|
-
|
|
149
155
|
def find_item(key, n: 1, visible: true, scroll: false, parent: nil)
|
|
150
156
|
@lastitem = \
|
|
151
157
|
if @xpath.respond_to? :call
|
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.8.
|
|
4
|
+
version: 1.8.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aldrin Martoq
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-09-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|