code-ruby 1.8.14 → 1.8.15

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: 9878b7c9982e4c6a8ce5fe805e7554146806aafbf0ab49cea8506041aa32aa9a
4
- data.tar.gz: e8903b2ab607f7e07c703d13e4ef7737e6794498dd35ec930f90753089ed6664
3
+ metadata.gz: 1f71684c4dc7d49cba70fd38bcd64ad838a0f3c303dbb492364e2cd7a8d66d55
4
+ data.tar.gz: 1debf69960b9da25c30f2523aa64df84e7ee0d6fc5b4965d7ceb956c66244a3f
5
5
  SHA512:
6
- metadata.gz: faab10cb784cd9bdf971cf8ad3db74e200c6367ee52c1116290f15525789d8e9d0186721b4918533352d03b9f8db0a67d63955f5019facc82036dbb100692d87
7
- data.tar.gz: c3485d1f028729ce3bd227129e165f52e6fa261a18567d69357e4e600f44b600076406b402d81a48c2bf1ee8942220cb111fa687348f7818a408a0a84a7a7a65
6
+ metadata.gz: 7dfb5cc19d6334ca14906b74be16ce26d6bec269e6f78030ad3ce6ef00fa0ded8ade6b6af3c6fb0c0e39aa8849cc64425fec6ee95e669ab8f50cd9d5dd866066
7
+ data.tar.gz: abe4ea08744984d2f84f099dedb81e31b041b3d19a97fa173655f727cdda435d78a790bd5b8601f068ed3c953a7c28ebc7624a2a3ca573de1456ab113af36927
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- code-ruby (1.8.14)
4
+ code-ruby (1.8.15)
5
5
  activesupport
6
6
  base64
7
7
  bigdecimal
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.14
1
+ 1.8.15
@@ -84,6 +84,7 @@ class Code
84
84
  not_extended: 510,
85
85
  network_authentication_required: 511
86
86
  }.freeze
87
+ DEFAULT_TIMEOUT = 1.hour.to_f
87
88
 
88
89
  def self.call(**args)
89
90
  code_operator = args.fetch(:operator, nil).to_code
@@ -182,7 +183,7 @@ class Code
182
183
  uri = ::URI.parse(url)
183
184
  http = ::Net::HTTP.new(uri.host, uri.port)
184
185
  http.use_ssl = true if uri.scheme == "https"
185
- default_timeout = timeout.nothing? ? Float::INFINITY : timeout.to_f
186
+ default_timeout = timeout.nothing? ? DEFAULT_TIMEOUT : timeout.to_f
186
187
  open_timeout_value = open_timeout.nothing? ? default_timeout : open_timeout.to_f
187
188
  read_timeout_value = read_timeout.nothing? ? default_timeout : read_timeout.to_f
188
189
  write_timeout_value = write_timeout.nothing? ? default_timeout : write_timeout.to_f
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.14
4
+ version: 1.8.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié