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.
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Tent
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
@@ -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.body.kind_of?(::String)
98
- if ((400...500).to_a - [404]).include?(res.status)
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.5
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-10-27 00:00:00.000000000 Z
12
+ date: 2012-12-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth