active_touch 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/Gemfile.lock +3 -3
- data/README.md +1 -1
- data/lib/active_touch/define_touch.rb +4 -4
- data/lib/active_touch/version.rb +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MzdmMzg2MGY1ZWNjZTViYTg2OWE2ZGZlNTU4OGRiNWE0Yzc2NTA0OQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 278e04449bedbac94abd3ec87e96e7e84953138f
|
4
|
+
data.tar.gz: 03a8835fa032bd2ba557ae8f2a2f0c460a20ba55
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ZjMyYTJjN2YyMTI4MjkzNzI2NTRlYzUzMmU0MWNkMzI5NmY0NmQyZjI0Mzlm
|
11
|
-
YzY1NmJmYzQzYWI3MTE4NDRiZjk0MjkwYTA0N2NkMGRlNThkZjU=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
OGNkMTVlM2U3ZDViYmIyZjEzMmMzYjljMzUxOTdiMTRlZDI2YWUwMzcyNjY3
|
14
|
-
YzgzODA2YzczMDA1MzkzMmZlNzFmYTdjNmNkYzIyOGQ0NDg3MzBjMjRhZWMz
|
15
|
-
ZjVjNTJiYTFiNWQzZDcwZWRlM2FkMGM2ZTA3ODdlZTdiMzhjN2Q=
|
6
|
+
metadata.gz: f4b2d73b1176a293d71cd326d4ff201100f6cb1c96c20413c82dc2792720744bf3eec5c7271c39eb5b6f8eda27a742a3206881c7a18a988b1a70f5ed93273fb3
|
7
|
+
data.tar.gz: a8a3be1322bd7a9ec670d5315ba50414b30fd838a326175a2c00a7c927d53b132fedf3b913a51f1ab215cb41413bffbebd01a197dd85ca0094f45df11c36737b
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
active_touch (
|
4
|
+
active_touch (4.0.0)
|
5
5
|
rails (~> 4.2)
|
6
6
|
|
7
7
|
GEM
|
@@ -44,7 +44,7 @@ GEM
|
|
44
44
|
tzinfo (~> 1.1)
|
45
45
|
arel (6.0.3)
|
46
46
|
builder (3.2.2)
|
47
|
-
concurrent-ruby (1.0.
|
47
|
+
concurrent-ruby (1.0.1)
|
48
48
|
erubis (2.7.0)
|
49
49
|
globalid (0.3.6)
|
50
50
|
activesupport (>= 4.1.0)
|
@@ -56,7 +56,7 @@ GEM
|
|
56
56
|
mime-types (>= 1.16, < 3)
|
57
57
|
mime-types (2.99)
|
58
58
|
mini_portile2 (2.0.0)
|
59
|
-
minitest (5.8.
|
59
|
+
minitest (5.8.4)
|
60
60
|
nokogiri (1.6.7)
|
61
61
|
mini_portile2 (~> 2.0.0.rc2)
|
62
62
|
rack (1.6.4)
|
data/README.md
CHANGED
@@ -17,10 +17,10 @@ module ActiveTouch
|
|
17
17
|
|
18
18
|
def define
|
19
19
|
define_update_touch_method
|
20
|
-
add_active_record_callback(@update_touch_method)
|
20
|
+
add_active_record_callback(:after_commit, @update_touch_method)
|
21
21
|
|
22
22
|
define_destroy_touch_method
|
23
|
-
add_active_record_callback(@destroy_touch_method)
|
23
|
+
add_active_record_callback(:after_destroy, @destroy_touch_method)
|
24
24
|
|
25
25
|
add_to_network
|
26
26
|
end
|
@@ -60,8 +60,8 @@ module ActiveTouch
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
-
def add_active_record_callback(method)
|
64
|
-
@klass.send(
|
63
|
+
def add_active_record_callback(event, method)
|
64
|
+
@klass.send(event) { send(method) }
|
65
65
|
end
|
66
66
|
|
67
67
|
def add_to_network
|
data/lib/active_touch/version.rb
CHANGED
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_touch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.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-06-
|
11
|
+
date: 2016-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.10'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.10'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '4.2'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '4.2'
|
55
55
|
description: Touch specific associations when specific attributes change. Call an
|
@@ -60,8 +60,8 @@ executables: []
|
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
-
- .gitignore
|
64
|
-
- .travis.yml
|
63
|
+
- ".gitignore"
|
64
|
+
- ".travis.yml"
|
65
65
|
- Gemfile
|
66
66
|
- Gemfile.lock
|
67
67
|
- LICENSE
|
@@ -90,17 +90,17 @@ require_paths:
|
|
90
90
|
- lib
|
91
91
|
required_ruby_version: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- -
|
93
|
+
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
97
|
requirements:
|
98
|
-
- -
|
98
|
+
- - ">="
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
102
|
rubyforge_project:
|
103
|
-
rubygems_version: 2.4.
|
103
|
+
rubygems_version: 2.4.6
|
104
104
|
signing_key:
|
105
105
|
specification_version: 4
|
106
106
|
summary: A more robust touch for ActiveRecord associations.
|