multiwoven-integrations 0.13.1 → 0.13.2

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
  SHA256:
3
- metadata.gz: 2ec77e033727b0ee1dcffb68d822fc7881da80914ad9c783dbc429805d269067
4
- data.tar.gz: 02b8d1a3bd999110e7a251281e414e57d4725c0d16e30947a2c299d2a0aae990
3
+ metadata.gz: 7f20d31c38b9e0f1311379e2d2b5f6637b2d5241abe6e0504ed0b448eb044909
4
+ data.tar.gz: 40f8da2f352ffbbbadee190efd5db47e89008e15d95165f7d7b9cba6d64574ce
5
5
  SHA512:
6
- metadata.gz: 13e57b0868dca890856151bccca0950d46d92113dd4deca1ef4c474513954733ac23017aa13c34a2cb98345a51ed3b9eab93c2b56994c1dd05ae5467cfb0cc0f
7
- data.tar.gz: 52e39eb65c1903c2ac9b5c237059b1f81e62d1f704737bcf96f3fbe03a1b148b1248eab662f53197395c2143b2f8328f8e5dcb8e6cc08c13c863bc5c1871b4bf
6
+ metadata.gz: cd8d4130999ac7759f1bd8aefa1430ab9d8d2c3bd3a96c392896461ef46e64ac987546d523fd4d4e1851a337ed04e598e0f00ee480c2ce355fa8faaae8855707
7
+ data.tar.gz: 064f797d1d1bd3b5290a58325b8c75a8961b4341217a93f6f17ab91403de4f16143f90243f8519abda0b2c04304fe97aee0c89450b853ff1ea956a635e3efc0b
@@ -4,10 +4,15 @@ module Multiwoven
4
4
  module Integrations::Core
5
5
  class HttpClient
6
6
  class << self
7
- def request(url, method, payload: nil, headers: {})
7
+ def request(url, method, payload: nil, headers: {}, config: {})
8
8
  uri = URI(url)
9
9
  http = Net::HTTP.new(uri.host, uri.port)
10
10
  http.use_ssl = (uri.scheme == "https")
11
+
12
+ # Set timeout if provided
13
+ http.open_timeout = config[:timeout] if config[:timeout]
14
+ http.read_timeout = config[:timeout] if config[:timeout]
15
+
11
16
  request = build_request(method, uri, payload, headers)
12
17
  http.request(request)
13
18
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.13.1"
5
+ VERSION = "0.13.2"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multiwoven-integrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Subin T P