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 +4 -4
- data/Gemfile.lock +4 -2
- data/lib/configure_semian/net_http.rb +5 -2
- data/lib/configure_semian/semian_configuration.rb +1 -1
- data/lib/configure_semian/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d49456bfca41b9566263d64e100be03780a1cfc
|
4
|
+
data.tar.gz: 2f768a45d58c12dc7f7280193e49b06983bd7fb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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
|
-
|
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
|
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.
|
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:
|
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: []
|