xrc 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/xrc/client.rb +2 -1
- data/lib/xrc/errors.rb +9 -0
- data/lib/xrc/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03c7cdf9af0ea3c1656b9fac27ec0c89895b639d
|
4
|
+
data.tar.gz: f6f8f5a4f14f8ad0083d193fad3de3c15a2216c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc865872afce611ebbac83ec5831890f24f099ae496979de492279dd089aac872fcdfde4e837110823d3d3a18f40e74cb66c47513b0ea339361b76fc2b4f84f0
|
7
|
+
data.tar.gz: e9c7e9693492bf4f907a57d004f993b5473982b86a22bd72435edcfb38831bb234ad5168e04cd28a2255fa5b24ea9d479beadf9743d593d6037c2fc08933dd86
|
data/CHANGELOG.md
CHANGED
data/lib/xrc/client.rb
CHANGED
@@ -246,6 +246,7 @@ module Xrc
|
|
246
246
|
def on_features_received(element)
|
247
247
|
element.each do |feature|
|
248
248
|
case
|
249
|
+
when feature.is_a?(REXML::Text)
|
249
250
|
when feature.name == "bind" && feature.namespace == Namespaces::BIND
|
250
251
|
bind
|
251
252
|
when feature.name == "starttls" && feature.namespace == Namespaces::TLS
|
@@ -264,7 +265,7 @@ module Xrc
|
|
264
265
|
end
|
265
266
|
|
266
267
|
def on_authentication_failed(element)
|
267
|
-
raise
|
268
|
+
raise AuthenticationFailureError, "Received an authentication failure response from XMPP server"
|
268
269
|
end
|
269
270
|
|
270
271
|
def on_tls_proceeded(element)
|
data/lib/xrc/errors.rb
ADDED
data/lib/xrc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xrc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- lib/xrc/elements/session.rb
|
109
109
|
- lib/xrc/elements/starttls.rb
|
110
110
|
- lib/xrc/elements/stream.rb
|
111
|
+
- lib/xrc/errors.rb
|
111
112
|
- lib/xrc/hosts_resolver.rb
|
112
113
|
- lib/xrc/jid.rb
|
113
114
|
- lib/xrc/message_builder.rb
|