blather 1.1.2 → 1.1.3

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: cf4e672c7124d23a581e31cb8325a33443b962b7
4
- data.tar.gz: 829cc4e5c688b856d54c1c0d6aea5ee82689cf11
3
+ metadata.gz: 3137c11a3e6735f111d82968f29b5d07b2a02cf3
4
+ data.tar.gz: 3f0232a347324f3b097a18f7f15bb476b9760df3
5
5
  SHA512:
6
- metadata.gz: e177fba5160c9aa3e1640c1ae3f881aa2bb03b0ad00323c2b633a5b23ea99bf11d3d61e535b2db191fafc67c9fdb936cb1101ed1396cfec6db8f56c5c5dbdedd
7
- data.tar.gz: f8f62e1682c627cfc168aab246c3944b29c7ff4a3e3dd77be2a45c159d4aad42290f6639f5b137ec387a5936befc865000c484e84c18171aefe85e6f8c250a2e
6
+ metadata.gz: 47e1df9552305d30fd4c4f0be02fd847f5928203e8f46f7e6669f632e3c51bc412713dc7a000b1b505194cca8d9fc2b52b6cc8cc7f4fc82cf5f4561814140ff7
7
+ data.tar.gz: 4ff663ad2a25105bc3d36ac9080319d9750a12b2d41660ae2369c27e31475b3c5224b694f7bba24a877d2b9e2477a0c9abe0ba68f7c3947b78a49c7004c3f09d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # [develop](https://github.com/adhearsion/blather/compare/master...develop)
2
2
 
3
+ # [v1.1.3](https://github.com/adhearsion/blather/compare/v1.1.2...v1.1.3) - [2015-06-12](https://rubygems.org/gems/blather/versions/1.1.3)
4
+ * Bugfix: Expose alternative authentication ID in DSL (correct default)
5
+
3
6
  # [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
7
  * Bugfix: Expose alternative authentication ID in DSL
5
8
 
@@ -141,7 +141,7 @@ module Blather
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
143
  # @param [Hash] (optional) options
144
- def setup(jid, password, host = nil, port = nil, certs = nil, connection_timeout = nil, options = nil)
144
+ def setup(jid, password, host = nil, port = nil, certs = nil, connection_timeout = nil, options = {})
145
145
  client.setup(jid, password, host, port, certs, connection_timeout, options)
146
146
  end
147
147
 
@@ -1,3 +1,3 @@
1
1
  module Blather
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
@@ -13,36 +13,36 @@ describe Blather::DSL do
13
13
 
14
14
  it 'wraps the setup' do
15
15
  args = ['jid', 'pass', 'host', 0000]
16
- @client.expects(:setup).with *(args + [nil, nil, nil])
16
+ @client.expects(:setup).with *(args + [nil, nil, {}])
17
17
  @dsl.setup *args
18
18
  end
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, nil])
22
+ @client.expects(:setup).with *(args + [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, nil])
28
+ @client.expects(:setup).with *(args + [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, nil])
34
+ @client.expects(:setup).with *(args + [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, nil])
40
+ @client.expects(:setup).with *(args + [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, nil]
45
+ args = ['jid', 'pass', 'host', 'port', 'certs', 30, {}]
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.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Smick