[MacRuby-devel] RubySpec updated

Matt Aimonetti mattaimonetti at gmail.com
Sun Aug 2 12:17:38 PDT 2009


Done, would you mind checking that I did it according to the rubyspec
standards?

Thanks,

- Matt

On Sun, Aug 2, 2009 at 11:30 AM, Matt Aimonetti <mattaimonetti at gmail.com>wrote:

> Thanks for the tip, I'll go back and fix strscan and will make the
> modifications before pushing stringio.
>
> - Matt
>
>
> On Sun, Aug 2, 2009 at 11:22 AM, Eloy Duran <eloy.de.enige at gmail.com>wrote:
>
>> Thanks Matt :)
>>
>> Indeed, in order to specify the API changes between 1.8 and 1.9 you should
>> use version guards:
>>
>>  ruby_version_is "" ... "1.9" do
>>    it "works as such on all versions prior to 1.9" do
>>    end
>>  end
>>
>>  ruby_version_is "1.9" do
>>    it "works as such on 1.9" do
>>    end
>>  end
>>
>> To guard against compile errors you should use the language_version guard.
>> See the rubyspec wiki for more info.
>>
>> The 1.9.x specs should target HEAD. There's no specific 1.9 target yet set
>> for either RubySpec or MacRuby.
>>
>> HTH,
>> Eloy
>>
>>
>> On 2 aug 2009, at 19:49, Matt Aimonetti wrote:
>>
>>  Hi Eloy,
>>>
>>> Welcome back. Unfortunatelly, due to API changes, the specs can't all
>>> pass on 1.8 and 1.9 unless we use a version check mechanism.
>>>
>>> My understanding was that we should focus on 1.9.2 preview 1.
>>>
>>> What do you want me to do?
>>>
>>> - Matt
>>>
>>> Sent from my iPhone
>>>
>>> On Aug 2, 2009, at 6:42, Eloy Duran <eloy.de.enige at gmail.com> wrote:
>>>
>>>  Hi,
>>>>
>>>> I'm un-jet lagging a bit, so I thought I'd update the ruby specs again.
>>>> We are now passing: 18160 examples.
>>>>
>>>> @Matt: Great work on the StringScanner! Could you please make sure the
>>>> specs run on 1.8 as well? Currently 4 fail:
>>>>
>>>> $ mspec -B ruby.1.8.mspec library/stringscanner
>>>>
>>>> StringScanner#getch is multi-byte character sensitive FAILED
>>>> StringScanner#getch should keep the encoding ERROR
>>>> StringScanner#initialize_copy is a private method FAILED
>>>> StringScanner#initialize is a private method FAILED
>>>>
>>>> @Laurent: There were quite some changes to complex that you might want
>>>> to look into since you recently worked on those :)
>>>>
>>>> Cheers,
>>>> Eloy
>>>> _______________________________________________
>>>> MacRuby-devel mailing list
>>>> MacRuby-devel at lists.macosforge.org
>>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>>
>>> _______________________________________________
>>> MacRuby-devel mailing list
>>> MacRuby-devel at lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>>
>>
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20090802/3bae5a27/attachment.html>


More information about the MacRuby-devel mailing list