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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13767edbfe47badf757cb360c6f9f8fb47196a37e5855c09bd384cedc73a4269
4
- data.tar.gz: f4a98a89d66a4e9131374a62afe432d6a2b3ba7d64771a9687f5378c31daf656
3
+ metadata.gz: c08be62d1af8320bd49abdf109cfff5e1d4d5a3c96e74630eb4deb34175182b4
4
+ data.tar.gz: bca05dbe5f21f4874332df34da20f82e8b71a9759c5b6cdebd10d48cd5c03eac
5
5
  SHA512:
6
- metadata.gz: 4c82ccca36fa10a3c10c9a67c07827615756fa79ed923edf43c2ec1bf29458d1eca3c674b961120b17d7838c87748ce5b45b0b0d394882c6436647fcf7055d3f
7
- data.tar.gz: 23eb2b5e4305dc42358dc9a73135f76b0d3adbd75aca7234a8aab296ebbd8510d162c76ecb4a11ae1d094aa3e2d9fc9b5294271c99bb1c48575d0e2531bebb53
6
+ metadata.gz: c48738df260bdbfaad27c28d58c68a964b62983542fe3427815c461c79556ff72627c044df97716ad2bd8c398e6edbbebd54effdf0d3e7915756b99bfad159c6
7
+ data.tar.gz: 29594f85b3f2d21db42b4dc24a3397223d2dbccf7d7637a5b6cca55b6e67c8489428e8fca9049ccc0cfe15c04e7fa3ba06a3f96e92505b98c5e30429f5c980bb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mint_http (0.1.0)
4
+ mint_http (0.1.1)
5
5
  base64
6
6
  json
7
7
  net-http
@@ -13,7 +13,7 @@ GEM
13
13
  specs:
14
14
  base64 (0.1.0)
15
15
  ipaddr (1.2.4)
16
- json (2.6.2)
16
+ json (2.5.1)
17
17
  minitest (5.18.0)
18
18
  net-http (0.3.2)
19
19
  uri
@@ -55,6 +55,8 @@ module MintHttp
55
55
  @open_timeout = open
56
56
  @write_timeout = write
57
57
  @read_timeout = read
58
+
59
+ self
58
60
  end
59
61
 
60
62
  def base_url(url)
@@ -47,15 +47,15 @@ module MintHttp
47
47
  def raise!
48
48
  case @status_code
49
49
  when 401
50
- raise Errors::AuthenticationError.new('Unauthenticated', self)
50
+ raise AuthenticationError.new('Unauthenticated', self)
51
51
  when 403
52
- raise Errors::AuthorizationError.new('Forbidden', self)
52
+ raise AuthorizationError.new('Forbidden', self)
53
53
  when 404
54
- raise Errors::NotFoundError.new('Not Found', self)
54
+ raise NotFoundError.new('Not Found', self)
55
55
  when 400..499
56
- raise Errors::ClientError.new('Client Error', self)
56
+ raise ClientError.new('Client Error', self)
57
57
  when 500..599
58
- raise Errors::ClientError.new('Server Error', self)
58
+ raise ClientError.new('Server Error', self)
59
59
  else
60
60
  self
61
61
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MintHttp
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.3"
5
5
  end
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.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-07-12 00:00:00.000000000 Z
11
+ date: 2023-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-http