active_tools 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dbfdd2b759ba3c8ea9e57f278d5f33ea7e4c4f40
|
|
4
|
+
data.tar.gz: '07681f55d659bede0ce1a25048514068498a1859'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/active_tools/version.rb
CHANGED
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.
|
|
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:
|
|
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.
|
|
128
|
+
rubygems_version: 2.6.11
|
|
129
129
|
signing_key:
|
|
130
130
|
specification_version: 4
|
|
131
131
|
summary: ActionDispatch, ActionController, ActiveModel, ActiveRecord, ActiveSupport,
|