From 32f45925a3bb368ed7c37cabdbf7880830ea5155 Mon Sep 17 00:00:00 2001 From: AS-AlStar Date: Fri, 6 Dec 2024 18:05:12 +0300 Subject: [PATCH] fix --- .github/workflows/ci.yml | 2 +- .rubocop.yml | 2 +- Gemfile.lock | 4 ++-- lib/table_sync/version.rb | 2 +- spec/publishing/batch_spec.rb | 1 + spec/publishing/data/objects_spec.rb | 1 + spec/publishing/data/raw_spec.rb | 1 + spec/publishing/message/batch_spec.rb | 1 + spec/publishing/message/raw_spec.rb | 2 ++ spec/publishing/message/single_spec.rb | 2 ++ spec/publishing/raw_spec.rb | 1 + spec/publishing/single_spec.rb | 1 + table_sync.gemspec | 4 ++-- 13 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 693cb7d..89c323b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["3.0", "3.1", "3.2", "3.3"] + ruby: ["3.1", "3.2", "3.3"] name: ${{ matrix.ruby }} diff --git a/.rubocop.yml b/.rubocop.yml index 5869bb4..d0bf944 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -2,7 +2,7 @@ inherit_gem: rubocop-config-umbrellio: lib/rubocop.yml AllCops: - TargetRubyVersion: 3.0 + TargetRubyVersion: 3.1 Include: - bin/* - lib/**/*.rb diff --git a/Gemfile.lock b/Gemfile.lock index 3d17a39..3121dd9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,9 +1,9 @@ PATH remote: . specs: - table_sync (6.5.1) + table_sync (6.6.0) memery - rabbit_messaging (>= 0.13) + rabbit_messaging (>= 1.1.0) rails self_data diff --git a/lib/table_sync/version.rb b/lib/table_sync/version.rb index 6000ba4..b854062 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.5.1" + VERSION = "6.6.0" end diff --git a/spec/publishing/batch_spec.rb b/spec/publishing/batch_spec.rb index 3380c82..440dc3e 100644 --- a/spec/publishing/batch_spec.rb +++ b/spec/publishing/batch_spec.rb @@ -19,6 +19,7 @@ event: event, headers: headers, routing_key: routing_key, + custom_version: nil, } end diff --git a/spec/publishing/data/objects_spec.rb b/spec/publishing/data/objects_spec.rb index 45cfb09..501fdd1 100644 --- a/spec/publishing/data/objects_spec.rb +++ b/spec/publishing/data/objects_spec.rb @@ -15,6 +15,7 @@ { objects: objects, event: event, + custom_version: nil, } end diff --git a/spec/publishing/data/raw_spec.rb b/spec/publishing/data/raw_spec.rb index e8c1b61..376f2a6 100644 --- a/spec/publishing/data/raw_spec.rb +++ b/spec/publishing/data/raw_spec.rb @@ -12,6 +12,7 @@ model_name: model_name, attributes_for_sync: attributes_for_sync, event: event, + custom_version: nil, } end diff --git a/spec/publishing/message/batch_spec.rb b/spec/publishing/message/batch_spec.rb index bdc6afb..37b19a7 100644 --- a/spec/publishing/message/batch_spec.rb +++ b/spec/publishing/message/batch_spec.rb @@ -31,6 +31,7 @@ { objects: collection_of_objects, event: attributes[:event], + custom_version: nil, } end diff --git a/spec/publishing/message/raw_spec.rb b/spec/publishing/message/raw_spec.rb index 5ea619b..2bcbd36 100644 --- a/spec/publishing/message/raw_spec.rb +++ b/spec/publishing/message/raw_spec.rb @@ -9,6 +9,7 @@ routing_key: "users", headers: { kek: 1 }, event: :update, + custom_version: nil, } end @@ -24,6 +25,7 @@ model_name: attributes[:model_name], attributes_for_sync: attributes[:original_attributes], event: attributes[:event], + custom_version: attributes[:custom_version], } end diff --git a/spec/publishing/message/single_spec.rb b/spec/publishing/message/single_spec.rb index ae87d1e..688301e 100644 --- a/spec/publishing/message/single_spec.rb +++ b/spec/publishing/message/single_spec.rb @@ -13,6 +13,7 @@ routing_key: "users", headers: { kek: 1 }, event: event, + custom_version: nil, } end @@ -33,6 +34,7 @@ { objects: collection_of_objects, event: attributes[:event], + custom_version: attributes[:custom_version], } end diff --git a/spec/publishing/raw_spec.rb b/spec/publishing/raw_spec.rb index 5093c09..3282f22 100644 --- a/spec/publishing/raw_spec.rb +++ b/spec/publishing/raw_spec.rb @@ -18,6 +18,7 @@ event: event, table_name: nil, schema_name: nil, + custom_version: nil, } end diff --git a/spec/publishing/single_spec.rb b/spec/publishing/single_spec.rb index b99897b..4c088bd 100644 --- a/spec/publishing/single_spec.rb +++ b/spec/publishing/single_spec.rb @@ -18,6 +18,7 @@ original_attributes: original_attributes, event: event, debounce_time: debounce_time, + custom_version: nil, } end diff --git a/table_sync.gemspec b/table_sync.gemspec index ae68cb4..4674f3c 100644 --- a/table_sync.gemspec +++ b/table_sync.gemspec @@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "table_sync/version" Gem::Specification.new do |spec| - spec.required_ruby_version = ">= 3.0.0" + spec.required_ruby_version = ">= 3.1.0" spec.name = "table_sync" spec.version = TableSync::VERSION @@ -27,7 +27,7 @@ Gem::Specification.new do |spec| end spec.add_runtime_dependency "memery" - spec.add_runtime_dependency "rabbit_messaging", ">= 0.13" + spec.add_runtime_dependency "rabbit_messaging", ">= 1.1.0" spec.add_runtime_dependency "rails" spec.add_runtime_dependency "self_data" end