active_touch 5.0.0 → 5.0.1

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
  SHA1:
3
- metadata.gz: f6b70d780678e122e010326d0a35f40b196331d8
4
- data.tar.gz: f2e40371296d3839fc36503a640fdb4b7b27c969
3
+ metadata.gz: 337e4407b14159d592ab9de1e080728fb12dc345
4
+ data.tar.gz: 1b48b812594026fa19a585daccd9bc8ada94d913
5
5
  SHA512:
6
- metadata.gz: f5d6eb1d3eecf20ecd2d2a6ae03f2b5c44aeac06aaf304806e27df3ae6f1b438af0ecf2fb05eba58ff6a9fb9ba696f601e68245752d5b72bc43918cec1ba3c9e
7
- data.tar.gz: 25526ebd8776633a2186069688da1e4aa79401c43bc0bce65d4a834d22af3b4cb7972c4792fff6525831e83a7a755a89ae03632bd2a4cfc40920a22d81b64f21
6
+ metadata.gz: ac7266a62ae9df9cf9672b63b8e1209c20f70d7e1234b8fa1faf554b38bafb81ca0e44f99e63eb4870e5c66d0b7d02eef7a0f9f8d7a1c8989044360ac8176631
7
+ data.tar.gz: bd9cff816f573bf623ad588457432b62487d47c251030f4230e4f03c1f7db756f99e29e099cb37f87179e0ba969f88300db84ac8cb785430d69c7b9332ac7c2a
@@ -58,7 +58,7 @@ module ActiveTouch
58
58
 
59
59
  if watched_changes.any? && options[:if].call(self) && !options[:unless].call(self)
60
60
  Rails.logger.debug "Touch After Commit: #{self.class}(#{self.id}) => #{association} due to changes in #{watched_changes}"
61
- options = {
61
+ job_options = {
62
62
  after_touch: options[:after_touch].to_s,
63
63
  is_destroy: false,
64
64
  is_touched: options[:touch_in_transaction],
@@ -66,9 +66,9 @@ module ActiveTouch
66
66
  }
67
67
 
68
68
  if options[:async]
69
- TouchJob.set(queue: ActiveTouch.configuration.queue).perform_later(self, association.to_s, options)
69
+ TouchJob.set(queue: ActiveTouch.configuration.queue).perform_later(self, association.to_s, job_options)
70
70
  else
71
- TouchJob.perform_now(self, association.to_s, options)
71
+ TouchJob.perform_now(self, association.to_s, job_options)
72
72
  end
73
73
 
74
74
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveTouch
2
- VERSION = '5.0.0'
2
+ VERSION = '5.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_touch
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Pheasey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-15 00:00:00.000000000 Z
11
+ date: 2016-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler