Re: [MacRuby-devel] Problem with a window controller

2012-11-30 Thread Jim Getzen
Hi David,

You might check out this Stack Overflow entry to see if it solves your problem:

http://stackoverflow.com/questions/2695671/nswindowcontroller-windowdidload-not-called

Jim


On Nov 29, 2012, at 6:50 PM, david kramf  wrote:


Hi, 
In the copied below code only the awakeFromNib is executed . Can someone 
explain me what do I do wrong ?  Window is displayed and I expected all other 
methods to be called.
Thanks, David


class MyController < NSWindowController
attr_accessor :window

def awakeFromNib
@window.delegate = self
puts " at end of awake from nib. title is #{@window.title}"
end

def windowWillLoad
puts "window  will be soon loaded"
end

def windowDidLoad
puts "window loaded"
end
def windowTitleForDocumentDisplayName(displayName)
"Hello World"
end

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel


[MacRuby-devel] MacBacon problem

2012-11-30 Thread stephen horne
I'm trying to get started with tdd and MacRuby, but I've hit a stumbling block 
immediately with macbacon. I suspect it's something to do with rvm, but I'm not 
sure.

When I run macbacon like this:

$macbacon my_class_test.rb 

I get the following error backtrace:

/Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require': 
/Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:212:
 syntax error, unexpected tLABEL (SyntaxError)
...eForKeyPath(key_path, ofObject:object, change:_, context:__)
...   ^
/Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:337:
 class definition in method body
/Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:429:
 syntax error, unexpected keyword_end, expecting $end

from 
/Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
 `require'

from 
/Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/bin/macbacon:110:in 
`'

from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in `load'

from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in `'

Can anyone see what's wrong with my setup?

Thanks.
--
Stephen Horne

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel


Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread Daniel Westendorf
Stephen,

It looks like MacBacon is using MRI Ruby, not MacRuby. Did you install the
gem using macgem? You might have to uninstall any other versions you've
installed.

I never had much luck with RVM+MacRuby; I always installed MacRuby using
the installer from the website. This might have been fixed though.

dw

On Fri, Nov 30, 2012 at 10:46 AM, stephen horne  wrote:

> I'm trying to get started with tdd and MacRuby, but I've hit a stumbling
> block immediately with macbacon. I suspect it's something to do with rvm,
> but I'm not sure.
>
> When I run macbacon like this:
>
> $macbacon my_class_test.rb
>
> I get the following error backtrace:
>
> /Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
> `require':
> /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:212:
> syntax error, unexpected tLABEL (SyntaxError)
> ...eForKeyPath(key_path, ofObject:object, change:_, context:__)
> ...   ^
> /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:337:
> class definition in method body
> /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:429:
> syntax error, unexpected keyword_end, expecting $end
> from
> /Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
> `require'
> from
> /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/bin/macbacon:110:in
> `'
> from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in `load'
> from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in `'
>
> Can anyone see what's wrong with my setup?
>
> Thanks.
> --
> Stephen Horne
>
>
> ___
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macruby-devel
>
>
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel


Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread stephen horne
Thanks Daniel, you were right - I'd gem installed it. I've now gem uninstalled 
it and tried with macgem, but whilst that claims to install it, I get a 
Gem::LoadError when I try to use it:

$sudo macgem install mac_bacon
Successfully installed mac_bacon-1.3
1 gem installed

and then try:

$macbacon my_class_test.rb

I get:

/usr/local/bin/macbacon:18:in `': Could not find mac_bacon (>= 0) amongst 
[ParseTree-2.1.1, RubyInline-3.11.3, ZenTest-4.8.2, addressable-2.2.8, 
autotest-4.4.6, bacon-1.1.0, bouncy-castle-java-1.5.0146.1, bundle-0.0.1, 
bundler-1.0.22, cheat-1.3.0, choice-0.1.6, dbi-0.4.5, debugger-1.2.2, 
debugger-linecache-1.1.2, debugger-ruby_core_source-1.1.5, deprecated-2.0.1, 
diff-lcs-1.1.3, fuzzy-string-match_pure-0.9.3, gem-man-0.3.0, git-1.2.5, 
hoe-3.2.0, htty-1.4.0, jruby-openssl-0.7.7, launchy-2.1.0, lolcommits-0.1.5, 
lucene-0.5.0.beta.1, mime-types-1.19, net-ftp-list-3.2.3, net-sftp-2.0.5, 
net-ssh-2.5.2, plugin_manager-1.5, rack-1.4.1, rack-test-0.6.2, 
rb-appscript-0.6.1, rb-fsevent-0.9.2, rbx-require-relative-0.0.9, rdebug-0.1, 
rdiscount-1.6.8, redcar-0.13, redcar-bundles-0.3, redcar-icons-0.3, 
redcar-javamateview-0.2, redcar-jruby-0.1, redcar-svnkit-0.2, rmagick-2.13.1, 
rspec-2.12.0, rspec-core-2.12.0, rspec-core-2.11.1, rspec-expectations-2.12.0, 
rspec-expectations-2.11.3, rspec-mocks-2.12.0, rspec-mocks-2.11.3, 
ruby-blockcache-0.2, ruby2ruby-1.1.8, sake-1.0.15, spoon-0.0.1, swt-0.13, 
yard-0.8.2.1] (Gem::LoadError)

and indeed, when I run

macgem list

there is no mac_bacon listed there. Do you know what else I'm missing here?

Thanks,

Stephen



On 30/11/2012, at 17:52, Daniel Westendorf  wrote:

> Stephen,
> 
> It looks like MacBacon is using MRI Ruby, not MacRuby. Did you install the 
> gem using macgem? You might have to uninstall any other versions you've 
> installed.
> 
> I never had much luck with RVM+MacRuby; I always installed MacRuby using the 
> installer from the website. This might have been fixed though.
> 
> dw
> 
> On Fri, Nov 30, 2012 at 10:46 AM, stephen horne  wrote:
> I'm trying to get started with tdd and MacRuby, but I've hit a stumbling 
> block immediately with macbacon. I suspect it's something to do with rvm, but 
> I'm not sure.
> 
> When I run macbacon like this:
> 
>   $macbacon my_class_test.rb 
> 
> I get the following error backtrace:
> 
> /Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
>  `require': 
> /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:212:
>  syntax error, unexpected tLABEL (SyntaxError)
> ...eForKeyPath(key_path, ofObject:object, change:_, context:__)
> ...   ^
> /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:337:
>  class definition in method body
> /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:429:
>  syntax error, unexpected keyword_end, expecting $end
>   
> from 
> /Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
>  `require'
>   
> from 
> /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/bin/macbacon:110:in
>  `'
>   
> from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in `load'
>   
> from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in `'
> 
> Can anyone see what's wrong with my setup?
> 
> Thanks.
> --
> Stephen Horne
> 
> 
> ___
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macruby-devel
> 
> 
> ___
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macruby-devel

--
Stephen Horne

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel


Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread Joshua Ballanco
Do you have a "require 'rubygems'" in your script? Unlike Ruby 1.9, MacRuby 
doesn't automatically load RubyGems by default. 


On Friday, November 30, 2012 at 8:11 PM, stephen horne wrote:

> Thanks Daniel, you were right - I'd gem installed it. I've now gem 
> uninstalled it and tried with macgem, but whilst that claims to install it, I 
> get a Gem::LoadError when I try to use it:
> 
> > $sudo macgem install mac_bacon
> > Successfully installed mac_bacon-1.3
> > 
> > 1 gem installed
> > 
> 
> 
> and then try:
> 
> > $macbacon my_class_test.rb
> 
> I get:
> 
> > /usr/local/bin/macbacon:18:in `': Could not find mac_bacon (>= 0) 
> > amongst [ParseTree-2.1.1, RubyInline-3.11.3, ZenTest-4.8.2, 
> > addressable-2.2.8, autotest-4.4.6, bacon-1.1.0, 
> > bouncy-castle-java-1.5.0146.1, bundle-0.0.1, bundler-1.0.22, cheat-1.3.0, 
> > choice-0.1.6, dbi-0.4.5, debugger-1.2.2, debugger-linecache-1.1.2, 
> > debugger-ruby_core_source-1.1.5, deprecated-2.0.1, diff-lcs-1.1.3, 
> > fuzzy-string-match_pure-0.9.3, gem-man-0.3.0, git-1.2.5, hoe-3.2.0, 
> > htty-1.4.0, jruby-openssl-0.7.7, launchy-2.1.0, lolcommits-0.1.5, 
> > lucene-0.5.0.beta.1, mime-types-1.19, net-ftp-list-3.2.3, net-sftp-2.0.5, 
> > net-ssh-2.5.2, plugin_manager-1.5, rack-1.4.1, rack-test-0.6.2, 
> > rb-appscript-0.6.1, rb-fsevent-0.9.2, rbx-require-relative-0.0.9, 
> > rdebug-0.1, rdiscount-1.6.8, redcar-0.13, redcar-bundles-0.3, 
> > redcar-icons-0.3, redcar-javamateview-0.2, redcar-jruby-0.1, 
> > redcar-svnkit-0.2, rmagick-2.13.1, rspec-2.12.0, rspec-core-2.12.0, 
> > rspec-core-2.11.1, rspec-expectations-2.12.0, rspec-expectations-2.11
 .3, rspe
c-mocks-2.12.0, rspec-mocks-2.11.3, ruby-blockcache-0.2, ruby2ruby-1.1.8, 
sake-1.0.15, spoon-0.0.1, swt-0.13, yard-0.8.2.1] (Gem::LoadError)
> 
> and indeed, when I run
> 
> > macgem list
> 
> there is no mac_bacon listed there. Do you know what else I'm missing here?
> 
> Thanks,
> 
> Stephen
> 
> 
> 
> On 30/11/2012, at 17:52, Daniel Westendorf  (mailto:dan...@prowestech.com)> wrote:
> > Stephen,
> > 
> > It looks like MacBacon is using MRI Ruby, not MacRuby. Did you install the 
> > gem using macgem? You might have to uninstall any other versions you've 
> > installed.
> > 
> > I never had much luck with RVM+MacRuby; I always installed MacRuby using 
> > the installer from the website. This might have been fixed though. 
> > 
> > dw
> > 
> > On Fri, Nov 30, 2012 at 10:46 AM, stephen horne  > (mailto:fat...@gmail.com)> wrote:
> > > I'm trying to get started with tdd and MacRuby, but I've hit a stumbling 
> > > block immediately with macbacon. I suspect it's something to do with rvm, 
> > > but I'm not sure.
> > > 
> > > When I run macbacon like this:
> > > 
> > > $macbacon my_class_test.rb 
> > > 
> > > I get the following error backtrace: 
> > > 
> > > > /Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
> > > >  `require': 
> > > > /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:212:
> > > >  syntax error, unexpected tLABEL (SyntaxError) 
> > > > ...eForKeyPath(key_path, ofObject:object, change:_, context:__)
> > > > ...   ^
> > > > /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:337:
> > > >  class definition in method body
> > > > 
> > > > /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:429:
> > > >  syntax error, unexpected keyword_end, expecting $end
> > > > 
> > > > from 
> > > > /Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
> > > >  `require'
> > > > 
> > > > from 
> > > > /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/bin/macbacon:110:in
> > > >  `'
> > > > 
> > > > from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in `load'
> > > > 
> > > > from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in `'
> > > > 
> > > Can anyone see what's wrong with my setup?
> > > 
> > > Thanks.
> > > --
> > > Stephen Horne
> > > 
> > > 
> > > 
> > > ___
> > > MacRuby-devel mailing list
> > > MacRuby-devel@lists.macosforge.org 
> > > (mailto:MacRuby-devel@lists.macosforge.org)
> > > http://lists.macosforge.org/mailman/listinfo/macruby-devel
> > > 
> > 
> > ___
> > MacRuby-devel mailing list
> > MacRuby-devel@lists.macosforge.org 
> > (mailto:MacRuby-devel@lists.macosforge.org)
> > http://lists.macosforge.org/mailman/listinfo/macruby-devel
> 
> --
> Stephen Horne
> 
> 
> ___
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org (mailto:MacRuby-devel@lists.macosforge.org)
> http://lists.macosforge.org/mailman/listinfo/macruby-devel
> 
> 


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel


Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread J Silver

Wow, didn't even know 1.9 required "rubygems" by default! Thanks!

On 30/11/2012 10:22, Joshua Ballanco wrote:
Do you have a "require 'rubygems'" in your script? Unlike Ruby 1.9, 
MacRuby doesn't automatically load RubyGems by default.


On Friday, November 30, 2012 at 8:11 PM, stephen horne wrote:

Thanks Daniel, you were right - I'd gem installed it. I've now gem 
uninstalled it and tried with macgem, but whilst that claims to 
install it, I get a Gem::LoadError when I try to use it:


$sudo macgem install mac_bacon
Successfully installed mac_bacon-1.3
1 gem installed


and then try:

$macbacon my_class_test.rb


I get:

/usr/local/bin/macbacon:18:in `': Could not find mac_bacon
(>= 0) amongst [ParseTree-2.1.1, RubyInline-3.11.3,
ZenTest-4.8.2, addressable-2.2.8, autotest-4.4.6, bacon-1.1.0,
bouncy-castle-java-1.5.0146.1, bundle-0.0.1, bundler-1.0.22,
cheat-1.3.0, choice-0.1.6, dbi-0.4.5, debugger-1.2.2,
debugger-linecache-1.1.2, debugger-ruby_core_source-1.1.5,
deprecated-2.0.1, diff-lcs-1.1.3, fuzzy-string-match_pure-0.9.3,
gem-man-0.3.0, git-1.2.5, hoe-3.2.0, htty-1.4.0,
jruby-openssl-0.7.7, launchy-2.1.0, lolcommits-0.1.5,
lucene-0.5.0.beta.1, mime-types-1.19, net-ftp-list-3.2.3,
net-sftp-2.0.5, net-ssh-2.5.2, plugin_manager-1.5, rack-1.4.1,
rack-test-0.6.2, rb-appscript-0.6.1, rb-fsevent-0.9.2,
rbx-require-relative-0.0.9, rdebug-0.1, rdiscount-1.6.8,
redcar-0.13, redcar-bundles-0.3, redcar-icons-0.3,
redcar-javamateview-0.2, redcar-jruby-0.1, redcar-svnkit-0.2,
rmagick-2.13.1, rspec-2.12.0, rspec-core-2.12.0,
rspec-core-2.11.1, rspec-expectations-2.12.0,
rspec-expectations-2.11.3, rspec-mocks-2.12.0,
rspec-mocks-2.11.3, ruby-blockcache-0.2, ruby2ruby-1.1.8,
sake-1.0.15, spoon-0.0.1, swt-0.13, yard-0.8.2.1] (Gem::LoadError)


and indeed, when I run

macgem list


there is no mac_bacon listed there. Do you know what else I'm missing 
here?


Thanks,

Stephen



On 30/11/2012, at 17:52, Daniel Westendorf > wrote:



Stephen,

It looks like MacBacon is using MRI Ruby, not MacRuby. Did you 
install the gem using macgem? You might have to uninstall any other 
versions you've installed.


I never had much luck with RVM+MacRuby; I always installed MacRuby 
using the installer from the website. This might have been fixed though.


dw

On Fri, Nov 30, 2012 at 10:46 AM, stephen horne > wrote:
I'm trying to get started with tdd and MacRuby, but I've hit a 
stumbling block immediately with macbacon. I suspect it's something 
to do with rvm, but I'm not sure.


When I run macbacon like this:

$macbacon my_class_test.rb

I get the following error backtrace:


/Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require':

/Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:212:
syntax error, unexpected tLABEL (SyntaxError)
...eForKeyPath(key_path, ofObject:object, change:_, context:__)
...   ^

/Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:337:
class definition in method body

/Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:429:
syntax error, unexpected keyword_end, expecting $end
from

/Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
from

/Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/bin/macbacon:110:in
`'
from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in
`load'
from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in
`'

Can anyone see what's wrong with my setup?

Thanks.
--
Stephen Horne


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org 


http://lists.macosforge.org/mailman/listinfo/macruby-devel



___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org 


http://lists.macosforge.org/mailman/listinfo/macruby-devel


--
Stephen Horne

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org 


http://lists.macosforge.org/mailman/listinfo/macruby-devel




___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel


Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread stephen horne
Hi Joshua,

No, I had missed that in my script, but now it's there I still get the same 
error. It seems to be happening in /usr/local/bin/macbacon itself, before it 
gets to my script.

Stephen



On 30/11/2012, at 18:22, Joshua Ballanco  wrote:

> Do you have a "require 'rubygems'" in your script? Unlike Ruby 1.9, MacRuby 
> doesn't automatically load RubyGems by default.
> On Friday, November 30, 2012 at 8:11 PM, stephen horne wrote:
> 
>> Thanks Daniel, you were right - I'd gem installed it. I've now gem 
>> uninstalled it and tried with macgem, but whilst that claims to install it, 
>> I get a Gem::LoadError when I try to use it:
>> 
>> $sudo macgem install mac_bacon
>> Successfully installed mac_bacon-1.3
>> 1 gem installed
>> 
>> and then try:
>> 
>> $macbacon my_class_test.rb
>> 
>> I get:
>> 
>> /usr/local/bin/macbacon:18:in `': Could not find mac_bacon (>= 0) 
>> amongst [ParseTree-2.1.1, RubyInline-3.11.3, ZenTest-4.8.2, 
>> addressable-2.2.8, autotest-4.4.6, bacon-1.1.0, 
>> bouncy-castle-java-1.5.0146.1, bundle-0.0.1, bundler-1.0.22, cheat-1.3.0, 
>> choice-0.1.6, dbi-0.4.5, debugger-1.2.2, debugger-linecache-1.1.2, 
>> debugger-ruby_core_source-1.1.5, deprecated-2.0.1, diff-lcs-1.1.3, 
>> fuzzy-string-match_pure-0.9.3, gem-man-0.3.0, git-1.2.5, hoe-3.2.0, 
>> htty-1.4.0, jruby-openssl-0.7.7, launchy-2.1.0, lolcommits-0.1.5, 
>> lucene-0.5.0.beta.1, mime-types-1.19, net-ftp-list-3.2.3, net-sftp-2.0.5, 
>> net-ssh-2.5.2, plugin_manager-1.5, rack-1.4.1, rack-test-0.6.2, 
>> rb-appscript-0.6.1, rb-fsevent-0.9.2, rbx-require-relative-0.0.9, 
>> rdebug-0.1, rdiscount-1.6.8, redcar-0.13, redcar-bundles-0.3, 
>> redcar-icons-0.3, redcar-javamateview-0.2, redcar-jruby-0.1, 
>> redcar-svnkit-0.2, rmagick-2.13.1, rspec-2.12.0, rspec-core-2.12.0, 
>> rspec-core-2.11.1, rspec-expectations-2.12.0, rspec-expectations-2.11.3, 
>> rspec-mocks-2.12.0, rspec-mocks-2.11.3, ruby-blockcache-0.2, 
>> ruby2ruby-1.1.8, sake-1.0.15, spoon-0.0.1, swt-0.13, yard-0.8.2.1] 
>> (Gem::LoadError)
>> 
>> and indeed, when I run
>> 
>> macgem list
>> 
>> there is no mac_bacon listed there. Do you know what else I'm missing here?
>> 
>> Thanks,
>> 
>> Stephen
>> 
>> 
>> 
>> On 30/11/2012, at 17:52, Daniel Westendorf  wrote:
>> 
>>> Stephen,
>>> 
>>> It looks like MacBacon is using MRI Ruby, not MacRuby. Did you install the 
>>> gem using macgem? You might have to uninstall any other versions you've 
>>> installed.
>>> 
>>> I never had much luck with RVM+MacRuby; I always installed MacRuby using 
>>> the installer from the website. This might have been fixed though.
>>> 
>>> dw
>>> 
>>> On Fri, Nov 30, 2012 at 10:46 AM, stephen horne  wrote:
 I'm trying to get started with tdd and MacRuby, but I've hit a stumbling 
 block immediately with macbacon. I suspect it's something to do with rvm, 
 but I'm not sure.
 
 When I run macbacon like this:
 
$macbacon my_class_test.rb 
 
 I get the following error backtrace:
 
 /Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
  `require': 
 /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:212:
  syntax error, unexpected tLABEL (SyntaxError)
 ...eForKeyPath(key_path, ofObject:object, change:_, context:__)
 ...   ^
 /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:337:
  class definition in method body
 /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:429:
  syntax error, unexpected keyword_end, expecting $end

 from 
 /Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
  `require'

 from 
 /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/bin/macbacon:110:in
  `'

 from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in `load'

 from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in `'
 
 Can anyone see what's wrong with my setup?
 
 Thanks.
 --
 Stephen Horne
 
 
 ___
 MacRuby-devel mailing list
 MacRuby-devel@lists.macosforge.org
 http://lists.macosforge.org/mailman/listinfo/macruby-devel
 
>>> 
>>> ___
>>> MacRuby-devel mailing list
>>> MacRuby-devel@lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo/macruby-devel
>> 
>> --
>> Stephen Horne
>> 
>> ___
>> MacRuby-devel mailing list
>> MacRuby-devel@lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo/macruby-devel
> 
> ___
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macruby-devel

--
Stephen Horne

_

Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread Joshua Ballanco
Try checking the shebang line on the macbacon executable:  

> head -1 `which macbacon`

- Josh


On Friday, November 30, 2012 at 8:39 PM, stephen horne wrote:

> Hi Joshua,
> 
> No, I had missed that in my script, but now it's there I still get the same 
> error. It seems to be happening in /usr/local/bin/macbacon itself, before it 
> gets to my script.
> 
> Stephen
> 
> 
> 
> On 30/11/2012, at 18:22, Joshua Ballanco  (mailto:jball...@gmail.com)> wrote:
> > Do you have a "require 'rubygems'" in your script? Unlike Ruby 1.9, MacRuby 
> > doesn't automatically load RubyGems by default. 
> > 
> > On Friday, November 30, 2012 at 8:11 PM, stephen horne wrote:
> > 
> > > Thanks Daniel, you were right - I'd gem installed it. I've now gem 
> > > uninstalled it and tried with macgem, but whilst that claims to install 
> > > it, I get a Gem::LoadError when I try to use it:
> > > 
> > > > $sudo macgem install mac_bacon
> > > > Successfully installed mac_bacon-1.3
> > > > 1 gem installed
> > > 
> > > 
> > > and then try:
> > > 
> > > > $macbacon my_class_test.rb
> > > 
> > > I get:
> > > 
> > > > /usr/local/bin/macbacon:18:in `': Could not find mac_bacon (>= 0) 
> > > > amongst [ParseTree-2.1.1, RubyInline-3.11.3, ZenTest-4.8.2, 
> > > > addressable-2.2.8, autotest-4.4.6, bacon-1.1.0, 
> > > > bouncy-castle-java-1.5.0146.1, bundle-0.0.1, bundler-1.0.22, 
> > > > cheat-1.3.0, choice-0.1.6, dbi-0.4.5, debugger-1.2.2, 
> > > > debugger-linecache-1.1.2, debugger-ruby_core_source-1.1.5, 
> > > > deprecated-2.0.1, diff-lcs-1.1.3, fuzzy-string-match_pure-0.9.3, 
> > > > gem-man-0.3.0, git-1.2.5, hoe-3.2.0, htty-1.4.0, jruby-openssl-0.7.7, 
> > > > launchy-2.1.0, lolcommits-0.1.5, lucene-0.5.0.beta.1, mime-types-1.19, 
> > > > net-ftp-list-3.2.3, net-sftp-2.0.5, net-ssh-2.5.2, plugin_manager-1.5, 
> > > > rack-1.4.1, rack-test-0.6.2, rb-appscript-0.6.1, rb-fsevent-0.9.2, 
> > > > rbx-require-relative-0.0.9, rdebug-0.1, rdiscount-1.6.8, redcar-0.13, 
> > > > redcar-bundles-0.3, redcar-icons-0.3, redcar-javamateview-0.2, 
> > > > redcar-jruby-0.1, redcar-svnkit-0.2, rmagick-2.13.1, rspec-2.12.0, 
> > > > rspec-core-2.12.0, rspec-core-2.11.1, rspec-expectations-2.12.0, 
> > > > rspec-expectations-
 2.11.3, 
rspec-mocks-2.12.0, rspec-mocks-2.11.3, ruby-blockcache-0.2, ruby2ruby-1.1.8, 
sake-1.0.15, spoon-0.0.1, swt-0.13, yard-0.8.2.1] (Gem::LoadError)
> > > 
> > > and indeed, when I run
> > > 
> > > > macgem list
> > > 
> > > there is no mac_bacon listed there. Do you know what else I'm missing 
> > > here?
> > > 
> > > Thanks,
> > > 
> > > Stephen
> > > 
> > > 
> > > 
> > > On 30/11/2012, at 17:52, Daniel Westendorf  > > (mailto:dan...@prowestech.com)> wrote:
> > > > Stephen,
> > > > 
> > > > It looks like MacBacon is using MRI Ruby, not MacRuby. Did you install 
> > > > the gem using macgem? You might have to uninstall any other versions 
> > > > you've installed.
> > > > 
> > > > I never had much luck with RVM+MacRuby; I always installed MacRuby 
> > > > using the installer from the website. This might have been fixed 
> > > > though. 
> > > > 
> > > > dw
> > > > 
> > > > On Fri, Nov 30, 2012 at 10:46 AM, stephen horne  > > > (mailto:fat...@gmail.com)> wrote:
> > > > > I'm trying to get started with tdd and MacRuby, but I've hit a 
> > > > > stumbling block immediately with macbacon. I suspect it's something 
> > > > > to do with rvm, but I'm not sure.
> > > > > 
> > > > > When I run macbacon like this:
> > > > > 
> > > > > $macbacon my_class_test.rb 
> > > > > 
> > > > > I get the following error backtrace: 
> > > > > 
> > > > > > /Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
> > > > > >  `require': 
> > > > > > /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:212:
> > > > > >  syntax error, unexpected tLABEL (SyntaxError) 
> > > > > > ...eForKeyPath(key_path, ofObject:object, change:_, context:__)
> > > > > > ...   ^
> > > > > > /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:337:
> > > > > >  class definition in method body
> > > > > > 
> > > > > > /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:429:
> > > > > >  syntax error, unexpected keyword_end, expecting $end
> > > > > > 
> > > > > > from 
> > > > > > /Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
> > > > > >  `require'
> > > > > > 
> > > > > > from 
> > > > > > /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/bin/macbacon:110:in
> > > > > >  `'
> > > > > > 
> > > > > > from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in 
> > > > > > `load'
> > > > > > 
> > > > > > from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in 
> > > > > > `'
> > > > > > 
> > > > > Can anyone see what's wrong with my setup?
> > > > > 
> > > > > Thanks.
> > > > > --
> > > > > Stephen Horne
> > > > > 
> > > > > 
> > > > > 
> > > > > 

Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread stephen horne
That reads:

#!/Library/Frameworks/MacRuby.framework/Versions/0.13/usr/bin/macruby

I was using the stable 0.12 release from the macruby.org homepage. I installed 
a nightly to see if that helped, but it didn't.

I just tried installing another macgem, the first I came across online - 
progressbar, and that too does not show up with macgem list local. So I wonder 
if there's a path issue somewhere.


Stephen


On 30/11/2012, at 18:54, Joshua Ballanco  wrote:

> Try checking the shebang line on the macbacon executable: 
> 
> > head -1 `which macbacon`
> 
> - Josh
> 
> On Friday, November 30, 2012 at 8:39 PM, stephen horne wrote:
> 
>> Hi Joshua,
>> 
>> No, I had missed that in my script, but now it's there I still get the same 
>> error. It seems to be happening in /usr/local/bin/macbacon itself, before it 
>> gets to my script.
>> 
>> Stephen
>> 
>> 
>> 
>> On 30/11/2012, at 18:22, Joshua Ballanco  wrote:
>> 
>>> Do you have a "require 'rubygems'" in your script? Unlike Ruby 1.9, MacRuby 
>>> doesn't automatically load RubyGems by default.
>>> On Friday, November 30, 2012 at 8:11 PM, stephen horne wrote:
>>> 
 Thanks Daniel, you were right - I'd gem installed it. I've now gem 
 uninstalled it and tried with macgem, but whilst that claims to install 
 it, I get a Gem::LoadError when I try to use it:
 
 $sudo macgem install mac_bacon
 Successfully installed mac_bacon-1.3
 1 gem installed
 
 and then try:
 
 $macbacon my_class_test.rb
 
 I get:
 
 /usr/local/bin/macbacon:18:in `': Could not find mac_bacon (>= 0) 
 amongst [ParseTree-2.1.1, RubyInline-3.11.3, ZenTest-4.8.2, 
 addressable-2.2.8, autotest-4.4.6, bacon-1.1.0, 
 bouncy-castle-java-1.5.0146.1, bundle-0.0.1, bundler-1.0.22, cheat-1.3.0, 
 choice-0.1.6, dbi-0.4.5, debugger-1.2.2, debugger-linecache-1.1.2, 
 debugger-ruby_core_source-1.1.5, deprecated-2.0.1, diff-lcs-1.1.3, 
 fuzzy-string-match_pure-0.9.3, gem-man-0.3.0, git-1.2.5, hoe-3.2.0, 
 htty-1.4.0, jruby-openssl-0.7.7, launchy-2.1.0, lolcommits-0.1.5, 
 lucene-0.5.0.beta.1, mime-types-1.19, net-ftp-list-3.2.3, net-sftp-2.0.5, 
 net-ssh-2.5.2, plugin_manager-1.5, rack-1.4.1, rack-test-0.6.2, 
 rb-appscript-0.6.1, rb-fsevent-0.9.2, rbx-require-relative-0.0.9, 
 rdebug-0.1, rdiscount-1.6.8, redcar-0.13, redcar-bundles-0.3, 
 redcar-icons-0.3, redcar-javamateview-0.2, redcar-jruby-0.1, 
 redcar-svnkit-0.2, rmagick-2.13.1, rspec-2.12.0, rspec-core-2.12.0, 
 rspec-core-2.11.1, rspec-expectations-2.12.0, rspec-expectations-2.11.3, 
 rspec-mocks-2.12.0, rspec-mocks-2.11.3, ruby-blockcache-0.2, 
 ruby2ruby-1.1.8, sake-1.0.15, spoon-0.0.1, swt-0.13, yard-0.8.2.1] 
 (Gem::LoadError)
 
 and indeed, when I run
 
 macgem list
 
 there is no mac_bacon listed there. Do you know what else I'm missing here?
 
 Thanks,
 
 Stephen
 
 
 
 On 30/11/2012, at 17:52, Daniel Westendorf  wrote:
 
> Stephen,
> 
> It looks like MacBacon is using MRI Ruby, not MacRuby. Did you install 
> the gem using macgem? You might have to uninstall any other versions 
> you've installed.
> 
> I never had much luck with RVM+MacRuby; I always installed MacRuby using 
> the installer from the website. This might have been fixed though.
> 
> dw
> 
> On Fri, Nov 30, 2012 at 10:46 AM, stephen horne  wrote:
>> I'm trying to get started with tdd and MacRuby, but I've hit a stumbling 
>> block immediately with macbacon. I suspect it's something to do with 
>> rvm, but I'm not sure.
>> 
>> When I run macbacon like this:
>> 
>>  $macbacon my_class_test.rb 
>> 
>> I get the following error backtrace:
>> 
>> /Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
>>  `require': 
>> /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:212:
>>  syntax error, unexpected tLABEL (SyntaxError)
>> ...eForKeyPath(key_path, ofObject:object, change:_, context:__)
>> ...   ^
>> /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:337:
>>  class definition in method body
>> /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:429:
>>  syntax error, unexpected keyword_end, expecting $end
>>  
>> from 
>> /Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
>>  `require'
>>  
>> from 
>> /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/bin/macbacon:110:in
>>  `'
>>  
>> from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in `load'
>>  
>> from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in `'
>> 
>> Can anyone see what's wrong with my setup?
>> 
>> Thanks.
>> --
>> 

Re: [MacRuby-devel] Problem with a window controller

2012-11-30 Thread Andy Park
Without being able to verify anything for accuracy at the moment, it looks like 
your window's delegate is not set to the controller at the time the events are 
occurring. 

Check if you need to set this - try tracing the window's delegate at different 
points of the controller's lifecycle.

On 30 Nov 2012, at 00:50, david kramf  wrote:

> 
> Hi, 
> In the copied below code only the awakeFromNib is executed . Can someone 
> explain me what do I do wrong ?  Window is displayed and I expected all other 
> methods to be called.
> Thanks, David
> 
> 
> class MyController < NSWindowController
> attr_accessor :window
> 
> def awakeFromNib
> @window.delegate = self
> puts " at end of awake from nib. title is #{@window.title}"
> end
> 
> def windowWillLoad
> puts "window  will be soon loaded"
> end
> 
> def windowDidLoad
> puts "window loaded"
> end
> def windowTitleForDocumentDisplayName(displayName)
> "Hello World"
> end
> 
> ___
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macruby-devel
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel


Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread Joshua Ballanco
Hmm…are you using rvm? If so, try re-running after doing a "rvm use system". 
Otherwise, try looking at your environment to see if any environment variables 
related to RubyGems are set.  


On Friday, November 30, 2012 at 9:09 PM, stephen horne wrote:

> That reads:
>  
> #!/Library/Frameworks/MacRuby.framework/Versions/0.13/usr/bin/macruby
>  
> I was using the stable 0.12 release from the macruby.org (http://macruby.org) 
> homepage. I installed a nightly to see if that helped, but it didn't.
>  
> I just tried installing another macgem, the first I came across online - 
> progressbar, and that too does not show up with macgem list local. So I 
> wonder if there's a path issue somewhere.
>  
>  
> Stephen
>  
>  
> On 30/11/2012, at 18:54, Joshua Ballanco  (mailto:jball...@gmail.com)> wrote:
> > Try checking the shebang line on the macbacon executable:   
> >  
> > > head -1 `which macbacon`
> >  
> > - Josh
> >  
> >  
> > On Friday, November 30, 2012 at 8:39 PM, stephen horne wrote:
> >  
> > > Hi Joshua,
> > >  
> > > No, I had missed that in my script, but now it's there I still get the 
> > > same error. It seems to be happening in /usr/local/bin/macbacon itself, 
> > > before it gets to my script.
> > >  
> > > Stephen
> > >  
> > >  
> > >  
> > > On 30/11/2012, at 18:22, Joshua Ballanco  > > (mailto:jball...@gmail.com)> wrote:
> > > > Do you have a "require 'rubygems'" in your script? Unlike Ruby 1.9, 
> > > > MacRuby doesn't automatically load RubyGems by default.  
> > > >  
> > > > On Friday, November 30, 2012 at 8:11 PM, stephen horne wrote:
> > > >  
> > > > > Thanks Daniel, you were right - I'd gem installed it. I've now gem 
> > > > > uninstalled it and tried with macgem, but whilst that claims to 
> > > > > install it, I get a Gem::LoadError when I try to use it:
> > > > >  
> > > > > > $sudo macgem install mac_bacon
> > > > > > Successfully installed mac_bacon-1.3
> > > > > > 1 gem installed
> > > > >  
> > > > >  
> > > > > and then try:
> > > > >  
> > > > > > $macbacon my_class_test.rb
> > > > >  
> > > > > I get:
> > > > >  
> > > > > > /usr/local/bin/macbacon:18:in `': Could not find mac_bacon 
> > > > > > (>= 0) amongst [ParseTree-2.1.1, RubyInline-3.11.3, ZenTest-4.8.2, 
> > > > > > addressable-2.2.8, autotest-4.4.6, bacon-1.1.0, 
> > > > > > bouncy-castle-java-1.5.0146.1, bundle-0.0.1, bundler-1.0.22, 
> > > > > > cheat-1.3.0, choice-0.1.6, dbi-0.4.5, debugger-1.2.2, 
> > > > > > debugger-linecache-1.1.2, debugger-ruby_core_source-1.1.5, 
> > > > > > deprecated-2.0.1, diff-lcs-1.1.3, fuzzy-string-match_pure-0.9.3, 
> > > > > > gem-man-0.3.0, git-1.2.5, hoe-3.2.0, htty-1.4.0, 
> > > > > > jruby-openssl-0.7.7, launchy-2.1.0, lolcommits-0.1.5, 
> > > > > > lucene-0.5.0.beta.1, mime-types-1.19, net-ftp-list-3.2.3, 
> > > > > > net-sftp-2.0.5, net-ssh-2.5.2, plugin_manager-1.5, rack-1.4.1, 
> > > > > > rack-test-0.6.2, rb-appscript-0.6.1, rb-fsevent-0.9.2, 
> > > > > > rbx-require-relative-0.0.9, rdebug-0.1, rdiscount-1.6.8, 
> > > > > > redcar-0.13, redcar-bundles-0.3, redcar-icons-0.3, 
> > > > > > redcar-javamateview-0.2, redcar-jruby-0.1, redcar-svnkit-0.2, 
> > > > > > rmagick-2.13.1, rspec-2.12.0, rspec-core-2.12.0, rspec-core-2.11.1, 
> > > > > > rspec-expectations-2.12.0, rspec-expectations-2.11.3, 
> > > > > > rspec-mocks-2.12.0, rspec-mocks-2.11.3, ruby-blockcache-0.2, 
> > > > > > ruby2ruby-1.1.8, sake-1.0.15, spoon-0.0.1, swt-0.13, yard-0.8.2.1] 
> > > > > > (Gem::LoadError)
> > > > >  
> > > > > and indeed, when I run
> > > > >  
> > > > > > macgem list
> > > > >  
> > > > > there is no mac_bacon listed there. Do you know what else I'm missing 
> > > > > here?
> > > > >  
> > > > > Thanks,
> > > > >  
> > > > > Stephen
> > > > >  
> > > > >  
> > > > >  
> > > > > On 30/11/2012, at 17:52, Daniel Westendorf  > > > > (mailto:dan...@prowestech.com)> wrote:
> > > > > > Stephen,
> > > > > >  
> > > > > > It looks like MacBacon is using MRI Ruby, not MacRuby. Did you 
> > > > > > install the gem using macgem? You might have to uninstall any other 
> > > > > > versions you've installed.
> > > > > >  
> > > > > > I never had much luck with RVM+MacRuby; I always installed MacRuby 
> > > > > > using the installer from the website. This might have been fixed 
> > > > > > though.  
> > > > > >  
> > > > > > dw
> > > > > >  
> > > > > > On Fri, Nov 30, 2012 at 10:46 AM, stephen horne  > > > > > (mailto:fat...@gmail.com)> wrote:
> > > > > > > I'm trying to get started with tdd and MacRuby, but I've hit a 
> > > > > > > stumbling block immediately with macbacon. I suspect it's 
> > > > > > > something to do with rvm, but I'm not sure.
> > > > > > >  
> > > > > > > When I run macbacon like this:
> > > > > > >  
> > > > > > > $macbacon my_class_test.rb  
> > > > > > >  
> > > > > > > I get the following error backtrace:  
> > > > > > >  
> > > > > > > > /Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
> > > > > > > >  `require': 
> > > >