openhab-scripting 3.8.1 → 3.9.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/core/load_path.rb +19 -0
- data/lib/openhab/version.rb +1 -1
- data/lib/openhab.rb +3 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a9d4ad3fd6bcd47f7441c909955c5d242847458c5436ed7d970df401c1914c8
|
4
|
+
data.tar.gz: 7f6ce878e39bd7ca0ede464fb8b8cbeb3a9559968befad9feea2dfdfa07729a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4172131bbed8203614f2fa187394abe46c6789d12ac8d80930719f6dce1acfd0528ac992f3fe456f2a735d711d3a48515cc01d32e9b7a36d86a030e40e07fcbc
|
7
|
+
data.tar.gz: 85712a1ab410d97079b4a88f0cc55472dd23ef9b9ca0cf9dd664420e2819e9f0b23f23ea26b27939ab3a5867eac5a101c78071f073be753920b7f16bae9845ce
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module OpenHAB
|
4
|
+
#
|
5
|
+
# Core support for OpenHAB JRuby Library
|
6
|
+
#
|
7
|
+
module Core
|
8
|
+
#
|
9
|
+
# JRuby isn't respecting $RUBYLIB when run embedded inside of OpenHAB, so do it manually
|
10
|
+
#
|
11
|
+
def self.add_rubylib_to_load_path
|
12
|
+
ENV['RUBYLIB']&.split(File::PATH_SEPARATOR)&.each do |path|
|
13
|
+
next if path.empty?
|
14
|
+
|
15
|
+
$LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/openhab/version.rb
CHANGED
data/lib/openhab.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'openhab/core/load_path'
|
3
4
|
require 'openhab/core/openhab_setup'
|
4
5
|
require 'openhab/log/logger'
|
5
6
|
require 'openhab/dsl/dsl'
|
@@ -28,6 +29,8 @@ module OpenHAB
|
|
28
29
|
base.send :include, OpenHAB::DSL::Items
|
29
30
|
base.send :include, OpenHAB::DSL::Types
|
30
31
|
logger.info "OpenHAB JRuby Scripting Library Version #{OpenHAB::VERSION} Loaded"
|
32
|
+
|
33
|
+
OpenHAB::Core.add_rubylib_to_load_path
|
31
34
|
end
|
32
35
|
end
|
33
36
|
|
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: 3.
|
4
|
+
version: 3.9.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: 2021-09-
|
11
|
+
date: 2021-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -47,6 +47,7 @@ extra_rdoc_files: []
|
|
47
47
|
files:
|
48
48
|
- lib/openhab.rb
|
49
49
|
- lib/openhab/core/entity_lookup.rb
|
50
|
+
- lib/openhab/core/load_path.rb
|
50
51
|
- lib/openhab/core/openhab_setup.rb
|
51
52
|
- lib/openhab/core/osgi.rb
|
52
53
|
- lib/openhab/dsl/actions.rb
|