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: c927b5d0e915a7f853269c01359bbce8adbe20dc
4
- data.tar.gz: a32ae90fe4019746feafdf7fdc6aed68d0627a9e
3
+ metadata.gz: 71ae1bec7a01169cd48d92273eeb55768520520d
4
+ data.tar.gz: ef47204b0f85ebb44aa7c5414aaa4795f60e0e64
5
5
  SHA512:
6
- metadata.gz: d276f8dfa53f08edd9d16ca3fa5d1f338f4f2fc1504e80f25e0c09670c5dfdc3e0f1e9b92566fd506dbb9536a9a4561c5129285f04e594237c2e264791fdf08c
7
- data.tar.gz: 089bcbf1982f01a85d7f7c0ad12aa0b7fc327b65e8c701e7906eb591790c4b802b05cc5d03ae7bd84db287c56d735c86c7728eec29a3de290ac232796668c1b4
6
+ metadata.gz: 85a8433da5b57b226a73e64a4da02fe3a2e709b7320c6f760c26c112f57b11938317754a872661d71fb455c6d46124ec1b8542de4543f601cf36b6cb1e51f231
7
+ data.tar.gz: 7d02c691330c9ebfd92cdd3fcc4daa22af1b199d52c7609decc7c396a23a2d1fcfc8cf0a20dc580d80bbdccac63fc89c5ac8f1a0c3be493fd6eba183f8946afc
@@ -3,6 +3,7 @@ rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
5
  - 2.1.0
6
+ - 2.2.2
6
7
  notifications:
7
8
  hipchat:
8
9
  rooms:
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) and [CAS RESTful API](https://wiki.jasig.org/display/CASUM/RESTful+API).
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
@@ -1,3 +1,3 @@
1
1
  module CASino
2
- VERSION = '4.0.1'
2
+ VERSION = '4.0.2'
3
3
  end
@@ -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.1
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-05-30 00:00:00.000000000 Z
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.2.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.