mihari 5.4.8 → 5.4.9

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: 80cd943b56266398aebedf99a1d4f41cee448f22d1338353c42d6eb014d9663f
4
- data.tar.gz: 5e1fe745405432f5bfa711371f7065b0a0f5ca9db1fb3348cc240644ac230350
3
+ metadata.gz: 1075febacca36de11c1285b0c08ef54fb41d3c0c7fe3e3df51b2dff28c597fe4
4
+ data.tar.gz: 56475aef95d5dd5fda32ef7a8633fc2d064219abdb05706d849f15f998c41db2
5
5
  SHA512:
6
- metadata.gz: 1bdbee7c0359654bdc6ca06b61b9f36df098a239a854394dc44d91fbc44fd9379fec38fe345f85e7decb6a032393d30e792baef9f530aaf10f5e6876af93b2fd
7
- data.tar.gz: 5c47ad00c85b343d32b6f615e2ad89504d744eaae3bd4425708f2244a2515597d1dd07355cf70a8d55781be25e96c65301147876b097822e023a3851dd8cf40f
6
+ metadata.gz: e18c315a2389a836aff99fd1da1c50749e83d9272a79c1215d22cd649758c3fd6d74dfabc1445d2c1127b18ea100abebd21326766bc2da79cd5c77a9ba27da3d
7
+ data.tar.gz: 696b2c8d8e045f647f33a25dceec868676f2e04a8a38cc1e55cfe357356e5a5282f6b42085c2a8c4277d7309e47d8724d86c05d63ec8baf8937bd65dc8cf97cd
data/lib/mihari/http.rb CHANGED
@@ -33,7 +33,9 @@ module Mihari
33
33
  # @return [::HTTP::Client]
34
34
  #
35
35
  def build(headers: {}, timeout: nil)
36
- ::HTTP.use(:better_error).headers(headers).timeout(timeout || {})
36
+ client = ::HTTP.use(:better_error).headers(headers)
37
+ client.timeout(timeout) unless timeout.nil?
38
+ client
37
39
  end
38
40
  end
39
41
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mihari
4
- VERSION = "5.4.8"
4
+ VERSION = "5.4.9"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mihari
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.8
4
+ version: 5.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki