-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
2.0: Missing File::FNM_EXTGLOB and whatever uses it #721
Comments
The functionality should exist somewhere already, as this is behavior has been previously implemented in Dir.glob already, but not in File.fnmatch. It basically means that So File.fnmatch is using it. Interestingly, until I submitted a patch a few days back, this wasn't documented in Ruby at all and I only learned about it by actually reading the MRI source. |
Seems like ruby-doc.org has already been updated with my patch: http://www.ruby-doc.org/core-2.0/File.html#method-c-fnmatch |
This logic is indeed new, implemented by ruby_brace_expand called from fnmatch. We'll need to port it to support the new behavior. |
Apparently this doesn't exist in JRuby. See: jruby/jruby#721 Change-Id: Idb9c80789dc98ba5b34b0b4c4e7cc132ff6a932a Reviewed-on: http://gerrit.causes.com/40421 Tested-by: jenkins <jenkins@causes.com> Reviewed-by: Shane da Silva <shane.dasilva@brigade.com>
This is how I managed it in rubinius/rubinius@d95487c |
Actually, I'd like to see if I can add this to JRuby too. It'd be my first commit. |
Do it! :) On Thu, Nov 6, 2014 at 8:31 AM, Jesse Cooke notifications@github.com
|
I just wanted to add a note that this prevents Rails 4.1 apps from running under JRuby 9.0.0.0, since Rails now uses File::FNM_EXTGLOB when locating template paths under 2.2.0+. |
Apparently this doesn't exist in JRuby. See: jruby/jruby#721 Change-Id: Idb9c80789dc98ba5b34b0b4c4e7cc132ff6a932a Reviewed-on: http://gerrit.causes.com/40421 Tested-by: jenkins <jenkins@causes.com> Reviewed-by: Shane da Silva <shane.dasilva@brigade.com>
2.0 defined File::FNM_EXTGLOB and it must use it somewhere. We should define this and hook up da bits.
The text was updated successfully, but these errors were encountered: