multiwoven-integrations 0.1.52 → 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: 48a0bc4db6363e13af5b5c1f72b35c00be6975e6b0a63d34117f40ba43cbf39c
4
- data.tar.gz: b0cee1ab790474c3be66718220ffa07daea339226f6ff518449c354e6ce0cdc8
3
+ metadata.gz: 10f0a25152e661467514cbc7e3b449e214da2890592d9d8111b14859218c989d
4
+ data.tar.gz: 574bec487c681b925346609063f282590bb15ec047aa921d0159e485ac220f28
5
5
  SHA512:
6
- metadata.gz: fef782ddd15c42247a39e6c4db54430388587d553a4ee0a8b4325bdc938c3460c2ccef560153e7bb467763ec67f1bc8760640c722df7be5a870993c9d98229ad
7
- data.tar.gz: 6da2703663100ff0240aefa0db8acac9382ac1c16a0445fd19bac682025b30fcd161641fefc7dc955d0519cbd3b1768462856e98a8af614b8343c38235a9b513
6
+ metadata.gz: 0b05816f5b72663b2d96e6e01aace9bd78381c4d0044fc996236291f29ccea3b911f9684ccb071f7dd5aa2e64bdfad26b2c763ad1bbca65600d88e12c8519d0c
7
+ data.tar.gz: f1336d0173e6889e5cd4747ff072d17dfc28fa156eccc7bca9952a9f461b32a5210743f586186d64af27b9dda3c17d9b24caa4dfb3e5c73bd0c39bd6f94e64d5
@@ -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)
@@ -5,7 +5,7 @@
5
5
  "schema_mode": "schemaless",
6
6
  "streams": [
7
7
  {
8
- "name": "visits",
8
+ "name": "sftp",
9
9
  "batch_support": true,
10
10
  "batch_size": 100000,
11
11
  "action": "create",
@@ -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.52"
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.52
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