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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cebcb57c2566bd9b9cbd41239fcb58be49de2e46bfdf98f2e474169dc0471016
4
- data.tar.gz: 20b87255be17290dc1128bf5db9bcd03d017647cecbdc58098e7b6873767a014
3
+ metadata.gz: bcafffbd6660e8326dcaeca3a9d08682fbeb0918296645abaceae91611cbdb5c
4
+ data.tar.gz: 9a69228ab410a924686763ebec3d15236fb2cb1a657ab15fff43721aa6111217
5
5
  SHA512:
6
- metadata.gz: 34aeaaaa071f8d9dbc87052f31bcdfd0d50bf9ad8320c50cb12594ca812b8d68454f9061a8d15cceab9224691ff98cbd1b86ad0e3bfb835ddd059be296b0e7d0
7
- data.tar.gz: 6914758fbc562a3a454093a3dd708842730ab28e21ff5aca986c8cdde92da11694c8d99360d513b83ceb626ad5686d5ba116001707badca4a538a96e6a52311c
6
+ metadata.gz: 78b6c3ca8548563246c4d71c70709443c1eb2c832a71f4365c20b3883f3ddae924b4e8de74f7aacb66fa8cf6811c6815d435131bcbf62df8dc37066b3aec874e
7
+ data.tar.gz: '0794032df68c3adda287d964c2eede98d70b21735cc5c736a1cb0b1a9f8f5fff2c03cf192a04caa8063ba0cd2b08b5e18d8cfdbd71940cc229f3fc82e9dc1864'
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
- ![build](https://github.com/vfonic/webflow_sync/workflows/build/badge.svg)
1
+ [![Build Status](https://github.com/vfonic/webflow_sync/workflows/build/badge.svg)](https://github.com/vfonic/webflow_sync/actions)
2
+
2
3
 
3
4
  # WebflowSync
4
5
 
@@ -8,9 +8,9 @@ module WebflowSync
8
8
  included do
9
9
  attr_accessor :skip_webflow_sync
10
10
 
11
- after_create :create_webflow_item
12
- after_update :update_webflow_item
13
- after_destroy :destroy_webflow_item
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 ||= !Rails.env.production?
12
+ defined?(self.configuration.skip_webflow_sync) or 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.3'
4
+ VERSION = '1.0.0'
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.3
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-02-05 00:00:00.000000000 Z
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.3
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.