[#61822] Plan Developers Meeting Japan April 2014 — Zachary Scott <e@...>
I would like to request developers meeting around April 17 or 18 in this mo=
14 messages
2014/04/03
[#61825] Re: Plan Developers Meeting Japan April 2014
— Urabe Shyouhei <shyouhei@...>
2014/04/03
It's good if we have a meeting then.
[#61826] Re: Plan Developers Meeting Japan April 2014
— Zachary Scott <e@...>
2014/04/03
Regarding openssl issues, I=E2=80=99ve discussed possible meeting time with=
[#61833] Re: Plan Developers Meeting Japan April 2014
— Martin Bo煬et <martin.bosslet@...>
2014/04/03
Hi,
[#61847] Re: Plan Developers Meeting Japan April 2014
— Eric Wong <normalperson@...>
2014/04/03
Martin Boテ殕et <[email protected]> wrote:
[#61849] Re: Plan Developers Meeting Japan April 2014
— Zachary Scott <e@...>
2014/04/04
I will post summary of meeting on Google docs after the meeting.
[#61852] Re: Plan Developers Meeting Japan April 2014
— Eric Wong <normalperson@...>
2014/04/04
Zachary Scott <[email protected]> wrote:
[#61860] Re: Plan Developers Meeting Japan April 2014
— Zachary Scott <e@...>
2014/04/04
I=E2=80=99m ok with redmine, thanks for bringing up your concern!
[#62076] Candidacy to 2.1 branch maintainer. — Tomoyuki Chikanaga <nagachika00@...>
Hello,
7 messages
2014/04/17
[#62078] Re: Candidacy to 2.1 branch maintainer.
— SHIBATA Hiroshi <shibata.hiroshi@...>
2014/04/17
> And does anyone have counter proposal for 2.1 maintenance?
[ruby-core:61965] [ruby-trunk - Bug #9716] FileTest.exist? does not convert relative path to absolute path before testing existence
From:
101b147ch@...
Date:
2014-04-11 13:00:53 UTC
List:
ruby-core #61965
Issue #9716 has been updated by Mario Maia.
Nobuyoshi Nakada wrote:
> If they do it, you have no way to test files start with '~'.
Good point, I hadn't thought about this borderline case. And from this case, I take that this is not a bug on `FileTest`, but on `#expand_path`.
I have played with a bit and it operates in an awkward way. It can expand `~/~derp_folder~/~derp`, but it cant expand `~derp`.
>Or always File.exist?(path.sub(/\A~/, './~')) and so on.
It is not about what I prefer, but about what works. In my humble opinion, I think this `#sub` (or some other method) will indeed have to be called, but not on `FileTest`. It should be called on the first lines of `#expand_path`. And this pattern will have to be refined a bit more. I tried it on some cases and it works for some, but for others it produces a path totally different. I think we will have to use `#sub` passing a block to it to have more control over the pattern substitution.
What do you think? And, by the way, should we continue this conversation here or should I open a new bug reporting `#expand_path`?
----------------------------------------
Bug #9716: FileTest.exist? does not convert relative path to absolute path before testing existence
https://bugs.ruby-lang.org/issues/9716#change-46162
* Author: Mario Maia
* Status: Rejected
* Priority: Normal
* Assignee:
* Category: core
* Target version:
* ruby -v: 2.1.1p76 (2014-02-24 revision 45161) [i686-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
`FileTest.exist?(Pathname.new('~/derp').expand_path) => true`
`FileTest.exist?(Pathname.new('~/derp')) => false`
--
https://bugs.ruby-lang.org/