Right way to partly upgrade standard library?

G

Graham Wideman

Folks:

Following on from my discovery that the 1.9 version of Pathname is needed
for Windows, what's the right way to incorporate that file into a 1.8.4
setup while avoiding disruption?

1. Should I replace the existing pathname.rb?

But what if there's some existing library that depends on the specifics of
the old one?

2. Should I add pathname.rb with a new name (pathname19.rb)?

.... and then require that file (instead of the old one) where I needed it?

It's one thing for my code to specifically require the newer file, but maybe
some other library I call will use the old one when I really want it to know
how to deal with Windows paths. Hmmm.

3. What's the general procedure for even determining whether the new library
offers compatible methods etc?

Scratching head...

Graham
 
N

nobu

Hi,

At Sat, 2 Sep 2006 11:45:26 +0900,
Graham Wideman wrote in [ruby-talk:212227]:
Following on from my discovery that the 1.9 version of Pathname is needed
for Windows, what's the right way to incorporate that file into a 1.8.4
setup while avoiding disruption?

pathname.rb in 1.8.5 is same as 1.9.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top