noah-agents-dummy2 0.0.1 → 0.0.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/lib/noah/agents/dummy2_agent.rb +5 -9
- data/noah-agents-dummy2.gemspec +1 -1
- metadata +2 -2
@@ -1,19 +1,15 @@
|
|
1
1
|
require 'noah/agents/base_agent'
|
2
2
|
|
3
3
|
module Noah::Agents
|
4
|
-
class Dummy2Agent
|
5
|
-
include Noah::Agents::Base
|
4
|
+
class Dummy2Agent < Base
|
6
5
|
|
7
6
|
PREFIX = "dummy2://"
|
8
7
|
NAME = self.name
|
8
|
+
DEFAULT_CONCURRENCY = 100
|
9
9
|
|
10
|
-
def
|
11
|
-
|
12
|
-
|
13
|
-
logger.info("Sending message to: #{ep} for pattern: #{p}")
|
14
|
-
logger.debug("message received: #{message}")
|
15
|
-
iter.next
|
16
|
-
end
|
10
|
+
def work!(matches, message)
|
11
|
+
logger.info("Sending message to (#{ep})")
|
12
|
+
logger.debug("Dummy2 message received: #{message}")
|
17
13
|
end
|
18
14
|
|
19
15
|
end
|
data/noah-agents-dummy2.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "noah-agents-dummy2"
|
6
|
-
s.version = "0.0.
|
6
|
+
s.version = "0.0.4"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["John E. Vincent"]
|
9
9
|
s.email = ["lusis.org+rubygems.org@gmail.com"]
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: noah-agents-dummy2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- John E. Vincent
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-27 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|