configure_semian 0.1.6 → 0.1.7

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: 2d49456bfca41b9566263d64e100be03780a1cfc
4
+ data.tar.gz: 2f768a45d58c12dc7f7280193e49b06983bd7fb4
5
5
  SHA512:
6
- metadata.gz: b8c210bd392fd05a8dc423d4882172da6798b4ac841ad86c5b376d3a3de79a46a01b2e5617e6b03e5ab5ec250545bfcf0e6e06ce18a758082c174ad6e49847d7
7
- data.tar.gz: 6ca39a743bd2528a7ca9a354e16570fc3b862fc0c2ab6620523a8ca53c1392b1e0ea761e67f940394a2cd8e6c3c51dd5db4f6fa5dc85999eb086b7829ba6b955
6
+ metadata.gz: 5ece1cf91ef0e04c2924e9c003b1710f863b6746dbaaa111b911eab3c5f55e22896d285d1af2f41b6bf856bb45de16697525bec2fcaff2474f44eefe4963c1bf
7
+ data.tar.gz: 3f51feefd5aeeef7cf0f3ca70fcfc97126f4bdd73ebe5551de1a0146861d0161b41b195b30a55dcac1ff90aaf7c8322763121b1b068da2a876a1f2d96faa956b
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.7)
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 && self.read_timeout < timeout) ? self.read_timeout : timeout
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.7"
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.7
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-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails