You are not logged in.

#26 2009-09-23 22:37:20

stuntgp2000
Member
From: Morocco
Registered: 2008-12-13
Posts: 10
Website

Re: ruby 1.9 upgrade

@V01D: Thanks ;-)

@Allan: Finally, Ruby 1.9. Thanks!

Last edited by stuntgp2000 (2009-09-23 22:40:19)


ArchLinux all the way smile

Offline

#27 2009-10-07 11:39:41

Otaron
Member
Registered: 2009-10-07
Posts: 1

Re: ruby 1.9 upgrade

Hi everybody,

I was giving ruby a shot when the upgrade came out and blew everything I made :s

I tried to use the patch from
https://rails.lighthouseapp.com/project … ng-ror-234
but with no success it keeps telling me:

patching file message_verifier.rb
Hunk #1 FAILED at 38.
1 out of 1 hunk FAILED -- saving rejects to file message_verifier.rb.rej

Could someone who succeded help me please?

Offline

#28 2009-11-13 22:26:17

Gigamo
Member
Registered: 2008-01-19
Posts: 394

Re: ruby 1.9 upgrade

wicked wrote:

There is a ruby application that I love (community/raggle) and it no longer works with the upgraded ruby. It hasn't been updated since 2005, though, so I don't think the developer is going to update it for the new ruby. (as far as I can tell)

Is it going to be updated/rebuilt in the repos, or do I need to do that myself? I'm not exactly sure how to do that.

First of all, sorry for reviving an old thread, but this issue is easily fixed. There was a change of syntax in 1.9 of something that Raggle uses consistently.

if foo: bar

case foo
when bar: baz
end

Has to be changed to

if foo then bar

case foo
when bar then baz
end

It's a dirty hack but at least raggle works again.

Offline

#29 2009-11-14 15:56:26

V01D
Member
Registered: 2006-07-18
Posts: 128

Re: ruby 1.9 upgrade

Hi,
FYI, you can use:

case foo
when bar; baz
end

Last edited by V01D (2009-11-14 15:57:09)

Offline

Board footer

Powered by FluxBB