watir_pump 0.4.1 → 0.4.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/watir_pump/watir_method_mapping.rb +13 -5
- 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: d2f714024182d55a6e38c77830dbbd8d9aac428d
|
4
|
+
data.tar.gz: 4562aec624c436a07321ed43274c988c99222a24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1e4bd2e99eed73ffdbf708b0babcee6ec6903af2c483c124d7580ace20094c5a302d7a78557fee79238977982aece6089d2252cdb49bb20b6c1f5cade4c8e57
|
7
|
+
data.tar.gz: 3118bae9191f0a6d7388bd5f518630a7c17693a8da2899f97f817ce62a9af52fa440a72bdcacfdf28b460c8b17d36c7437ee9fd4cd5085b5be02acd04bd6088e
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# rubocop:disable Metrics/ModuleLength
|
4
|
+
# rubocop:disable Style/MutableConstant
|
4
5
|
|
5
6
|
module WatirPump
|
6
7
|
WATIR_METHOD_MAPPING = {
|
@@ -302,10 +303,6 @@ module WatirPump
|
|
302
303
|
# others
|
303
304
|
radio: Watir::Radio,
|
304
305
|
radios: Watir::RadioCollection,
|
305
|
-
date_time_field: Watir::DateTimeField,
|
306
|
-
date_time_fields: Watir::DateTimeFieldCollection,
|
307
|
-
date_field: Watir::DateField,
|
308
|
-
date_fields: Watir::DateFieldCollection,
|
309
306
|
frame: Watir::Frame,
|
310
307
|
frames: Watir::FrameCollection,
|
311
308
|
file_field: Watir::FileField,
|
@@ -318,7 +315,18 @@ module WatirPump
|
|
318
315
|
fonts: Watir::FontCollection,
|
319
316
|
text_field: Watir::TextField,
|
320
317
|
text_fields: Watir::TextFieldCollection
|
321
|
-
}
|
318
|
+
}
|
319
|
+
if defined? Watir::DateTimeField
|
320
|
+
watir_6_10_elems = {
|
321
|
+
date_time_field: Watir::DateTimeField,
|
322
|
+
date_time_fields: Watir::DateTimeFieldCollection,
|
323
|
+
date_field: Watir::DateField,
|
324
|
+
date_fields: Watir::DateFieldCollection
|
325
|
+
}
|
326
|
+
WATIR_METHOD_MAPPING.merge! watir_6_10_elems
|
327
|
+
end
|
328
|
+
WATIR_METHOD_MAPPING.freeze
|
322
329
|
end
|
323
330
|
|
331
|
+
# rubocop:enable Style/MutableConstant
|
324
332
|
# rubocop:enable Metrics/ModuleLength
|