multiwoven-integrations 0.13.0 → 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: 1fced6e2ecbd8a74254326095629b4cdf9bac01e7699a0a02ecfccaf1e99f793
4
- data.tar.gz: '039e2e673483c43b17af52f632a79307f3befea691f4086ad827e74ca998af99'
3
+ metadata.gz: 7f20d31c38b9e0f1311379e2d2b5f6637b2d5241abe6e0504ed0b448eb044909
4
+ data.tar.gz: 40f8da2f352ffbbbadee190efd5db47e89008e15d95165f7d7b9cba6d64574ce
5
5
  SHA512:
6
- metadata.gz: b9d9931adef3d6ce8df577e980909a5ce3a60f5ec7fff6369cdab22537896902b4c52d88e77427ed36ba3e2ac5568ab00c9058403c8ae98487779dd38a656f2f
7
- data.tar.gz: 5be61f87b72c70d497497ef6412e90109640ae9cbc46fb18ab8a50118e86df26731309128d0a16b511a1264704a3bdabc2613334481e1e4b5a852a4feb4cb39f
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.0"
5
+ VERSION = "0.13.2"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
@@ -52,6 +52,7 @@ Gem::Specification.new do |spec|
52
52
  spec.add_runtime_dependency "grpc"
53
53
  spec.add_runtime_dependency "hubspot-api-client"
54
54
  spec.add_runtime_dependency "iterable-api-client"
55
+ spec.add_runtime_dependency "MailchimpMarketing"
55
56
  spec.add_runtime_dependency "net-sftp"
56
57
  spec.add_runtime_dependency "pg"
57
58
  spec.add_runtime_dependency "rake"
@@ -65,7 +66,6 @@ Gem::Specification.new do |spec|
65
66
  spec.add_runtime_dependency "stripe"
66
67
  spec.add_runtime_dependency "tiny_tds"
67
68
  spec.add_runtime_dependency "zendesk_api"
68
- spec.add_development_dependency "MailchimpMarketing"
69
69
 
70
70
  spec.add_development_dependency "byebug"
71
71
  spec.add_development_dependency "rspec"
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.0
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Subin T P
@@ -276,6 +276,20 @@ dependencies:
276
276
  - - ">="
277
277
  - !ruby/object:Gem::Version
278
278
  version: '0'
279
+ - !ruby/object:Gem::Dependency
280
+ name: MailchimpMarketing
281
+ requirement: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - ">="
284
+ - !ruby/object:Gem::Version
285
+ version: '0'
286
+ type: :runtime
287
+ prerelease: false
288
+ version_requirements: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - ">="
291
+ - !ruby/object:Gem::Version
292
+ version: '0'
279
293
  - !ruby/object:Gem::Dependency
280
294
  name: net-sftp
281
295
  requirement: !ruby/object:Gem::Requirement
@@ -458,20 +472,6 @@ dependencies:
458
472
  - - ">="
459
473
  - !ruby/object:Gem::Version
460
474
  version: '0'
461
- - !ruby/object:Gem::Dependency
462
- name: MailchimpMarketing
463
- requirement: !ruby/object:Gem::Requirement
464
- requirements:
465
- - - ">="
466
- - !ruby/object:Gem::Version
467
- version: '0'
468
- type: :development
469
- prerelease: false
470
- version_requirements: !ruby/object:Gem::Requirement
471
- requirements:
472
- - - ">="
473
- - !ruby/object:Gem::Version
474
- version: '0'
475
475
  - !ruby/object:Gem::Dependency
476
476
  name: byebug
477
477
  requirement: !ruby/object:Gem::Requirement