skates 0.5.6 → 0.5.7

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.
Files changed (2) hide show
  1. data/lib/skates/client_connection.rb +1 -1
  2. metadata +3 -3
@@ -170,7 +170,7 @@ module Skates
170
170
  if stanza.children.first.name == "bind"
171
171
  doc = Nokogiri::XML::Document.new
172
172
  # Let's build the binding_iq
173
- @binding_iq_id = Socket::gethostname.split(".").reverse.push(Process.pid).join("-")
173
+ @binding_iq_id = Socket.unpack_sockaddr_in(get_sockname).reverse.join(".").split(".").push(Process.pid).join("-")
174
174
  iq = Nokogiri::XML::Node.new("iq", doc)
175
175
  doc.add_child(iq)
176
176
  iq["type"] = "set"
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: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 6
10
- version: 0.5.6
9
+ - 7
10
+ version: 0.5.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - julien Genestoux