[MacRuby-devel] RubySpec updated

Eloy Duran eloy.de.enige at gmail.com
Sun Aug 2 11:22:37 PDT 2009


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



More information about the MacRuby-devel mailing list