multiwoven-integrations 0.1.9 → 0.1.11

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: 963846d1e3ea7df882fc98263163811be9911cd15e86f140956fa7b22b99cbf0
4
- data.tar.gz: 99143c05e11f7bf71e6a3f120015c249fc509100711764fb1c0fe07518d32d7f
3
+ metadata.gz: a756cc83a766fcdb2cd12ef8f61592585ca88fcb43dac55b24082f66b39aadbb
4
+ data.tar.gz: 0e85dde42a6cb98853815cc1e9dbc99907c245955d0a81ee6bef10a2a6421211
5
5
  SHA512:
6
- metadata.gz: a330627fa3362c495ec824a2d64509d2fa79c25a2ba98c5caba0da37f5cdda3bcc0a6d5453689940e40c92b54506282bccbbaa0b7235c9d1eaac08a269ae6529
7
- data.tar.gz: d5e904ffa2dd08932f3eeb719b626a02384b3876aa94629fd84cd87da1abb26a0853a7f64601f6bf40199d20dfba2c120878b681a431be2ae6bc89b4310a9c9d
6
+ metadata.gz: 1515e026e9d7ca73d7bd5e5b35776e77229cb7a52d765e3da673a736d178ae78f24cc22eeba69760431beee40bd70f175e0ed0f3fa10b40e5eddf6a1afa4d417
7
+ data.tar.gz: 9e39d1c8df57d50fe7d704fcd0a19fbfc982f001a0e167cddd44949246b6556893dbb2da7d33a372c66b8c5dda76acb7ec958e03e2b21418ef9e932d8d87c5f4
@@ -11,7 +11,9 @@ module Multiwoven
11
11
  META_DATA_PATH = "config/meta.json"
12
12
  CONNECTOR_SPEC_PATH = "config/spec.json"
13
13
  CATALOG_SPEC_PATH = "config/catalog.json"
14
- SNOWFLAKE_DRIVER_PATH = "/opt/snowflake/snowflakeodbc/lib/universal/libSnowflake.dylib"
14
+ SNOWFLAKE_MAC_DRIVER_PATH = "/opt/snowflake/snowflakeodbc/lib/universal/libSnowflake.dylib"
15
+
16
+ SNOWFLAKE_DRIVER_PATH = ENV["SNOWFLAKE_DRIVER_PATH"] || SNOWFLAKE_MAC_DRIVER_PATH
15
17
 
16
18
  # CONNECTORS
17
19
  KLAVIYO_AUTH_ENDPOINT = "https://a.klaviyo.com/api/lists/"
@@ -5,7 +5,7 @@
5
5
  "category": "Adtech",
6
6
  "documentation_url": "https://docs.mutliwoven.com",
7
7
  "github_issue_label": "destination-facebook",
8
- "icon": "https://raw.githubusercontent.com/Multiwoven/multiwoven-integrations/assets/images/destination/facebook.svg",
8
+ "icon": "facebook.svg",
9
9
  "license": "MIT",
10
10
  "release_stage": "alpha",
11
11
  "support_level": "community",
@@ -5,7 +5,7 @@
5
5
  "category": "Marketing Automation",
6
6
  "documentation_url": "https://docs.mutliwoven.com",
7
7
  "github_issue_label": "destination-klaviyo",
8
- "icon": "https://raw.githubusercontent.com/Multiwoven/multiwoven-integrations/assets/images/destination/klaviyo.svg",
8
+ "icon": "klaviyo.svg",
9
9
  "license": "MIT",
10
10
  "release_stage": "alpha",
11
11
  "support_level": "community",
@@ -5,7 +5,7 @@
5
5
  "category": "CRM",
6
6
  "documentation_url": "https://docs.mutliwoven.com",
7
7
  "github_issue_label": "destination-salesforce-crm",
8
- "icon": "https://raw.githubusercontent.com/Multiwoven/multiwoven-integrations/assets/images/destination/salesforce.svg",
8
+ "icon": "salesforce.svg",
9
9
  "license": "MIT",
10
10
  "release_stage": "alpha",
11
11
  "support_level": "community",
@@ -5,7 +5,7 @@
5
5
  "category": "Team Collaboration",
6
6
  "documentation_url": "https://docs.mutliwoven.com",
7
7
  "github_issue_label": "destination-slack",
8
- "icon": "https://raw.githubusercontent.com/Multiwoven/multiwoven-integrations/assets/images/destination/slack.svg",
8
+ "icon": "slack.svg",
9
9
  "license": "MIT",
10
10
  "release_stage": "alpha",
11
11
  "support_level": "community",
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.1.9"
5
+ VERSION = "0.1.11"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
@@ -3,6 +3,7 @@
3
3
  module Multiwoven
4
4
  module Integrations
5
5
  class Service
6
+ MAIN_BRANCH_SHA = Git.ls_remote("https://github.com/Multiwoven/multiwoven-integrations")["head"][:sha]
6
7
  class << self
7
8
  def initialize
8
9
  yield(config) if block_given?
@@ -37,14 +38,12 @@ module Multiwoven
37
38
 
38
39
  def build_connectors(enabled_connectors, type)
39
40
  enabled_connectors.map do |connector|
40
- client = connector_class(
41
- type, connector
42
- ).new
43
- client.meta_data["data"].to_h.merge(
44
- {
45
- connector_spec: client.connector_spec.to_h
46
- }
47
- )
41
+ client = connector_class(type, connector).new
42
+ connector_spec = { connector_spec: client.connector_spec.to_h }
43
+ icon_name = client.meta_data.with_indifferent_access["data"]["icon"]
44
+ icon_url = "https://raw.githubusercontent.com/Multiwoven/multiwoven-integrations/#{MAIN_BRANCH_SHA}/assets/images/connectors/#{icon_name}"
45
+ client.meta_data["data"].to_h.merge!(connector_spec)
46
+ client.meta_data["data"].to_h.merge!({ "icon": icon_url })
48
47
  end
49
48
  end
50
49
 
@@ -5,7 +5,7 @@
5
5
  "category": "Data Warehouse",
6
6
  "documentation_url": "https://docs.mutliwoven.com",
7
7
  "github_issue_label": "source-bigquery",
8
- "icon": "https://raw.githubusercontent.com/Multiwoven/multiwoven-integrations/assets/images/source/bigquery.svg",
8
+ "icon": "bigquery.svg",
9
9
  "license": "MIT",
10
10
  "release_stage": "alpha",
11
11
  "support_level": "community",
@@ -5,7 +5,7 @@
5
5
  "category": "Data Warehouse",
6
6
  "documentation_url": "https://docs.mutliwoven.com",
7
7
  "github_issue_label": "source-redshift",
8
- "icon": "https://raw.githubusercontent.com/Multiwoven/multiwoven-integrations/assets/images/source/redshift.svg",
8
+ "icon": "redshift.svg",
9
9
  "license": "MIT",
10
10
  "release_stage": "alpha",
11
11
  "support_level": "community",
@@ -5,7 +5,7 @@
5
5
  "category": "Data Warehouse",
6
6
  "documentation_url": "https://docs.mutliwoven.com",
7
7
  "github_issue_label": "source-snowflake",
8
- "icon": "https://raw.githubusercontent.com/Multiwoven/multiwoven-integrations/assets/images/source/snowflake.svg",
8
+ "icon": "snowflake.svg",
9
9
  "license": "MIT",
10
10
  "release_stage": "alpha",
11
11
  "support_level": "community",
@@ -13,6 +13,7 @@ require "active_support/core_ext/hash/indifferent_access"
13
13
  require "restforce"
14
14
  require "logger"
15
15
  require "slack-ruby-client"
16
+ require "git"
16
17
 
17
18
  # Service
18
19
  require_relative "integrations/config"
@@ -38,6 +38,7 @@ Gem::Specification.new do |spec|
38
38
  spec.add_runtime_dependency "dry-schema"
39
39
  spec.add_runtime_dependency "dry-struct"
40
40
  spec.add_runtime_dependency "dry-types"
41
+ spec.add_runtime_dependency "git"
41
42
  spec.add_runtime_dependency "google-cloud-bigquery"
42
43
  spec.add_runtime_dependency "pg"
43
44
  spec.add_runtime_dependency "rake"
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.9
4
+ version: 0.1.11
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-02-01 00:00:00.000000000 Z
11
+ date: 2024-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: git
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: google-cloud-bigquery
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -279,13 +293,13 @@ files:
279
293
  - LICENSE.txt
280
294
  - README.md
281
295
  - Rakefile
282
- - assets/images/destination/facebook.svg
283
- - assets/images/destination/klaviyo.svg
284
- - assets/images/destination/salesforce.svg
285
- - assets/images/destination/slack.svg
286
- - assets/images/source/bigquery.svg
287
- - assets/images/source/redshift.svg
288
- - assets/images/source/snowflake.svg
296
+ - assets/images/connectors/bigquery.svg
297
+ - assets/images/connectors/facebook.svg
298
+ - assets/images/connectors/klaviyo.svg
299
+ - assets/images/connectors/redshift.svg
300
+ - assets/images/connectors/salesforce.svg
301
+ - assets/images/connectors/slack.svg
302
+ - assets/images/connectors/snowflake.svg
289
303
  - lib/multiwoven/integrations.rb
290
304
  - lib/multiwoven/integrations/config.rb
291
305
  - lib/multiwoven/integrations/core/base_connector.rb
@@ -348,7 +362,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
348
362
  - !ruby/object:Gem::Version
349
363
  version: '0'
350
364
  requirements: []
351
- rubygems_version: 3.5.3
365
+ rubygems_version: 3.4.1
352
366
  signing_key:
353
367
  specification_version: 4
354
368
  summary: Integration suite for open source reverse ETL platform
File without changes
File without changes
File without changes