rails_sso 0.3.1 → 0.3.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: 0ba3ea4dd7d1d68731bff24f0c2a91562c349d1c
4
- data.tar.gz: 8afb4fbb304f7fdda9380e2b8f8ee48171f0e545
3
+ metadata.gz: fdd8ae0a8f36973eb0667a9591fd727dd2316ad6
4
+ data.tar.gz: 44e292436252b354ee9e0822ac8cb1e809d1e620
5
5
  SHA512:
6
- metadata.gz: 533d9f47ea4e863a0d0c3f41d581abcaa1665ed2066d0231657c5735dd9ea22b1bfe5f4c2b1fb4ae5d186c50ddf6cf640c0bad3ffd2929108d55715d43cd404f
7
- data.tar.gz: c1dcfe6eebbfa47657c86d2b64d72c8ddd331314e914d2a17b3f5bda6cd53f5984cc09e1be2557b5516c64255c4d9c05b6ee5f0fd275b811818c8cfd611b8e00
6
+ metadata.gz: 96afab1abf79089404fec4288287b45c6a3574270a4b0c3f1ffd5db331ebdb0a85690a0c015446bab0924fa09817d1db4b1f83928bb385ad969decb3dd6a9240
7
+ data.tar.gz: b0868ab2129c96c7ea1c24ac6fc2d1b501fbe7c15c3c8c778c9648faf40f67ced93f2a9925d6af62dae8bf97030a7d1d1f8fdf8383e4dd54fa40e7fc5d383e88
@@ -43,6 +43,8 @@ module RailsSso
43
43
  yield if block_given?
44
44
  rescue ::OAuth2::Error
45
45
  nil
46
+ rescue ResponseError => e
47
+ nil if e.code == :unauthenticated
46
48
  end
47
49
 
48
50
  private
@@ -1,3 +1,3 @@
1
1
  module RailsSso
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_sso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Dudulski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-25 00:00:00.000000000 Z
11
+ date: 2015-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails