munin-ruby 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -2
- data/README.md +1 -1
- data/Rakefile +1 -0
- data/lib/munin-ruby/node.rb +2 -2
- data/lib/munin-ruby/version.rb +1 -1
- data/spec/parser_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +6 -5
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -156,7 +156,7 @@ Output:
|
|
156
156
|
|
157
157
|
## License
|
158
158
|
|
159
|
-
Copyright
|
159
|
+
Copyright (c) 2011-2012 Dan Sosedoff.
|
160
160
|
|
161
161
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
162
162
|
|
data/Rakefile
CHANGED
data/lib/munin-ruby/node.rb
CHANGED
@@ -50,8 +50,8 @@ module Munin
|
|
50
50
|
|
51
51
|
# Get a list of all available metrics
|
52
52
|
#
|
53
|
-
def list(node =
|
54
|
-
cache "list_#{node
|
53
|
+
def list(node = "")
|
54
|
+
cache "list_#{node.empty? ? 'default' : node}" do
|
55
55
|
connection.send_data("list #{node}")
|
56
56
|
if ( line = connection.read_line ) != "."
|
57
57
|
line.split
|
data/lib/munin-ruby/version.rb
CHANGED
data/spec/parser_spec.rb
CHANGED
@@ -22,6 +22,6 @@ describe Munin::Parser do
|
|
22
22
|
c['graph'].should be_a Hash
|
23
23
|
c['graph']['args']['raw'].should == '--base 1024 -l 0 --upper-limit 16175665152'
|
24
24
|
c['graph']['args']['parsed'].keys.should == %w(base l upper-limit)
|
25
|
-
c['metrics'].should
|
25
|
+
c['metrics'].should be_a Hash
|
26
26
|
end
|
27
27
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: munin-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
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:
|
12
|
+
date: 2012-04-15 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &2165744280 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '2.6'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2165744280
|
25
25
|
description: Munin Node client
|
26
26
|
email: dan.sosedoff@gmail.com
|
27
27
|
executables: []
|
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
version: '0'
|
68
68
|
requirements: []
|
69
69
|
rubyforge_project:
|
70
|
-
rubygems_version: 1.8.
|
70
|
+
rubygems_version: 1.8.15
|
71
71
|
signing_key:
|
72
72
|
specification_version: 3
|
73
73
|
summary: Ruby client library to communicate with munin-node servers
|
@@ -79,3 +79,4 @@ test_files:
|
|
79
79
|
- spec/node_spec.rb
|
80
80
|
- spec/parser_spec.rb
|
81
81
|
- spec/spec_helper.rb
|
82
|
+
has_rdoc:
|