openhab-scripting 5.38.1 → 5.38.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32d97cca9f77c890772c203d819d96e8b9098177ba67646266f323addc666636
4
- data.tar.gz: a92d6fbfaff9fc2de6e8ed7f4d88202d8e4d8c0d54fcb6fa5c27fbf9db16a9e1
3
+ metadata.gz: 80e5c451235909f43f9b0b0a82f80a501f0a978d65f52d3bc8dcf8ae5e74fd5e
4
+ data.tar.gz: 57633cd38589cc8e9bd8d11c0bccf66761cdf0aaaffcdde4b6c77ee9388df527
5
5
  SHA512:
6
- metadata.gz: 7d8ef9a7ed26d1d92499c821a05da636429c67fdf8089c49e6652e4bf08806c5d6266e3be8e8cd2732ed70d795b37227d3b7aca2ca904361628761b12a4245bc
7
- data.tar.gz: b3e22e3538f6560bc389a0079e60ad51a90f1d7e66c293d1856fed2f4e470951eacde2ed04b920cbaf59627bbbf23c9431d6dfa8bdbc8fcad282a6b6c2878c75
6
+ metadata.gz: 67035be352872b9eb97049875648d7e3c5c190e8ea10ee6eb580f039266746f927d24b51844c022c19e75dadd20baaf23450fb35d34d6df43b5046f7cf4fedc9
7
+ data.tar.gz: 74be0ee645c5ba2b480250a5dd3db36773596bb8aec3e0e27b5e96b48da765e4cf5a544d1ae4613ac761c6662e17bde7b1c5bce34038c212080f682dda64508d
@@ -1,5 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- raise "#{__FILE__} is only meant to be required from the context of the Karaf console" unless $terminal
3
+ raise "#{__FILE__} is only meant to be required from the context of the Karaf console" unless $console
4
+
5
+ begin
6
+ $terminal = $console.session.terminal
7
+ rescue NoMethodError
8
+ puts "JRuby console is not available in this environment"
9
+ exit
10
+ end
4
11
 
5
12
  ENV["TERM"] = $terminal.type
@@ -4,6 +4,6 @@ module OpenHAB
4
4
  module DSL
5
5
  # Version of openHAB helper libraries
6
6
  # @return [String]
7
- VERSION = "5.38.1"
7
+ VERSION = "5.38.2"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openhab-scripting
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.38.1
4
+ version: 5.38.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian O'Connell
@@ -479,7 +479,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
479
479
  - !ruby/object:Gem::Version
480
480
  version: '0'
481
481
  requirements: []
482
- rubygems_version: 3.6.7
482
+ rubygems_version: 3.6.8
483
483
  specification_version: 4
484
484
  summary: JRuby Helper Libraries for openHAB Scripting
485
485
  test_files: []