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 +4 -4
- data/Gemfile.lock +2 -4
- data/lib/seibii/http/clients/base.rb +2 -2
- data/lib/seibii/http/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2aaf8ea77b989c7a6d2147f2761aa609ed518b076cdf07b26dff65f72fdf61a
|
4
|
+
data.tar.gz: f233e4836b21a0ee5032c972be9f5c35fba46f14936938f93053e0cf878edeb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19963a144529f8638f1300d040d1ede40dad98b849e996615d1c0529bc2a9c76bc41824d8664d3114e4f0dabd04415d5492780e84868a9af12ea25e09c5f69b1
|
7
|
+
data.tar.gz: 7ebd1c1b5c2ebe39e39c0f9a57811084e33291063376c317654fb461131950fa444523d4b66babeae94caf0f9aa14c6d925b05fae1f80eb8e5f5f846a6a230e7
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
seibii-http (1.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.
|
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
|
data/lib/seibii/http/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|