Hi,
get_months should return only months which contain an entry:
# Returns an Array of Arrays representing the months which contain
# +entries+
but it returns all months between the first and the last entry.
I modified it to return only months which contain an entry.
Simon
Index: lib/hobix/storage/filesys.rb
===================================================================
--- lib/hobix/storage/filesys.rb (revision 153)
+++ lib/hobix/storage/filesys.rb (working copy)
@@ -359,7 +359,7 @@
next_month %= 12
end
month_end = Time.mktime( next_year, next_month, 1 ) - 1
- months << [ start, month_end, start.strftime( "/%Y/%m/" ) ]
+ months << [ start, month_end, start.strftime( "/%Y/%m/" ) ] unless
find( :after => start, :before => month_end).empty?
start = month_end + 1
end
months_______________________________________________
Hobix-is-the-way mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/hobix-is-the-way