openhab-scripting 4.44.0 → 4.44.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '091c2e6fd32317b8976246f8f69332c793e9ef3d3bfc1991e9b9065716e6e668'
4
- data.tar.gz: adfc88ad7a7bcd999bdd49c104efb395cda2b9dd1c27bf439a941700840e7457
3
+ metadata.gz: '0829e9f6bd0cd3d68bef6db15d0e36bbf3b9d5417ce4099830fb7af8b59e35c5'
4
+ data.tar.gz: cbfe57842ccbf6ab2fa11d78245033a38ea823b9fa60dcce1cf3a42b14980ef2
5
5
  SHA512:
6
- metadata.gz: fef562627789d792db873720ef7e13f0c5264e1c091f943ee4fc15c0313cd5037722271195afb9506359a7a3d5e4fa133940a8e38ccaa59d183c5c4233f0464a
7
- data.tar.gz: 919b481338f0db3a842024f8fabed9493233430e310bd3453a388731350c2a033b4d8f4d6902a28cbe527db8c398bc8cfa705f045d85dfe943e7e353353622fb
6
+ metadata.gz: e7cc9582cfda3af6152beb41d897bca407fd0816d5628bdc9da511c4cc9afc2abf215c7a438b6a9c8b21cb2e38f20bf96ac79908a92a2e50d18818e4e86ab11a
7
+ data.tar.gz: 929493b4ad6e943fad845aaad7eb19769991a22915d9fffa9607f8b5cef753f07a651f0e542ad7e0bb005b22a04ed4ec99c1ef27a9527428ec8561b0d6a5987c
@@ -70,9 +70,9 @@ module OpenHAB
70
70
  def delete(timer)
71
71
  logger.trace("Removing #{timer} from timers")
72
72
  @timers.delete(timer)
73
- if timer.respond_to? :id
74
- @timer_ids[timer.id]&.delete(timer)
75
- @timer_ids.delete(timer.id) unless @timer_ids[timer.id].any?
73
+ if timer.respond_to?(:id) && (timers = @timer_ids[timer.id])
74
+ timers.delete(timer)
75
+ @timer_ids.delete(timer.id) if timers.empty?
76
76
  end
77
77
  @reentrant_timers.delete(timer.reentrant_id) if timer.respond_to? :reentrant_id
78
78
  end
@@ -5,5 +5,5 @@
5
5
  #
6
6
  module OpenHAB
7
7
  # @return [String] Version of OpenHAB helper libraries
8
- VERSION = '4.44.0'
8
+ VERSION = '4.44.1'
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.44.0
4
+ version: 4.44.1
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: 2022-07-31 00:00:00.000000000 Z
11
+ date: 2022-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler