Commit Graph

22 Commits

Author SHA1 Message Date
jimtng
a1fc3632e6
[jrubyscripting] Minor updates, add short examples at the top of README.md (#18030)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2025-01-09 21:17:05 +01:00
lsiepel
1a42353cc9
Multiple binding markdown fixes (#17422)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-09-28 17:46:53 +02:00
jimtng
bd275e7046
[jrubyscripting] Update README (#17000)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-07-05 14:42:26 +02:00
jimtng
28a055396a
[jrubyscripting] Fix an error in received_command example (#16637)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-04-11 07:07:21 +02:00
jimtng
84eb97acd0
[jrubyscripting] Update README (#16440)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2024-02-22 09:30:20 +01:00
jimtng
5a39985420
[jrubyscripting] Update README.md (#15624)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-10-01 16:01:13 +02:00
jimtng
78381e8b6d
[jrubyscripting] Fix broken image in README.md (#15435)
* [jrubyscripting] Fix broken image in README.md
* [jrubyscripting] Update the base url in the regenerate instructions

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-08-19 22:41:54 +02:00
jimtng
35be82401d
[jrubyscripting] Update README (#15287)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-07-22 16:16:03 +02:00
Cody Cutrer
6b4ec31348
[jrubyscripting] loosen default gem version constraint (#15266)
so that the helper library compatible with 4.0.0.M3+ will be used

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2023-07-18 19:56:30 +02:00
jimtng
9f221e550b
[jrubyscripting] Update README.md (#14798)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2023-04-14 08:09:51 +02:00
Cody Cutrer
558908e69a
[jrubyscripting] update README, and default configuration installing gem (#14489)
README is generated by YARD from USAGE.md in the gem.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2023-03-27 15:22:48 +02:00
Cody Cutrer
74f22a5325
[jrubyscripting] allow disabling dependency tracking (#13944)
* [jrubyscripting] allow disabling dependency tracking

in case your helper library doesn't support it. or you just don't like
the behavior.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2023-01-30 23:24:54 +01:00
Holger Friedrich
0304d74f87
Fix Markdown warnings in README.md (#14187)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-01-09 17:51:12 +01:00
Wouter Born
af16d52e9b
Fix "Hello, World!" examples in automation documentation (#14041)
The documentation states incorrectly that "Hello, World!" is printed when instead "Hello world!" is printed.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-22 18:21:13 +01:00
Cody Cutrer
2382fadaaa
[jrubyscripting] Implement dependency tracking (#13810)
* [jrubyscripting] implement dependency tracking

watchers had to be refactored similar to jsscripting.
it supports watching any directory referenced from RUBYLIB,
as well as the gem home. it properly excludes lib and gem home
(as well as other gem homes if you have multiple jruby versions
installed) from loading as regular scripts.

this is a breaking change if you don't have RUBYLIB explicitly
configured, and you are using the old default directory.

it's expected that the detection of what files and gems any
given script uses will be self-identified by the script, presumably
by the helper library.

JRubyScriptEngineConfiguration was largely refactored as part of this.
 * CONFIGURATION_PARAMETERS was renamed, and is no longer static, since
   it's modified every time the configuration is changed
 * OptionalConfigurationElement was simplified since default values
   are always provided now. this also simplified lots of other code
   that accesses the current settings.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-12-05 08:19:51 +01:00
jimtng
735089a7c7
[jrubyscripting] Allow multiple version specifiers for gems (#13779)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2022-11-28 23:51:19 +01:00
Cody Cutrer
c215dfede4
[jrubyscripting] document how to use Ruby in a transformation (#13286)
using the core ScriptTransformationService. See
https://github.com/openhab/openhab-addons/pull/13255 for prior
discussion on this.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
2022-08-22 15:46:18 +02:00
Cody Cutrer
70eb7dc511
[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>
2022-08-07 18:02:34 +02:00
jimtng
115f5ab534
[jrubyscripting] Update to JRuby 9.3.4.0 (#12559)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2022-04-02 10:01:25 +02:00
jimtng
6c25e8b528
[jrubyscripting] Add auto-require scripts option (#12381)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
2022-02-28 09:04:52 +01:00
Wouter Born
eca8fbccc7
[jrubyscripting] Update version to 9.3.2 in README.md (#11823)
Related to #11775

Signed-off-by: Wouter Born <github@maindrain.net>
2021-12-20 14:51:51 +01:00
boc-tothefuture
633582522c
[jrubyscripting] JRuby Scripting initial contribution (#11538)
Also-by: Jimmy Tanagra <jimmy@tanagra.id.au>
Signed-off-by: Brian O'Connell <broconne@gmail.com>
2021-11-15 14:21:29 +01:00