openhab-scripting 4.10.2 → 4.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openhab/dsl/timers/timer.rb +4 -0
- data/lib/openhab/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: edc5823d4013d05b8d36cedcf2431567d4ef47cd28c12b3c6df66b9402180637
|
4
|
+
data.tar.gz: c59f25ca98e2f159e59129cb9a0ce59bc4b9dfbe971b16813a5805461db278c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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))
|
data/lib/openhab/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2021-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|