seibii-http 1.0.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: '049d320d3ad81582683158b91dc868413b5c4e169125b31c2a44f96c23ece44d'
4
- data.tar.gz: 5807f9ba69b6d4f8ee5e08ddf0164fe0fe57ae140316a8b5a41d3a9545d145e1
3
+ metadata.gz: c2aaf8ea77b989c7a6d2147f2761aa609ed518b076cdf07b26dff65f72fdf61a
4
+ data.tar.gz: f233e4836b21a0ee5032c972be9f5c35fba46f14936938f93053e0cf878edeb4
5
5
  SHA512:
6
- metadata.gz: c66ac55bb44a41272d1c77d0f57c328320307ed9077c4f8f32dcb92ee0487525fd0ee4d8a3e35b85a71b3a07b2a1abab0d707db8cd0cbff5c7327eb871016ea5
7
- data.tar.gz: 445459558e6c883b0c5d8e921827469a87af65308aeefdd4eaa08ba0d36e516c2b4a7398bf48bcfa70843ee244c0ced97c57db1d82e630f271651ebaadc132d5
6
+ metadata.gz: 19963a144529f8638f1300d040d1ede40dad98b849e996615d1c0529bc2a9c76bc41824d8664d3114e4f0dabd04415d5492780e84868a9af12ea25e09c5f69b1
7
+ data.tar.gz: 7ebd1c1b5c2ebe39e39c0f9a57811084e33291063376c317654fb461131950fa444523d4b66babeae94caf0f9aa14c6d925b05fae1f80eb8e5f5f846a6a230e7
@@ -1,14 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seibii-http (1.0.0)
4
+ seibii-http (1.0.1)
5
5
  oj
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  ast (2.4.1)
11
- bigdecimal (2.0.0)
12
11
  codecov (0.2.8)
13
12
  json
14
13
  simplecov
@@ -44,8 +43,7 @@ GEM
44
43
  notiffany (0.1.3)
45
44
  nenv (~> 0.1)
46
45
  shellany (~> 0.0)
47
- oj (3.10.12)
48
- bigdecimal (>= 1.0, < 3)
46
+ oj (3.10.13)
49
47
  parallel (1.19.2)
50
48
  parser (2.7.1.4)
51
49
  ast (~> 2.4.1)
@@ -52,8 +52,8 @@ module Seibii
52
52
  def handle_http_status(response)
53
53
  case response.code.to_i
54
54
  when 404 then nil
55
- when 400..499 then raise ClientError, response
56
- when 500..599 then raise ServerError, response
55
+ when 400..499 then raise ClientError, response.body
56
+ when 500..599 then raise ServerError, response.body
57
57
  else response.body
58
58
  end
59
59
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Seibii
4
4
  module Http
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seibii-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Ueki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-26 00:00:00.000000000 Z
11
+ date: 2020-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj