mint_http 0.1.0 → 0.1.2
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 +1 -1
- 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: 6276398025ad35b2ff1dea30ee143d381486b9017cb98e45c19aefda5a98c165
|
4
|
+
data.tar.gz: 429fe603e9a3f386ce89ca9efeeac7ba5355c8beccf8836eeba1591700e39c50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67a1ce62de564bb0fde0007b54a87e053a47d4fc065ce2e6b43c5c81730265a5ce37ec161085c959f1f61ae7808fc45a64b98ba4c96a3ddddc16ae6c95c75d2d
|
7
|
+
data.tar.gz: fa8a9d5fb76969f7c28f26bbb2fa097550da3af3db676347b6779fe8a6304292246808fb78ad9fa7b2c63b6effd1cc42d31faab1af1aa0d3d86d7e95d48a2691
|
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.2
|
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-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-http
|