openhab-scripting 4.0.1 → 4.1.0

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: 4028b9fda2ff3ffa7005f730d7b876e136cf4c3dacc66f0f8950077c4a8f5ab9
4
- data.tar.gz: dc819dea7d3f573299934da843ddadc597f98f59165426e6c88e321a1fd93200
3
+ metadata.gz: c41969dcafc01ceef85a9aef2b8e45b9454b6a78a0d7e90528f59f965cd2843f
4
+ data.tar.gz: 9c2804327c8be71bfb411d6d0fbc958c2b127779177fa6fb68d5a00e53cbc302
5
5
  SHA512:
6
- metadata.gz: 2839736ff1c0d15c6622e679e7ada29d6f34afe5bae7d9fa375ebe34e809b14eb0f54b447d95ff7548b3f97786f0c7f6f979cd8ce796fa84bdbb1b60312a7e73
7
- data.tar.gz: 45b0ca416f63b8971fdd4f7ee7d86c449ac44b0d0acdf6a1ce6955d604c04bf12788900a180fde7ec49d9fafe8aa5a5b6a8d4271cc5a72ab4440ddbe9e7a2b8a
6
+ metadata.gz: c91ecc4c977f7765e1caca3593a8a3a23f122080448520daa5768cf36272e5e8f76f0c7462d404b02ab6ef1e7cb3d3204a13f955836335ceb6ff924782450a6e
7
+ data.tar.gz: 9e96bd1dd2d2eacf036bfdab9d686774c5ccb95bbd80f8e5f3077d31c31b6959fa9a308352aca8e73ae516802b61fdd526ecc385618b366fa48af36f27e22013
@@ -16,6 +16,11 @@ module OpenHAB
16
16
  # MonkeyPatching Decimal Type
17
17
  #
18
18
  class DecimalType
19
+ extend Forwardable
20
+
21
+ delegate %i[to_d zero?] => :to_big_decimal
22
+ delegate %i[positive? negative?] => :to_d
23
+
19
24
  #
20
25
  # @param [Object] other object to compare to
21
26
  #
@@ -5,5 +5,5 @@
5
5
  #
6
6
  module OpenHAB
7
7
  # @return [String] Version of OpenHAB helper libraries
8
- VERSION = '4.0.1'
8
+ VERSION = '4.1.0'
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.0.1
4
+ version: 4.1.0
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: 2021-10-05 00:00:00.000000000 Z
11
+ date: 2021-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler