]> git.basschouten.com Git - openhab-addons.git/commit
[jrubyscripting] check if gems are installed before installing them (#13151)
authorCody Cutrer <cody@cutrer.us>
Sun, 7 Aug 2022 16:02:34 +0000 (10:02 -0600)
committerGitHub <noreply@github.com>
Sun, 7 Aug 2022 16:02:34 +0000 (18:02 +0200)
commit70eb7dc511a53be7020320f29853a6bfa05d17dc
treebec6f00627e7cdeb3de2a247268fa1237aadce5c
parent7a31cb2785eaac7e07b2810e60d55db264770540
[jrubyscripting] check if gems are installed before installing them (#13151)

* [jrubyscripting] check if gems are installed before installing them

this avoids unecessary downloads and overwrites, or even more importantly
errors if the GEM_HOME is not writable by the openhab user.

this also adds a configuration option for if you want to check for
updates every time configuration is applied (or openhab restarts). this
is useful if your OpenHAB system can't access the internet regularly.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
bundles/org.openhab.automation.jrubyscripting/README.md
bundles/org.openhab.automation.jrubyscripting/src/main/java/org/openhab/automation/jrubyscripting/internal/JRubyScriptEngineConfiguration.java
bundles/org.openhab.automation.jrubyscripting/src/main/resources/OH-INF/config/config.xml
bundles/org.openhab.automation.jrubyscripting/src/main/resources/OH-INF/i18n/jruby.properties