active_tools 0.1.3 → 0.1.4

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: 35e4edeeacffcf4fe1268e51ea8d2897f99c3852
4
- data.tar.gz: cc8087a148a728ce82987df84c247d282142749d
3
+ metadata.gz: dbfdd2b759ba3c8ea9e57f278d5f33ea7e4c4f40
4
+ data.tar.gz: '07681f55d659bede0ce1a25048514068498a1859'
5
5
  SHA512:
6
- metadata.gz: fd71b48b22f62949248e3e540d59bb45df25275c721070003a21e080c9779a2227c81c930dfe7c397f0b52b9c0a00b7496b2edbb9d3dcb67b48431a8b699cc7e
7
- data.tar.gz: 882a83eb8071e6554c432ed5559c501f74cfc20401ca1cd182ed3a00a542fe71127f8e220b584cec72e73d79589b38553ecb067c79a6a150571d384ca6ba59a2
6
+ metadata.gz: d4981206c465c928f6320b79395069c734121f928ae48ae1ddb6559cb2749b077e38292f25bd2415baf5a6fd800e82ff899dcda8dd3bb148b6a979e483e9e0e0
7
+ data.tar.gz: 449f570449d3c4edba3a026c15091e13f04190eb4ce3ee465ae437e68656479b08bc5829f620a1711ac63399747dd352428de414000563480af2f26d85ee0e1c
@@ -19,6 +19,7 @@ module ActiveTools
19
19
  @destroy_if = @options[:destroy_if]
20
20
  @uniq_by = Array(@options[:uniq_by]).map(&:to_s)
21
21
  @target_process = @options[:target_process]
22
+ @touch = @options[:touch]
22
23
  association.load_target
23
24
  end
24
25
 
@@ -133,6 +134,7 @@ module ActiveTools
133
134
  def update_target_if_changed!
134
135
  if target && target.changes.any?
135
136
  warn "Adaptive is updating: <#{target.class.name}: #{target.class.primary_key}: #{target.send(target.class.primary_key)}>"
137
+ owner.touch if @touch
136
138
  begin
137
139
  target.save
138
140
  rescue ::ActiveRecord::StaleObjectError
@@ -1,3 +1,3 @@
1
1
  module ActiveTools
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valery Kvon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-29 00:00:00.000000000 Z
11
+ date: 2017-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  requirements: []
127
127
  rubyforge_project: active_tools
128
- rubygems_version: 2.6.8
128
+ rubygems_version: 2.6.11
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: ActionDispatch, ActionController, ActiveModel, ActiveRecord, ActiveSupport,