lib/trackoid/readers.rb in trackoid-0.3.5 vs lib/trackoid/readers.rb in trackoid-0.3.6

- old
+ new

@@ -26,11 +26,14 @@ now, hmd = Time.now, (how_much - 1) on( now.ago(hmd.days)..now ) end def on(date) - return date.collect {|d| whole_data_for(d)} if date.is_a?(Range) - whole_data_for(date) + if date.is_a?(Range) + whole_data_for_range(date) + else + whole_data_for(date) + end end def all_values on(first_date..last_date) if first_date end