smarta 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/smarta.rb +4 -3
  2. data/lib/smarta/version.rb +1 -1
  3. metadata +2 -2
@@ -35,15 +35,15 @@ class Sensor
35
35
  end
36
36
 
37
37
  def info(title, msg)
38
- @sock.send("sensor/p 1 ##{@name}\n#{title}\n\n#{msg}", 0)
38
+ @sock.send("sensor/$#{@name}$ 1 ##{@name}\n#{title}\n\n#{msg}", 0)
39
39
  end
40
40
 
41
41
  def warn(title, msg)
42
- @sock.send("sensor/p 2 ##{@name} WARNING\n#{title}\n\n#{msg}", 0)
42
+ @sock.send("sensor/$#{@name}$ 2 ##{@name} WARNING\n#{title}\n\n#{msg}", 0)
43
43
  end
44
44
 
45
45
  def crit(title, msg)
46
- @sock.send("sensor/p 3 ##{@name} CRITICAL\n#{title}\n\n#{msg}", 0)
46
+ @sock.send("sensor/$#{@name}$ 3 ##{@name} CRITICAL\n#{title}\n\n#{msg}", 0)
47
47
  end
48
48
 
49
49
  def inspect
@@ -53,3 +53,4 @@ class Sensor
53
53
  end
54
54
 
55
55
  end
56
+
@@ -1,3 +1,3 @@
1
1
  module Smarta
2
- VERSION = "0.3"
2
+ VERSION = "0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smarta
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.4'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-12 00:00:00.000000000Z
12
+ date: 2011-12-14 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Ruby smarta sensor
15
15
  email: ery.lee@gmail.com