c3s 0.4.0 → 0.4.1

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 CHANGED
@@ -12,5 +12,4 @@ lib/pubsub/nodetracker.rb
12
12
  lib/pubsub/publisher.rb
13
13
  lib/pubsub/subscriber.rb
14
14
  lib/republisher.rb
15
- test.pcap
16
15
  Manifest
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.0') do |p|
5
+ Echoe.new('c3s', '0.4.1') 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,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{c3s}
5
- s.version = "0.4.0"
5
+ s.version = "0.4.1"
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-23}
9
+ s.date = %q{2010-04-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"]
data/lib/component.rb CHANGED
@@ -88,7 +88,6 @@ module C3s
88
88
  # Handles discovery, sets and gets
89
89
  # iq:: [Jabber::IQ] the received IQ packet
90
90
  def handle_iq(iq)
91
- $LOG.info "Got an iq: #{iq.id}"
92
91
  if iq.query.kind_of?(Jabber::Discovery::IqQueryDiscoInfo)
93
92
  handle_disco_info(iq)
94
93
  elsif iq.query.first_element(config['name']) # TODO assuming that pubsubnode = xml root
@@ -194,7 +193,8 @@ module C3s
194
193
  pub.publish(c3snode, data)
195
194
  end
196
195
 
197
- send_ok(iq) if iq.is_a?(Jabber::Iq)
196
+ # TODO - not sending any confirmations
197
+ #send_ok(iq) if iq.is_a?(Jabber::Iq)
198
198
  rescue Exception => e
199
199
  $LOG.error("#{e.inspect} #{e.backtrace.join("\n")}")
200
200
  end
@@ -30,7 +30,7 @@ module C3s
30
30
  ActiveRecord::Base.retrieve_connection
31
31
  rescue Exception => e
32
32
  puts "Error: #{e}"
33
- exit
33
+ exit 1
34
34
  end
35
35
  end
36
36
  connect
@@ -23,7 +23,7 @@ module C3s
23
23
  leaf = c3snode.to_s # leaf (eg: location:user@jabber.com/default)
24
24
 
25
25
  # create nodes
26
- create_node(provider, {:collection => true})
26
+ create_node(provider, {:father => "", :collection => true})
27
27
  create_node(collection, {:father => provider, :collection => true})
28
28
  create_node(leaf, {:father => collection, :collection => false})
29
29
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 0
9
- version: 0.4.0
8
+ - 1
9
+ version: 0.4.1
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-23 00:00:00 +01:00
17
+ date: 2010-04-29 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies: []
20
20