configure_semian 0.1.6 → 0.1.8

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: 99483466bedf99fd81d8af61ef5d4a5fbc56e0dd
4
- data.tar.gz: 1a2cee0ca5791112c0a7c6a806c6dc8357363d9e
3
+ metadata.gz: 56247f82aa90eaca6f3ca0e1649d74be7d8606c4
4
+ data.tar.gz: 02a6429116226a7f23123cf3bf306db18a6341f2
5
5
  SHA512:
6
- metadata.gz: b8c210bd392fd05a8dc423d4882172da6798b4ac841ad86c5b376d3a3de79a46a01b2e5617e6b03e5ab5ec250545bfcf0e6e06ce18a758082c174ad6e49847d7
7
- data.tar.gz: 6ca39a743bd2528a7ca9a354e16570fc3b862fc0c2ab6620523a8ca53c1392b1e0ea761e67f940394a2cd8e6c3c51dd5db4f6fa5dc85999eb086b7829ba6b955
6
+ metadata.gz: d038a5669013eda61c46088088d7442e8eb18dff951480aba0f9401023b9bfc3232d78dcdf42f596cdfbf0859f0e4387093b149eae9fed76bc0d019c1e951cf8
7
+ data.tar.gz: 39577cdf147512b3b6e7c7c7377b052f5c49c40e01e004d9aabdb05bb0315e69596c4892a1c708f661268a73f739b80c748bf5cb05548cc0efdd1cbbcd3fd7cb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- configure_semian (0.1.6)
4
+ configure_semian (0.1.8)
5
5
  rails (>= 4.0.2, <= 5.2.0)
6
6
  semian
7
7
 
@@ -22,7 +22,10 @@ module Net
22
22
  end
23
23
  specs ||= ConfigureSemian::SemianConfiguration.service_configs[:default] || {}
24
24
  timeout = specs[:timeout] || specs['timeout']
25
- return timeout
25
+
26
+ # Give preference to original read_timeout if custom timeout is more than the original
27
+ # It is helpful in case of different libraries using lower timeouts
28
+ return [self.read_timeout, timeout].compact.min
26
29
  end
27
30
 
28
31
  private
@@ -1,3 +1,3 @@
1
1
  module ConfigureSemian
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configure_semian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - supantha
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-15 00:00:00.000000000 Z
11
+ date: 2023-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails