multiwoven-integrations 0.1.51 → 0.1.53

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: 2efbfb751cda41f3cbb72c7c2b24dccd8cdae50dad3a63522ab90e0f4f8002e6
4
- data.tar.gz: 8b504b553afaadf3c2fa8d9606b600938aa79feb7cdece1d67546d7046e2fef3
3
+ metadata.gz: 10f0a25152e661467514cbc7e3b449e214da2890592d9d8111b14859218c989d
4
+ data.tar.gz: 574bec487c681b925346609063f282590bb15ec047aa921d0159e485ac220f28
5
5
  SHA512:
6
- metadata.gz: 922da5a0cec3cdc4262e468cf0118644cb3cd75a3c156899e5b9a72bb80d357f5afc8b02d4dbd0b831ee8d44a2dde063dcbc4ae5c02f4d227c61cbc89b9a37f9
7
- data.tar.gz: c4203099ea76b017c8d9f03e252185e01a9aa36e23a8b9cb3a0b82ee07f80401b47bffe7e1b1db5d316aba8e0bc6273f7b1190f5aeb71ebfd4f730ef6ee4ad45
6
+ metadata.gz: 0b05816f5b72663b2d96e6e01aace9bd78381c4d0044fc996236291f29ccea3b911f9684ccb071f7dd5aa2e64bdfad26b2c763ad1bbca65600d88e12c8519d0c
7
+ data.tar.gz: f1336d0173e6889e5cd4747ff072d17dfc28fa156eccc7bca9952a9f461b32a5210743f586186d64af27b9dda3c17d9b24caa4dfb3e5c73bd0c39bd6f94e64d5
@@ -11,7 +11,7 @@ module Multiwoven::Integrations::Destination
11
11
  connection_config = connection_config.with_indifferent_access
12
12
  with_sftp_client(connection_config) do |sftp|
13
13
  stream = SecureRandom.uuid
14
- test_path = "/path/to/test/#{stream}"
14
+ test_path = "#{connection_config[:destination_path]}/#{stream}"
15
15
  test_file_operations(sftp, test_path)
16
16
  return success_status
17
17
  end
@@ -82,13 +82,14 @@ module Multiwoven::Integrations::Destination
82
82
  def generate_file_path(sync_config)
83
83
  connection_specification = sync_config.destination.connection_specification.with_indifferent_access
84
84
  timestamp = Time.now.strftime("%Y%m%d-%H%M%S")
85
- file_name = "#{sync_config.stream.name}_#{timestamp}.csv"
85
+ file_name = "#{connection_specification[:file_name]}_#{timestamp}.csv"
86
86
  File.join(connection_specification[:destination_path], file_name)
87
87
  end
88
88
 
89
89
  def generate_local_file_name(sync_config)
90
+ connection_specification = sync_config.destination.connection_specification.with_indifferent_access
90
91
  timestamp = Time.now.strftime("%Y%m%d-%H%M%S")
91
- "#{sync_config.stream.name}_#{timestamp}"
92
+ "#{connection_specification[:file_name]}_#{timestamp}"
92
93
  end
93
94
 
94
95
  def generate_csv_content(records)
@@ -38,6 +38,12 @@
38
38
  "type": "string",
39
39
  "description": "Path to the directory where files will be written.",
40
40
  "order": 4
41
+ },
42
+ "file_name": {
43
+ "title": "File Name",
44
+ "type": "string",
45
+ "description": "Name of the file to be written.",
46
+ "order": 5
41
47
  }
42
48
  }
43
49
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.1.51"
5
+ VERSION = "0.1.53"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
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.51
4
+ version: 0.1.53
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-28 00:00:00.000000000 Z
11
+ date: 2024-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport