-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
accelerate core ruby requires (#1113)
accelerate core ruby requires
- Loading branch information
Showing
2 changed files
with
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/load.c b/load.c | ||
index 576464fb68..ae89f63820 100644 | ||
--- a/load.c | ||
+++ b/load.c | ||
@@ -908,6 +908,11 @@ search_required(VALUE fname, volatile VALUE *path, int safe_level, feature_func | ||
if (loading) *path = rb_filesystem_str_new_cstr(loading); | ||
return 'r'; | ||
} | ||
+ else if ((ft = rb_feature_p(ftptr, 0, FALSE, FALSE, &loading)) == 's') { | ||
+ if (loading) *path = rb_filesystem_str_new_cstr(loading); | ||
+ return 's'; | ||
+ } | ||
+ | ||
tmp = fname; | ||
type = rb_find_file_ext_safe(&tmp, loadable_ext, safe_level); | ||
switch (type) { |
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