Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always expand indexables' full paths
Depends on the `included_pattern`'s value, `Dir.glob` may return relative paths as its default base is the current working directory. For example, if the `included_pattern` is `**/*.rb`, the `Dir.glob` will return relative paths like `lib/foo.rb` instead of the full path like `/path/to/project/lib/foo.rb`. This commit ensures that the full paths are always expanded by using `File.expand_path` on the paths returned by `Dir.glob`. Fixes #1971
- Loading branch information