[#62904] [ruby-trunk - Feature #9894] [Open] [RFC] README.EXT: document rb_gc_register_mark_object — normalperson@...
Issue #9894 has been reported by Eric Wong.
3 messages
2014/06/02
[#63321] [ANN] ElixirConf 2014 - Don't Miss Jos辿 Valim and Dave Thomas — Jim Freeze <jimfreeze@...>
Just a few more weeks until ElixirConf 2014!
6 messages
2014/06/24
[#63391] Access Modifiers (Internal Interfaces) — Daniel da Silva Ferreira <danieldasilvaferreira@...>
Hi,
3 messages
2014/06/28
[ruby-core:63352] [CommonRuby - Feature #8258] Dir#escape_glob
From:
jacknagel@...
Date:
2014-06-26 16:54:54 UTC
List:
ruby-core #63352
Issue #8258 has been updated by Jack Nagel.
An official API for escaping paths would be a hugely useful feature. In Homebrew, we use Dir[], Dir.glob and Pathname.glob a lot, but little attention has been paid to properly escaping paths, and over the years we have accumulated a great deal of potentially problematic code.
Benoit Daloze wrote:
> Pathname could likely avoid this problem nicely in this situation: dir = Pathname("some_dir"); dir.glob("**/*.rb") { |file| ... }
We also use Pathname quite heavily in Homebrew and would definitely take advantage of this.
----------------------------------------
Feature #8258: Dir#escape_glob
https://bugs.ruby-lang.org/issues/8258#change-47398
* Author: Steve Klabnik
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version:
----------------------------------------
This is inspired by https://github.com/rails/rails/issues/6010.
Basically, if you do a Dir.glob in a directory whose name contains a glob character, things break. It would be nice to have a method which would escape the input so that we can Dir.glob inside of those directories.
--
https://bugs.ruby-lang.org/