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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/blather/client/dsl.rb +1 -1
- data/lib/blather/version.rb +1 -1
- data/spec/blather/client/dsl_spec.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3137c11a3e6735f111d82968f29b5d07b2a02cf3
|
4
|
+
data.tar.gz: 3f0232a347324f3b097a18f7f15bb476b9760df3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/blather/client/dsl.rb
CHANGED
@@ -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 =
|
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
|
|
data/lib/blather/version.rb
CHANGED
@@ -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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
45
|
+
args = ['jid', 'pass', 'host', 'port', 'certs', 30, {}]
|
46
46
|
@client.expects(:setup).with *args
|
47
47
|
@dsl.setup *args
|
48
48
|
end
|