-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[jrubyscripting] Check if gems are installed before installing them #13151
[jrubyscripting] Check if gems are installed before installing them #13151
Conversation
cc @jimtng |
hmm, @jimtng brings up a good point that this would defeat auto-update on restart. will have to think on it... |
21bb0a9
to
ce25f52
Compare
@jimtng : okay, updated now with support for auto-update, and a config option for if you even want auto-update behavior. I am using bundler/inline now (the only way I could figure out how to get it to check-before-installing). I had to pass an explicit |
...main/java/org/openhab/automation/jrubyscripting/internal/JRubyScriptEngineConfiguration.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.automation.jrubyscripting/src/main/resources/OH-INF/config/config.xml
Show resolved
Hide resolved
ce25f52
to
13546ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I almost forgot - please update the README file to document the new check_update
option for file-based configuration
bundles/org.openhab.automation.jrubyscripting/src/main/resources/OH-INF/config/config.xml
Outdated
Show resolved
Hide resolved
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>
13546ac
to
2d5771d
Compare
README updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Besides the README formatting issue, all LGTM.
@boc-tothefuture - do you also want to have a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: jimtng <2554958+jimtng@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@kaikreuzer this didn't get mentioned in the 3.4 M1 announcement https://github.com/openhab/openhab-distro/releases/tag/3.4.0.M1 |
This is because it lacks a bug or enhancement label, which I didn't notice previously. I guess it should be enhancement due to the "org.openhab.automation.jrubyscripting:check_update" addition? I'm adding that, so it will be included in the final 3.4 release notes. Feel free to change it. |
fixes boc-tothefuture/openhab-jruby#634; regression from openhab#13151 Signed-Off-By: Cody Cutrer <cody@cutrer.us>
#13328) fixes boc-tothefuture/openhab-jruby#634; regression from #13151 Signed-Off-By: Cody Cutrer <cody@cutrer.us>
…penhab#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>
openhab#13328) fixes boc-tothefuture/openhab-jruby#634; regression from openhab#13151 Signed-Off-By: Cody Cutrer <cody@cutrer.us>
…penhab#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>
openhab#13328) fixes boc-tothefuture/openhab-jruby#634; regression from openhab#13151 Signed-Off-By: Cody Cutrer <cody@cutrer.us>
…penhab#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> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
openhab#13328) fixes boc-tothefuture/openhab-jruby#634; regression from openhab#13151 Signed-Off-By: Cody Cutrer <cody@cutrer.us> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
openhab#13328) fixes boc-tothefuture/openhab-jruby#634; regression from openhab#13151 Signed-Off-By: Cody Cutrer <cody@cutrer.us>
…penhab#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>
openhab#13328) fixes boc-tothefuture/openhab-jruby#634; regression from openhab#13151 Signed-Off-By: Cody Cutrer <cody@cutrer.us>
…penhab#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>
openhab#13328) fixes boc-tothefuture/openhab-jruby#634; regression from openhab#13151 Signed-Off-By: Cody Cutrer <cody@cutrer.us>
this avoids unecessary downloads and overwrites, or even more importantly
errors if the GEM_HOME is not writable by the openhab user.