creation_report 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/creation_report.rb +1 -1
- data/lib/creation_report/version.rb +1 -1
- metadata +5 -5
data/lib/creation_report.rb
CHANGED
@@ -22,7 +22,7 @@ module CreationReport
|
|
22
22
|
def created_by_hour
|
23
23
|
DataSet::HourlyDataSet.new(
|
24
24
|
count(
|
25
|
-
:group => "DATE_FORMAT( CONVERT_TZ(#{table_name}.created_at, '+0:00', '#{(Time.zone.utc_offset/3600 rescue '-0')}:00'),'%Y-%m-%d %H')",
|
25
|
+
:group => "DATE_FORMAT( CONVERT_TZ(#{table_name}.created_at, '+0:00', '#{((Time.zone.utc_offset/3600 + (Time.now.dst? ? 1 : 0)) rescue '-0')}:00'),'%Y-%m-%d %H')",
|
26
26
|
:order => "#{table_name}.id ASC",
|
27
27
|
:conditions => ["#{table_name}.created_at > ?", 24.hours.ago]
|
28
28
|
), 24
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: creation_report
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jon Collier
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-06-01 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rails
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
requirements: []
|
126
126
|
|
127
127
|
rubyforge_project:
|
128
|
-
rubygems_version: 1.8.
|
128
|
+
rubygems_version: 1.8.5
|
129
129
|
signing_key:
|
130
130
|
specification_version: 3
|
131
131
|
summary: Easily generate graphs for ActiveRecord object creation.
|