oauth2 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/oauth2/client.rb +6 -2
- data/oauth2.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.13
|
data/lib/oauth2/client.rb
CHANGED
@@ -64,8 +64,12 @@ module OAuth2
|
|
64
64
|
end
|
65
65
|
case resp.status
|
66
66
|
when 200...201
|
67
|
-
if json?
|
68
|
-
|
67
|
+
if json?
|
68
|
+
begin
|
69
|
+
ResponseHash.new(resp)
|
70
|
+
rescue StandardError => e
|
71
|
+
ResponseString.new(resp)
|
72
|
+
end
|
69
73
|
else
|
70
74
|
ResponseString.new(resp)
|
71
75
|
end
|
data/oauth2.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 13
|
10
|
+
version: 0.0.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Bleigh
|