statsdserver 0.11 → 0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/statsdserver/output/amqp.rb +4 -3
  2. metadata +86 -94
@@ -16,11 +16,11 @@ class StatsdServer::Output
16
16
  end
17
17
 
18
18
  if opts["exchange_type"].nil?
19
- raise ArgumentError, "missing host in [output:tcp] config section"
19
+ raise ArgumentError, "missing host in [output:amqp] config section"
20
20
  end
21
21
 
22
22
  if opts["exchange_name"].nil?
23
- raise ArgumentError, "missing port in [output:tcp] config section"
23
+ raise ArgumentError, "missing port in [output:amqp] config section"
24
24
  end
25
25
 
26
26
  @opts = opts
@@ -44,7 +44,8 @@ class StatsdServer::Output
44
44
 
45
45
  private
46
46
  def connect
47
- bunny = Bunny.new(@opts)
47
+ opts_sym = Hash[@opts.map { |k,v| [k.to_sym,v] }]
48
+ bunny = Bunny.new(opts_sym)
48
49
  bunny.start
49
50
 
50
51
  exchange = bunny.exchange(
metadata CHANGED
@@ -1,101 +1,103 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: statsdserver
3
- version: !ruby/object:Gem::Version
4
- hash: 29
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.12'
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 11
9
- version: "0.11"
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Pete Fritchman
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2013-02-25 00:00:00 -05:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2013-02-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: bundler
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
32
22
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: daemons
36
23
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: daemons
32
+ requirement: !ruby/object:Gem::Requirement
38
33
  none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
- version: "0"
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
46
38
  type: :runtime
47
- version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- name: eventmachine
50
39
  prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: eventmachine
48
+ requirement: !ruby/object:Gem::Requirement
52
49
  none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- hash: 3
57
- segments:
58
- - 0
59
- version: "0"
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
60
54
  type: :runtime
61
- version_requirements: *id003
62
- - !ruby/object:Gem::Dependency
63
- name: parseconfig
64
55
  prerelease: false
65
- requirement: &id004 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
66
57
  none: false
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- hash: 3
71
- segments:
72
- - 0
73
- version: "0"
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: parseconfig
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
74
70
  type: :runtime
75
- version_requirements: *id004
76
- - !ruby/object:Gem::Dependency
77
- name: sysexits
78
71
  prerelease: false
79
- requirement: &id005 !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
80
73
  none: false
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- hash: 3
85
- segments:
86
- - 0
87
- version: "0"
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: sysexits
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
88
86
  type: :runtime
89
- version_requirements: *id005
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
90
94
  description: collect and aggregate stats, flush to graphite
91
95
  email: petef@databits.net
92
- executables:
96
+ executables:
93
97
  - statsd
94
98
  extensions: []
95
-
96
99
  extra_rdoc_files: []
97
-
98
- files:
100
+ files:
99
101
  - lib/statsdserver.rb
100
102
  - lib/statsdserver/input/zeromq.rb
101
103
  - lib/statsdserver/input/udp.rb
@@ -107,40 +109,30 @@ files:
107
109
  - lib/statsdserver/output/stdout.rb
108
110
  - lib/statsdserver/output/tcp.rb
109
111
  - bin/statsd
110
- has_rdoc: true
111
112
  homepage: https://github.com/fetep/ruby-statsdserver
112
- licenses:
113
+ licenses:
113
114
  - Apache License 2.0
114
115
  post_install_message:
115
116
  rdoc_options: []
116
-
117
- require_paths:
117
+ require_paths:
118
118
  - lib
119
119
  - lib
120
- required_ruby_version: !ruby/object:Gem::Requirement
120
+ required_ruby_version: !ruby/object:Gem::Requirement
121
121
  none: false
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- hash: 3
126
- segments:
127
- - 0
128
- version: "0"
129
- required_rubygems_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
127
  none: false
131
- requirements:
132
- - - ">="
133
- - !ruby/object:Gem::Version
134
- hash: 3
135
- segments:
136
- - 0
137
- version: "0"
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
138
132
  requirements: []
139
-
140
133
  rubyforge_project:
141
- rubygems_version: 1.6.0
134
+ rubygems_version: 1.8.24
142
135
  signing_key:
143
136
  specification_version: 3
144
137
  summary: statsd (server) -- stat collector/aggregator
145
138
  test_files: []
146
-