drone_collectd 1.0.4 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -68,7 +68,7 @@ module Drone
68
68
  data.add_value(:gauge, m.five_minutes_rate )
69
69
  data.add_value(:gauge, m.fifteen_minutes_rate )
70
70
 
71
- when Metrics::Timer
71
+ when Metrics::Timer, Metrics::Histogram
72
72
  # min:GAUGE:0:U, max:GAUGE:0:U, mean:GAUGE:0:U, stddev:GAUGE:U:U, median:GAUGE:0:U, p75:GAUGE:0:U, p95:GAUGE:0:U
73
73
  data.add_value(:gauge, m.min )
74
74
  data.add_value(:gauge, m.max )
data/specs/common.rb CHANGED
@@ -1,63 +1,3 @@
1
- $:.reject! { |e| e.include? 'TextMate' }
2
-
3
- require 'rubygems'
4
-
5
- puts "Testing with ruby #{RUBY_VERSION} and rubygems #{Gem::VERSION}"
6
-
7
- require 'bundler/setup'
8
-
9
- if (RUBY_VERSION >= "1.9") && ENV['COVERAGE']
10
- require 'simplecov'
11
- ROOT = File.expand_path('../../', __FILE__)
12
-
13
- puts "[[ SimpleCov enabled ]]"
14
-
15
- SimpleCov.start do
16
- add_filter '/gems/'
17
- add_filter '/specs/'
18
-
19
- root(ROOT)
20
- end
21
- end
22
-
23
- require 'bacon'
24
- require 'mocha'
25
- require 'delorean'
26
- require 'em-spec/bacon'
27
- EM.spec_backend = EventMachine::Spec::Bacon
1
+ require File.expand_path('../../../../specs/common', __FILE__)
28
2
 
29
3
  $LOAD_PATH << File.expand_path('../../lib', __FILE__)
30
-
31
- module Bacon
32
- module MochaRequirementsCounter
33
- def self.increment
34
- Counter[:requirements] += 1
35
- end
36
- end
37
-
38
- class Context
39
- include Mocha::API
40
-
41
- alias_method :it_before_mocha, :it
42
-
43
- def it(description)
44
- it_before_mocha(description) do
45
- begin
46
- mocha_setup
47
- yield
48
- mocha_verify(MochaRequirementsCounter)
49
- rescue Mocha::ExpectationError => e
50
- raise Error.new(:failed, "#{e.message}\n#{e.backtrace[0...10].join("\n")}")
51
- ensure
52
- mocha_teardown
53
- end
54
- end
55
- end
56
- end
57
- end
58
-
59
- def focus(test_label)
60
- Bacon.const_set(:RestrictName, %r{#{test_label}})
61
- end
62
-
63
- Bacon.summary_on_exit()
metadata CHANGED
@@ -1,104 +1,99 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: drone_collectd
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.7
4
5
  prerelease:
5
- version: 1.0.4
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Julien Ammous
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-05-09 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2011-11-07 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: drone
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70205284022300 !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
18
+ requirements:
21
19
  - - ~>
22
- - !ruby/object:Gem::Version
23
- version: 1.0.2
20
+ - !ruby/object:Gem::Version
21
+ version: 1.0.4
24
22
  type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: eventmachine
28
23
  prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70205284022300
25
+ - !ruby/object:Gem::Dependency
26
+ name: eventmachine
27
+ requirement: &70205284021800 !ruby/object:Gem::Requirement
30
28
  none: false
31
- requirements:
29
+ requirements:
32
30
  - - ~>
33
- - !ruby/object:Gem::Version
31
+ - !ruby/object:Gem::Version
34
32
  version: 0.12.10
35
33
  type: :runtime
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: mocha
39
34
  prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70205284021800
36
+ - !ruby/object:Gem::Dependency
37
+ name: mocha
38
+ requirement: &70205284021400 !ruby/object:Gem::Requirement
41
39
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
46
44
  type: :development
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
49
- name: bacon
50
45
  prerelease: false
51
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *70205284021400
47
+ - !ruby/object:Gem::Dependency
48
+ name: bacon
49
+ requirement: &70205284020880 !ruby/object:Gem::Requirement
52
50
  none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
57
55
  type: :development
58
- version_requirements: *id004
59
- - !ruby/object:Gem::Dependency
60
- name: schmurfy-em-spec
61
56
  prerelease: false
62
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *70205284020880
58
+ - !ruby/object:Gem::Dependency
59
+ name: schmurfy-em-spec
60
+ requirement: &70205284020360 !ruby/object:Gem::Requirement
63
61
  none: false
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
68
66
  type: :development
69
- version_requirements: *id005
70
- - !ruby/object:Gem::Dependency
71
- name: delorean
72
67
  prerelease: false
73
- requirement: &id006 !ruby/object:Gem::Requirement
68
+ version_requirements: *70205284020360
69
+ - !ruby/object:Gem::Dependency
70
+ name: delorean
71
+ requirement: &70205284019800 !ruby/object:Gem::Requirement
74
72
  none: false
75
- requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- version: "0"
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
79
77
  type: :development
80
- version_requirements: *id006
81
- - !ruby/object:Gem::Dependency
82
- name: simplecov
83
78
  prerelease: false
84
- requirement: &id007 !ruby/object:Gem::Requirement
79
+ version_requirements: *70205284019800
80
+ - !ruby/object:Gem::Dependency
81
+ name: simplecov
82
+ requirement: &70205284019200 !ruby/object:Gem::Requirement
85
83
  none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: "0"
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
90
88
  type: :development
91
- version_requirements: *id007
89
+ prerelease: false
90
+ version_requirements: *70205284019200
92
91
  description: Collectd Interface for Drone
93
92
  email: []
94
-
95
93
  executables: []
96
-
97
94
  extensions: []
98
-
99
95
  extra_rdoc_files: []
100
-
101
- files:
96
+ files:
102
97
  - LICENSE
103
98
  - README.md
104
99
  - lib/drone_collectd/collectd.rb
@@ -113,35 +108,33 @@ files:
113
108
  - specs/common.rbc
114
109
  - specs/unit/parser_spec.rb
115
110
  - specs/unit/parser_spec.rbc
116
- homepage: ""
111
+ homepage: ''
117
112
  licenses: []
118
-
119
113
  post_install_message:
120
114
  rdoc_options: []
121
-
122
- require_paths:
115
+ require_paths:
123
116
  - lib
124
- required_ruby_version: !ruby/object:Gem::Requirement
117
+ required_ruby_version: !ruby/object:Gem::Requirement
125
118
  none: false
126
- requirements:
127
- - - ">="
128
- - !ruby/object:Gem::Version
129
- version: "0"
130
- required_rubygems_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ! '>='
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
124
  none: false
132
- requirements:
133
- - - ">="
134
- - !ruby/object:Gem::Version
135
- version: "0"
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
136
129
  requirements: []
137
-
138
130
  rubyforge_project: drone_collectd
139
- rubygems_version: 1.8.1
131
+ rubygems_version: 1.8.11
140
132
  signing_key:
141
133
  specification_version: 3
142
134
  summary: Drone Collectd Interface
143
- test_files:
135
+ test_files:
144
136
  - specs/common.rb
145
137
  - specs/common.rbc
146
138
  - specs/unit/parser_spec.rb
147
139
  - specs/unit/parser_spec.rbc
140
+ has_rdoc: