omniauth-tent 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/omniauth-tent/version.rb +1 -1
- data/lib/omniauth/strategies/tent.rb +2 -2
- metadata +2 -2
@@ -94,8 +94,8 @@ module OmniAuth
|
|
94
94
|
:mac_algorithm => app[:mac_algorithm])
|
95
95
|
if app[:id]
|
96
96
|
res = client.app.get(app[:id])
|
97
|
-
if res.
|
98
|
-
if (
|
97
|
+
if !res.success?
|
98
|
+
if (400...500).include?(res.status)
|
99
99
|
create_app and return
|
100
100
|
else
|
101
101
|
raise AppLookupFailure.new(res.inspect)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-tent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth
|