You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.
I was struck while trying to load my dotfile in the config directory.
I took a quick look at the gem code and found out that the Dir.glob command is not used properly.
But as it's written in the Doc, this won't find any Unix Dotfile.
Note, this will not match Unix-like hidden files (dotfiles). In order to include those in the match results, you must use the File::FNM_DOTMATCH flag or something like "{,.}".
# Without File::FNM_DOTMATCH (does not find env dotfiles)Dir.glob("#{rails_root}/config/**/*.env.#{environment}")[[0]"/home/dennis/github/some-project/config/development.env.development",]# With File::FNM_DOTMATCHDir.glob("#{rails_root}/config/**/*.env.#{environment}",File::FNM_DOTMATCH)[[0]"/home/dennis/github/some-project/config/development.env.development",[1]"/home/dennis/github/some-project/config/.env.development",]
Hello,
I was struck while trying to load my dotfile in the config directory.
I took a quick look at the gem code and found out that the Dir.glob command is not used properly.
This is how it's used today in the Gem
But as it's written in the Doc, this won't find any Unix Dotfile.
But if do this it will work
Can you give me your feedback ?
Regards.
The text was updated successfully, but these errors were encountered: