c3s 0.4.3a → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Rakefile +1 -1
  2. data/c3s.gemspec +3 -3
  3. data/lib/c3s.rb +1 -1
  4. data/lib/republisher.rb +10 -11
  5. metadata +6 -6
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('c3s', '0.4.3a') do |p|
5
+ Echoe.new('c3s', '0.4.3') 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,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{c3s}
5
- s.version = "0.4.3a"
5
+ s.version = "0.4.3"
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-11-10}
9
+ s.date = %q{2010-10-29}
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", "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"]
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"]
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"]
data/lib/c3s.rb CHANGED
@@ -27,7 +27,7 @@ rescue Exception => e
27
27
  end
28
28
 
29
29
  module C3s
30
- VERSION = "0.4.3a"
30
+ VERSION = "0.4.3"
31
31
 
32
32
  def self.included(base)
33
33
  base.extend ClassMethods
data/lib/republisher.rb CHANGED
@@ -17,7 +17,7 @@ module C3s
17
17
  # will receive context.
18
18
  def connect
19
19
  super
20
- #subscribe_nodes()
20
+ subscribe_nodes()
21
21
  end
22
22
 
23
23
  ##
@@ -64,17 +64,16 @@ module C3s
64
64
  # Handles the publicated items and the republishing on new node(s)
65
65
  def handle_items_publication(items)
66
66
  items.each_element("//item/") do |item|
67
- begin
68
- c3snode.provider = config['name'] # TODO - assuming that provider_name.eql?(pubsub_root_nodes)
69
- t = Thread.new do
70
- # This must be implemented on the republisher
71
- # because the strategy may vary from component to component.
72
- republish(c3snode, item)
73
- end
74
- t.join
75
- rescue Exception => e
76
- $LOG.error "Error on published item: #{e}"
67
+ begin
68
+ c3snode.provider = config['name'] # TODO - assuming that provider_name.eql?(pubsub_root_nodes)
69
+ t = Thread.new do
70
+ # This must be implemented on the republisher
71
+ # because the strategy may vary from component to component.
72
+ republish(c3snode, item)
77
73
  end
74
+ t.join
75
+ rescue Exception => e
76
+ $LOG.error "Error on published item: #{e}"
78
77
  end
79
78
  rescue Exception => e
80
79
  $LOG.error "Error on handle_msg(): #{e.inspect} #{e.backtrace.join("\n")}"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: c3s
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3450203
5
- prerelease: true
4
+ hash: 9
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 3a
10
- version: 0.4.3a
9
+ - 3
10
+ version: 0.4.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ricardo Otero
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-10 00:00:00 +00:00
18
+ date: 2010-10-29 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -42,6 +42,7 @@ extra_rdoc_files:
42
42
  files:
43
43
  - README.rdoc
44
44
  - Rakefile
45
+ - c3s.gemspec
45
46
  - lib/c3s.rb
46
47
  - lib/c3s_logger.rb
47
48
  - lib/component.rb
@@ -55,7 +56,6 @@ files:
55
56
  - lib/pubsub/subscriber.rb
56
57
  - lib/republisher.rb
57
58
  - Manifest
58
- - c3s.gemspec
59
59
  has_rdoc: true
60
60
  homepage: http://github.com/rikas/c3s
61
61
  licenses: []