trophonius 1.1.2 → 1.1.3
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 +4 -4
- data/lib/trophonius_connection.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1a3dfbe463b4a2b68ed2c2112e20b10c560e22e476ea00f668478593fa17ad4c
|
|
4
|
+
data.tar.gz: 9482729939a3299f1b9d9066b5b2146ed416ac91499afdc420e1a8a24236c2aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f4a76d509f8c268e6692600b7322d9497738efdabc839b1127c8a29a36c5f1239ba3586614b0707b4077f368ac479db350bdb4dba991ae87f610eccb11891115
|
|
7
|
+
data.tar.gz: 4616ca07aa6192f710acc16d2826fa626fd94a41b0884bf054cae0863513e518f36d6962c7c35a3543c32fd36e57f30c1557b00cfdb78b6a749acb2940a48998
|
|
@@ -27,7 +27,7 @@ module Trophonius
|
|
|
27
27
|
request = Typhoeus::Request.new(
|
|
28
28
|
url,
|
|
29
29
|
method: :post,
|
|
30
|
-
body: Trophonius.config.external_name.empty? ? {} : { fmDataSource: [
|
|
30
|
+
body: Trophonius.config.external_name.empty? ? {} : { fmDataSource: [{ database: Trophonius.config.external_name, username: Trophonius.config.external_username, password: Trophonius.config.external_password }] }.to_json,
|
|
31
31
|
params: {},
|
|
32
32
|
ssl_verifyhost: ssl_verifyhost,
|
|
33
33
|
ssl_verifypeer: ssl_verifypeer,
|
|
@@ -84,7 +84,11 @@ module Trophonius
|
|
|
84
84
|
# Returns whether the current connection is still valid
|
|
85
85
|
# @return [Boolean] True if the connection is valid False if invalid
|
|
86
86
|
def self.valid_connection?
|
|
87
|
-
|
|
87
|
+
if test_connection == false
|
|
88
|
+
false
|
|
89
|
+
else
|
|
90
|
+
@last_connection.nil? ? false : (((Time.now - last_connection) / 60).round <= 15 || test_connection)
|
|
91
|
+
end
|
|
88
92
|
end
|
|
89
93
|
end
|
|
90
94
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trophonius
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kempen Automatisering
|
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
88
88
|
version: '0'
|
|
89
89
|
requirements: []
|
|
90
90
|
rubyforge_project:
|
|
91
|
-
rubygems_version: 2.7.
|
|
91
|
+
rubygems_version: 2.7.9
|
|
92
92
|
signing_key:
|
|
93
93
|
specification_version: 4
|
|
94
94
|
summary: Link between Ruby (on Rails) and FileMaker.
|