On Dec 18, 2007 12:23 AM, Eric Hodel <[EMAIL PROTECTED]> wrote: > > > > Maybe a combination of File.expand_path and Dir.glob could do the > > trick? Compared to 0.9.4 one change that can break some 'rake > > gem_install' tasks. > > Do you think gem_name.gsub(File::ALT_SEPARATOR, File::SEPARATOR) be > sufficient? >
Oh man, this is a priceless moment: my suggestion was plain stupid. You're right, but that will not work under *nix / posix platforms since File::ALT_SEPARATOR is nil (and gsub specs a regex), so: gem_name.gsub(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR ?? I'll check how to solve the gem stub scripts being put outside ruby/bin folder tonight. Thank you for your time. -- Luis Lavena Multimedia systems - A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. Douglas Adams _______________________________________________ Rubygems-developers mailing list [email protected] http://rubyforge.org/mailman/listinfo/rubygems-developers
