openhab-scripting 4.32.1 → 4.32.2

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: 89c274fd9901e8ccc5d1890a7cf41dbf17ab6d79eb2b798b4e86dde9101cdd11
4
- data.tar.gz: dea8df6ebfb5b572745df0f4ab2b33ac251d74f0fe694ca4759e227f0588b4c3
3
+ metadata.gz: 8d988eed567dd4fb75d8f43550f005cc1e09264310157c6ec7f267f82d68f6af
4
+ data.tar.gz: f790a909228f3671204fe6e00c27064ee25ab69154f4b54a21efe233d36d6b2b
5
5
  SHA512:
6
- metadata.gz: 7ddee7681015930c085afe7fa68a6c6b913e414097d8da32ed9519b2d701ad71699f9bc585186f9cf229fb67633f3781995b04099290b67dd781ba9d5e167e93
7
- data.tar.gz: a8d606a0b5c1fe02822955ad03fd6affbf111a774581cb1706ab7661af874ef907004c73e21bfa445f16780e27f65090b140ab83487b3dc2b6729ac1fba01b03
6
+ metadata.gz: bf7f712761e6b051f674c0709abba39f13ca3cbc52db417cb7a5c40f013425f860b52bd8ff840f1bb60a81cbda845899c348a9da2045ad0b0480816e70478f4d
7
+ data.tar.gz: 9c40d8bb624713aba27f93edc5c0dac12d003c14d3db47a37715954b7c788cf0d0f195e32797cd3a454eb984d57a05eb650660e585f476aff7ded57c4e6c5fff
@@ -8,7 +8,8 @@ module OpenHAB
8
8
  #
9
9
  # Provides access to the OpenHAB logging using a Ruby logging methods
10
10
  #
11
- module Log
11
+
12
+ module Core
12
13
  #
13
14
  # Ruby Logger that forwards messages at appropriate levels to OpenHAB Logger
14
15
  #
@@ -105,7 +106,9 @@ module OpenHAB
105
106
  #
106
107
  def log_exception(exception, rule_name)
107
108
  exception = clean_backtrace(exception)
108
- error { "#{exception.message} (#{exception.class})\nIn rule: #{rule_name}\n#{exception.backtrace&.join("\n")}" }
109
+ error do
110
+ "#{exception.message} (#{exception.class})\nIn rule: #{rule_name}\n#{exception.backtrace&.join("\n")}"
111
+ end
109
112
  end
110
113
 
111
114
  private
@@ -152,6 +155,12 @@ module OpenHAB
152
155
  end
153
156
  end
154
157
  end
158
+ end
159
+
160
+ module Log
161
+ #
162
+ # Ruby Logger that forwards messages at appropriate levels to OpenHAB Logger
163
+ #
155
164
 
156
165
  # Logger caches
157
166
  @loggers = {}
@@ -180,7 +189,7 @@ module OpenHAB
180
189
  # of logger name requires lots of operations and logger
181
190
  # names for some objects are specific to the class
182
191
  logger_name = logger_name(object)
183
- @loggers[logger_name] ||= Logger.new(logger_name)
192
+ @loggers[logger_name] ||= OpenHAB::Core::Logger.new(logger_name)
184
193
  end
185
194
 
186
195
  private
@@ -5,5 +5,5 @@
5
5
  #
6
6
  module OpenHAB
7
7
  # @return [String] Version of OpenHAB helper libraries
8
- VERSION = '4.32.1'
8
+ VERSION = '4.32.2'
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.32.1
4
+ version: 4.32.2
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-02-21 00:00:00.000000000 Z
11
+ date: 2022-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler