nethttputils 0.3.2.5 → 0.3.2.6

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
  SHA1:
3
- metadata.gz: bd8f869b3617b0ac419185dad8c2a63a17843e0b
4
- data.tar.gz: 202eae3aaf1b2cc53eca758adcc4a103fe45f450
3
+ metadata.gz: ba824c7599a1d7d935dfd5c9bcc01c991201211e
4
+ data.tar.gz: f6a5d7a00cc2a7f167562721b43ffa5df8ad0130
5
5
  SHA512:
6
- metadata.gz: 5b6e931944769ed28ed65cfd1d5864137e98cece14c151c1aafbb2b5550591f51768d30a97e0a7b66de8f8894cb4008da89cd1f5963745554e6244da6e0f3d0c
7
- data.tar.gz: 41afb56a5ccb929d975bc019930dab804bc1ed4e103867ba1763ac1e63275e1cabd93c2355feecb306f1161ba4fa70e56d30b1a7f232b1a2e07af4b0f9c4d801
6
+ metadata.gz: e973a3584da011dc3ef82c376d72dee3b665fae76660efd6c4e0bb7c9133b3aa146083ed96f9df81492134b98893e32fed797728dac0ac0e222d456573aabc2c
7
+ data.tar.gz: b4faeeaf94da3a2c7bc614a16682aa7f8cf17c5ba1eb20eecf31f3d588d03d43eaaaf90dc9ef73dc089807a67a5572d97139efaf430f1289171ad6a80bdc3811
@@ -273,6 +273,8 @@ module NetHTTPUtils
273
273
  end
274
274
  public
275
275
 
276
+ require "set"
277
+ @@_405 ||= Set.new
276
278
  def request_data http, mtd = :GET, type = :form, form: {}, header: {}, auth: nil, timeout: 30,
277
279
  max_start_http_retry_delay: 3600,
278
280
  max_read_retry_delay: 3600,
@@ -294,8 +296,6 @@ module NetHTTPUtils
294
296
  )
295
297
  end
296
298
  end
297
- require "set"
298
- @@_405 ||= Set.new
299
299
  if mtd == :GET && !@@_405.include?(http.address)
300
300
  body = begin
301
301
  request_data http, :HEAD, form: form, header: header, auth: auth,
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "nethttputils"
3
- spec.version = "0.3.2.5"
3
+ spec.version = "0.3.2.6"
4
4
  spec.summary = "this tool is like a pet that I adopted young and now I depend on, sorry"
5
5
  spec.description = <<-EOF
6
6
  Back in 2015 I was a guy automating things at my job and two scripts had a common need --
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nethttputils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2.5
4
+ version: 0.3.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Maslov aka Nakilon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-03 00:00:00.000000000 Z
11
+ date: 2019-02-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  Back in 2015 I was a guy automating things at my job and two scripts had a common need --