Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore load path caches generated by a different ruby version
Fix: #384 Until now it was assume that if the `$LOAD_PATH` was identical, then the content of the paths would be too. However from one minor ruby version to another, the layout of the stdlib can change. So if the newer version is installed in the same place than the previous one, it might cause the load path cache to be invalid. So we store `RUBY_DESCRIPTION` in the cache and make sure it matches before reusing the cache.
- Loading branch information
Showing
2 changed files
with
37 additions
and
3 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