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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/trophonius_connection.rb +6 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f55a33c411a7d8e30e6b71817c8f4becba9579bedbd1971d1d3edb184ad9974
4
- data.tar.gz: '09e8776664aaf9cf5c8b87e1373f0f8455692c793d84ac93876d98c949aa783d'
3
+ metadata.gz: 1a3dfbe463b4a2b68ed2c2112e20b10c560e22e476ea00f668478593fa17ad4c
4
+ data.tar.gz: 9482729939a3299f1b9d9066b5b2146ed416ac91499afdc420e1a8a24236c2aa
5
5
  SHA512:
6
- metadata.gz: f53e29093fcbd1d2917ccb35b2a313a7aaa533d47ea82251de514a4e642bec843d3b74e65db5dcb6657e7c5151ca9d02c68ad67b0c3db073ced60ab449c725b7
7
- data.tar.gz: 19e3cd597557bb9016726b3518e169769dd24a297f65774555b7633e86b2a2c7ea17e34ad37f44bbd68bcc489b56fcc1050346338efa985c47d1022abe09af17
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: [ { database: Trophonius.config.external_name , username: Trophonius.config.external_username, password: Trophonius.config.external_password } ] }.to_json,
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
- @last_connection.nil? ? false : (((Time.now - last_connection) / 60).round <= 15 || test_connection)
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.2
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.8
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.