Skip to content

Use RUBY_PLATFORM to decide between rb-inotify and rb-kqueue#884

Open
ekohl wants to merge 3 commits intotheforeman:developfrom
ekohl:smarter-bundler
Open

Use RUBY_PLATFORM to decide between rb-inotify and rb-kqueue#884
ekohl wants to merge 3 commits intotheforeman:developfrom
ekohl:smarter-bundler

Conversation

@ekohl
Copy link
Member

@ekohl ekohl commented Jan 5, 2024

This matches what modules/dhcp_isc/configuration_loader.rb does in load_programmable_settings.

Currently untested.

@ekohl
Copy link
Member Author

ekohl commented Jan 5, 2024

Note that journald.rb probably deserves a similar treatment in making it Linux-only. windows.rb may also be in the same boat.

ekohl added 3 commits January 24, 2026 12:26
This matches what modules/dhcp_isc/configuration_loader.rb does in
load_programmable_settings.

It then also merges into a single dhcp_isc bundler group. The rsec gem
is limited to the ruby platfrom because you can't run dhcp_isc on
Windows anyway.
Quoting the bundler man page:

> The following platform values are deprecated and should be replaced with windows:
> * mswin, mswin64, mingw32, x64_mingw

Link: https://bundler.io/man/gemfile.5.html#PLATFORMS
@ekohl ekohl marked this pull request as ready for review January 24, 2026 11:29
@ekohl
Copy link
Member Author

ekohl commented Jan 24, 2026

Looks like the last commit doesn't work on older Bundler because the :windows platform was introduced in Ruby 3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant