webflow_sync 0.2.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/app/models/concerns/webflow_sync/callbacks.rb +3 -3
- data/lib/webflow_sync/configuration.rb +1 -1
- data/lib/webflow_sync/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcafffbd6660e8326dcaeca3a9d08682fbeb0918296645abaceae91611cbdb5c
|
4
|
+
data.tar.gz: 9a69228ab410a924686763ebec3d15236fb2cb1a657ab15fff43721aa6111217
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78b6c3ca8548563246c4d71c70709443c1eb2c832a71f4365c20b3883f3ddae924b4e8de74f7aacb66fa8cf6811c6815d435131bcbf62df8dc37066b3aec874e
|
7
|
+
data.tar.gz: '0794032df68c3adda287d964c2eede98d70b21735cc5c736a1cb0b1a9f8f5fff2c03cf192a04caa8063ba0cd2b08b5e18d8cfdbd71940cc229f3fc82e9dc1864'
|
data/README.md
CHANGED
@@ -8,9 +8,9 @@ module WebflowSync
|
|
8
8
|
included do
|
9
9
|
attr_accessor :skip_webflow_sync
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
after_commit :create_webflow_item, on: :create
|
12
|
+
after_commit :update_webflow_item, on: :update
|
13
|
+
after_commit :destroy_webflow_item, on: :destroy
|
14
14
|
|
15
15
|
def create_webflow_item
|
16
16
|
return if self.skip_webflow_sync || WebflowSync.configuration.skip_webflow_sync
|
@@ -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
|
12
|
+
defined?(self.configuration.skip_webflow_sync) or 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.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Viktor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
173
|
- !ruby/object:Gem::Version
|
174
174
|
version: '0'
|
175
175
|
requirements: []
|
176
|
-
rubygems_version: 3.2.
|
176
|
+
rubygems_version: 3.2.11
|
177
177
|
signing_key:
|
178
178
|
specification_version: 4
|
179
179
|
summary: Keep Rails models in sync with WebFlow.
|