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: f291da70e6ae59e8805ce547b4a8295e71395ec9
4
- data.tar.gz: 61dcd944e20fcef02eec24f4cdcd02810682b9fc
3
+ metadata.gz: bdf7dd85b96c0af4445234c37c196085b06b556d
4
+ data.tar.gz: 4da01ca38bba315f646d8424f37e0d329183aa17
5
5
  SHA512:
6
- metadata.gz: 6a0863532be0f4ac727067c23775d392404f2da4fd49416ee7ea9fd0be60acadfeb4f79b48bd83a1cb5d313d64e880a62d5566517b463e76fbc862ccd656f228
7
- data.tar.gz: a93507913b8b0168c8d1cbd4521e8114de2a3cd4a752956d83deffb641ae757a89566bb443751a652fd9e34fc8125a84713a986f38e39f71c73f65272b1b0991
6
+ metadata.gz: 9f5ac7cb9d06ff34e9266e953b41099078ae7dc3c43d622a524ae484aec6b31e6b38858e33d0a8b63f92e0ac03b238ab77cdf152d8915569d024f5619f64409b
7
+ data.tar.gz: 38826b2fe214e71432b1c39034b23a548bff27dd682d26094246bad1759fc2e60792debd00c8ad07f9e846ad46d466e90a33d1d6e998e52cd970339476abdf4e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
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.6 ruby lib
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.6'
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-10-27'
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 = [
@@ -1,3 +1,3 @@
1
1
  module ExceptionNotificationServer
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exception_notification_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatoliy Varanitsa