all_seeing_eye 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -5,6 +5,7 @@ gem 'chronic'
5
5
  gem 'rbtree'
6
6
  gem 'sinatra'
7
7
  gem 'vegas'
8
+ gem 'activesupport', '>=2.3.12'
8
9
 
9
10
  group :development do
10
11
  gem "bundler", "~> 1.0.0"
@@ -1,6 +1,7 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ activesupport (3.0.9)
4
5
  chronic (0.6.2)
5
6
  git (1.2.5)
6
7
  jeweler (1.6.4)
@@ -23,6 +24,7 @@ PLATFORMS
23
24
  ruby
24
25
 
25
26
  DEPENDENCIES
27
+ activesupport (>= 2.3.12)
26
28
  bundler (~> 1.0.0)
27
29
  chronic
28
30
  jeweler (~> 1.6.4)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
@@ -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.8"
8
+ s.version = "0.0.9"
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"]
@@ -67,6 +67,7 @@ Gem::Specification.new do |s|
67
67
  s.add_runtime_dependency(%q<rbtree>, [">= 0"])
68
68
  s.add_runtime_dependency(%q<sinatra>, [">= 0"])
69
69
  s.add_runtime_dependency(%q<vegas>, [">= 0"])
70
+ s.add_runtime_dependency(%q<activesupport>, [">= 2.3.12"])
70
71
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
71
72
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
72
73
  s.add_development_dependency(%q<rcov>, [">= 0"])
@@ -76,6 +77,7 @@ Gem::Specification.new do |s|
76
77
  s.add_dependency(%q<rbtree>, [">= 0"])
77
78
  s.add_dependency(%q<sinatra>, [">= 0"])
78
79
  s.add_dependency(%q<vegas>, [">= 0"])
80
+ s.add_dependency(%q<activesupport>, [">= 2.3.12"])
79
81
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
80
82
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
81
83
  s.add_dependency(%q<rcov>, [">= 0"])
@@ -86,6 +88,7 @@ Gem::Specification.new do |s|
86
88
  s.add_dependency(%q<rbtree>, [">= 0"])
87
89
  s.add_dependency(%q<sinatra>, [">= 0"])
88
90
  s.add_dependency(%q<vegas>, [">= 0"])
91
+ s.add_dependency(%q<activesupport>, [">= 2.3.12"])
89
92
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
90
93
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
91
94
  s.add_dependency(%q<rcov>, [">= 0"])
@@ -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.new_offset(0).to_i
120
- stop = array.last.created_at.new_offset(0).to_i
119
+ start = array.first.created_at.utc.to_i
120
+ stop = array.last.created_at.utc.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.new_offset(0).to_i
128
+ val = o.created_at.utc.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: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh Symonds
@@ -89,8 +89,24 @@ dependencies:
89
89
  version_requirements: *id005
90
90
  prerelease: false
91
91
  - !ruby/object:Gem::Dependency
92
- type: :development
92
+ type: :runtime
93
93
  requirement: &id006 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ hash: 27
99
+ segments:
100
+ - 2
101
+ - 3
102
+ - 12
103
+ version: 2.3.12
104
+ name: activesupport
105
+ version_requirements: *id006
106
+ prerelease: false
107
+ - !ruby/object:Gem::Dependency
108
+ type: :development
109
+ requirement: &id007 !ruby/object:Gem::Requirement
94
110
  none: false
95
111
  requirements:
96
112
  - - ~>
@@ -102,11 +118,11 @@ dependencies:
102
118
  - 0
103
119
  version: 1.0.0
104
120
  name: bundler
105
- version_requirements: *id006
121
+ version_requirements: *id007
106
122
  prerelease: false
107
123
  - !ruby/object:Gem::Dependency
108
124
  type: :development
109
- requirement: &id007 !ruby/object:Gem::Requirement
125
+ requirement: &id008 !ruby/object:Gem::Requirement
110
126
  none: false
111
127
  requirements:
112
128
  - - ~>
@@ -118,11 +134,11 @@ dependencies:
118
134
  - 4
119
135
  version: 1.6.4
120
136
  name: jeweler
121
- version_requirements: *id007
137
+ version_requirements: *id008
122
138
  prerelease: false
123
139
  - !ruby/object:Gem::Dependency
124
140
  type: :development
125
- requirement: &id008 !ruby/object:Gem::Requirement
141
+ requirement: &id009 !ruby/object:Gem::Requirement
126
142
  none: false
127
143
  requirements:
128
144
  - - ">="
@@ -132,7 +148,7 @@ dependencies:
132
148
  - 0
133
149
  version: "0"
134
150
  name: rcov
135
- version_requirements: *id008
151
+ version_requirements: *id009
136
152
  prerelease: false
137
153
  description: AllSeeingEye observes all requests, with parameters that you specify, to Redis. Then it composes them into graphs for you to see.
138
154
  email: veraticus@gmail.com