skyfallsin-ruby_bosh 0.5.2 → 0.5.3

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 (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/ruby_bosh.rb +5 -2
  3. metadata +2 -2
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 2
2
+ :patch: 3
3
3
  :major: 0
4
4
  :minor: 5
data/lib/ruby_bosh.rb CHANGED
@@ -33,6 +33,9 @@ class RubyBOSH
33
33
  @timeout = opts[:timeout] || 3 #seconds
34
34
  @headers = {"Content-Type" => "text/xml; charset=utf-8",
35
35
  "Accept" => "text/xml"}
36
+ @wait = opts[:wait] || 5
37
+ @hold = opts[:hold] || 3
38
+ @window = opts[:window] || 5
36
39
  end
37
40
 
38
41
  def success?
@@ -59,8 +62,8 @@ class RubyBOSH
59
62
 
60
63
  private
61
64
  def initialize_bosh_session
62
- response = deliver(construct_body(:wait => 5, :to => @host,
63
- :hold => 3, :window => 5,
65
+ response = deliver(construct_body(:wait => @wait, :to => @host,
66
+ :hold => @hold, :window => @window,
64
67
  "xmpp:version" => '1.0'))
65
68
  parse(response)
66
69
  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.5.2
4
+ version: 0.5.3
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-03-15 00:00:00 -07:00
12
+ date: 2009-03-25 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency