[SVN] Re: Source bundle, comment line command: Changes for Ruby 1.9

Charles Turner vze26m98 at optonline.net
Thu Aug 28 21:17:01 UTC 2008


On Thu, 28 Aug 2008 16:09:31 -0500, James Gray wrote:
> On Aug 28, 2008, at 4:03 PM, Charles Turner wrote:
> 
>> On Thu, 28 Aug 2008 15:45:37 -0500, James Gray wrote:
>>> OK, we can't go to just lines() here, since it breaks 1.8.  Can we  
>>> use
>>> my previous trick though?
>>> 
>>>   text.send(text.respond_to?(:lines) ? :lines : :to_s)…
>> 
>> Change away! I'll let you kow if it breaks on 1.9
> 
> How about you check it for me on 1.9 first.  I'll check it on 1.8.  If  
> we both give it the thumbs up, we know it's safe.

I've made the change on my side and it works fine...

-Charles




More information about the textmate-dev mailing list