servicemonitor 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/Alert/Email.rb CHANGED
@@ -10,18 +10,19 @@ class Alert_Email
10
10
 
11
11
  @smtp_address = ENV['smtp_address'].nil? ? 'localhost' : ENV['smtp_address']
12
12
  @smtp_port = ENV['smtp_port'].nil? ? 25 : ENV['smtp_port']
13
-
13
+
14
+ @destination = destination
14
15
  if destination.is_a? Array then
15
- @destination = "<#{destination.join( ">,<" )}>"
16
+ @destination_fmt = "<#{destination.join( ">,<" )}>"
16
17
  else
17
- @destination = destination
18
+ @destination_fmt = destination
18
19
  end
19
20
  end
20
21
 
21
22
  def Send
22
23
  message = <<MESSAGE_END
23
24
  From: #{ENV['APP_NAME']} #{@sender}
24
- To: #{@destination}
25
+ To: #{@destination_fmt}
25
26
  Subject: #{ENV['APP_NAME']} Alert
26
27
 
27
28
  #{@body}
@@ -40,4 +41,3 @@ rescue Errno::ECONNREFUSED => e
40
41
  puts string
41
42
  end
42
43
  end
43
-
@@ -18,6 +18,7 @@ class MonitorType_HttpGetJsonList<MonitorType_Threshold
18
18
  string = "#{string}*** :uri => <uri pointing to url to be monitored>"
19
19
  raise MonitorTypeParameterMissingError.new(string)
20
20
  end
21
+
21
22
  begin
22
23
  @uri = URI.parse( @params[:uri] )
23
24
  rescue URI::InvalidURIError=>e
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: servicemonitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.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: 2014-08-02 00:00:00.000000000 Z
12
+ date: 2014-08-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: parse-cron
16
- requirement: &70358851997620 !ruby/object:Gem::Requirement
16
+ requirement: &70226949112320 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70358851997620
24
+ version_requirements: *70226949112320
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: beanstalk-client
27
- requirement: &70358851986800 !ruby/object:Gem::Requirement
27
+ requirement: &70226949111700 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70358851986800
35
+ version_requirements: *70226949111700
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: fluiddb
38
- requirement: &70358851986080 !ruby/object:Gem::Requirement
38
+ requirement: &70226949111160 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,18 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70358851986080
46
+ version_requirements: *70226949111160
47
+ - !ruby/object:Gem::Dependency
48
+ name: rest-client
49
+ requirement: &70226949110260 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *70226949110260
47
58
  description: The fastest way to reliably monitor your system.
48
59
  email: guy@guyirvine.com
49
60
  executables: