Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
3 changes: 3 additions & 0 deletions lib/consyncful/sync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

##
Expand Down
2 changes: 1 addition & 1 deletion lib/consyncful/tasks/consyncful.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/consyncful/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Consyncful
VERSION = '1.1.0'
VERSION = '1.1.1'
end