openhab-scripting 4.45.0 → 4.45.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: 92e2d3cfb9d4cda1452db68930c6f0d291ee3c81b1df4f9cbf4cfe9e0946d1a3
4
- data.tar.gz: b2df2b5577372f44b0a7ab265abc9e03c8ee3fcec1c24152302f42cf66892221
3
+ metadata.gz: 219ff31be5a2a08d9c0fcfdac6a15a1703e056928ce3fcea17e10da6824a26d8
4
+ data.tar.gz: 5b7be5678b869b4b3f469c5039d4663d153206433f91f178832f9812ff24838c
5
5
  SHA512:
6
- metadata.gz: d0f865451318a850196975f2d5482eaba83a33229c050475bf8ea46fdf058ad95ca494dc2cf2ae1f0b1aae38fd29a78fbeffefbaf2eadd2d669dbbe66ab33fb5
7
- data.tar.gz: 8b268e91ca36f4450a1ea73a6794b0b7fe8651a0e8566573f5168d046260c3b6b8d11fae78ada7d2c86331ce6c08ed9c4cdf66ad3ff08e6bcb049e76823cd46b
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
@@ -5,5 +5,5 @@
5
5
  #
6
6
  module OpenHAB
7
7
  # @return [String] Version of OpenHAB helper libraries
8
- VERSION = '4.45.0'
8
+ VERSION = '4.45.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.45.0
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-18 00:00:00.000000000 Z
11
+ date: 2022-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler