skates 0.5.3 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/skates.rb CHANGED
@@ -12,6 +12,7 @@ require 'resolv'
12
12
  require 'cgi'
13
13
  require 'utf8cleaner'
14
14
  require 'pathname'
15
+ require 'socket'
15
16
 
16
17
  require 'skates/ext/array.rb'
17
18
  require 'skates/xmpp_connection'
@@ -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 = Integer(rand(10000000))
173
+ @binding_iq_id = Socket::gethostname.split(".").reverse.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: 13
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 3
10
- version: 0.5.3
9
+ - 5
10
+ version: 0.5.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - julien Genestoux
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-23 00:00:00 +02:00
18
+ date: 2011-11-14 00:00:00 -05:00
19
19
  default_executable: skates
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency