From fe7037247ac8780b03d7af17bcd390b0d1dac88f Mon Sep 17 00:00:00 2001 From: Daniela Lemow Date: Tue, 19 Aug 2025 15:17:44 +1200 Subject: [PATCH 1/2] fix: Make sure consume_webhook_signal returns false when not set --- lib/consyncful/sync.rb | 3 +++ lib/consyncful/tasks/consyncful.rake | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/consyncful/sync.rb b/lib/consyncful/sync.rb index 7934039..eacd5a4 100644 --- a/lib/consyncful/sync.rb +++ b/lib/consyncful/sync.rb @@ -43,7 +43,10 @@ def self.signal_webhook! ## # Consume the webhook signal and set webhook_pending to false def self.consume_webhook_signal! + return false unless latest.webhook_pending? + latest.set(webhook_pending: false) + true end ## diff --git a/lib/consyncful/tasks/consyncful.rake b/lib/consyncful/tasks/consyncful.rake index 72f714c..ddf37c4 100644 --- a/lib/consyncful/tasks/consyncful.rake +++ b/lib/consyncful/tasks/consyncful.rake @@ -21,7 +21,7 @@ namespace :consyncful do seconds = args[:seconds] mode = Consyncful.configuration&.sync_mode || :poll - puts "mode=#{mode.inspect} interval=#{seconds.inspect}s" + puts "mode=#{mode.inspect} interval=#{(seconds || 15).inspect}s" Consyncful::SyncRunner.new(seconds: seconds, mode: mode).run end From f3468b60f28d39e8d4c3269a52df4477ea9c65e9 Mon Sep 17 00:00:00 2001 From: Daniela Lemow Date: Tue, 19 Aug 2025 15:27:42 +1200 Subject: [PATCH 2/2] feat: Increment version number --- Gemfile.lock | 2 +- lib/consyncful/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index ce2118b..b2b61ae 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - consyncful (1.1.0) + consyncful (1.1.1) contentful (>= 2.11.1, < 3.0.0) hooks (>= 0.4.1) mongoid (>= 7.0.2) diff --git a/lib/consyncful/version.rb b/lib/consyncful/version.rb index dd49bd2..10572ac 100644 --- a/lib/consyncful/version.rb +++ b/lib/consyncful/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Consyncful - VERSION = '1.1.0' + VERSION = '1.1.1' end