[Rant-cafe] ruby 1.9

Stuart George yakumo9275 at gmail.com
Sat Aug 21 13:10:00 EDT 2010


A little update on rant + ruby 1.9.2, the current rant trunk plays
just fine for me with ruby 1.9.2 (all bugs I had under 1.9.1 are gone).

I did have to make some adjustments to my rant files and some things
have a different behaviour.


when using 192-head
- I had a rule
s = t.source.to_s.split('.lua')[0]

Under 1.8 it was
s = t.source.to_s.split('.lua')

Apparently for some reason you have to bust out the first entry of the array.

Also doing
sys.cp "#{t.name}", ".."

it removes the execute perms.

-rwxr-xr-x foo
ends up as
-rw-r--r-- foo

So I had to add some extra
sys.chmod 0755, "../#{t.name}"

commands liberally throught my rantfiles

also doing a

RUBY_PLATFORM.scan(/(mswin32|mingw32|bccwin32|msdosdjgpp|os2|amigaos|cygwin|x86_64-linux)/)

required a [0] on the end, where in 1.8 it did not.


I only use C stuff and nothing major so I'm sure there are other
gotchas involved
but these are the two big ones I've ran into.


:: Stuart George :: http://mega-tokyo.com/family ::


More information about the Rant-cafe mailing list