webflow_sync 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '008eacb6d73cdf03f36749df62fcdf48b68c59430c8aef274e8711cef46c2bab'
4
- data.tar.gz: 2b802a58ab2f1b29bcb5bbd9731b9b4c0cc19798cd40bbe11304520ed9080a2f
3
+ metadata.gz: cebcb57c2566bd9b9cbd41239fcb58be49de2e46bfdf98f2e474169dc0471016
4
+ data.tar.gz: 20b87255be17290dc1128bf5db9bcd03d017647cecbdc58098e7b6873767a014
5
5
  SHA512:
6
- metadata.gz: da35c26f4b754220b0d95f7b29889bd1ccf43ab26f9378e0ce4cbdb7cd911a212498d3b44b5b4557624430862e289ece374de642c0f758b9a3ac5f141e6acbb5
7
- data.tar.gz: dec5b2f89ec60203db3a29f3bb7dff0431fe66734a214c3e897ec998d55a6c88ca2ab7c74501b2e22c339d5c7daf584118e4304e599facb040223a29c7f155dc
6
+ metadata.gz: 34aeaaaa071f8d9dbc87052f31bcdfd0d50bf9ad8320c50cb12594ca812b8d68454f9061a8d15cceab9224691ff98cbd1b86ad0e3bfb835ddd059be296b0e7d0
7
+ data.tar.gz: 6914758fbc562a3a454093a3dd708842730ab28e21ff5aca986c8cdde92da11694c8d99360d513b83ceb626ad5686d5ba116001707badca4a538a96e6a52311c
@@ -7,7 +7,7 @@ module WebflowSync
7
7
  record = model_class.find_by(id: id)
8
8
  return if record.blank?
9
9
  return if record.webflow_site_id.blank?
10
- return if record.webflow_item_id.blank?
10
+ return WebflowSync::CreateItemJob.perform_now(collection_slug, id) if record.webflow_item_id.blank?
11
11
 
12
12
  WebflowSync::Api.new(record.webflow_site_id).update_item(record, collection_slug)
13
13
  end
@@ -9,7 +9,7 @@ module WebflowSync
9
9
  yield(self.configuration)
10
10
 
11
11
  self.configuration.api_token ||= ENV.fetch('WEBFLOW_API_TOKEN')
12
- self.configuration.skip_webflow_sync ||= Rails.env.test?
12
+ self.configuration.skip_webflow_sync ||= !Rails.env.production?
13
13
  end
14
14
 
15
15
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WebflowSync
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webflow_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Viktor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-01 00:00:00.000000000 Z
11
+ date: 2021-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails