c3s 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest +0 -1
- data/Rakefile +1 -1
- data/c3s.gemspec +2 -2
- data/lib/component.rb +2 -2
- data/lib/component_connection.rb +1 -1
- data/lib/pubsub/publisher.rb +1 -1
- metadata +3 -3
data/Manifest
CHANGED
data/Rakefile
CHANGED
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.
|
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-
|
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
|
-
|
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
|
data/lib/component_connection.rb
CHANGED
data/lib/pubsub/publisher.rb
CHANGED
@@ -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
|
-
-
|
9
|
-
version: 0.4.
|
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-
|
17
|
+
date: 2010-04-29 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|