Re: [MacRuby-devel] aborted rake spec:ci using r5042.

2010-12-20 Thread Takao Kouji
Hi Laurent, I try to run `rake spec:rubyspec' using r5042. Then I got 2 errors. I try to clean below errors. output begin - 1) Constant resolution within methods with dynamically assigned constants searches the lexical scope of a block ERROR NameError: uninitialized constant ConstantSpe

[MacRuby-devel] Using compiled MacRuby objects from an Objective-C application

2010-12-20 Thread Justin Schumacher
I'm working on an application that is primarily Objective-C but uses MacRuby as a plugin language (the application also has a C# / IronRuby counterpart on Windows, allowing for the plugins to be cross-platform). I've been loading the ruby files at runtime using the Objective-C MacRuby API's shared

Re: [MacRuby-devel] Getting a corrupt value reading an NSNumber unsignedLongLongValue

2010-12-20 Thread Laurent Sansonetti
Hi Caio, Excellent! In this snippet, n is a 64-bit bignum, so I suspect something is going wrong in the converter. Could you file a ticket? We will get that fixed for 1.0. Laurent On Dec 20, 2010, at 12:49 PM, Caio Chassot wrote: > On 2010-12-20, at 16:37 , Caio Chassot wrote: >> >> Could so

Re: [MacRuby-devel] Getting a corrupt value reading an NSNumber unsignedLongLongValue

2010-12-20 Thread Caio Chassot
On 2010-12-20, at 16:37 , Caio Chassot wrote: > > Could someone try to reduce this and take the notification center and iTunes > out of the picture and see if it's just a problem with NSNumber? Oh, that was easier than I thought. #!/usr/bin/env macruby n = 0x8C2CACEFCD8BBABA m = NSN

Re: [MacRuby-devel] MacRuby and Sequel

2010-12-20 Thread Vegar Vikan
Hi, Are you able to actually use the library, or just require it? Does the tests run with macruby? regards, -Vegar > From: Stephen Petschulat > Date: 20. desember 2010 00:25:23 GMT+01.00 > To: macruby-devel@lists.macosforge.org > Subject: [MacRuby-devel] MacRuby and Sequel > Reply-To: "MacRuby

Re: [MacRuby-devel] require [was: [ANN] The Flying Camera (game)]

2010-12-20 Thread Gabriel Gilder
I don't believe paths are expanded normally by require, when they include a relative component like "../" at least. In a quick experiment I just whipped up, the following two lines only result in one load: require 'subdir/module' require './subdir/module' But these two lines result in the file bei

[MacRuby-devel] Getting a corrupt value reading an NSNumber unsignedLongLongValue

2010-12-20 Thread Caio Chassot
I was trying to get the PersistentID from iTunes tracks from both ScriptingBridge and the notifications iTunes posts to NSDistributedNotificationCenter. I noticed I was getting different results from each. The first byte from the number read from the notification is nearly always garbled (I su

Re: [MacRuby-devel] require [was: [ANN] The Flying Camera (game)]

2010-12-20 Thread Joshua Ballanco
It's also worth pointing out that require_relative is not yet implemented in MacRuby... On Mon, Dec 20, 2010 at 8:34 AM, Caio Chassot wrote: > On 2010-12-18, at 19:58 , russell muetzelfeldt wrote: > > > > then bar will be included twice since '../bar' does not match > './lib/bar'. what you shoul

Re: [MacRuby-devel] require [was: [ANN] The Flying Camera (game)]

2010-12-20 Thread Caio Chassot
On 2010-12-18, at 19:58 , russell muetzelfeldt wrote: > > then bar will be included twice since '../bar' does not match './lib/bar'. > what you should do is add the lib directory to $: and then change the require > lines in main.rb to I thought $" expanded the paths on its own. I'm stupidly laz