mint_http 0.1.6 → 0.1.7

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: 63e31ba9d13e9a4c3b6c4abfd32e1364c58f741ee3c29e0eac4aa4f27e255d53
4
- data.tar.gz: 3c37eb759b431524bfad3752416ea4f0258182fded0e5ca3253d2d923614151c
3
+ metadata.gz: 51ad5decdb74925fcbc5e48bf9bb8e7edeac7d4838a690c6d6abbb61f5b77a69
4
+ data.tar.gz: 9a280c88d46aa396c3c558f3739f0e11c473a6fdf8c85ba7e523cd241d42ea2f
5
5
  SHA512:
6
- metadata.gz: bd7ead92124e1bd73d3ac973bdac60185ed05013ace2a71229b4b4cf5444e141f2deb82cfa5197f93f864f4168f5be855ffb57d840bb30247ae24e6c05315609
7
- data.tar.gz: 4ce792e6a54c19b9935267857889ac923ea8d0ac248999faa1e00863d993639b796615255e9bbf43b24381615416f100e0cf9c88756da7882deac6d2f9eb1d5e
6
+ metadata.gz: 22824a626569a7cbe2945a54763f2c92e9fd11ecd8f0e3294b630fd04b1694200c41dda0396e420483f56e25f484d37e423f0fdeb1b7c0a059ab15c61af6f84a
7
+ data.tar.gz: addfab3c50084bbbd3daf488e059c0f18da6e9956a2b4d449a299c25d17b44a9307b3c5535380b10b5a3f2fc60e903edf13507393eff44a276a3ec5b0c7d5dad
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mint_http (0.1.5)
4
+ mint_http (0.1.6)
5
5
  base64
6
6
  json
7
7
  net-http
@@ -336,7 +336,7 @@ module MintHttp
336
336
  if @pool
337
337
  @pool.release(net_http)
338
338
  else
339
- net_http.finish
339
+ net_http.finish if net_http.started?
340
340
  end
341
341
  end
342
342
  end
@@ -55,7 +55,7 @@ module MintHttp
55
55
  when 400..499
56
56
  raise ClientError.new('Client Error', self)
57
57
  when 500..599
58
- raise ClientError.new('Server Error', self)
58
+ raise ServerError.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.6"
4
+ VERSION = "0.1.7"
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.6
4
+ version: 0.1.7
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-10-16 00:00:00.000000000 Z
11
+ date: 2024-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-http