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
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
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
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
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:
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
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
"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$