exception_notification_server 0.0.6 → 0.0.7

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: 1d91190705296384686a2e365059b1366c1127ff
4
- data.tar.gz: 410efc3334fc8e7e971e85514cdecc4fb19f04e2
3
+ metadata.gz: d3cb427fdedc0b8ad8e5d3780659cc9e57a24c43
4
+ data.tar.gz: 2a33734b1854bc39b62096c160d3ca9fe99cd24c
5
5
  SHA512:
6
- metadata.gz: 770675e60f4deaf18c43386fa7e163b82c3930a7a1d355763c0fa3df160aa5e9986fbea57b8ab4064cb82fd8447c8df3357a9cea52fc056fe20c72233d1db240
7
- data.tar.gz: 6781008c55d638913d83af36dbe5afa1f866e913abdb0768e14fecfe148c1fb72294ec99479e3811397010aa7d568bfb68147d063123af473d56c4d3d5cb7aa7
6
+ metadata.gz: 6a5b58a48c53b3fbf9a1ebc063dec10cc2f13cf0a53dc27329e6c7ed015a9c43e1e004936d748ad9be5f2aa9e18f0347489622185c8280301d54f9d9abc6400c
7
+ data.tar.gz: 8cb0c77255ea50cfe365fd0027e84c4c426e4db5248458287db8e1a5381dc7a09318da246a2ffe1bff74c1802575c3013295638595cec3d7e92c827348bfa900
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.7
@@ -73,7 +73,7 @@ module ExceptionNotificationServer
73
73
 
74
74
  def graph_data(from)
75
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] += 1 if notification.created_at >= from }
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
77
  result[created_at.beginning_of_day.to_i * 1000] += 1 if created_at >= from
78
78
  result
79
79
  end
@@ -1,3 +1,3 @@
1
1
  module ExceptionNotificationServer
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exception_notification_server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anatoliy Varanitsa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-27 00:00:00.000000000 Z
11
+ date: 2015-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails