Re: [MacRuby-devel] XCode 4 and ObjC bundles

2011-04-12 Thread Joshua Ballanco
In Xcode 4: - Double-click on the project in the left pannel to bring up the Project Info window - Click on the "Build Phases" tab across the top - Click the "+" above "Add Build Phase" and choose a "Add Run Script" - Use "macruby extconf.rb; make; cp MyBundle.bundle" as the script...well, it's ac

Re: [MacRuby-devel] no superclass method `initialize' with xml-object gem

2011-04-12 Thread Andre Lewis
On Tue, Apr 12, 2011 at 8:15 PM, Joshua Ballanco wrote: > Actually, it would be great if you could file a report on MacRuby's trac: > https://www.macruby.org/trac/report Done: https://www.macruby.org/trac/ticket/1221 ___ MacRuby-devel mailing list Mac

Re: [MacRuby-devel] no superclass method `initialize' with xml-object gem

2011-04-12 Thread Joshua Ballanco
Actually, it would be great if you could file a report on MacRuby's trac: https://www.macruby.org/trac/report Thanks! On Tue, Apr 12, 2011 at 8:29 PM, Andre Lewis wrote: > Hey all, I hit a snag with the > xml-objectgem on MacRuby; the code works > on MRI 1

[MacRuby-devel] no superclass method `initialize' with xml-object gem

2011-04-12 Thread Andre Lewis
Hey all, I hit a snag with the xml-objectgem on MacRuby; the code works on MRI 1.9.2. A simple test case: $ macgem install xml-object $ macirb > require "rubygems" require "open-uri" require "xml-object" o=XMLObject.new(open("http://www.w3schools.com/xml/simple

Re: [MacRuby-devel] Concurrent SSL requests -> segfault

2011-04-12 Thread Watson
Hi, I committed a patch as https://github.com/MacRuby/MacRuby/commit/65fee047a678ae8be9124176307969cbb1d57e6d Thank you for your report! :) Thanks 2011/4/9 Watson : > Hi, everyone > > I think that we should implement callback functions for > CRYPTO_set_locking_callback() and CRYPTO_set_id_call

Re: [MacRuby-devel] XCode 4 and ObjC bundles

2011-04-12 Thread Julien Jassaud
Joshua, Thanks again. The official doc is a bit dry for a first contact. I ended up copying and editing the ControlTower extconf.rb file which worked just fine. That wasn't too hard :) I'll look into mkmf subtleties later. Unfortunately I am at a loss when it comes to the XCode part. I added a

Re: [MacRuby-devel] MacRuby 0.10 Sqlite3 and Sequel

2011-04-12 Thread Morgan Schweers
Greetings, Just to be clear, the tweak to 'single_record' that worked was going from this: def single_record clone(:limit=>1).each {|r| return r} nil end to this: def single_record record = nil clone(:limit=>1).each {|r| record = r; return r} record end I left the 'return r' in place,

Re: [MacRuby-devel] XCode 4 and ObjC bundles

2011-04-12 Thread Joshua Ballanco
One advantage to mkmf and extconf.rb (that's the file that you actually run through macruby to generate a Makefile) is that it can take care of most of the difficult parts of generating a Makefile for you (like determining header locations and library availability, etc.). Finding good documentation

Re: [MacRuby-devel] XCode 4 and ObjC bundles

2011-04-12 Thread Julien Jassaud
Joshua, Thanks for your prompt answer. I'll look into both mkmf and ControlTower. This is totally new territory for me. Exciting ! Julien > My suggestion would be to forgo using XCode to build the Obj-C extension, and > instead use mkmf like you would with any other Ruby C-extension. Then you

Re: [MacRuby-devel] XCode 4 and ObjC bundles

2011-04-12 Thread Joshua Ballanco
My suggestion would be to forgo using XCode to build the Obj-C extension, and instead use mkmf like you would with any other Ruby C-extension. Then you can just add a script build stage to your project. If you want to see an example of a MacRuby project with an Obj-C extension, take a look at Contr

[MacRuby-devel] XCode 4 and ObjC bundles

2011-04-12 Thread Julien Jassaud
Hi, A while back I tried to port some ObjC examples to MacRuby ( github.com/sojastar/Some-MacRuby-sample-code ). I had to leave parts dealing with C strings in an ObjC bundle that is required in the MacRuby code. The ported samples' building process was a bit complicated with XCode 3 : 1) clon