airbrake_tools 1.0.3 → 1.0.4

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 60c8a85763a48a82f351a2676f27b93cf35531b1
4
+ data.tar.gz: 9ca5f913fe9b0c71906205b3e094f13bb01ce96d
5
+ SHA512:
6
+ metadata.gz: dd591d63c546aabec69a7397eb5d92258ff61a9d74ce4ca3b3e2f7d27345e7e3acc24d12fe2546000f6f7b8df1aff8fedf351360cdbfda90f0837f29e7f918b2
7
+ data.tar.gz: 9a4a336576e653f1dd71c1dfbd7568bd51ae45dd229950618a9686a2ab71378ee496274b4a4697b669944d3c6366e5a91d514c9f660f4facf1f73444ab6fab4a
data/Gemfile.lock CHANGED
@@ -1,27 +1,27 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- airbrake_tools (1.0.3)
4
+ airbrake_tools (1.0.4)
5
5
  airbrake-api (>= 4.5.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- airbrake-api (4.5.1)
10
+ airbrake-api (4.6.0)
11
11
  faraday_middleware
12
12
  hashie
13
13
  multi_xml
14
14
  parallel
15
15
  bump (0.3.8)
16
16
  diff-lcs (1.1.3)
17
- faraday (0.8.8)
17
+ faraday (0.8.9)
18
18
  multipart-post (~> 1.2.0)
19
19
  faraday_middleware (0.9.0)
20
20
  faraday (>= 0.7.4, < 0.9)
21
21
  hashie (2.0.5)
22
22
  multi_xml (0.5.5)
23
23
  multipart-post (1.2.0)
24
- parallel (0.9.0)
24
+ parallel (0.9.2)
25
25
  rake (0.9.2.2)
26
26
  rspec (2.11.0)
27
27
  rspec-core (~> 2.11.0)
@@ -1,3 +1,3 @@
1
1
  module AirbrakeTools
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
@@ -216,7 +216,8 @@ module AirbrakeTools
216
216
 
217
217
  def sparkline_data(notices, options)
218
218
  last = notices.last.created_at
219
- now = Time.now
219
+ now = notices.map(&:created_at).push(Time.now).max # adjust now if airbrakes clock is going too fast
220
+
220
221
  Array.new(options[:slots]).each_with_index.map do |_, i|
221
222
  slot_end = now - (i * options[:interval])
222
223
  slot_start = slot_end - 1 * options[:interval]
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrake_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
5
- prerelease:
4
+ version: 1.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jonathan Cheatham
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-10-30 00:00:00.000000000 Z
11
+ date: 2014-02-06 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: airbrake-api
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 4.5.1
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 4.5.1
30
27
  description:
@@ -50,26 +47,25 @@ files:
50
47
  homepage: http://github.com/jcheatham/airbrake_tools
51
48
  licenses:
52
49
  - MIT
50
+ metadata: {}
53
51
  post_install_message:
54
52
  rdoc_options: []
55
53
  require_paths:
56
54
  - lib
57
55
  required_ruby_version: !ruby/object:Gem::Requirement
58
- none: false
59
56
  requirements:
60
- - - ! '>='
57
+ - - '>='
61
58
  - !ruby/object:Gem::Version
62
59
  version: '0'
63
60
  required_rubygems_version: !ruby/object:Gem::Requirement
64
- none: false
65
61
  requirements:
66
- - - ! '>='
62
+ - - '>='
67
63
  - !ruby/object:Gem::Version
68
64
  version: '0'
69
65
  requirements: []
70
66
  rubyforge_project:
71
- rubygems_version: 1.8.23
67
+ rubygems_version: 2.0.14
72
68
  signing_key:
73
- specification_version: 3
69
+ specification_version: 4
74
70
  summary: Power tools for Airbrake
75
71
  test_files: []