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 ) && [EMAIL
PROTECTED]'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
_______________________________________________
Hobix-is-the-way mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/hobix-is-the-way