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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c416d838d7d7c317ab66ac5eb9997a8bd7fab6b9
4
- data.tar.gz: ec9445743a11afa6d4e593a914e3a58ec0763a19
3
+ metadata.gz: a44729eac25ad59456fd80349a81601d3cfb0b1d
4
+ data.tar.gz: e25cdbdb1aa13afbee75be71346cedd79017f5e2
5
5
  SHA512:
6
- metadata.gz: e1176e66831bdba9d9f812b77c3f15dd684f6a3074f5f3e99eea02ff532d85a3d2083c12fe735c47b7906ed37c9e69c165bfb81f2f1c91115f32161cbca51c02
7
- data.tar.gz: 120483a98d665ededc548c593e71ef733c373ad28fb4e871f543e187bc37ea91d5a9cffc126f9cb27c0a072bb642b2e97f21272441386996f775a58b6b77a55c
6
+ metadata.gz: 57e3f6d902486eb0cccdd97287679ada85f37292a23d919c2609e8b8d25b2e094208db0787c0ef848f6f764fd22d976ad266494f31fd4b687150f1f7297b1d05
7
+ data.tar.gz: b78b7552f6cff0b355d6a90a9d7fc349a2499a9a195066d7ae744158b1906d948518438285070fa5a9c163ce6b5c163330d248aaaca059e6178ff333ba7f87ba
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module FitgemOauth2
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
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.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-06 00:00:00.000000000 Z
11
+ date: 2017-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday