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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cebcb57c2566bd9b9cbd41239fcb58be49de2e46bfdf98f2e474169dc0471016
|
4
|
+
data.tar.gz: 20b87255be17290dc1128bf5db9bcd03d017647cecbdc58098e7b6873767a014
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
12
|
+
self.configuration.skip_webflow_sync ||= !Rails.env.production?
|
13
13
|
end
|
14
14
|
|
15
15
|
private
|
data/lib/webflow_sync/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2021-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|