[MacRuby-devel] How do I subclass Obj-C classes in MacRuby?

2010-05-04 Thread russell muetzelfeldt
Hi All, I've produced an ugly bunch of ruby that talks to OpenDirectory and am trying to clean it up a bit. Currently I'm using pure ruby classes that proxy Obj-C objects held in instance variables, but my goal is to have something structured like this - module OpenDirectory class Node < ODN

Re: [MacRuby-devel] MacRuby and Shoulda

2010-05-04 Thread Laurent Sansonetti
We will make shoulda work with trunk :) So to recap, the bugs are: http://www.macruby.org/trac/ticket/336 http://www.macruby.org/trac/ticket/674 Let me know if I'm missing something else. Laurent On May 4, 2010, at 6:06 PM, Brian Marick wrote: > That's a known issue, I think: https://www.macr

Re: [MacRuby-devel] ActiveSupport in MacRuby 0.6?

2010-05-04 Thread Laurent Sansonetti
Hi Leigh, On May 4, 2010, at 1:46 PM, Leigh Caplan wrote: > I remember reading that ActiveSupport was going to be supported in MacRuby > 0.6, however version 2.3.5 of the gem still fails to load with the following > message: > irb(main):003:0> require 'activesupport' > NoMethodError: undefined

Re: [MacRuby-devel] [MacRuby] #684: MacRuby cannot run tests using the Shoulda gem

2010-05-04 Thread MacRuby
#684: MacRuby cannot run tests using the Shoulda gem +--- Reporter: m...@… | Owner: lsansone...@… Type: defect | Status: new Priority: major

Re: [MacRuby-devel] MacRuby and Shoulda

2010-05-04 Thread Matt Aimonetti
We usually recommend to use bacon which is known to work with MacRuby: http://github.com/chneukirchen/bacon/ - Matt On Tue, May 4, 2010 at 6:06 PM, Brian Marick wrote: > That's a known issue, I think: https://www.macruby.org/trac/ticket/336 > > I ran into several problems trying to use both min

Re: [MacRuby-devel] [MacRuby] #684: MacRuby cannot run tests using the Shoulda gem

2010-05-04 Thread MacRuby
#684: MacRuby cannot run tests using the Shoulda gem +--- Reporter: m...@… | Owner: lsansone...@… Type: defect | Status: new Priority: major

Re: [MacRuby-devel] MacRuby and Shoulda

2010-05-04 Thread Brian Marick
That's a known issue, I think: https://www.macruby.org/trac/ticket/336 I ran into several problems trying to use both miniunit and the built-in version of test/unit (mostly about integration with mocking packages). I'm now using the testunit gem: test-unit-2.0.7 It's too bad shoulda doe

Re: [MacRuby-devel] Aaron answer about convert the code of the Book to MacRuby

2010-05-04 Thread Daniel Lopes
I already did all code up to chapter 11 but I think I lost the code of 2,3 and 4 chapters. My code is in github: http://github.com/danielvlopes/HillegassMacRuby . Could you fork it and send me a pull request with these chapters? (don't forget to remove your build folders). Thanks. On Tue, May 4,

Re: [MacRuby-devel] [MacRuby] #686: security escalation bug via pretty_print & Dir.entries

2010-05-04 Thread MacRuby
#686: security escalation bug via pretty_print & Dir.entries --+- Reporter: ryand-r...@… |Owner: lsansone...@… Type: defect| Status: closed Priori

[MacRuby-devel] [MacRuby] #686: security escalation bug via pretty_print & Dir.entries

2010-05-04 Thread MacRuby
#686: security escalation bug via pretty_print & Dir.entries --+- Reporter: ryand-r...@… | Owner: lsansone...@… Type: defect| Status: new Priority

Re: [MacRuby-devel] [ANN] MacRuby 0.6

2010-05-04 Thread Thibault Martin-Lagardette
Hi Tiago! We are sorry that the PostgreSQL gem is not yet fully installable via macgem. The one we managed to install was ruby-pg 0.9.0 ( http://bitbucket.org/ged/ruby-pg/downloads). However, the gem in itself has an extconf.rb file with a syntax that is not yet supported in MacRuby and probably w

[MacRuby-devel] PostgreSQL (was: Re: [ANN] MacRuby 0.6)

2010-05-04 Thread Tiago Ribeiro
More specifically, I've been getting the following problem when trying to install the PostgreSQL extension, so I was wondering if there's anything else that has to be done: imac:~ tiagor$ sudo macgem install postgres Building native extensions. This could take a while... ERROR: Error installin

Re: [MacRuby-devel] [MacRuby] #684: MacRuby cannot run tests using the Shoulda gem

2010-05-04 Thread MacRuby
#684: MacRuby cannot run tests using the Shoulda gem +--- Reporter: m...@… | Owner: lsansone...@… Type: defect | Status: new Priority: major

[MacRuby-devel] [MacRuby] #685: inject doesn't work with Procs

2010-05-04 Thread MacRuby
#685: inject doesn't work with Procs -+-- Reporter: hghoe...@… | Owner: lsansone...@… Type: defect | Status: new Priority: major

Re: [MacRuby-devel] ActiveSupport in MacRuby 0.6?

2010-05-04 Thread Matt Aimonetti
to fix your stack: remove all macruby's related binaries: /usr/local/bin/mac* and rm -rf /Library/Frameworks/MacRuby.framework/ Finally, reinstall - Matt On Tue, May 4, 2010 at 1:46 PM, Leigh Caplan wrote: > I remember reading that ActiveSupport was going to be supported in MacRuby > 0.6, h

Re: [MacRuby-devel] [MacRuby] #677: Macruby segfaults when performing symbol#to_json

2010-05-04 Thread MacRuby
#677: Macruby segfaults when performing symbol#to_json --+- Reporter: bricoll...@… |Owner: lsansone...@… Type: defect| Status: closed Priority: major

Re: [MacRuby-devel] Aaron answer about convert the code of the Book to MacRuby

2010-05-04 Thread Christian Bryan
Perhaps I can get you started. I have converted the examples up to chapter 7 (something I did whilst looking for a new job) but stopped at that point because the KVO bindings was not working correctly. Just tried it with MacRuby 0.6 and all is working again. I can donate my code if you wish and

Re: [MacRuby-devel] [ANN] MacRuby 0.6

2010-05-04 Thread Tiago Ribeiro
Amazing. I'm mostly amazed by this specific breakthrough: "MacRuby 0.6 provides support for C extensions written for the original implementation of ruby. We were able to successfully use the Nokogiri, SQLite3 and PostgreSQL extensions from MacRuby." How did you manage to install the PostgreSQ

[MacRuby-devel] ActiveSupport in MacRuby 0.6?

2010-05-04 Thread Leigh Caplan
I remember reading that ActiveSupport was going to be supported in MacRuby 0.6, however version 2.3.5 of the gem still fails to load with the following message: irb(main):003:0> require 'activesupport' NoMethodError: undefined method `alias_method_chain' for Range:Class Same thing happened in 0

Re: [MacRuby-devel] [MacRuby] #684: MacRuby cannot run tests using the Shoulda gem

2010-05-04 Thread MacRuby
#684: MacRuby cannot run tests using the Shoulda gem +--- Reporter: m...@… | Owner: lsansone...@… Type: defect | Status: new Priority: major

Re: [MacRuby-devel] [MacRuby] #674: Shoulda fails because of oddity with block_given?

2010-05-04 Thread MacRuby
#674: Shoulda fails because of oddity with block_given? -+-- Reporter: mar...@… | Owner: lsansone...@… Type: defect | Status: new Priority: minor

Re: [MacRuby-devel] [ANN] MacRuby 0.6

2010-05-04 Thread Matt Aimonetti
Technically, someone could get MacRuby to compile code that would run on the Apple mobile platforms. This is something that was mentioned a few times in the mailing list and I believe more experiments will take place once we have the new improved compiler and VM will be done. Check the 0.6 blog po

[MacRuby-devel] [MacRuby] #684: MacRuby cannot run tests using the Shoulda gem

2010-05-04 Thread MacRuby
#684: MacRuby cannot run tests using the Shoulda gem +--- Reporter: m...@… | Owner: lsansone...@… Type: defect | Status: new Priority: major

Re: [MacRuby-devel] [ANN] MacRuby 0.6

2010-05-04 Thread B. Ohr
Matt, this is already aware to me, I also do not know the planning of MacRuby (this point disappeared from the website) just as little I the intentions of Apple knows. If you read up once again, I have wished not from Laurent that he implements it, but I wanted to know whether this is possible

[MacRuby-devel] MacRuby and Shoulda

2010-05-04 Thread Mike Taylor
Has anyone had any luck using Thoughtbot's Shoulda gem with MacRuby for testing? I'm getting errors like this: 1) Error: test: My factorial method should return 1 when passed 0.(TC_Test): NoMethodError: undefined method `test: My factorial method should return 1 when passed 0.' for # I'm fairl

Re: [MacRuby-devel] [ANN] MacRuby 0.6

2010-05-04 Thread Matt Aimonetti
Bernrd, I can't speak for Laurent or Apple, but I think that even though I would also love to be able to prototype iP* apps in MacRuby, there are plenty of other things that have a higher priority. However, I'm sure that if the community gets organized, that feature can be added without the direct

Re: [MacRuby-devel] Mocking package for 0.5+?

2010-05-04 Thread Brian Marick
Thanks to James Mead, I now know that at least simple examples work with 0.6 and these gems: mocha-macruby (0.9.8.20100129120100) test-unit (2.0.7) On May 4, 2010, at 10:58 AM, Brian Marick wrote: > I've been looking for a combination of unit testing and mocking packages for > macruby. (The mo

[MacRuby-devel] Mocking package for 0.5+?

2010-05-04 Thread Brian Marick
I've been looking for a combination of unit testing and mocking packages for macruby. (The mocking is the real problem.) If anyone does TDD with mocks: what do you use? - Brian Marick, independent consultant Mostly on agile methods with a testing slant Author of /Programming Cocoa with Ruby/

Re: [MacRuby-devel] [ANN] MacRuby 0.6

2010-05-04 Thread B. Ohr
Hi Laurent, many thanks for the new version! if I might express a wish, then this: MacRuby on the iPhone (or iPad) - Simulator (yes, the Simulator, not the iPhone itself) for the quick checkout of ideas, however, also learning around the frameworks. Prototyping in ObjC is the hell, at least

[MacRuby-devel] [MacRuby] #683: rake failed for MacRuby-0.6 on Mac OS X 10.5.8

2010-05-04 Thread MacRuby
#683: rake failed for MacRuby-0.6 on Mac OS X 10.5.8 --+- Reporter: bhuel...@…| Owner: lsansone...@… Type: defect| Status: new Priority: blocker |

Re: [MacRuby-devel] [MacRuby] #674: Shoulda fails because of oddity with block_given?

2010-05-04 Thread MacRuby
#674: Shoulda fails because of oddity with block_given? -+-- Reporter: mar...@… | Owner: lsansone...@… Type: defect | Status: new Priority: minor

Re: [MacRuby-devel] [MacRuby] #674: Shoulda fails because of oddity with block_given?

2010-05-04 Thread MacRuby
#674: Shoulda fails because of oddity with block_given? -+-- Reporter: mar...@… | Owner: lsansone...@… Type: defect | Status: new Priority: minor

[MacRuby-devel] [MacRuby] #682: files delivered in site_ruby; should be in vendor_ruby

2010-05-04 Thread MacRuby
#682: files delivered in site_ruby; should be in vendor_ruby -+-- Reporter: mar...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker

Re: [MacRuby-devel] Kernel#caller doesn't show directories

2010-05-04 Thread Brian Marick
I couldn't reproduce it. Vanilla 1.8.6 is still slightly better in that it prints from ../../foo.rb:6 whereas a recent 0.7 prints a full path: from /Users/marick/src/clients/SES/Tests/preferences/../../foo.rb:6:in `' On May 3, 2010, at 4:46 PM, Laurent Sansonetti wrote: >

[MacRuby-devel] [MacRuby] #681: YAML::add_domain_type is undefined

2010-05-04 Thread MacRuby
#681: YAML::add_domain_type is undefined +--- Reporter: dave.bald...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker

[MacRuby-devel] [MacRuby] #680: String.crypt crashes when called with no arguments

2010-05-04 Thread MacRuby
#680: String.crypt crashes when called with no arguments ---+ Reporter: nik...@… | Owner: lsansone...@… Type: defect | Status: new Priority: minor