check-taskr 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.3
1
+ 1.1.4
@@ -17,7 +17,7 @@ filename = "jobs"
17
17
  logdir = "./logs"
18
18
  if ARGV.size > 0
19
19
  filename = ARGV[0]
20
- logdir = File.dirname(File.realdirpath(filename)) + "/logs"
20
+ logdir = File.dirname(filename) + "/logs"
21
21
  end
22
22
 
23
23
  log = Log4r::Logger.new('default')
data/jobs.rb CHANGED
@@ -16,8 +16,8 @@ JobsConfiguration.init(:port => 4899) do |check|
16
16
 
17
17
  # xmpp0004@mim.snda=f18f13ea13af3127ad06f194ebabe602
18
18
  # xmpp0003@mim.snda=778108e5e15a96b6e4becc9b59571414
19
- check.xmpp_chat "XMPP", :hosts => "test.mim.iccs.sdo.com", :port => 5222,
20
- :jid1 => "xmpp0004@mim.snda", :password1 => 'f18f13ea13af3127ad06f194ebabe602',
21
- :jid2 => "xmpp0003@mim.snda", :password2 => "778108e5e15a96b6e4becc9b59571414",
22
- :error_code => "32420001", :error_msg => "failed!"
19
+ #check.xmpp_chat "XMPP", :hosts => "test.mim.iccs.sdo.com", :port => 5222,
20
+ # :jid1 => "xmpp0004@mim.snda", :password1 => 'f18f13ea13af3127ad06f194ebabe602',
21
+ # :jid2 => "xmpp0003@mim.snda", :password2 => "778108e5e15a96b6e4becc9b59571414",
22
+ # :error_code => "32420001", :error_msg => "failed!"
23
23
  end
@@ -20,6 +20,11 @@ module CheckTaskr
20
20
  config.results.to_json
21
21
  end
22
22
 
23
+ get '/stats' do
24
+ config = CheckTaskr::JobsConfiguration.instance
25
+ config.results.to_json
26
+ end
27
+
23
28
  get '/lock' do
24
29
  config = CheckTaskr::JobsConfiguration.instance
25
30
  config.lock
@@ -32,6 +37,10 @@ module CheckTaskr
32
37
  redirect '/check.html'
33
38
  end
34
39
 
40
+ get '/stats.html' do
41
+ redirect '/check.html'
42
+ end
43
+
35
44
  get '/check.html' do
36
45
  config = CheckTaskr::JobsConfiguration.instance
37
46
  @result = config.results
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 3
9
- version: 1.1.3
8
+ - 4
9
+ version: 1.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - crazycode
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-17 00:00:00 +08:00
17
+ date: 2011-02-09 00:00:00 +08:00
18
18
  default_executable: check-taskr
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency