Skip to content

Commit ff2bea5

Browse files
committed
Add frontend host_inject.rb, guarding against older versions
These versions may be unable to execute - or even parse - the main host injection script.
1 parent 165d035 commit ff2bea5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib-injection/host_inject.rb

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file's intent is to be parseable and executable by all ruby versions
2+
# to call into the main one only for versions for which it is known-compatible
3+
# with at the language level.
4+
5+
if RUBY_VERSION >= '2.5.'
6+
require File.expand_path(File.join(File.dirname(__FILE__), 'host_inject_main.rb'))
7+
end

0 commit comments

Comments
 (0)