hobelar 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/hobelar.gemspec +1 -1
  2. data/lib/hobelar.rb +1 -2
  3. metadata +2 -2
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = "hobelar"
7
- s.version = "0.0.2"
7
+ s.version = "0.0.3"
8
8
 
9
9
  s.summary = "reconnoiter rest interface wrapper"
10
10
  s.description = "Hobelar talks to reconnoiter's noit rest interface"
@@ -28,7 +28,6 @@ class Hobelar
28
28
  def set_check(uuid, attrs, path=nil)
29
29
  p = path ? "/checks/set/#{path}/#{uuid}" : "/checks/set/#{uuid}"
30
30
  if (c = attrs.delete(:config))
31
- puts c
32
31
  config = "<config>"
33
32
  c.each_pair do |k,v|
34
33
  key = k.to_s.downcase
@@ -48,7 +47,7 @@ class Hobelar
48
47
  attributes += "</attributes>"
49
48
 
50
49
  body = "<?xml version=\"1.0\" encoding=\"utf8\"?><check>#{attributes}"
51
- body += config.nil? ? "<config/>" : config
50
+ body += config if config
52
51
  body += "</check>"
53
52
 
54
53
  request({:method=>"PUT", :path=>p, :body => body, :parser => Hobelar::Parsers::GetCheck.new})
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: hobelar
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thom May
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-29 00:00:00 +01:00
13
+ date: 2011-04-04 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency