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.
Files changed (5) hide show
  1. data/Manifest +1 -0
  2. data/Rakefile +1 -1
  3. data/c3s.gemspec +4 -4
  4. data/lib/republisher.rb +8 -1
  5. metadata +4 -4
data/Manifest CHANGED
@@ -1,5 +1,6 @@
1
1
  README.rdoc
2
2
  Rakefile
3
+ c3s.gemspec
3
4
  lib/c3s.rb
4
5
  lib/c3s_logger.rb
5
6
  lib/component.rb
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('c3s', '0.3.4') do |p|
5
+ Echoe.new('c3s', '0.3.5') do |p|
6
6
  p.description = "C3s library gem."
7
7
  p.url = "http://github.com/rikas/c3s"
8
8
  p.author = "Ricardo Otero"
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.4"
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-08}
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", "c3s.gemspec", "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"]
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.4}
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
- @subscribing_nodes.each { |node| @subscriber.subscribe_collection(node) }
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
- - 4
9
- version: 0.3.4
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-08 00:00:00 +01:00
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: []