brite_verify 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86fd959a7b28e7efa8870e756c55953255e64c38ab4eecd0dc13311ca6b5ae5a
4
- data.tar.gz: 296f2f1a19fea96df3f87bfc31e5883cac4faf646e4f8351f3c3536b39130320
3
+ metadata.gz: e5385c5930330a42a60cbcaa0d65b4bc61315b7f98b71d285b1058489e757139
4
+ data.tar.gz: e1f3d67fdf2ee922e279fb68010550374b8ef4f72a97d7f6ccfae167aece25df
5
5
  SHA512:
6
- metadata.gz: b8db2c52fcc9fbe5a0b24336aabeff756ca5748d0243c0b9412a65b15d7ddbc760138dce1797f4d369bff405dc6625451615fb613e7ebeddacf69adad81c8e4b
7
- data.tar.gz: ce40dda7acaca99af43cc8f4f1e377c590a768f5e8c6b05bf260582b26afd46a41e3726d4158bd0dc21ab8bbe2dd3983261c8188f9b1b776d27d18cad2e43046
6
+ metadata.gz: 54889aba86e72539717ac42b7db0484b986c46a904908937176672cb0f4ecfb490046117c655f92676c5b635df7d06d3786203978cc4c43bf3130bd30d769cbd
7
+ data.tar.gz: 588da87c932fab8b4140defd5d6d4dcb27fd9d4cc62cd66e33e94f57c84ccc615f7d6e733c14f2730e74ac5dac837d04075c645ebf2e2a3f315067542a8ef02f
data/README.md CHANGED
@@ -52,7 +52,7 @@ email.error
52
52
  => "Email domain invalid"
53
53
  ```
54
54
 
55
- You can skip the API key parameter and specify the `BRITEVERIFY_API_KEY` environment variable for convenience. The connection timeouts can be configured via the `BRITEVERIFY_READ_TIMEOUT` and `BRITEVERIFY_CONTINUE_TIMEOUT` environment variables.
55
+ You can skip the API key parameter and specify the `BRITEVERIFY_API_KEY` environment variable for convenience. The connection timeouts can be configured via the `BRITEVERIFY_CONTINUE_TIMEOUT`, `BRITEVERIFY_CONTINUE_TIMEOUT` and `BRITEVERIFY_READ_TIMEOUT` environment variables.
56
56
 
57
57
  ## Contributing
58
58
 
@@ -21,8 +21,9 @@ module BriteVerify
21
21
  uri = verification_uri(address)
22
22
  http = Net::HTTP.new(uri.host, uri.port)
23
23
  http.use_ssl = true
24
- http.read_timeout = ENV.fetch("BRITEVERIFY_READ_TIMEOUT", 60).to_i
25
24
  http.continue_timeout = ENV.fetch("BRITEVERIFY_CONTINUE_TIMEOUT", 60).to_i
25
+ http.open_timeout = ENV.fetch("BRITEVERIFY_OPEN_TIMEOUT", 60).to_i
26
+ http.read_timeout = ENV.fetch("BRITEVERIFY_READ_TIMEOUT", 60).to_i
26
27
  http.verify_mode = OpenSSL::SSL::VERIFY_PEER
27
28
  request = Net::HTTP::Get.new(uri.request_uri)
28
29
  response = http.request(request)
@@ -1,3 +1,3 @@
1
1
  module BriteVerify
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brite_verify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Schoeters
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-13 00:00:00.000000000 Z
11
+ date: 2021-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest