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 CHANGED
@@ -30,6 +30,7 @@ auto-save-list
30
30
  coverage
31
31
  doc/
32
32
  lib/bundler/man
33
+ lib/test.rb
33
34
  pkg
34
35
  pkg/*
35
36
  rdoc
@@ -38,5 +39,4 @@ test/tmp
38
39
  test/version_tmp
39
40
  tmp
40
41
  tmtags
41
- tramp
42
- lib/test.rb
42
+ tramp
data/README.md CHANGED
@@ -156,7 +156,7 @@ Output:
156
156
 
157
157
  ## License
158
158
 
159
- Copyright © 2011 Dan Sosedoff.
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
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env rake
2
2
 
3
3
  require "bundler"
4
+ require "bundler/gem_tasks"
4
5
  require "rspec/core/rake_task"
5
6
 
6
7
  RSpec::Core::RakeTask.new(:spec) do |spec|
@@ -50,8 +50,8 @@ module Munin
50
50
 
51
51
  # Get a list of all available metrics
52
52
  #
53
- def list(node = nil)
54
- cache "list_#{node || 'default'}" do
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
@@ -1,5 +1,5 @@
1
1
  module Munin
2
2
  unless defined?(::Munin::VERSION)
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'
4
4
  end
5
5
  end
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 be_an Hash
25
+ c['metrics'].should be_a Hash
26
26
  end
27
27
  end
data/spec/spec_helper.rb CHANGED
@@ -7,5 +7,5 @@ def fixture_path
7
7
  end
8
8
 
9
9
  def fixture(file)
10
- File.read(fixture_path + '/' + file)
10
+ File.read(File.join(fixture_path, file))
11
11
  end
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.1
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: 2011-12-06 00:00:00.000000000Z
12
+ date: 2012-04-15 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &2164790540 !ruby/object:Gem::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: *2164790540
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.10
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: