Re: [MacRuby-devel] MiniTest and TestUnit implementations

2011-05-12 Thread Ryan Davis
On May 4, 2011, at 05:08 , anoiaque wrote: > Why both minitest and testunit modules are so tied to output in the code ... > Why is there no class/instance method with which i can get result as an > object (~ Minitest::Unit.run() => > ) > > Why must i hack theses modules(even if its quite easy

Re: [MacRuby-devel] macruby_deploy --gem

2011-03-02 Thread Ryan Davis
ll lose. :P 3) Don't embed gems inside of gems. Use gem dependencies properly and you'll be a lot happier. Using hoe it is as simple as: Hoe.spec 'my_thingy' do developer 'Ryan Davis', 'ryand-r...@zenspider.com' dependency 'action_mailer', &#

Re: [MacRuby-devel] Issue with running unit tests when requiring rubygems

2011-02-14 Thread Ryan Davis
here is the workaround: require "rubygems" require "isolate" Isolate.now! :system => false do gem "minitest" gem "mocha" end class Module def remove_method x # do nothing end end if defined?(RUBY_ENGINE) and RUBY_ENGINE == "macruby" gem "minitest" require "minitest/autorun" require

Re: [MacRuby-devel] Issue with running unit tests when requiring rubygems

2011-02-14 Thread Ryan Davis
On Feb 14, 2011, at 15:23 , Ryan Davis wrote: > The test only fails on macruby and with mocha. I'll file a ticket. https://www.macruby.org/trac/ticket/1161 ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosf

Re: [MacRuby-devel] Issue with running unit tests when requiring rubygems

2011-02-14 Thread Ryan Davis
On Feb 13, 2011, at 05:56 , Gabriel Ayuso wrote: > I reinstalled the minitest and mocha gems to the following versions: > minitest-2.0.2, mocha-0.9.12 > The same issue I described before occurred once again. > > Here's the code I ran on macirb and the result: > > require 'rubygems'#=> tru

Re: [MacRuby-devel] Test First

2010-12-31 Thread Ryan Davis
On Dec 31, 2010, at 18:26 , Brad Hutchins wrote: > Will Rspec2 and Cucumber be brought into MacRuby for test first? If not what > framework will be used? brought into? do they not work as gems with macruby? ___ MacRuby-devel mailing list MacRuby-de

Re: [MacRuby-devel] converging for 1.0

2010-12-02 Thread Ryan Davis
On Dec 1, 2010, at 07:29 , Matt Aimonetti wrote: > Come on people svn isn't that bad, most of us used it for years and might > still use it ;) > However, if you are a git addict, you have 3 options: > * use the github mirror (we'll do the svn patching ourselves) > * use the macosforge git repo

Re: [MacRuby-devel] Weird behaviour for a weird line of code

2010-11-16 Thread Ryan Davis
On Nov 16, 2010, at 14:14 , Eric Christopherson wrote: > I'm not sure I understand what you mean. Are you saying it's bad to do > the *first* assignment to a variable inside a conditional? Or it's bad > to assign inside a conditional in any case? I can understand the > first, but I'm not sure how

Re: [MacRuby-devel] Weird behaviour for a weird line of code

2010-11-15 Thread Ryan Davis
On Nov 14, 2010, at 18:37 , Mark Rada wrote: > Now, when I try this out in macirb: (Case #3) > > require 'uri' > test = URI.parse url unless (url = 'http://macruby.org/').nil? # error > test = URI.parse url unless (url = 'http://wikipedia.org/').nil? # works > > If it doesn't work in the

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

2010-10-15 Thread Ryan Davis
On Oct 12, 2010, at 15:03 , Laurent Sansonetti wrote: > Hard to tell, how do you reproduce this? > > I wouldn't look too much at the stacktrace, since the symbols might be > corrupted. > `macrake` in isolate will reproduce immediately. ___ MacRuby-

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

2010-10-12 Thread Ryan Davis
On Oct 11, 2010, at 12:56 , John Barnette wrote: > On Oct 11, 2010, at 11:54 AM, Ryan Davis wrote: >> I haven't tried using isolate on macruby yet, but let me know if you have >> any issues. > > The tests segfault on 0.7 right now, I have a note to look at this

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

2010-10-11 Thread Ryan Davis
On Oct 5, 2010, at 22:40 , Antony Blakey wrote: > http://rvm.beginrescueend.com/ ? or use bundler from rails (which IIUC is > independent of rails) or isolate, the smaller cleaner happier alternative to bundler. I haven't tried using isolate on macruby yet, but let me know if you have any iss

Re: [MacRuby-devel] (Mac)?Gems in the same place

2010-09-15 Thread Ryan Davis
On Sep 15, 2010, at 15:30 , Iain Barnett wrote: > > On 15 Sep 2010, at 22:43, Ryan Davis wrote: > >> >> rubygems and/or macruby should probably be patched to include RUBY_ENGINE >> somewhere in the gem path. > > That's a really good idea. Either

Re: [MacRuby-devel] (Mac)?Gems in the same place

2010-09-15 Thread Ryan Davis
On Sep 15, 2010, at 10:56 , Iain Barnett wrote: > > On 15 Sep 2010, at 18:48, Thibault Martin-Lagardette wrote: > >> >> By default, macgem installs gems in >> /Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/Gems/1.9.2/gems > > Thanks. I'd ran `macgem env` and got the same out

Re: [MacRuby-devel] An easy way to add .rb files to Xcode build automatically?

2010-07-28 Thread Ryan Davis
On Jul 27, 2010, at 10:25 , Michael Jackson wrote: > I usually write all of my Ruby code in Vim, but I'm using Xcode to > keep my project organized and to build/debug/etc. Whenever I create a > new file in Vim I have to go into my Xcode project and add the files > to the "Classes" group manually.

Re: [MacRuby-devel] sorting colors (MacRuby Graphics)

2010-07-28 Thread Ryan Davis
On Jul 15, 2010, at 23:10 , Matt Aimonetti wrote: > I wrote a new sample for MacRuby Graphics that samples the colors from a jpg > and display them. > I was trying to find a good way to sort the colors in a way that makes total > sense (sort by color family and by brightness). Unfortunately, t

[MacRuby-devel] [ANN] minitest-macruby 1.0.0 Released

2010-07-15 Thread Ryan Davis
minitest-macruby version 1.0.0 has been released! * minitest-macruby provides extensions to minitest for macruby UI testing. It provides a framework to test GUI apps in a live instance. Documentation and examples are light at the moment as I've just thrown thi

Re: [MacRuby-devel] testing?

2010-07-10 Thread Ryan Davis
On Jul 10, 2010, at 14:27 , Daniel Lopes wrote: > I'm very interested in your test solution Ryan but right now I did a small > break in MacRuby but as soon as finish what I'm doing now I will try it. > > Also the ability to have Minitest/Minispec by default inside MacRuby is just > awesome. T

Re: [MacRuby-devel] testing?

2010-07-09 Thread Ryan Davis
On Jul 9, 2010, at 15:03 , Jordan K. Hubbard wrote: > On Jul 9, 2010, at 12:05 PM, Ryan Davis wrote: > >> So are you guys not testing your macruby code? I was hoping that the ruby >> community would bring the testing culture to the cocoa world and make it a >> better

Re: [MacRuby-devel] testing?

2010-07-09 Thread Ryan Davis
On Jul 9, 2010, at 13:29 , Watson wrote: > Hi. > > I use the unit test of Ruby1.9.2 RC1 and test MacRuby itself :D > > - http://github.com/Watson1978/test-macruby > - http://github.com/Watson1978/test-macruby/downloads cheater. :P ___ MacRuby-devel

Re: [MacRuby-devel] testing?

2010-07-09 Thread Ryan Davis
On Jul 9, 2010, at 12:47 , steve ross wrote: > iCuke seems promising, but it is for iPhone dev > [http://github.com/unboxed/icuke]. Probably could be repurposed for general > Cocoa development. Bacon works, but I've found it more helpful for unit tests > -- headless testing. In an automated se

[MacRuby-devel] testing?

2010-07-09 Thread Ryan Davis
So are you guys not testing your macruby code? I was hoping that the ruby community would bring the testing culture to the cocoa world and make it a better place. Having gotten no feedback/suggestions whatsoever on my testing setup has me a bit wary.

Re: [MacRuby-devel] My MiniTest extensions for macruby

2010-06-23 Thread Ryan Davis
On Jun 23, 2010, at 13:31 , Laurent Sansonetti wrote: > Ryan, would you be willing to commit & maintain these bits in our SVN > repository if we give you access? but of course. seems only fair. ___ MacRuby-devel mailing list MacRuby-devel@lists.macos

Re: [MacRuby-devel] My MiniTest extensions for macruby

2010-06-23 Thread Ryan Davis
On Jun 23, 2010, at 13:13 , Matt Aimonetti wrote: > I'd suggest to release a new gem. yeah... but the reason why I'm torn is that if it goes into minitest directly, it goes into macruby directly... easy-peasy for everyone. ___ MacRuby-devel mailing l

Re: [MacRuby-devel] My MiniTest extensions for macruby

2010-06-23 Thread Ryan Davis
On Jun 23, 2010, at 12:21 , Ryan Davis wrote: >> class MiniTest::Unit >> def self.run_macruby_tests >> >> module MiniTest::Assertions >> def find_ui_menu(*path) >> def find_ui_menu_items menu >> def assert_ui_menu menu, *items >> def find_

[MacRuby-devel] My MiniTest extensions for macruby

2010-06-23 Thread Ryan Davis
> class MiniTest::Unit > def self.run_macruby_tests > > module MiniTest::Assertions > def find_ui_menu(*path) > def find_ui_menu_items menu > def assert_ui_menu menu, *items > def find_ui_menu_item(*path) > def assert_ui_action obj, target, action, key = nil > def assert_ui_binding i

[MacRuby-devel] My Current UI Testing Setup

2010-06-23 Thread Ryan Davis
Here is my current macruby UI testing setup: Rakefile: + Has an isolate setup to pull down all my testing gems. + task build - runs xcodebuild to build a debug app + task link - runs a build and then hard links source files to build files ~/.emacs.el: + sets 'backup-by-copying-w