hobelar 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/hobelar.gemspec +1 -1
- data/lib/hobelar.rb +1 -2
- metadata +2 -2
data/hobelar.gemspec
CHANGED
data/lib/hobelar.rb
CHANGED
@@ -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
|
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.
|
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-
|
13
|
+
date: 2011-04-04 00:00:00 +01:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|