From 73c27f44e6d9c2e63bc9ee2ec5456f7c896e21c2 Mon Sep 17 00:00:00 2001 From: Yuri Smirnov Date: Fri, 11 Aug 2023 18:25:56 +0600 Subject: [PATCH] Revert "remove to_s when sorting since integers should not be sorted alphabetically" This reverts commit da687d7d29df81267f55135e9a502dcdec267293. --- Gemfile.lock | 2 +- lib/table_sync/receiving/handler.rb | 2 +- lib/table_sync/version.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index b6954a2..5573271 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - table_sync (6.3.1) + table_sync (6.3.0) memery rabbit_messaging (~> 0.13) rails diff --git a/lib/table_sync/receiving/handler.rb b/lib/table_sync/receiving/handler.rb index 7c1c1cd..e536085 100644 --- a/lib/table_sync/receiving/handler.rb +++ b/lib/table_sync/receiving/handler.rb @@ -23,7 +23,7 @@ def call validate_data(data, target_keys: target_keys) - data.sort_by! { |row| row.values_at(*target_keys) } + data.sort_by! { |row| row.values_at(*target_keys).to_s } params = { data: data, target_keys: target_keys, version_key: version_key } diff --git a/lib/table_sync/version.rb b/lib/table_sync/version.rb index 7bc740d..876a0f5 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.3.1" + VERSION = "6.3.0" end