skyfallsin-ruby_bosh 0.4.0 → 0.5.0
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/VERSION.yml +1 -1
- data/lib/ruby_bosh.rb +4 -2
- metadata +2 -2
data/VERSION.yml
CHANGED
data/lib/ruby_bosh.rb
CHANGED
@@ -69,7 +69,9 @@ class RubyBOSH
|
|
69
69
|
@rid ? @rid+=1 : @rid=rand(100000)
|
70
70
|
|
71
71
|
builder = Builder::XmlMarkup.new
|
72
|
-
parameters = {:rid => @rid, :xmlns => BOSH_XMLNS
|
72
|
+
parameters = {:rid => @rid, :xmlns => BOSH_XMLNS,
|
73
|
+
"xmpp:version" => "1.0",
|
74
|
+
"xmlns:xmpp" => "urn:xmpp:xbosh"}.merge(params)
|
73
75
|
|
74
76
|
if block_given?
|
75
77
|
builder.body(parameters) {|body| yield(body)}
|
@@ -99,7 +101,7 @@ class RubyBOSH
|
|
99
101
|
body.iq(:id => "bind_#{rand(100000)}", :type => "set",
|
100
102
|
:xmlns => "jabber:client") do |iq|
|
101
103
|
iq.bind(:xmlns => BIND_XMLNS) do |bind|
|
102
|
-
bind.resource(
|
104
|
+
bind.resource("bosh_#{rand(10000})")
|
103
105
|
end
|
104
106
|
end
|
105
107
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skyfallsin-ruby_bosh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pradeep Elankumaran
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-03-09 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|