Skip to content

Commit

Permalink
Add frontend host_inject.rb, guarding against older versions
Browse files Browse the repository at this point in the history
These versions may be unable to execute - or even parse - the main host
injection script.
  • Loading branch information
lloeki committed Nov 22, 2024
1 parent 165d035 commit ff2bea5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib-injection/host_inject.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ff2bea5

Please sign in to comment.