skates 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/skates/client_connection.rb +3 -3
  2. metadata +3 -3
@@ -174,7 +174,7 @@ module Skates
174
174
  iq = Nokogiri::XML::Node.new("iq", doc)
175
175
  doc.add_child(iq)
176
176
  iq["type"] = "set"
177
- iq["id"] = binding_iq_id.to_s
177
+ iq["id"] = binding_iq_id
178
178
  bind = Nokogiri::XML::Node.new("bind", doc)
179
179
  bind["xmlns"] = "urn:ietf:params:xml:ns:xmpp-bind"
180
180
  iq.add_child(bind)
@@ -182,7 +182,7 @@ module Skates
182
182
  if jid.split("/").size == 2
183
183
  resource.content = (@jid.split("/").last)
184
184
  else
185
- resource.content = "skates_client_#{binding_iq_id}"
185
+ resource.content = binding_iq_id
186
186
  end
187
187
  bind.add_child(resource)
188
188
  send_xml(iq.to_s)
@@ -191,7 +191,7 @@ module Skates
191
191
  end
192
192
 
193
193
  when :wait_for_confirmed_binding
194
- if stanza.name == "iq" && stanza["type"] == "result" && Integer(stanza["id"]) == binding_iq_id
194
+ if stanza.name == "iq" && stanza["type"] == "result" && stanza["id"] == binding_iq_id
195
195
  if stanza.at("jid")
196
196
  @jid = stanza.at("jid").text
197
197
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skates
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 5
10
- version: 0.5.5
9
+ - 6
10
+ version: 0.5.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - julien Genestoux