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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f20d31c38b9e0f1311379e2d2b5f6637b2d5241abe6e0504ed0b448eb044909
|
4
|
+
data.tar.gz: 40f8da2f352ffbbbadee190efd5db47e89008e15d95165f7d7b9cba6d64574ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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.
|
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
|