skyfallsin-ruby_bosh 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/ruby_bosh.rb +4 -2
  3. metadata +2 -2
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :patch: 0
3
3
  :major: 0
4
- :minor: 4
4
+ :minor: 5
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}.merge(params)
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('presently')
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.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-02-23 00:00:00 -08:00
12
+ date: 2009-03-09 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency