multiwoven-integrations 0.1.45 → 0.1.47

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: b41e90c242d9bfdcb667c6102c7835c16a439f5f4d17e6c2bbb5c5e6291ae9ea
4
- data.tar.gz: 23c897210842fa51f39d40bd72b6425d1db37d104c1da6568c14533c7e5a8b60
3
+ metadata.gz: a3717ab4d5a6874c8d994fe634fbc8a03d3670f34f421da9a929a4c5c0140fdf
4
+ data.tar.gz: 4894017bad2a8bdd663a6c70826f02bc64b88e371166c4c2a7076b11f27d442e
5
5
  SHA512:
6
- metadata.gz: d287ec1f55725f5d3b7232595e1b3c76e49c5908e7c645f9a8a02f1810408fd22b594187f33e1b6d92bac1027e12b6de98563c84769516592410715cb9c8bd2e
7
- data.tar.gz: 7ef7c2a64975561ff79352572d10563fccf990f723fab3eac1ae35d9f49b6bb975d82f9c768767340b53723c0efb91410a56dd41ff460482393d94ca8a83fcff
6
+ metadata.gz: d50f3ef6a5ec4a4ff6fafc63009327eeea97b7d58bd3ea29337979f7529843a21d1e1b1c9f58d02b844d36c63b8fffd545bbc4bad288ac0dd2df5f9ec022c535
7
+ data.tar.gz: 83d37be362a7bc1e413455b5ae1684fa8349ee470ed0bad2009e163355b7583a1662560f8cf64112351335889e052c4f96c7b44b36b8bfcb340bb1a813fe17c8
@@ -3,7 +3,7 @@
3
3
  "name": "Postgresql",
4
4
  "title": "PostgreSQL",
5
5
  "connector_type": "destination",
6
- "category": "Data Warehouse",
6
+ "category": "Database",
7
7
  "documentation_url": "https://docs.mutliwoven.com",
8
8
  "github_issue_label": "destination-postgresql",
9
9
  "icon": "icon.svg",
@@ -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 == 2
74
- control_message("Successfully cleared data.", "succeeded")
75
- else
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")
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.1.45"
5
+ VERSION = "0.1.47"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
@@ -24,6 +24,7 @@ module Multiwoven
24
24
  Stripe
25
25
  SalesforceConsumerGoodsCloud
26
26
  Sftp
27
+ Postgresql
27
28
  ].freeze
28
29
  end
29
30
  end
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.45
4
+ version: 0.1.47
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-25 00:00:00.000000000 Z
11
+ date: 2024-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport