c3s 0.3.4 → 0.3.5
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/Manifest +1 -0
- data/Rakefile +1 -1
- data/c3s.gemspec +4 -4
- data/lib/republisher.rb +8 -1
- metadata +4 -4
data/Manifest
CHANGED
data/Rakefile
CHANGED
data/c3s.gemspec
CHANGED
@@ -2,20 +2,20 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{c3s}
|
5
|
-
s.version = "0.3.
|
5
|
+
s.version = "0.3.5"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Ricardo Otero"]
|
9
|
-
s.date = %q{2010-04-
|
9
|
+
s.date = %q{2010-04-12}
|
10
10
|
s.description = %q{C3s library gem.}
|
11
11
|
s.email = %q{oterosantos@gmail.com}
|
12
12
|
s.extra_rdoc_files = ["README.rdoc", "lib/c3s.rb", "lib/c3s_logger.rb", "lib/component.rb", "lib/component_connection.rb", "lib/configreader.rb", "lib/databaseadapter.rb", "lib/model.rb", "lib/pubsub/node.rb", "lib/pubsub/nodetracker.rb", "lib/pubsub/publisher.rb", "lib/pubsub/subscriber.rb", "lib/republisher.rb"]
|
13
|
-
s.files = ["README.rdoc", "Rakefile", "
|
13
|
+
s.files = ["README.rdoc", "Rakefile", "lib/c3s.rb", "lib/c3s_logger.rb", "lib/component.rb", "lib/component_connection.rb", "lib/configreader.rb", "lib/databaseadapter.rb", "lib/model.rb", "lib/pubsub/node.rb", "lib/pubsub/nodetracker.rb", "lib/pubsub/publisher.rb", "lib/pubsub/subscriber.rb", "lib/republisher.rb", "Manifest", "c3s.gemspec"]
|
14
14
|
s.homepage = %q{http://github.com/rikas/c3s}
|
15
15
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "C3s", "--main", "README.rdoc"]
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
s.rubyforge_project = %q{c3s}
|
18
|
-
s.rubygems_version = %q{1.3.
|
18
|
+
s.rubygems_version = %q{1.3.6}
|
19
19
|
s.summary = %q{C3s library gem.}
|
20
20
|
|
21
21
|
if s.respond_to? :specification_version then
|
data/lib/republisher.rb
CHANGED
@@ -33,7 +33,14 @@ module C3s
|
|
33
33
|
puts "#{msg.inspect}"
|
34
34
|
puts "----------------- MESSAGE -------------------"
|
35
35
|
if msg.body.eql?("sub")
|
36
|
-
|
36
|
+
$LOG.info "Subscribing nodes: #{@subscribing_nodes.join(", ")}"
|
37
|
+
@subscribing_nodes.each do |node|
|
38
|
+
begin
|
39
|
+
@subscriber.subscribe_collection(node)
|
40
|
+
rescue Exception => e
|
41
|
+
$LOG.erro "Could not subscribe node #{node}!"
|
42
|
+
end
|
43
|
+
end
|
37
44
|
elsif msg.body.eql?("unsub")
|
38
45
|
@subscriber.unsubscribe_all
|
39
46
|
else
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 5
|
9
|
+
version: 0.3.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ricardo Otero
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-12 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|
@@ -41,7 +41,6 @@ extra_rdoc_files:
|
|
41
41
|
files:
|
42
42
|
- README.rdoc
|
43
43
|
- Rakefile
|
44
|
-
- c3s.gemspec
|
45
44
|
- lib/c3s.rb
|
46
45
|
- lib/c3s_logger.rb
|
47
46
|
- lib/component.rb
|
@@ -55,6 +54,7 @@ files:
|
|
55
54
|
- lib/pubsub/subscriber.rb
|
56
55
|
- lib/republisher.rb
|
57
56
|
- Manifest
|
57
|
+
- c3s.gemspec
|
58
58
|
has_rdoc: true
|
59
59
|
homepage: http://github.com/rikas/c3s
|
60
60
|
licenses: []
|