blather 1.1.0 → 1.1.1

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: b286a91b3b6c3e092a2e0ebdc9812b44d6f17c50
4
- data.tar.gz: 126a8aa2caa6063d13dfa8fa32ff4d28f0c12ae0
3
+ metadata.gz: f7d71e140d348c98256a4ac29687e98ddfee1c53
4
+ data.tar.gz: 3b4332f8a95884885a732d62490cb192fb25945a
5
5
  SHA512:
6
- metadata.gz: 2399dc471ce0bd3d4d0121c43b89040069287ae08155cdf90ba509feb19ceac52bfa91f6e1f7c82f372b1d0b85aff38423afc45c35ff695ac0531e685008dccd
7
- data.tar.gz: e56b81fa5316af92a71b6f2886251130a0e075a6aa762a282249f7f208439602cbfe8fec74d0dd1d982281df96081f8ea64c8c5387e83e3b1b797afa9edbdb17
6
+ metadata.gz: bbc329c4d00e17348e1ff65a4f6a2cf30d85141dd9d71ba47caa5208747427e71f0867b059cdc80922490bd6f1c1add71291ce3e7d086ad4b9ee36087a5a3976
7
+ data.tar.gz: 712f6780117372387e82fba62e34f17e0f882831a03677ccc135bc73e755a1d3b271f04092a1eb81a349e6a9fd7deec4d541b6904deaa3a55c581102d3762b2d
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Blather
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
@@ -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
 
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.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Smick