exception_notification_server 0.0.8 → 0.0.9
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdf7dd85b96c0af4445234c37c196085b06b556d
|
4
|
+
data.tar.gz: 4da01ca38bba315f646d8424f37e0d329183aa17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f5ac7cb9d06ff34e9266e953b41099078ae7dc3c43d622a524ae484aec6b31e6b38858e33d0a8b63f92e0ac03b238ab77cdf152d8915569d024f5619f64409b
|
7
|
+
data.tar.gz: 38826b2fe214e71432b1c39034b23a548bff27dd682d26094246bad1759fc2e60792debd00c8ad07f9e846ad46d466e90a33d1d6e998e52cd970339476abdf4e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
@@ -72,9 +72,9 @@ module ExceptionNotificationServer
|
|
72
72
|
protected
|
73
73
|
|
74
74
|
def graph_data(from)
|
75
|
-
result = from.to_datetime.step(Time.zone.now.to_datetime, 1).map { |time| [time.beginning_of_day.to_i * 1000, 0] }.to_h
|
76
|
-
childrens.each { |notification| result[notification.created_at.beginning_of_day.to_i * 1000] = result[notification.created_at.beginning_of_day.to_i * 1000].to_i + 1 if notification.created_at >= from }
|
77
|
-
result[created_at.beginning_of_day.to_i * 1000] = result[created_at.beginning_of_day.to_i * 1000].to_i + 1 if created_at >= from
|
75
|
+
result = from.to_datetime.step(Time.zone.now.to_datetime, 1).map { |time| [time.utc.beginning_of_day.to_i * 1000, 0] }.to_h
|
76
|
+
childrens.each { |notification| result[notification.created_at.utc.beginning_of_day.to_i * 1000] = result[notification.created_at.utc.beginning_of_day.to_i * 1000].to_i + 1 if notification.created_at >= from }
|
77
|
+
result[created_at.utc.beginning_of_day.to_i * 1000] = result[created_at.beginning_of_day.utc.to_i * 1000].to_i + 1 if created_at >= from
|
78
78
|
result
|
79
79
|
end
|
80
80
|
|
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: exception_notification_server 0.0.
|
5
|
+
# stub: exception_notification_server 0.0.9 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = 'exception_notification_server'
|
9
|
-
s.version = '0.0.
|
9
|
+
s.version = '0.0.9'
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ['lib']
|
13
13
|
s.authors = ['Anatoliy Varanitsa']
|
14
|
-
s.date = '2015-
|
14
|
+
s.date = '2015-11-23'
|
15
15
|
s.description = 'Gem that receive errors from exception_notification gem and show it grouped on pages'
|
16
16
|
s.email = 'Prizrack13@mail.ru'
|
17
17
|
s.extra_rdoc_files = [
|