casino 4.0.1 → 4.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71ae1bec7a01169cd48d92273eeb55768520520d
|
4
|
+
data.tar.gz: ef47204b0f85ebb44aa7c5414aaa4795f60e0e64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85a8433da5b57b226a73e64a4da02fe3a2e709b7320c6f760c26c112f57b11938317754a872661d71fb455c6d46124ec1b8542de4543f601cf36b6cb1e51f231
|
7
|
+
data.tar.gz: 7d02c691330c9ebfd92cdd3fcc4daa22af1b199d52c7609decc7c396a23a2d1fcfc8cf0a20dc580d80bbdccac63fc89c5ac8f1a0c3be493fd6eba183f8946afc
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
CASino Rails Engine (used in CASinoApp).
|
4
4
|
|
5
|
-
It currently supports [CAS 1.0 and CAS 2.0](http://www.jasig.org/cas/protocol) as well as [CAS 3.1 Single Sign Out](https://wiki.jasig.org/display/CASUM/Single+Sign+Out)
|
5
|
+
It currently supports [CAS 1.0 and CAS 2.0](http://www.jasig.org/cas/protocol) as well as [CAS 3.1 Single Sign Out](https://wiki.jasig.org/display/CASUM/Single+Sign+Out).
|
6
6
|
|
7
7
|
## Setup
|
8
8
|
|
@@ -37,7 +37,7 @@ class CASino::ServiceTicket::SingleSignOutNotifier
|
|
37
37
|
Rails.logger.warn "Service #{url} responded to logout notification with code '#{result.status}'!"
|
38
38
|
false
|
39
39
|
end
|
40
|
-
rescue Faraday::Error::ClientError => error
|
40
|
+
rescue Faraday::Error::ClientError, Errno::ETIMEDOUT => error
|
41
41
|
Rails.logger.warn "Failed to send logout notification to service #{url} due to #{error}"
|
42
42
|
false
|
43
43
|
end
|
data/lib/casino/version.rb
CHANGED
@@ -56,6 +56,16 @@ describe CASino::ServiceTicket::SingleSignOutNotifier do
|
|
56
56
|
notifier.notify.should == false
|
57
57
|
end
|
58
58
|
end
|
59
|
+
|
60
|
+
context 'network timeout' do
|
61
|
+
before(:each) do
|
62
|
+
stub_request(:post, service).to_raise Errno::ETIMEDOUT
|
63
|
+
end
|
64
|
+
|
65
|
+
it 'returns false' do
|
66
|
+
notifier.notify.should == false
|
67
|
+
end
|
68
|
+
end
|
59
69
|
end
|
60
70
|
end
|
61
|
-
end
|
71
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: casino
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nils Caspar
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-07-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capybara
|
@@ -513,7 +513,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
513
513
|
version: '0'
|
514
514
|
requirements: []
|
515
515
|
rubyforge_project:
|
516
|
-
rubygems_version: 2.
|
516
|
+
rubygems_version: 2.4.5
|
517
517
|
signing_key:
|
518
518
|
specification_version: 4
|
519
519
|
summary: A simple CAS server written in Ruby using the Rails framework.
|