table_sync 1.6.0 → 1.7.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: 7248151a812c8fce2f5d0dc91e12dba3a05eec7994fa3913df2030e4db54e026
4
- data.tar.gz: 3b069e69156436729608fa6a12b4b914a57dd2c9af9dec0034664801f3c1138e
3
+ metadata.gz: 6c6441900e1a2c6f9605cff9034b5c393e5aa692f69eac0219ba2870cc780f94
4
+ data.tar.gz: cbd3cd0cbc388c08ac8cda0ddc9106e28972dd3750540e8aa345168904b1e795
5
5
  SHA512:
6
- metadata.gz: 5958da943ef7b3c157e0c46448a48ee6ea76ffb7dfa2b3ca6b605b4035dd76513c6573299ba47361f289ef0b33414c2022f451903b38c792ee1b78db0376c7c4
7
- data.tar.gz: 7178c41e1f6d9f7e9582db11b0b1090efa443ded61f6f929e7d0d5f3fc1c565d70d2209509db1b6356fe744fd72574745b0fae2e9c7b9074639163ad9ad677ec
6
+ metadata.gz: f31202d84b064ea297774c22169ea7c1db9d9048010b3db3fe2de2742e568e2c8fabb3a84c35c124c459eab96b475b4fa30f978bdff9145dcdce15c7fe053a21
7
+ data.tar.gz: ba901b5c83cf12406556b5d60e5a5df7c1d2c62ca112c2fcaf5c3e1d2132179b27dcf8d6f5ad241342bc02f45f9c02b9bab034cd7ff60c5ef449ccb675bdae8e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [1.7.0] - 2019-07-11
5
+ ### Added
6
+ - `on_destroy` return value for manipulation with `after_commit` callback;
7
+
4
8
  ## [1.6.0] - 2019-07-08
5
9
  ### Added
6
10
  - `on_destroy` - defines a custom logic and behavior for `destroy` event;
@@ -41,7 +41,7 @@ module TableSync
41
41
  end
42
42
 
43
43
  if on_destroy
44
- on_destroy.call(attributes: attributes, target_keys: target_keys)
44
+ results = on_destroy.call(attributes: attributes, target_keys: target_keys)
45
45
  else
46
46
  results = model.destroy(target_attributes)
47
47
  return if results.empty?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TableSync
4
- VERSION = "1.6.0"
4
+ VERSION = "1.7.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Umbrellio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-08 00:00:00.000000000 Z
11
+ date: 2019-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: memery