configure_semian 0.1.5 → 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: 27d06cc95564f24b45b2570ad0731be6b2e3c721
4
- data.tar.gz: d2cbf92bce16d632a0ed9954ef567ef5964b14c7
3
+ metadata.gz: 2d49456bfca41b9566263d64e100be03780a1cfc
4
+ data.tar.gz: 2f768a45d58c12dc7f7280193e49b06983bd7fb4
5
5
  SHA512:
6
- metadata.gz: 763ffa97b5fcc6d631f13819def3608f552f5bad2b74b827e3dd7a94410940485cfbea3791fccf54aae1ef2104046f0d122ec4a10ccd45d0daee18e49af29ac2
7
- data.tar.gz: bec2dbcdbc262509280de8f4fef8b3738218f78730287a1c1f725860e020d083c0b570756c6699fed20ca371181beeef0f8efb7cd5ae5343077c758a1db17e7a
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.5)
4
+ configure_semian (0.1.7)
5
5
  rails (>= 4.0.2, <= 5.2.0)
6
6
  semian
7
7
 
@@ -67,7 +67,9 @@ GEM
67
67
  marcel (0.3.3)
68
68
  mimemagic (~> 0.3.2)
69
69
  method_source (1.0.0)
70
- mimemagic (0.3.5)
70
+ mimemagic (0.3.10)
71
+ nokogiri (~> 1)
72
+ rake
71
73
  mini_mime (1.0.2)
72
74
  mini_portile2 (2.4.0)
73
75
  minitest (5.14.0)
@@ -20,9 +20,12 @@ module Net
20
20
  specs ||= ConfigureSemian::SemianConfiguration.service_configs[host.intern][path.sub('/','').intern]
21
21
  specs ||= ConfigureSemian::SemianConfiguration.service_configs[host.intern][:default]
22
22
  end
23
- specs ||= ConfigureSemian::SemianConfiguration.service_configs[:default]
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
@@ -78,7 +78,7 @@ module ConfigureSemian
78
78
  @@semian_parameters = SemianParameters.new
79
79
 
80
80
  ::Semian::NetHTTP.semian_configuration = proc do |host, port|
81
- if !self.free_hosts.include?(host)
81
+ if !self.free_hosts.include?(host) && self.service_configs.present?
82
82
  semian_options = get_semian_parameters(host, port)
83
83
  semian_options
84
84
  else
@@ -1,3 +1,3 @@
1
1
  module ConfigureSemian
2
- VERSION = "0.1.5"
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.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - supantha
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-13 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
@@ -97,7 +97,7 @@ homepage: https://github.com/elarahq/configure_semian
97
97
  licenses:
98
98
  - MIT
99
99
  metadata: {}
100
- post_install_message:
100
+ post_install_message:
101
101
  rdoc_options: []
102
102
  require_paths:
103
103
  - lib
@@ -112,9 +112,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  - !ruby/object:Gem::Version
113
113
  version: '0'
114
114
  requirements: []
115
- rubyforge_project:
115
+ rubyforge_project:
116
116
  rubygems_version: 2.6.11
117
- signing_key:
117
+ signing_key:
118
118
  specification_version: 4
119
119
  summary: Configure Semian
120
120
  test_files: []