metriksd 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/metriksd.rb CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Metriksd
3
- VERSION = '0.5.2'
3
+ VERSION = '0.5.3'
4
4
  end
5
5
 
6
6
  require 'metriksd/cli'
@@ -51,7 +51,20 @@ module Metriksd
51
51
  end
52
52
 
53
53
  unless queue.empty?
54
- @queue.submit
54
+ attempts = 3
55
+
56
+ begin
57
+ @queue.submit
58
+ rescue => e
59
+ if attempts > 0
60
+ puts "Exception from librato metrics. retrying: #{e.class}: #{e.backtrace.join("\n\t")}"
61
+ sleep attempts + 1
62
+ attempts -= 1
63
+ retry
64
+ else
65
+ puts "Exception from librato metrics. dropping: #{e.class}: #{e.backtrace.join("\n\t")}"
66
+ end
67
+ end
55
68
  end
56
69
  end
57
70
 
data/metriksd.gemspec CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'metriksd'
16
- s.version = '0.5.2'
17
- s.date = '2012-12-05'
16
+ s.version = '0.5.3'
17
+ s.date = '2013-01-27'
18
18
 
19
19
  ## Make sure your summary is short. The description may be as long
20
20
  ## as you like.
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 2
9
- version: 0.5.2
8
+ - 3
9
+ version: 0.5.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Eric Lindvall
@@ -14,13 +14,12 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-12-05 00:00:00 -08:00
17
+ date: 2013-01-27 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- name: librato-metrics
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
21
+ type: :runtime
22
+ version_requirements: &id001 !ruby/object:Gem::Requirement
24
23
  requirements:
25
24
  - - ">="
26
25
  - !ruby/object:Gem::Version
@@ -34,12 +33,12 @@ dependencies:
34
33
  - 2
35
34
  - 0
36
35
  version: "2.0"
37
- type: :runtime
38
- version_requirements: *id001
39
- - !ruby/object:Gem::Dependency
40
- name: msgpack
36
+ name: librato-metrics
37
+ requirement: *id001
41
38
  prerelease: false
42
- requirement: &id002 !ruby/object:Gem::Requirement
39
+ - !ruby/object:Gem::Dependency
40
+ type: :runtime
41
+ version_requirements: &id002 !ruby/object:Gem::Requirement
43
42
  requirements:
44
43
  - - ~>
45
44
  - !ruby/object:Gem::Version
@@ -47,36 +46,36 @@ dependencies:
47
46
  - 0
48
47
  - 4
49
48
  version: "0.4"
50
- type: :runtime
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: snappy
49
+ name: msgpack
50
+ requirement: *id002
54
51
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
52
+ - !ruby/object:Gem::Dependency
53
+ type: :runtime
54
+ version_requirements: &id003 !ruby/object:Gem::Requirement
56
55
  requirements:
57
56
  - - ">="
58
57
  - !ruby/object:Gem::Version
59
58
  segments:
60
59
  - 0
61
60
  version: "0"
62
- type: :runtime
63
- version_requirements: *id003
64
- - !ruby/object:Gem::Dependency
65
- name: activesupport
61
+ name: snappy
62
+ requirement: *id003
66
63
  prerelease: false
67
- requirement: &id004 !ruby/object:Gem::Requirement
64
+ - !ruby/object:Gem::Dependency
65
+ type: :runtime
66
+ version_requirements: &id004 !ruby/object:Gem::Requirement
68
67
  requirements:
69
68
  - - ">="
70
69
  - !ruby/object:Gem::Version
71
70
  segments:
72
71
  - 0
73
72
  version: "0"
74
- type: :runtime
75
- version_requirements: *id004
76
- - !ruby/object:Gem::Dependency
77
- name: eventmachine
73
+ name: activesupport
74
+ requirement: *id004
78
75
  prerelease: false
79
- requirement: &id005 !ruby/object:Gem::Requirement
76
+ - !ruby/object:Gem::Dependency
77
+ type: :runtime
78
+ version_requirements: &id005 !ruby/object:Gem::Requirement
80
79
  requirements:
81
80
  - - ~>
82
81
  - !ruby/object:Gem::Version
@@ -84,20 +83,21 @@ dependencies:
84
83
  - 1
85
84
  - 0
86
85
  version: "1.0"
87
- type: :runtime
88
- version_requirements: *id005
89
- - !ruby/object:Gem::Dependency
90
- name: metriksd_reporter
86
+ name: eventmachine
87
+ requirement: *id005
91
88
  prerelease: false
92
- requirement: &id006 !ruby/object:Gem::Requirement
89
+ - !ruby/object:Gem::Dependency
90
+ type: :development
91
+ version_requirements: &id006 !ruby/object:Gem::Requirement
93
92
  requirements:
94
93
  - - ">="
95
94
  - !ruby/object:Gem::Version
96
95
  segments:
97
96
  - 0
98
97
  version: "0"
99
- type: :development
100
- version_requirements: *id006
98
+ name: metriksd_reporter
99
+ requirement: *id006
100
+ prerelease: false
101
101
  description: ""
102
102
  email: eric@sevenscale.com
103
103
  executables: