multiwoven-integrations 0.1.44 → 0.1.46
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 +4 -4
- data/lib/multiwoven/integrations/core/utils.rb +1 -1
- data/lib/multiwoven/integrations/destination/sftp/client.rb +3 -6
- data/lib/multiwoven/integrations/destination/sftp/config/catalog.json +1 -1
- data/lib/multiwoven/integrations/protocol/protocol.rb +1 -1
- data/lib/multiwoven/integrations/rollout.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9d5c2974ca47dcb890b63d5cecc36dda1aa8ccb5aa18f47bd5290e0c93404cf1
|
|
4
|
+
data.tar.gz: 50f189b498ec3ea5c9231a1f6736997e1beaebd0f34334592495e13081aca1a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 382240e745a2e409d9892b714176f049f2b4b3f3e5a87b5c115db298dc3ab584bb3cafb2cb107f90e6adb3f17e09b3471b968f5ce26d6c019cffcd9a257cf1b7
|
|
7
|
+
data.tar.gz: 2c9e92a298cfab8e4287ebaa8e38c3d25a2d07e6cfffcea3785a73586abd1a7ad1f58ab5d5ee3f64005c2d08c0a5374fc03fcb6c84968db3af2c77301cd20226
|
|
@@ -80,7 +80,7 @@ module Multiwoven
|
|
|
80
80
|
request_rate_limit: catalog_json["request_rate_limit"] || 60,
|
|
81
81
|
request_rate_limit_unit: catalog_json["request_rate_limit_unit"] || "minute",
|
|
82
82
|
request_rate_concurrency: catalog_json["request_rate_concurrency"] || 10,
|
|
83
|
-
schema_mode: catalog_json["schema_mode"] ||
|
|
83
|
+
schema_mode: catalog_json["schema_mode"] || "schema"
|
|
84
84
|
)
|
|
85
85
|
end
|
|
86
86
|
|
|
@@ -66,15 +66,12 @@ module Multiwoven::Integrations::Destination
|
|
|
66
66
|
connection_specification = sync_config.destination.connection_specification.with_indifferent_access
|
|
67
67
|
with_sftp_client(connection_specification) do |sftp|
|
|
68
68
|
files = sftp.dir.glob(connection_specification[:destination_path], "*")
|
|
69
|
-
|
|
70
69
|
files.each do |file|
|
|
71
70
|
sftp.remove!(File.join(connection_specification[:destination_path], file.name))
|
|
72
71
|
end
|
|
73
|
-
if sftp.dir.entries(connection_specification[:destination_path]).size
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
control_message("Failed to clear data.", "failed")
|
|
77
|
-
end
|
|
72
|
+
return control_message("Successfully cleared data.", "succeeded") if sftp.dir.entries(connection_specification[:destination_path]).size <= 2
|
|
73
|
+
|
|
74
|
+
return control_message("Failed to clear data.", "failed")
|
|
78
75
|
end
|
|
79
76
|
rescue StandardError => e
|
|
80
77
|
control_message(e.message, "failed")
|
|
@@ -147,7 +147,7 @@ module Multiwoven
|
|
|
147
147
|
attribute? :request_rate_limit, Types::Integer.default(60)
|
|
148
148
|
attribute? :request_rate_limit_unit, RequestRateLimitingUnit
|
|
149
149
|
attribute? :request_rate_concurrency, Types::Integer.default(10)
|
|
150
|
-
attribute? :schema_mode, Types::
|
|
150
|
+
attribute? :schema_mode, Types::String.optional.default("schema")
|
|
151
151
|
|
|
152
152
|
def to_multiwoven_message
|
|
153
153
|
MultiwovenMessage.new(
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: multiwoven-integrations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.46
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Subin T P
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-03-
|
|
11
|
+
date: 2024-03-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|