nosey 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nosey/munin.rb +2 -2
- data/lib/nosey/report.rb +3 -1
- data/lib/nosey/version.rb +1 -1
- data/nosey.gemspec +1 -1
- data/spec/lib/eventmachine_spec.rb +3 -3
- data/spec/lib/nosey/report_spec.rb +1 -1
- metadata +21 -21
data/lib/nosey/munin.rb
CHANGED
data/lib/nosey/report.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'psych'
|
2
|
+
|
1
3
|
module Nosey
|
2
4
|
class Report
|
3
5
|
def initialize
|
@@ -37,7 +39,7 @@ module Nosey
|
|
37
39
|
# String representation of all the probe_sets that's suitable for
|
38
40
|
# flushing out over a socket.
|
39
41
|
def to_s
|
40
|
-
to_hash
|
42
|
+
Psych.dump to_hash
|
41
43
|
end
|
42
44
|
end
|
43
45
|
end
|
data/lib/nosey/version.rb
CHANGED
data/nosey.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
21
|
s.add_runtime_dependency "eventmachine"
|
22
|
-
s.add_runtime_dependency "
|
22
|
+
s.add_runtime_dependency "psych"
|
23
23
|
|
24
24
|
s.add_development_dependency 'rspec'
|
25
25
|
s.add_development_dependency 'guard-rspec'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
-
require '
|
2
|
+
require 'psych'
|
3
3
|
|
4
4
|
describe EventMachine::Nosey::SocketServer do
|
5
5
|
include EM::Ventually
|
@@ -25,7 +25,7 @@ describe EventMachine::Nosey::SocketServer do
|
|
25
25
|
}
|
26
26
|
socket.send_data("READ\nQUIT\n")
|
27
27
|
|
28
|
-
ly{2}.test{|count|
|
28
|
+
ly{2}.test{|count| Psych.load(@resp)['Group 0']['hit'] == count }
|
29
29
|
end
|
30
30
|
|
31
31
|
it "should reset report and read data with RESET command" do
|
@@ -45,6 +45,6 @@ describe EventMachine::Nosey::SocketServer do
|
|
45
45
|
}
|
46
46
|
}
|
47
47
|
|
48
|
-
ly{nil}.test{|count|
|
48
|
+
ly{nil}.test{|count| Psych.load(@r2)['Group 0']['hit'] == count }
|
49
49
|
end
|
50
50
|
end
|
@@ -24,6 +24,6 @@ describe Nosey::Report do
|
|
24
24
|
|
25
25
|
it "should generate report YML for string" do
|
26
26
|
# Spot check for a probe key
|
27
|
-
|
27
|
+
Psych.load(@report.to_s)['Group 2'].keys.should include('generated-at')
|
28
28
|
end
|
29
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nosey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-09-20 00:00:00.
|
12
|
+
date: 2011-09-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|
16
|
-
requirement: &
|
16
|
+
requirement: &70149600482360 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70149600482360
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
27
|
-
requirement: &
|
26
|
+
name: psych
|
27
|
+
requirement: &70149600481860 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70149600481860
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &70149600481280 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70149600481280
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: guard-rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &70149600480680 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70149600480680
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: guard-bundler
|
60
|
-
requirement: &
|
60
|
+
requirement: &70149600480000 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70149600480000
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: growl
|
71
|
-
requirement: &
|
71
|
+
requirement: &70149600479580 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70149600479580
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rb-fsevent
|
82
|
-
requirement: &
|
82
|
+
requirement: &70149600479160 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70149600479160
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: em-ventually
|
93
|
-
requirement: &
|
93
|
+
requirement: &70149600478560 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70149600478560
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: ruby-debug19
|
104
|
-
requirement: &
|
104
|
+
requirement: &70149600477960 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70149600477960
|
113
113
|
description: Nosey is a way to instrument your Evented Ruby applications to track
|
114
114
|
counts, aggregates, etc. It was built a Poll Everywhere because we need a way to
|
115
115
|
peer into our Evented apps and grab some basic statistics so that we could graph
|