Skip to content

Generate the reference from the runmode#292

Open
ekohl wants to merge 5 commits into
OpenVoxProject:mainfrom
ekohl:read-paths-from-runmode
Open

Generate the reference from the runmode#292
ekohl wants to merge 5 commits into
OpenVoxProject:mainfrom
ekohl:read-paths-from-runmode

Conversation

@ekohl

@ekohl ekohl commented Dec 28, 2025

Copy link
Copy Markdown
Contributor

This avoids duplicating the values with the actual logic.

The motivation is to fully centralize all OS specific paths in RunMode. If packaging decides to change it (like in #225) then it is limited to a single file.

@ekohl

ekohl commented Dec 29, 2025

Copy link
Copy Markdown
Contributor Author

I had a hard time with the tests. I could file a bug on multi_json but opened #293 instead

@bastelfreak

Copy link
Copy Markdown
Contributor

@ekohl can you rebase please?

@ekohl ekohl force-pushed the read-paths-from-runmode branch from 0c613fe to f282a3a Compare January 5, 2026 13:17
@ekohl ekohl force-pushed the read-paths-from-runmode branch 3 times, most recently from 90467e1 to 0401033 Compare May 22, 2026 12:24
@ekohl

ekohl commented May 22, 2026

Copy link
Copy Markdown
Contributor Author

I think this is now ready.

ekohl added 5 commits May 30, 2026 20:40
Signed-off-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>
This uses fewer variables and is a bit shorter which arguably is making
it easier to read.

Signed-off-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>
This uses the described_class helper together with let blocks to
construct the instance.

Signed-off-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>
This introduces an instance variable in run_mode_spec.rb again, but I
didn't know how to cleanly do with without having to rewrite the entire
structure.

Signed-off-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>
This avoids duplicating the values with the actual logic.

Signed-off-by: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>
@ekohl ekohl force-pushed the read-paths-from-runmode branch from 0401033 to 6847c02 Compare May 30, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants