check-taskr 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/check-taskr +1 -1
- data/jobs.rb +4 -4
- data/lib/check-taskr/app.rb +9 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.4
|
data/bin/check-taskr
CHANGED
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
|
-
|
21
|
-
|
22
|
-
|
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
|
data/lib/check-taskr/app.rb
CHANGED
@@ -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
|
-
-
|
9
|
-
version: 1.1.
|
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-
|
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
|