cldwalker / hirb

A mini view framework for console/irb that's easy to use, even while under its influence. Console goodies include a no-wrap table, auto-pager, tree and menu.
http://tagaholic.me/hirb/
MIT License
1.65k stars 72 forks source link

Can't enable Hirb with Rails 2.3.4 on Windows #8

Closed freakent closed 15 years ago

freakent commented 15 years ago

Hi,

I've installed the Hirb gem on my Windows development machine but I get an error when I try to enable hirb.

1) C:\InstantRails\rails_apps\app>gem install cldwalker-hirb --source http://gems.github.com

2) C:\InstantRails\rails_apps\app>ruby script/console Loading development environment (Rails 2.3.4)

3) require 'hirb' => []

4) Hirb.enable TypeError: can't convert nil into String from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/cldwalker-hirb-0.2.5/lib/hirb.rb:44:in join' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/cldwalker-hirb-0.2.5/lib/hirb.rb:44:inconfig_file' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/cldwalker-hirb-0.2.5/lib/hirb.rb:52:in read_config_file' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/cldwalker-hirb-0.2.5/lib/hirb.rb:57:inconfig' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/cldwalker-hirb-0.2.5/lib/hirb/view.rb:186:in default_config' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/cldwalker-hirb-0.2.5/lib/hirb/view.rb:170:inload_config' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/cldwalker-hirb-0.2.5/lib/hirb/view.rb:30:in enable' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/cldwalker-hirb-0.2.5/lib/hirb.rb:35:inenable' from (irb):2:in irb_binding' from C:/InstantRails/ruby/lib/ruby/1.8/irb/workspace.rb:52:inirb_binding' from C:/InstantRails/ruby/lib/ruby/1.8/irb/workspace.rb:52 Maybe IRB bug!!

freakent commented 15 years ago

As a work around, I created an empty hirb.yml in my rails app's config directory. c:\InstantRails\rails_apps\app\config\hirb.yml

Gromina commented 15 years ago

Great, thanks for the solution! I've just met the same problem.

cldwalker commented 15 years ago

this bug has been fixed with version 0.2.6