blather 1.1.0 → 1.1.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/blather/client/client.rb +2 -0
- data/lib/blather/version.rb +1 -1
- data/spec/blather/client/client_spec.rb +2 -2
- 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: f7d71e140d348c98256a4ac29687e98ddfee1c53
|
|
4
|
+
data.tar.gz: 3b4332f8a95884885a732d62490cb192fb25945a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bbc329c4d00e17348e1ff65a4f6a2cf30d85141dd9d71ba47caa5208747427e71f0867b059cdc80922490bd6f1c1add71291ce3e7d086ad4b9ee36087a5a3976
|
|
7
|
+
data.tar.gz: 712f6780117372387e82fba62e34f17e0f882831a03677ccc135bc73e755a1d3b271f04092a1eb81a349e6a9fd7deec4d541b6904deaa3a55c581102d3762b2d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# [develop](https://github.com/adhearsion/blather/compare/master...develop)
|
|
2
2
|
|
|
3
|
+
# [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
|
+
* Bugfix: Expose alternative authentication ID when setting up a client
|
|
5
|
+
|
|
3
6
|
# [v1.1.0](https://github.com/adhearsion/blather/compare/v1.0.0...v1.1.0) - [2015-06-12](https://rubygems.org/gems/blather/versions/1.1.0)
|
|
4
7
|
* Feature: Permit an alternative authentication ID when connection. Used to support [MojoAuth](http://mojoauth.mojolingo.com/) and similar schemes.
|
|
5
8
|
* Bugfix: Allow sending errors to the wire directly with correct formatting (previously raised)
|
|
@@ -45,6 +45,7 @@ module Blather
|
|
|
45
45
|
# domain
|
|
46
46
|
# @param [Fixnum, String] port the port to connect to.
|
|
47
47
|
# @param [Hash] options a list of options to create the client with
|
|
48
|
+
# @option options [String] :authcid A custom authcid for advanced authentication scenarios
|
|
48
49
|
# @option options [Number] :workqueue_count (5) the number of threads used to process incoming XMPP messages.
|
|
49
50
|
# If this parameter is specified with 0, no background threads are used;
|
|
50
51
|
# instead stanzas are handled in the same process that the Client is running in.
|
|
@@ -220,6 +221,7 @@ module Blather
|
|
|
220
221
|
@setup << port
|
|
221
222
|
@setup << certs
|
|
222
223
|
@setup << connect_timeout
|
|
224
|
+
@setup << options[:authcid]
|
|
223
225
|
@queue_size = options[:workqueue_count] || 5
|
|
224
226
|
self
|
|
225
227
|
end
|
data/lib/blather/version.rb
CHANGED
|
@@ -52,14 +52,14 @@ describe Blather::Client do
|
|
|
52
52
|
it 'starts up a Component connection when setup without a node' do
|
|
53
53
|
setup = 'pubsub.jabber.local', 'secret'
|
|
54
54
|
subject.setup *setup
|
|
55
|
-
Blather::Stream::Component.expects(:start).with subject, *setup + [nil, nil, nil, nil]
|
|
55
|
+
Blather::Stream::Component.expects(:start).with subject, *setup + [nil, nil, nil, nil, nil]
|
|
56
56
|
subject.run
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
it 'starts up a Client connection when setup with a node' do
|
|
60
60
|
setup = 'test@jabber.local', 'secret'
|
|
61
61
|
subject.setup *setup
|
|
62
|
-
Blather::Stream::Client.expects(:start).with subject, *setup + [nil, nil, nil, nil]
|
|
62
|
+
Blather::Stream::Client.expects(:start).with subject, *setup + [nil, nil, nil, nil, nil]
|
|
63
63
|
subject.run
|
|
64
64
|
end
|
|
65
65
|
|