openhab-scripting 4.45.0 → 4.45.1
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 +4 -4
- data/lib/openhab/dsl/types/decimal_type.rb +2 -2
- 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: 219ff31be5a2a08d9c0fcfdac6a15a1703e056928ce3fcea17e10da6824a26d8
|
|
4
|
+
data.tar.gz: 5b7be5678b869b4b3f469c5039d4663d153206433f91f178832f9812ff24838c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa2881c99476b13c112dcde86e0c2a2b52e5c8af2504340254ebba5a6461aed04ee49d2098a84281b38160cd1bd3933ee17d663bda40f84b1c9e45648408574f
|
|
7
|
+
data.tar.gz: 3393c479d762c7442cb6af4605efd90cab156d413eebe87757338c035af93aa9d41500dcfb4d67c11e677cd26592dfae64a0ffe1ecb1bbace42584ae1194514f
|
|
@@ -159,9 +159,9 @@ module OpenHAB
|
|
|
159
159
|
<<~RUBY, __FILE__, __LINE__ + 1
|
|
160
160
|
def #{ruby_op}(other)
|
|
161
161
|
if other.is_a?(DecimalType)
|
|
162
|
-
self.class.new(to_big_decimal.#{java_op}(other.to_big_decimal))
|
|
162
|
+
self.class.new(to_big_decimal.#{java_op}(other.to_big_decimal, java.math.MathContext::DECIMAL128))
|
|
163
163
|
elsif other.is_a?(java.math.BigDecimal)
|
|
164
|
-
self.class.new(to_big_decimal.#{java_op}(other))
|
|
164
|
+
self.class.new(to_big_decimal.#{java_op}(other, java.math.MathContext::DECIMAL128))
|
|
165
165
|
elsif other.respond_to?(:to_d)
|
|
166
166
|
result = to_d #{ruby_op} other
|
|
167
167
|
# result could already be a QuantityType
|
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.45.
|
|
4
|
+
version: 4.45.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-09-
|
|
11
|
+
date: 2022-09-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|