c2 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,7 +43,7 @@ class C2::Reporter::Bucket
43
43
 
44
44
  def refresh
45
45
  @series_cache = {}
46
- started_at = self.scope.where(:created_at.ne => nil).min(:created_at) || Time.now
46
+ started_at = self.scope.where(:created_at.ne => nil).order(:created_at).only(:created_at).first().created_at || Time.now
47
47
  self.scope.each do |item|
48
48
  date = (item.created_at || started_at).to_date
49
49
  @series.each do |key,value|
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: c2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 10
10
- version: 0.1.10
9
+ - 11
10
+ version: 0.1.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - hexorx