mint_http 0.1.1 → 0.1.3
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 -2
- data/lib/mint_http/request.rb +2 -0
- data/lib/mint_http/response.rb +5 -5
- data/lib/mint_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: c08be62d1af8320bd49abdf109cfff5e1d4d5a3c96e74630eb4deb34175182b4
|
4
|
+
data.tar.gz: bca05dbe5f21f4874332df34da20f82e8b71a9759c5b6cdebd10d48cd5c03eac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c48738df260bdbfaad27c28d58c68a964b62983542fe3427815c461c79556ff72627c044df97716ad2bd8c398e6edbbebd54effdf0d3e7915756b99bfad159c6
|
7
|
+
data.tar.gz: 29594f85b3f2d21db42b4dc24a3397223d2dbccf7d7637a5b6cca55b6e67c8489428e8fca9049ccc0cfe15c04e7fa3ba06a3f96e92505b98c5e30429f5c980bb
|
data/Gemfile.lock
CHANGED
data/lib/mint_http/request.rb
CHANGED
data/lib/mint_http/response.rb
CHANGED
@@ -47,15 +47,15 @@ module MintHttp
|
|
47
47
|
def raise!
|
48
48
|
case @status_code
|
49
49
|
when 401
|
50
|
-
raise
|
50
|
+
raise AuthenticationError.new('Unauthenticated', self)
|
51
51
|
when 403
|
52
|
-
raise
|
52
|
+
raise AuthorizationError.new('Forbidden', self)
|
53
53
|
when 404
|
54
|
-
raise
|
54
|
+
raise NotFoundError.new('Not Found', self)
|
55
55
|
when 400..499
|
56
|
-
raise
|
56
|
+
raise ClientError.new('Client Error', self)
|
57
57
|
when 500..599
|
58
|
-
raise
|
58
|
+
raise ClientError.new('Server Error', self)
|
59
59
|
else
|
60
60
|
self
|
61
61
|
end
|
data/lib/mint_http/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mint_http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ali Alhoshaiyan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-http
|