toolhound-ruby 1.0.25 → 1.0.26

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5d107636f011d40489fff323f3ceedbf0649cad
4
- data.tar.gz: 6254123e78819fe5b13b4a13ce580d770be220e9
3
+ metadata.gz: ce6f1f750b8f13b9bfd68244d35fd6100b5a6534
4
+ data.tar.gz: ef2dad970686ce35b36e9dcba83a7faaa69a0c60
5
5
  SHA512:
6
- metadata.gz: 66ba6a187aee5e8523a50bc7aafe2b2f80201cf6cf4e45cc18fc9c923dd42296255119ee44ce335433726012c9f5243c93c18d3f8fccf8cd66d9f1bbf77f6e40
7
- data.tar.gz: f56e759259fd3a8a42d923f10851b83e37747b2572f38ab3f4710b92ddb997de5a3341f09d52abb4013e5a0443c5b4123c30aa9ab014b7564e5e580e043acaa7
6
+ metadata.gz: d2bb703e2e18d69ddf6e0835cb1fc3c38241075d01e56ccf7ed56fa658a3d6d5f516328848adf74ffebeb2f684fc9f24bfaead333e3d788fbdc00981a067a152
7
+ data.tar.gz: 89698f322d8ab89e7740e2c84b72b3fb8f23aa72a5ba22eb8483bbe8904ec8e319b39ffccd0ea544cc437513948160601a162ae7fad061d55ff5748859a55afc
@@ -20,7 +20,7 @@ module Toolhound
20
20
  port: @port,
21
21
  username: @username,
22
22
  password: @password,
23
- timeout: 10
23
+ timeout: @timeout
24
24
  )
25
25
  end
26
26
 
@@ -2,7 +2,7 @@ module Toolhound
2
2
  module Configurable
3
3
 
4
4
  # attr_accessor :auto_paginate, :per_page
5
- attr_writer :dataserver, :port, :username, :password
5
+ attr_writer :dataserver, :port, :username, :password, :timeout
6
6
 
7
7
  # Define static methods
8
8
  class << self
@@ -12,7 +12,8 @@ module Toolhound
12
12
  :dataserver,
13
13
  :port,
14
14
  :username,
15
- :password
15
+ :password,
16
+ :timeout
16
17
  ]
17
18
  end
18
19
  end
@@ -42,6 +42,9 @@ module Toolhound
42
42
  # ENV['NEARMISS_EMAIL'] || config['email']
43
43
  end
44
44
 
45
+ def timeout
46
+ config['timeout'] || 10
47
+ end
45
48
  # Default BIM360-Field password for Basic Auth from ENV
46
49
  # @return [String]
47
50
  def password
@@ -1,3 +1,3 @@
1
1
  module Toolhound
2
- VERSION = "1.0.25"
2
+ VERSION = "1.0.26"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toolhound-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.25
4
+ version: 1.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Klooth