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 +4 -4
- data/lib/openhab/dsl/items/persistence.rb +4 -4
- 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: 5e41958655d441761618cb21164c7954bcb05c037023a080d2a70a741637d951
|
4
|
+
data.tar.gz: ee4252bafef8e2a430f98c80bc3277e5c45ef9cd0c06b645f48da848031f0abf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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(
|
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
|
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.42.
|
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-
|
11
|
+
date: 2022-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|