blather 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7d71e140d348c98256a4ac29687e98ddfee1c53
4
- data.tar.gz: 3b4332f8a95884885a732d62490cb192fb25945a
3
+ metadata.gz: cf4e672c7124d23a581e31cb8325a33443b962b7
4
+ data.tar.gz: 829cc4e5c688b856d54c1c0d6aea5ee82689cf11
5
5
  SHA512:
6
- metadata.gz: bbc329c4d00e17348e1ff65a4f6a2cf30d85141dd9d71ba47caa5208747427e71f0867b059cdc80922490bd6f1c1add71291ce3e7d086ad4b9ee36087a5a3976
7
- data.tar.gz: 712f6780117372387e82fba62e34f17e0f882831a03677ccc135bc73e755a1d3b271f04092a1eb81a349e6a9fd7deec4d541b6904deaa3a55c581102d3762b2d
6
+ metadata.gz: e177fba5160c9aa3e1640c1ae3f881aa2bb03b0ad00323c2b633a5b23ea99bf11d3d61e535b2db191fafc67c9fdb936cb1101ed1396cfec6db8f56c5c5dbdedd
7
+ data.tar.gz: f8f62e1682c627cfc168aab246c3944b29c7ff4a3e3dd77be2a45c159d4aad42290f6639f5b137ec387a5936befc865000c484e84c18171aefe85e6f8c250a2e
@@ -1,5 +1,8 @@
1
1
  # [develop](https://github.com/adhearsion/blather/compare/master...develop)
2
2
 
3
+ # [v1.1.2](https://github.com/adhearsion/blather/compare/v1.1.1...v1.1.2) - [2015-06-12](https://rubygems.org/gems/blather/versions/1.1.2)
4
+ * Bugfix: Expose alternative authentication ID in DSL
5
+
3
6
  # [v1.1.1](https://github.com/adhearsion/blather/compare/v1.1.0...v1.1.1) - [2015-06-12](https://rubygems.org/gems/blather/versions/1.1.1)
4
7
  * Bugfix: Expose alternative authentication ID when setting up a client
5
8
 
@@ -140,8 +140,9 @@ module Blather
140
140
  # this is `nil` the domain on the JID will be used
141
141
  # @param [Fixnum, String] (optional) port the port to connect on
142
142
  # @param [Fixnum] (optional) connection_timeout the time to wait for connection to succeed before timing out
143
- def setup(jid, password, host = nil, port = nil, certs = nil, connection_timeout = nil)
144
- client.setup(jid, password, host, port, certs, connection_timeout)
143
+ # @param [Hash] (optional) options
144
+ def setup(jid, password, host = nil, port = nil, certs = nil, connection_timeout = nil, options = nil)
145
+ client.setup(jid, password, host, port, certs, connection_timeout, options)
145
146
  end
146
147
 
147
148
  # Connect to the server. Must be run in the EventMachine reactor
@@ -1,3 +1,3 @@
1
1
  module Blather
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
@@ -19,30 +19,30 @@ describe Blather::DSL do
19
19
 
20
20
  it 'allows host to be nil in setup' do
21
21
  args = ['jid', 'pass']
22
- @client.expects(:setup).with *(args + [nil, nil, nil, nil])
22
+ @client.expects(:setup).with *(args + [nil, nil, nil, nil, nil])
23
23
  @dsl.setup *args
24
24
  end
25
25
 
26
26
  it 'allows port to be nil in setup' do
27
27
  args = ['jid', 'pass', 'host']
28
- @client.expects(:setup).with *(args + [nil, nil, nil])
28
+ @client.expects(:setup).with *(args + [nil, nil, nil, nil])
29
29
  @dsl.setup *args
30
30
  end
31
31
 
32
32
  it 'allows certs to be nil in setup' do
33
33
  args = ['jid', 'pass', 'host', 'port']
34
- @client.expects(:setup).with *(args + [nil, nil])
34
+ @client.expects(:setup).with *(args + [nil, nil, nil])
35
35
  @dsl.setup *args
36
36
  end
37
37
 
38
38
  it 'accepts certs in setup' do
39
39
  args = ['jid', 'pass', 'host', 'port', 'certs']
40
- @client.expects(:setup).with *(args + [nil])
40
+ @client.expects(:setup).with *(args + [nil, nil])
41
41
  @dsl.setup *args
42
42
  end
43
43
 
44
44
  it 'accepts connection timeout in setup' do
45
- args = ['jid', 'pass', 'host', 'port', 'certs', 30]
45
+ args = ['jid', 'pass', 'host', 'port', 'certs', 30, nil]
46
46
  @client.expects(:setup).with *args
47
47
  @dsl.setup *args
48
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blather
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Smick