Bob Aman wrote: > The most common issue with the code I've written that I ported to work > with 1.9 was stuff like: > > "asdf"[0] == 97 > > Change that to either: > > "asdf"[0..0] == "a" > > Or: > > "asdf"[0] == 97 || "asdf"[0] == "a" > > Similar tricks exist for pretty much all of the incompatibilities. > Converting over is usually a matter of running tests, and adding in > workarounds for the places that break. Luckily, character stuff isn't much of a problem, 'cause we use the ?a character literal syntax that's compatible with both versions. The main stress points seem to be string-iteration stuff (string.each as opposed to string.each_line) and dependencies. We use both ActionPack and hpricot in tests, and I think neither of them is working with 1.9 at the moment.
- Nathan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
