From 49759658c365c8a6b2a9591f1e4e4f035b6c279c Mon Sep 17 00:00:00 2001 From: AS-AlStar Date: Thu, 30 Jan 2025 11:28:51 +0300 Subject: [PATCH 1/3] Fix TableSync::Publishing::Raw --- Gemfile.lock | 2 +- lib/table_sync/instrument.rb | 2 +- lib/table_sync/publishing/raw.rb | 2 +- lib/table_sync/version.rb | 2 +- spec/publishing/raw_spec.rb | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 5cb3b7d..576f1c6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - table_sync (6.6.0) + table_sync (6.6.1) memery rabbit_messaging (>= 1.1.0) rails diff --git a/lib/table_sync/instrument.rb b/lib/table_sync/instrument.rb index efab363..c294cdc 100644 --- a/lib/table_sync/instrument.rb +++ b/lib/table_sync/instrument.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module TableSync::Instrument - NOTIFIER_REQUIRED_ARGS = %i[table schema event count direction].freeze + NOTIFIER_REQUIRED_ARGS = %i[event count direction].freeze extend self diff --git a/lib/table_sync/publishing/raw.rb b/lib/table_sync/publishing/raw.rb index 16f1a9c..7191820 100644 --- a/lib/table_sync/publishing/raw.rb +++ b/lib/table_sync/publishing/raw.rb @@ -14,7 +14,7 @@ class TableSync::Publishing::Raw attribute :event, default: :update - require_attributes :model_name, :original_attributes, :table_name, :schema_name + require_attributes :model_name, :original_attributes def publish_now message.publish diff --git a/lib/table_sync/version.rb b/lib/table_sync/version.rb index b854062..6efb3a9 100644 --- a/lib/table_sync/version.rb +++ b/lib/table_sync/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module TableSync - VERSION = "6.6.0" + VERSION = "6.6.1" end diff --git a/spec/publishing/raw_spec.rb b/spec/publishing/raw_spec.rb index 4f3b5c1..0670a3c 100644 --- a/spec/publishing/raw_spec.rb +++ b/spec/publishing/raw_spec.rb @@ -42,5 +42,5 @@ include_examples "publisher#new without expected fields", TableSync::Publishing::Raw, - %i[model_name original_attributes table_name schema_name] + %i[model_name original_attributes] end From cc77952e845b5a009c88bd9e64eee4f1fd8552a2 Mon Sep 17 00:00:00 2001 From: AS-AlStar Date: Thu, 30 Jan 2025 11:32:17 +0300 Subject: [PATCH 2/3] Fix change log --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6aa1f92..4024e4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ # Changelog All notable changes to this project will be documented in this file. +## [6.6.1] - 2025-01-30 +### Changed +- Delete table_name and schema_name as required for TableSync::Publishing::Raw +- Delete table and schema as required for TableSync::Instrument#notify + ## [6.6.0] - 2024-12-06 ### Added - Add custom version attributes From f1426cf394ae10df9772cad945c21564e465ff67 Mon Sep 17 00:00:00 2001 From: AS-AlStar Date: Thu, 30 Jan 2025 11:53:29 +0300 Subject: [PATCH 3/3] Fix change log --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4024e4f..d763f80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ All notable changes to this project will be documented in this file. ## [6.6.1] - 2025-01-30 -### Changed +### Fixed - Delete table_name and schema_name as required for TableSync::Publishing::Raw - Delete table and schema as required for TableSync::Instrument#notify