Posted By: Giles Bowkett
Date: 2007-12-13 03:10
Summary: Utility Belt Released: Pimp Your IRB
Project: Utility Belt

Utility Belt was released yesterday. The subject of this news item comes from the Ruby Inside blog post following my own blog post. UB has gone through several dot versions already, due to the combination of lots of visibility and lots of bugs. Yay! It's fun. Actually the gem has a ton of cool features, and a few kinks here and there which are being swiftly ironed out. Current version is 1.0.4.

Latest News
TZInfo::Data v1.2014.2 Released
    Philip Ross - 2014-03-25 22:32
TZInfo v0.3.39 Released
    Philip Ross - 2014-03-09 20:23
TZInfo::Data v1.2014.1 Released
    Philip Ross - 2014-03-09 20:00
Automatic Ruby 14.2.0 has been released!
    id 774 - 2014-02-26 06:23
kramdown 1.3.2 released
    Thomas Leitner - 2014-02-16 08:35


Forums | Admin

Discussion Forums: utility-belt-released--pimp-your-irb

Start New Thread Start New Thread
Message: 35433
BY: Ed Hickey (bassnode)
DATE: 2007-12-12 16:27
SUBJECT: a few bugs i found


I think you're on the case, but either way:
This doesn't work when in plain irb:
>> grep_classes("ixnum")
NoMethodError: undefined method `blank?' for "IRB::Context":String
from /opt/local/lib/ruby/gems/1.8/gems/utility_belt-1.0.3/lib/language_greps.rb:8:in `grep_classes'
from /opt/local/lib/ruby/gems/1.8/gems/utility_belt-1.0.3/lib/language_greps.rb:8:in `each_object'
from /opt/local/lib/ruby/gems/1.8/gems/utility_belt-1.0.3/lib/language_greps.rb:8:in `grep_classes'
from (irb):20

It works in Rails which I assume is because Object.blank? is a ActionPack method.

Also, in Rails console
user(:all) & user(1) don't work:

>> user(1)
NoMethodError: undefined method `user' for #<Object:0x349a4>
from (irb):15
>> user(:all)
NoMethodError: undefined method `user' for #<Object:0x349a4>
from (irb):16

Regular way works fine:
>> u = User.find(1)
User Load (1) (0.000181) SELECT * FROM users WHERE (users.`id` = 1)
=> #<User:0x3216e90 @attributes={"created_on"=>"2006-08-26 12:27:28"...}

Had problems with Google search too:
./script/console version:
>> google "go"
NoMethodError: undefined method `google' for #<Object:0x349a4>
from (irb):3

regular irb:
>> google 'work+please'
NoMethodError: undefined method `google' for main:Object
from (irb):1
from /opt/local/lib/ruby/gems/1.8/gems/aws-s3-0.4.0/lib/aws/s3/bucket.rb:190

Great work overall though. Some really helpful stuff in here!

Thread View

Thread Author Date
a few bugs i foundEd Hickey2007-12-12 16:27
      RE: a few bugs i foundGiles Bowkett2007-12-13 07:41
            RE: a few bugs i foundEd Hickey2007-12-13 09:51

Post a followup to this message