openhab-scripting 4.42.0 → 4.42.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: 62974273127c66d888a44c8871b287dd6cfc90485ad04e9d461b407d19474eb1
4
- data.tar.gz: d9540eeb7d3df3df1075ff8c79a4bc8eef1ca9e6920860bce2c5a3c64a2931b8
3
+ metadata.gz: 5e41958655d441761618cb21164c7954bcb05c037023a080d2a70a741637d951
4
+ data.tar.gz: ee4252bafef8e2a430f98c80bc3277e5c45ef9cd0c06b645f48da848031f0abf
5
5
  SHA512:
6
- metadata.gz: 26fbfcddca4f673fbaf1a2399bb126c06715dfbe966ae1c0a77259bdc5b1debafbbdb9b9103c81d0c8bc31311118b44517504e749611cb0c80cc4ddea1e69e23
7
- data.tar.gz: 80e903ea1be4ce311c3f5093fa678bd38a22ddc5e97ac24245faaa5ad14cd5cd383b3e82f9cce11da6d7e062608ce5181a8eed3005f5aab09982f0a78f5eb944
6
+ metadata.gz: c1dcd8ab59e1732eb76acd9c707d4dbd18dcae94d3fd6236d6c53362958b7fd0c977ef001c109f147df596321a99ee7640aceb25f92530f7cb8f59bd7733de9f
7
+ data.tar.gz: 70d92d8df318f317c42843cf8eaae67b33c9cdb24f119074f7e59e117ec29f53f1594df05e8fd35059a666a600845375048f991c9cc15b35772fb34b35d83a4f
@@ -220,10 +220,10 @@ module OpenHAB
220
220
  end
221
221
 
222
222
  PERSISTENCE_METHODS.each do |method|
223
- public_method = method.to_s.delete_suffix('?') # For some reason, the boolean methods with '?' are missing
224
223
  define_method(method) do |timestamp, service = nil|
225
224
  service ||= persistence_service
226
- result = PersistenceExtensions.public_send(public_method, self, to_zdt(timestamp), service&.to_s)
225
+ result = PersistenceExtensions.public_send(method.to_s.delete_suffix('?'), self, to_zdt(timestamp),
226
+ service&.to_s)
227
227
  wrap_result(result, method)
228
228
  end
229
229
 
@@ -232,8 +232,8 @@ module OpenHAB
232
232
  between_method = method.to_s.sub('_since', '_between').to_sym
233
233
  define_method(between_method) do |start, finish, service = nil|
234
234
  service ||= persistence_service
235
- result = PersistenceExtensions.public_send(public_method, self, to_zdt(start), to_zdt(finish),
236
- service&.to_s)
235
+ result = PersistenceExtensions.public_send(between_method.to_s.delete_suffix('?'), self, to_zdt(start),
236
+ to_zdt(finish), service&.to_s)
237
237
  wrap_result(result, method)
238
238
  end
239
239
  end
@@ -5,5 +5,5 @@
5
5
  #
6
6
  module OpenHAB
7
7
  # @return [String] Version of OpenHAB helper libraries
8
- VERSION = '4.42.0'
8
+ VERSION = '4.42.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.42.0
4
+ version: 4.42.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-06-18 00:00:00.000000000 Z
11
+ date: 2022-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler