FIXED: duplicate key error when using custom time zones (thanks to myronmarston) - reportable - Fork of reportable required by WarVox, from hdm/reportable.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 66929fa0092bb0cad378e52766637535d69465b2
(DIR) parent fa8af89304d38318f6a2cb4f2b01a6f7f2e6bc7d
(HTM) Author: Marco Otte-Witte <marco.otte-witte@simplabs.com>
Date: Mon, 4 May 2009 11:59:52 +0200
FIXED: duplicate key error when using custom time zones (thanks to myronmarston)
Diffstat:
M HISTORY.rdoc | 4 ++++
M spec/classes/report_spec.rb | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/HISTORY.rdoc b/HISTORY.rdoc
@@ -1,3 +1,7 @@
+=== v1.2
+
+* FIXED: duplicate key error when using custom time zones (thanks to myronmarston (http://github.com/myronmarston))
+
=== v1.1
* new :end_date option: if specified, only data for the reporting periods for (end date - (limit - 1)) until (end date) will be included in the result set (thanks to myronmarston (http://github.com/myronmarston) for the great work)
(DIR) diff --git a/spec/classes/report_spec.rb b/spec/classes/report_spec.rb
@@ -83,7 +83,7 @@ describe Simplabs::ReportsAsSparkline::Report do
it 'should not raise a SQL duplicate key error after multiple runs' do
@report = Simplabs::ReportsAsSparkline::Report.new(User, :registrations,
- :limit => 2,
+ :limit => 2,
:grouping => grouping,
:end_date => Date.yesterday.to_datetime
)