all_seeing_eye 0.0.7 → 0.0.8

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{all_seeing_eye}
8
- s.version = "0.0.7"
8
+ s.version = "0.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Josh Symonds"]
@@ -116,8 +116,8 @@ class AllSeeingEye::Model
116
116
  else
117
117
  array = array.sort{|a, b| a.created_at <=> b.created_at}
118
118
  end
119
- start = array.first.created_at.utc.to_i
120
- stop = array.last.created_at.utc.to_i
119
+ start = array.first.created_at.new_offset(0).to_i
120
+ stop = array.last.created_at.new_offset(0).to_i
121
121
  interval = (stop - start) / options[:granularity]
122
122
  interval = 1 if interval == 0
123
123
 
@@ -125,7 +125,7 @@ class AllSeeingEye::Model
125
125
  options[:granularity].times {|n| tree[start + (interval * n)] = 0}
126
126
 
127
127
  array.each do |o|
128
- val = o.created_at.utc.to_i
128
+ val = o.created_at.new_offset(0).to_i
129
129
  bound = tree.lower_bound(val)
130
130
  bound = tree.upper_bound(val) if bound.nil?
131
131
  tree[bound.first] += 1
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: all_seeing_eye
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh Symonds