hoth 0.3.2.beta2 → 0.3.2.beta3
Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,7 @@ module Hoth
|
|
22
22
|
EM.run {
|
23
23
|
@services_to_listen_for.each do |service|
|
24
24
|
conn_for_service = EMJack::Connection.new(:host => service.endpoint.host, :port => service.endpoint.port)
|
25
|
-
conn_for_service.watch(
|
25
|
+
conn_for_service.watch(service.transport.tube_name)
|
26
26
|
conn_for_service.each_job do |job|
|
27
27
|
responsible_service = ServiceRegistry.locate_service(service.name)
|
28
28
|
|
@@ -11,12 +11,16 @@ module Hoth
|
|
11
11
|
|
12
12
|
def call_remote_with(*args)
|
13
13
|
connection = Beanstalk::Pool.new(["#{endpoint.host}:#{endpoint.port}"])
|
14
|
-
connection.use(
|
14
|
+
connection.use(tube_name)
|
15
15
|
|
16
16
|
encoded_args = encoder.encode(args)
|
17
17
|
Rails.logger.debug "encoded_args: #{encoded_args}"
|
18
18
|
connection.put encoded_args
|
19
19
|
end
|
20
|
+
|
21
|
+
def tube_name
|
22
|
+
@tube_name ||= "#{self.module.name}/#{name}"
|
23
|
+
end
|
20
24
|
|
21
25
|
end
|
22
26
|
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 62196357
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
9
|
- 2
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 0.3.2.
|
11
|
+
- 3
|
12
|
+
version: 0.3.2.beta3
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Dirk Breuer
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-01-
|
20
|
+
date: 2011-01-12 00:00:00 +01:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|