omnibot 0.0.13 → 0.0.14
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/lib/omnibot/amqpconsumer.rb +1 -1
- data/lib/omnibot/version.rb +1 -1
- metadata +93 -62
data/lib/omnibot/amqpconsumer.rb
CHANGED
@@ -20,7 +20,7 @@ module OmniBot
|
|
20
20
|
|
21
21
|
def amqp_loop
|
22
22
|
AMQP.start do |connection|
|
23
|
-
OmniLog::info "Setup amqp gem #{AMQP::VERSION}, AMQP protocol #{
|
23
|
+
OmniLog::info "Setup amqp gem #{AMQP::VERSION}, AMQP protocol #{AMQ::Protocol::VERSION}..."
|
24
24
|
mq = AMQP::Channel.new(connection)
|
25
25
|
exchange = mq.direct(Helpers::amqp_exchange_name)
|
26
26
|
queue = mq.queue('', :exclusive => true).bind(exchange, :routing_key => Helpers::amqp_routing_key)
|
data/lib/omnibot/version.rb
CHANGED
metadata
CHANGED
@@ -1,80 +1,104 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: omnibot
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 14
|
10
|
+
version: 0.0.14
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- theirix
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2011-11-10 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
22
|
+
none: false
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
hash: 3
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
version: "0"
|
30
|
+
type: :runtime
|
31
|
+
requirement: *id001
|
32
|
+
prerelease: false
|
15
33
|
name: xmpp4r
|
16
|
-
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
17
36
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
hash: 3
|
41
|
+
segments:
|
42
|
+
- 0
|
43
|
+
version: "0"
|
22
44
|
type: :runtime
|
45
|
+
requirement: *id002
|
23
46
|
prerelease: false
|
24
|
-
version_requirements: *70201186655820
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
47
|
name: eventmachine
|
27
|
-
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
28
50
|
none: false
|
29
|
-
requirements:
|
30
|
-
- -
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
hash: 3
|
55
|
+
segments:
|
56
|
+
- 0
|
57
|
+
version: "0"
|
33
58
|
type: :runtime
|
59
|
+
requirement: *id003
|
34
60
|
prerelease: false
|
35
|
-
version_requirements: *70201186654920
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
61
|
name: mail
|
38
|
-
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
39
64
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
hash: 3
|
69
|
+
segments:
|
70
|
+
- 0
|
71
|
+
version: "0"
|
44
72
|
type: :runtime
|
73
|
+
requirement: *id004
|
45
74
|
prerelease: false
|
46
|
-
version_requirements: *70201186654100
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
75
|
name: sqlite3
|
49
|
-
|
50
|
-
|
51
|
-
requirements:
|
52
|
-
- - ! '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
type: :runtime
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: *70201186652760
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
name: amqp
|
60
|
-
requirement: &70201186651480 !ruby/object:Gem::Requirement
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
61
78
|
none: false
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
hash: 63
|
83
|
+
segments:
|
84
|
+
- 0
|
85
|
+
- 8
|
86
|
+
- 0
|
65
87
|
version: 0.8.0
|
66
88
|
type: :runtime
|
89
|
+
requirement: *id005
|
67
90
|
prerelease: false
|
68
|
-
|
69
|
-
description: Works with AMQP for sending messages at server side.Sends notifications
|
70
|
-
to an user via XMPP.Can monitor system by performing daily commands.
|
91
|
+
name: amqp
|
92
|
+
description: Works with AMQP for sending messages at server side.Sends notifications to an user via XMPP.Can monitor system by performing daily commands.
|
71
93
|
email: theirix@gmail.com
|
72
|
-
executables:
|
94
|
+
executables:
|
73
95
|
- omnibot
|
74
96
|
- omnisend
|
75
97
|
extensions: []
|
98
|
+
|
76
99
|
extra_rdoc_files: []
|
77
|
-
|
100
|
+
|
101
|
+
files:
|
78
102
|
- examples/config.yaml
|
79
103
|
- lib/omnibot/amqpconsumer.rb
|
80
104
|
- lib/omnibot/helpers.rb
|
@@ -92,26 +116,32 @@ files:
|
|
92
116
|
- bin/omnisend
|
93
117
|
homepage: http://github.com/theirix/omnibot
|
94
118
|
licenses: []
|
119
|
+
|
95
120
|
post_install_message:
|
96
121
|
rdoc_options: []
|
97
|
-
|
122
|
+
|
123
|
+
require_paths:
|
98
124
|
- lib
|
99
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
125
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
126
|
none: false
|
101
|
-
requirements:
|
102
|
-
- -
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
|
105
|
-
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
hash: 31
|
131
|
+
segments:
|
132
|
+
- 1
|
133
|
+
- 8
|
134
|
+
version: "1.8"
|
135
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
136
|
none: false
|
107
|
-
requirements:
|
108
|
-
- -
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
|
111
|
-
segments:
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
hash: 3
|
141
|
+
segments:
|
112
142
|
- 0
|
113
|
-
|
114
|
-
requirements:
|
143
|
+
version: "0"
|
144
|
+
requirements:
|
115
145
|
- AMQP-compatible server (for example, RabbitMQ)
|
116
146
|
rubyforge_project: nowarning
|
117
147
|
rubygems_version: 1.8.6
|
@@ -119,3 +149,4 @@ signing_key:
|
|
119
149
|
specification_version: 3
|
120
150
|
summary: Simple XMPP bot for server monitoring
|
121
151
|
test_files: []
|
152
|
+
|