consyncful 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 212fa880736793e0d457c0a8917a2ed848b153b6788a632e5572f783abaf1ecd
4
- data.tar.gz: ddda73efd49c73605a7345d4e05c1e8fdbfafe456a55573e68d22e1f52316d4b
3
+ metadata.gz: 8c8c5bb5e0b223ac438fbb3c5be517570fcdcfc7950f573ac2a4f30240275863
4
+ data.tar.gz: 65f81747941edf52d0477bcd03cc52d4114aebf52c1090a4cb257e21f3df01f6
5
5
  SHA512:
6
- metadata.gz: 9ed566cebf39316a559719078da7bebe6b14acb7056521d44ae44b8fb039728ae4f28706a53b28d5cb9e284dfacdbffdf80c6b1ac9d2af60bcde576561ba5128
7
- data.tar.gz: a31a8eb45fee6cbc5ec1eb74d1ef5433fcb6a9783cafc74b4b00f0e8cd443efddc19483a976e6d7fb4c935a2fb89ee4384df2bf8fa016a8af8e532957d083231
6
+ metadata.gz: b54be82b13267054ecd039d91f3eb4ee5984fdbb07be161c2a113e532944bbdc8de2679e7d0729fcf842421bbdd67807229a47e00c76a25bf58b6688920e7555
7
+ data.tar.gz: 854fdb89c3456c32235ec8b7bb9ce509c87a875c58866f183a25992ad00327798d4fcbd21b657d929f9f9857e8aad513e6f515882b8e27d51640016abe43c2dc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- consyncful (1.1.0)
4
+ consyncful (1.1.1)
5
5
  contentful (>= 2.11.1, < 3.0.0)
6
6
  hooks (>= 0.4.1)
7
7
  mongoid (>= 7.0.2)
@@ -43,7 +43,10 @@ module Consyncful
43
43
  ##
44
44
  # Consume the webhook signal and set webhook_pending to false
45
45
  def self.consume_webhook_signal!
46
+ return false unless latest.webhook_pending?
47
+
46
48
  latest.set(webhook_pending: false)
49
+ true
47
50
  end
48
51
 
49
52
  ##
@@ -21,7 +21,7 @@ namespace :consyncful do
21
21
 
22
22
  seconds = args[:seconds]
23
23
  mode = Consyncful.configuration&.sync_mode || :poll
24
- puts "mode=#{mode.inspect} interval=#{seconds.inspect}s"
24
+ puts "mode=#{mode.inspect} interval=#{(seconds || 15).inspect}s"
25
25
 
26
26
  Consyncful::SyncRunner.new(seconds: seconds, mode: mode).run
27
27
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Consyncful
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consyncful
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Anastasiadis-Gray