jzimmek-reportme 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/reportme/report_factory.rb +3 -1
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
@@ -70,9 +70,11 @@ module Reportme
70
70
  def ensure_report_tables_exist(report, period_name)
71
71
 
72
72
  table_name = report.table_name(period_name)
73
- sql = report.sql('0000-00-00 00:00:00', '0000-00-00 00:00:00', period_name)
74
73
 
75
74
  unless table_exist?(table_name)
75
+
76
+ sql = report.sql('0000-00-00 00:00:00', '0000-00-00 00:00:00', :day)
77
+
76
78
  exec("create table #{table_name} ENGINE=InnoDB default CHARSET=utf8 as #{sql} limit 0;")
77
79
  exec("alter table #{table_name} modify von datetime;")
78
80
  exec("alter table #{table_name} add index(von);")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jzimmek-reportme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Zimmek
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-03 00:00:00 -07:00
12
+ date: 2009-07-06 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15