openhab-scripting 4.10.2 → 4.10.3

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
  SHA256:
3
- metadata.gz: 2363b08b3ff2cf49420f2083bad82d1c20fcc927104641bbcc824495bd0ba520
4
- data.tar.gz: a589c5a4e5a92a8c4899784a70a1a2bd5c352ae46d0ccd446516369fb1ce39ad
3
+ metadata.gz: edc5823d4013d05b8d36cedcf2431567d4ef47cd28c12b3c6df66b9402180637
4
+ data.tar.gz: c59f25ca98e2f159e59129cb9a0ce59bc4b9dfbe971b16813a5805461db278c1
5
5
  SHA512:
6
- metadata.gz: dfe40bd0793be059b2196d18ea6e68fba9415b92326cb9e55b6a1bcbf68bc778ed96cb5f1a97ce2f6a61f6164452dea25e0c6f905bdd88c206cafc19194e850e
7
- data.tar.gz: cdb36b59bd35ab74fa08cbfa1e011c73c3111f04702451e16698c8f701fadedfb6f68af514149dc6bac6a9808ad206ea5eba738a1cd78f5e2efee2b6fb52cd16
6
+ metadata.gz: fbf6a26f04ba2916ea394a1f229e2cd7a3faca4978bf2e0af8c385ab87eea76086e0b8d3e3e047c54707869919e81f3a91161a935c2daaac161e776b20d3f4a3
7
+ data.tar.gz: ab9bc48784463abc21ca7d471b03b6cb003efb95ad0e5d908a6373663c71b8c8b1a661d6e87c5ba21bd8ef32b4cd2f3e97107d2091a3f99010c5697c3e4a1403
@@ -59,6 +59,10 @@ module OpenHAB
59
59
  # @return [Timer] Rescheduled timer instances
60
60
  #
61
61
  def reschedule(duration = nil)
62
+ unless duration.nil? || duration.is_a?(Java::JavaTimeTemporal::TemporalAmount)
63
+ raise ArgumentError, 'Supplied argument must be a duration'
64
+ end
65
+
62
66
  duration ||= @duration
63
67
  Timers.timer_manager.add(self)
64
68
  @timer.reschedule(ZonedDateTime.now.plus(duration))
@@ -5,5 +5,5 @@
5
5
  #
6
6
  module OpenHAB
7
7
  # @return [String] Version of OpenHAB helper libraries
8
- VERSION = '4.10.2'
8
+ VERSION = '4.10.3'
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openhab-scripting
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.10.2
4
+ version: 4.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian O'Connell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-03 00:00:00.000000000 Z
11
+ date: 2021-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler