Re: [MacRuby-devel] macirb or not working with awesome_print

2010-10-18 Thread Matt Massicotte
Success! Thanks Eloy. Matt On Oct 6, 2010, at 11:06 AM, Eloy Duran wrote: > Aha, I see. Well, first let me say that, as you noticed, the internals > of IRB are indeed different than the one from MRI. This is a rewrite > of IRB called DietRB http://github.com/alloy/dietrb, which was > mentioned

Re: [MacRuby-devel] macirb or not working with awesome_print

2010-10-06 Thread Eloy Duran
Aha, I see. Well, first let me say that, as you noticed, the internals of IRB are indeed different than the one from MRI. This is a rewrite of IRB called DietRB http://github.com/alloy/dietrb, which was mentioned in the changelog, but not the announcement. I haven’t worked on completing the API and

Re: [MacRuby-devel] macirb or not working with awesome_print

2010-10-06 Thread Matt Massicotte
I wasn't clear at all, sorry. I can't get *automatic* formatting to work. My .irbrc file looks like this: require "rubygems" require "ap" unless Kernel.respond_to?(:framework) #admitted ugly hack require 'irb/completion' IRB::Irb.class_eval do def output_value ap @context.last

Re: [MacRuby-devel] macirb or not working with awesome_print

2010-10-06 Thread Eloy Duran
I did, in the email that you replied on. Could you please send some more info about what really happens? Eloy On Oct 6, 2010, at 5:49 PM, Matt Massicotte wrote: > I didn't know about awesome_print, and it's kind of blown my mind. The > default irb formatting is great. Only, I cannot get it t

Re: [MacRuby-devel] macirb or not working with awesome_print

2010-10-06 Thread Matt Massicotte
I didn't know about awesome_print, and it's kind of blown my mind. The default irb formatting is great. Only, I cannot get it to work in macirb. It looks like the internals of IRB is completely different. Has anyone had an luck with this? Matt On Oct 6, 2010, at 2:10 AM, Eloy Duran wrote:

Re: [MacRuby-devel] macirb or not working with awesome_print

2010-10-06 Thread Eloy Duran
I verified that it does work: sudo macgem install awesome_print Password: unknown: warning: ignoring alias Successfully installed awesome_print-0.2.1 1 gem installed % cat ~/.irbrc require 'rubygems' require 'ap' % macirb irb(main):001:0> data = [ false, 42, %w(forty two), { :now => Time.now, :c

Re: [MacRuby-devel] macirb or not working with awesome_print

2010-10-05 Thread Joshua Ballanco
Hi Brad, What's happening here is that the 'gem' command that ships with MacRuby is named 'macgem'. However, 'macirb' still looks at the same .irbrc file that the system 'irb' command does. So, if you've put in a require for awesome_print into your .irbrc, then 'macirb' will look for it but not

[MacRuby-devel] macirb or not working with awesome_print

2010-10-05 Thread Brad Hutchins
"DietRB" or "macirb" don't seem to be working after I install "gem awesome_print" I have to "gem uninstall awesome_print" to get it to work. I am guessing DietRB may be the name of the IRB but it is still launches with "macirb" localhost:Homebrew Brad$ *rvm macruby* localhost:Homebrew Brad$