This project is read-only.
1

Closed

Pathname#cleanpath messes up the pathname

description

http://gist.github.com/93827
 
require 'pathname'
Pathname.new('c:/ruby/ReleaseNotes.txt').cleanpath

IronRuby => #<Pathname:./ruby/ReleaseNotes.txt>

Ruby => #<Pathname:c:/ruby/ReleaseNotes.txt>

 
Causes Rails to not find log/development.log

comments

jimmysch wrote Apr 12, 2009 at 4:59 AM

This is really a File.dirname issue:

File.dirname("c:/")

IronRuby => "."

Ruby => "c:/"

jimmysch wrote Apr 12, 2009 at 8:51 AM

Fix: http://github.com/jschementi/ironruby/commit/689aeec6046bc8ba76016f6dfa1bd947e8e3ce15

Pending review for checking to ironruby/ironruby.git

wrote Apr 20, 2009 at 2:47 AM

wrote May 20, 2009 at 9:54 PM

wrote Feb 22, 2013 at 12:40 AM

wrote May 16, 2013 at 12:05 PM