Problems on ruby 1.8.4 (2005-12-24) [powerpc-darwin8.6.0]
MenTaLguY
mental at rydia.net
Sun Jun 4 14:23:19 EDT 2006
On Tue, 2006-05-30 at 20:42 -0500, Arthur Vanderbilt wrote:
> I'm fixing little problems that my configuration is having with hobix
> svn trunk. I'll post them here as I go?
>
> Here is the first one ...
>
> hobix blogs was throwing an exception when there were no blogs
I've committed the following fix to trunk:
Index: lib/hobix/commandline.rb
===================================================================
--- lib/hobix/commandline.rb (revision 125)
+++ lib/hobix/commandline.rb (revision 126)
@@ -127,7 +127,7 @@
def blogs_weblog_explain; "List your weblogs."; end
def blogs_weblog_args; []; end
def blogs_weblog
- if @config['weblogs'].respond_to? :sort
+ if @config['weblogs'].respond_to?( :sort ) && !@config['weblogs'].empty?
blogs = @config['weblogs'].sort
name_width = blogs.collect { |b| b[0].length }.max
tabular( blogs, [[-name_width, 0, 'weblog-name'], [-40, 1, 'path']] )
Please let us know if you encounter any further problems.
-mental
More information about the Hobix-is-the-way
mailing list