notifyme 1.1.1 → 1.1.2

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/notifyme/start.rb +3 -2
  2. metadata +53 -63
  3. data/CHANGELOG +0 -5
@@ -1,7 +1,7 @@
1
1
  module NotifyMe
2
2
 
3
- VERSION = '1.1.1'
4
- DEFAULT_CONFIG_FILE = "#{ENV['HOME']}/.notifyme/notifyme_config.rb"
3
+ VERSION = '1.1.2'
4
+ DEFAULT_CONFIG_FILE = "/root/.notifyme/notifyme_config.rb"
5
5
 
6
6
  autoload :Task, 'notifyme/task'
7
7
  autoload :Log, 'notifyme/log'
@@ -207,6 +207,7 @@ end
207
207
  end
208
208
 
209
209
  def syslog_error(task_name, command, msg)
210
+ Syslog.close if Syslog.opened?
210
211
  Syslog.open 'notifyme', Syslog::LOG_NDELAY, Syslog::LOG_USER
211
212
  Syslog.log Syslog::LOG_ERR, "[#{Time.new.to_s}] #{task_name} # #{command} : #{msg}"
212
213
  Syslog.close
metadata CHANGED
@@ -1,109 +1,99 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: notifyme
3
- version: !ruby/object:Gem::Version
4
- version: 1.1.1
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 1.1.2
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - xianhua.zhou
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-15 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
12
+
13
+ date: 2013-01-15 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
15
16
  name: daemons
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: 1.1.0
22
- type: :runtime
23
17
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
18
+ requirement: &id001 !ruby/object:Gem::Requirement
25
19
  none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
29
23
  version: 1.1.0
30
- - !ruby/object:Gem::Dependency
31
- name: json_pure
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: 1.4.2
38
24
  type: :runtime
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: json_pure
39
28
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
29
+ requirement: &id002 !ruby/object:Gem::Requirement
41
30
  none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
45
34
  version: 1.4.2
46
- - !ruby/object:Gem::Dependency
47
- name: http_request.rb
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: 1.1.13
54
35
  type: :runtime
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: http_request.rb
55
39
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
40
+ requirement: &id003 !ruby/object:Gem::Requirement
57
41
  none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
61
45
  version: 1.1.13
62
- description: NotifyMe takes care more than one tasks and process their results for
63
- you, it's similar to *NIX's cronjob.
46
+ type: :runtime
47
+ version_requirements: *id003
48
+ description: NotifyMe takes care more than one tasks and process their results for you, it's similar to *NIX's cronjob but can do more.
64
49
  email: xianhua.zhou@gmail.com
65
- executables:
50
+ executables:
66
51
  - notifyme_daemon
67
52
  - notifyme
68
53
  extensions: []
54
+
69
55
  extra_rdoc_files: []
70
- files:
71
- - lib/vendor/smtp_add_tls_support.rb
72
- - lib/notifyme/check.rb
73
- - lib/notifyme/log/file.rb
56
+
57
+ files:
58
+ - lib/notifyme.rb
59
+ - lib/notifyme/log.rb
74
60
  - lib/notifyme/log/mail.rb
75
61
  - lib/notifyme/log/stdout.rb
76
- - lib/notifyme/log.rb
62
+ - lib/notifyme/log/file.rb
77
63
  - lib/notifyme/start.rb
64
+ - lib/notifyme/check.rb
78
65
  - lib/notifyme/task.rb
79
- - lib/notifyme.rb
80
- - CHANGELOG
66
+ - lib/vendor/smtp_add_tls_support.rb
81
67
  - INSTALL
82
68
  - notifyme_config.rb
83
69
  - bin/notifyme_daemon
84
70
  - bin/notifyme
85
71
  homepage: http://github.com/xianhuazhou/NotifyMe
86
72
  licenses: []
73
+
87
74
  post_install_message:
88
75
  rdoc_options: []
89
- require_paths:
76
+
77
+ require_paths:
90
78
  - lib
91
- required_ruby_version: !ruby/object:Gem::Requirement
79
+ required_ruby_version: !ruby/object:Gem::Requirement
92
80
  none: false
93
- requirements:
94
- - - ! '>='
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- required_rubygems_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: "0"
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
86
  none: false
99
- requirements:
100
- - - ! '>='
101
- - !ruby/object:Gem::Version
102
- version: '0'
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: "0"
103
91
  requirements: []
92
+
104
93
  rubyforge_project: notifyme
105
94
  rubygems_version: 1.8.24
106
95
  signing_key:
107
96
  specification_version: 3
108
97
  summary: It's a kind of cronjob.
109
98
  test_files: []
99
+
data/CHANGELOG DELETED
@@ -1,5 +0,0 @@
1
- v0.2
2
- auto restart the service by the restart_command if it's failed
3
-
4
- v0.1-dev
5
- the first dev-version.