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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 591aca8996f4abeba7fc6fdf06a41c1673e8ebd0
4
- data.tar.gz: 1dac148da11b1d8c258721a3aaf5cdb84df0f6f7
3
+ metadata.gz: d2f714024182d55a6e38c77830dbbd8d9aac428d
4
+ data.tar.gz: 4562aec624c436a07321ed43274c988c99222a24
5
5
  SHA512:
6
- metadata.gz: 402279ab221512c1d29d6c06b848e5bfd06b7d36568ffdfca777b7eb14d1b24dfa2deba69400c7dbfcdcab4250ef426f046e3a6b058c0c4d33c8a8c5c3241fc9
7
- data.tar.gz: 0ac74ad12cafa5cc0c7eab75334e9502ff1dec2297fc6c6006ccf9f6ee283d882c87aa9d298e53dbdde6457c87a96712abcbae53a1fd929e8fa616ec24f909d1
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
- }.freeze
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir_pump
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bartek Wilczek