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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '091443e652f456b8bd3d867b48379610f5a0405272158921c8e92f7885483aa4'
4
- data.tar.gz: 42b042095a6a3bad22c22d5cc4da0b004463b9e5a30918701a837ee480e46a80
3
+ metadata.gz: 6276398025ad35b2ff1dea30ee143d381486b9017cb98e45c19aefda5a98c165
4
+ data.tar.gz: 429fe603e9a3f386ce89ca9efeeac7ba5355c8beccf8836eeba1591700e39c50
5
5
  SHA512:
6
- metadata.gz: fe2c2aa2bb1984f361d8cc695a5e2e26cfa3d4b1479d746ec4ccd2ae2f8c1df765a11280796cf81b8812d1b6fa68cccd789b432c0c0d26226c88b8877d4cff97
7
- data.tar.gz: 9e58beac30df8cb862ce02440c2132fc88f24da196e703219443959d668e5715a24a29e5dfd9b311ebcf7c4ec3dd3f02664473f18042942c8edd814c800a845e
6
+ metadata.gz: 67a1ce62de564bb0fde0007b54a87e053a47d4fc065ce2e6b43c5c81730265a5ce37ec161085c959f1f61ae7808fc45a64b98ba4c96a3ddddc16ae6c95c75d2d
7
+ data.tar.gz: fa8a9d5fb76969f7c28f26bbb2fa097550da3af3db676347b6779fe8a6304292246808fb78ad9fa7b2c63b6effd1cc42d31faab1af1aa0d3d86d7e95d48a2691
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
@@ -48,7 +48,7 @@ module MintHttp
48
48
  raise ArgumentError, 'Expected a MintHttp::Pool' unless Pool === pool
49
49
 
50
50
  @pool = pool
51
- self
51
+ header('Connection' => 'keep-alive')
52
52
  end
53
53
 
54
54
  def timeout(open, write, read)
@@ -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.0"
4
+ VERSION = "0.1.2"
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.0
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-07-03 00:00:00.000000000 Z
11
+ date: 2023-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-http