-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #189 in G/truffleruby from require-keeps-symlinks …
…to master * commit '57b75473be6f32ee82883045dd91e2737f9a002f': (27 commits) Do not expand or canonicalize eval() paths, like MRI Add spec for __dir__ and Thread::Backtrace::Location#absolute_path inside eval() with a given filename Fix hello-world.gemspec's definition of files Autoload Digest::SHA2 instead to fix circular require warning Untag MRI tests for #require Rename variable Warn on circular require like MRI Paths given to findFeatureWithExactPath() are always absolute now Pass cwd explicitly to avoid calling it many times during #require Canonicalize paths in $LOAD_PATH during #require's lookup Use dirname() instead of an inlined implementation Move filesystem helpers to FeatureLoader Add more specs for #require and canonicalizing entries from $LOAD_PATH Fix Thread::Backtrace::Location#absolute_path to return a canonical path Spec that Thread::Backtrace::Location#absolute_path returns a canonical path Simplify dirname() now that it always receives an absolute path Only the source directory should be canonicalized by #require_relative Canonicalize only where needed in loadMainFile() Extract local variable Let ensureReadable() create its own File ...
- Loading branch information
Showing
18 changed files
with
301 additions
and
114 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
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
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
4 changes: 4 additions & 0 deletions
4
spec/ruby/core/thread/backtrace/location/fixtures/absolute_path.rb
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,4 @@ | ||
action = ScratchPad.recorded.pop | ||
ScratchPad << __FILE__ | ||
action.call if action | ||
ScratchPad << caller_locations(0)[0].absolute_path |
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 @@ | ||
ScratchPad << __FILE__ |
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
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
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
Oops, something went wrong.