-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add frontend
host_inject.rb
, guarding against older versions
These versions may be unable to execute - or even parse - the main host injection script.
- Loading branch information
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |