-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConfigurationFileFinder: test magic paths #455
Conversation
Well did I just find a Rubinius |
dcc0155
to
c28cca5
Compare
Ok, so Rubinius 2.5.2 does pass the magic paths spec when we do the old way around, with files = dir.children.select(&:file?).sort
found = files.find { |file| file.to_s.end_with?('.reek') } rather than found = Pathname.glob("#{dir}/{.reek,*.reek}").sort.find(&:file?) – so for now I reverted my globbing simplification and will revisit this if/when Rubinius acts the same as MRI and JRuby. |
c28cca5
to
50a5d85
Compare
Interesting. Globbing in general seems to be a problematic thing. See for example rubinius/rubinius#3149 and https://bugs.ruby-lang.org/issues/10700. Also, interpolating My conclusion is that as soon as we make |
50a5d85
to
fae836f
Compare
Oh, good point. I removed the |
Definitely. |
ConfigurationFileFinder: test magic paths
The fact that we couldn’t match theIt turns out the globbing doesn’t work 100% of the time in Rubinius, so this PR only adds the below:.reek
config file via*.reek
globbing was growing on me, so I dove into docs and found a way.I also fondly remember the wise words of Michael Grünewald:
– so I added a relevant spec.