fitgem_oauth2 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fitgem_oauth2/client.rb +4 -4
- data/lib/fitgem_oauth2/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a44729eac25ad59456fd80349a81601d3cfb0b1d
|
4
|
+
data.tar.gz: e25cdbdb1aa13afbee75be71346cedd79017f5e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57e3f6d902486eb0cccdd97287679ada85f37292a23d919c2609e8b8d25b2e094208db0787c0ef848f6f764fd22d976ad266494f31fd4b687150f1f7297b1d05
|
7
|
+
data.tar.gz: b78b7552f6cff0b355d6a90a9d7fc349a2499a9a195066d7ae744158b1906d948518438285070fa5a9c163ce6b5c163330d248aaaca059e6178ff333ba7f87ba
|
data/lib/fitgem_oauth2/client.rb
CHANGED
@@ -107,10 +107,10 @@ module FitgemOauth2
|
|
107
107
|
},
|
108
108
|
201 => lambda { },
|
109
109
|
204 => lambda { },
|
110
|
-
400 => lambda { raise FitgemOauth2::BadRequestError },
|
111
|
-
401 => lambda { raise FitgemOauth2::UnauthorizedError },
|
112
|
-
403 => lambda { raise FitgemOauth2::ForbiddenError },
|
113
|
-
404 => lambda { raise FitgemOauth2::NotFoundError },
|
110
|
+
400 => lambda { raise FitgemOauth2::BadRequestError, JSON.parse(response.body) },
|
111
|
+
401 => lambda { raise FitgemOauth2::UnauthorizedError, JSON.parse(response.body) },
|
112
|
+
403 => lambda { raise FitgemOauth2::ForbiddenError, JSON.parse(response.body) },
|
113
|
+
404 => lambda { raise FitgemOauth2::NotFoundError, JSON.parse(response.body) },
|
114
114
|
500..599 => lambda { raise FitgemOauth2::ServerError }
|
115
115
|
}
|
116
116
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fitgem_oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ankit Gupta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|