From ff2bea550a6a276f73891a2d80688ddbd9db3596 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Thu, 21 Nov 2024 16:14:24 +0100 Subject: [PATCH] Add frontend `host_inject.rb`, guarding against older versions These versions may be unable to execute - or even parse - the main host injection script. --- lib-injection/host_inject.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lib-injection/host_inject.rb diff --git a/lib-injection/host_inject.rb b/lib-injection/host_inject.rb new file mode 100644 index 0000000000..eaca133a90 --- /dev/null +++ b/lib-injection/host_inject.rb @@ -0,0 +1,7 @@ +# This file's intent is to be parseable and executable by all ruby versions +# to call into the main one only for versions for which it is known-compatible +# with at the language level. + +if RUBY_VERSION >= '2.5.' + require File.expand_path(File.join(File.dirname(__FILE__), 'host_inject_main.rb')) +end