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?MattOn Oct 6, 2010, at 2:10 AM, Eloy Duran wrote:I verified that it does work:_______________________________________________sudo macgem install awesome_printPassword:unknown: warning: ignoring aliasSuccessfully installed awesome_print-0.2.11 gem installed% cat ~/.irbrcrequire 'rubygems'require 'ap'% macirbirb(main):001:0> data = [ false, 42, %w(forty two), { :now => Time.now, :class => Time.now.class, :distance => 42e42 } ]=> [false, 42, ["forty", "two"], {:now=>2010-10-06 11:06:37 +0200, :class=>Time, :distance=>4.2e+43}]irb(main):002:0> ap data[[0] false,[1] 42,[2] [[0] "forty",[1] "two"],[3] {:now => 2010-10-06 11:06:37 +0200,:class => Time < NSDate,:distance => 4.2e+43}]=> nilIt’s probably, as Joshua has said, being installed with the wrong rubygems installation.EloyOn Oct 6, 2010, at 8:38 AM, Joshua Ballanco wrote: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 find it.Try running 'macgem install awesome_print' instead and let us know how it goes.Cheers,JoshOn Oct 5, 2010, at 10:29 PM, Brad Hutchins wrote:"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$ macruby -vMacRuby 0.7 (ruby 1.9.2) [universal-darwin10.0, x86_64]localhost:Homebrew Brad$ DietRB-bash: DietRB: command not foundlocalhost:Homebrew Brad$ macirbap gem not found. Try typing 'gem install awesome_print' to get super-fancy output.irb(main):001:0> exitlocalhost:Homebrew Brad$ gem install awesome_printunknown: warning: ignoring aliasSuccessfully installed awesome_print-0.2.11 gem installedlocalhost:Homebrew Brad$ macirb/Users/Brad/.irbrc:1:in `<main>': uninitialized constant IRB::Irb (NameError)from /usr/local/bin/macirb:13:in `block'from /usr/local/bin/macirb:9:in `block'from /usr/local/bin/macirb:3:in `<main>'localhost:Homebrew Brad$ DietRB-bash: DietRB: command not foundlocalhost:Homebrew Brad$ rvm listrvm rubiesjruby-1.5.2 [ x86_64-java ]=> macruby-0.7 [ x86_64 ]rbx-1.0.1-20100603 [ x86_64 ]ruby-1.8.7-p302 [ x86_64 ]ruby-1.9.2-p0 [ x86_64 ]localhost:Homebrew Brad$ gem uninstall awesome_printSuccessfully uninstalled awesome_print-0.2.1localhost:Homebrew Brad$ macirbap gem not found. Try typing 'gem install awesome_print' to get super-fancy output.irb(main):001:0>_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel