association_observers 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ module AssociationObservers
|
|
13
13
|
AssociationObservers.initialize_railtie
|
14
14
|
end
|
15
15
|
initializer 'association_observers.autoload', :before => :set_autoload_paths do |app|
|
16
|
-
app.config.autoload_paths
|
16
|
+
app.config.autoload_paths << Rails.root.join("app", "notifiers")
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
metadata
CHANGED
@@ -1,172 +1,165 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: association_observers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
4
|
+
version: 0.0.5
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Tiago Cardoso
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
17
18
|
requirements:
|
18
19
|
- - ~>
|
19
20
|
- !ruby/object:Gem::Version
|
20
21
|
version: 0.9.2.2
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
21
25
|
none: false
|
22
|
-
requirement: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 0.9.2.2
|
27
|
-
none: false
|
28
|
-
prerelease: false
|
29
|
-
type: :development
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: rack-test
|
32
|
-
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
33
34
|
requirements:
|
34
35
|
- - '='
|
35
36
|
- !ruby/object:Gem::Version
|
36
37
|
version: 0.6.2
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
41
|
none: false
|
38
|
-
requirement: !ruby/object:Gem::Requirement
|
39
42
|
requirements:
|
40
43
|
- - '='
|
41
44
|
- !ruby/object:Gem::Version
|
42
45
|
version: 0.6.2
|
43
|
-
none: false
|
44
|
-
prerelease: false
|
45
|
-
type: :development
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: rspec
|
48
|
-
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
49
50
|
requirements:
|
50
51
|
- - ~>
|
51
52
|
- !ruby/object:Gem::Version
|
52
53
|
version: 2.11.0
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
57
|
none: false
|
54
|
-
requirement: !ruby/object:Gem::Requirement
|
55
58
|
requirements:
|
56
59
|
- - ~>
|
57
60
|
- !ruby/object:Gem::Version
|
58
61
|
version: 2.11.0
|
59
|
-
none: false
|
60
|
-
prerelease: false
|
61
|
-
type: :development
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: database_cleaner
|
64
|
-
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
65
66
|
requirements:
|
66
67
|
- - '='
|
67
68
|
- !ruby/object:Gem::Version
|
68
69
|
version: 0.8.0
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
69
73
|
none: false
|
70
|
-
requirement: !ruby/object:Gem::Requirement
|
71
74
|
requirements:
|
72
75
|
- - '='
|
73
76
|
- !ruby/object:Gem::Version
|
74
77
|
version: 0.8.0
|
75
|
-
none: false
|
76
|
-
prerelease: false
|
77
|
-
type: :development
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
name: colorize
|
80
|
-
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
81
82
|
requirements:
|
82
83
|
- - '='
|
83
84
|
- !ruby/object:Gem::Version
|
84
85
|
version: 0.5.8
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
89
|
none: false
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
90
|
requirements:
|
88
91
|
- - '='
|
89
92
|
- !ruby/object:Gem::Version
|
90
93
|
version: 0.5.8
|
91
|
-
none: false
|
92
|
-
prerelease: false
|
93
|
-
type: :development
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: pry
|
96
|
-
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
97
98
|
requirements:
|
98
99
|
- - ! '>='
|
99
100
|
- !ruby/object:Gem::Version
|
100
|
-
version:
|
101
|
-
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
102
105
|
none: false
|
103
|
-
requirement: !ruby/object:Gem::Requirement
|
104
106
|
requirements:
|
105
107
|
- - ! '>='
|
106
108
|
- !ruby/object:Gem::Version
|
107
|
-
version:
|
108
|
-
MA==
|
109
|
-
none: false
|
110
|
-
prerelease: false
|
111
|
-
type: :development
|
109
|
+
version: '0'
|
112
110
|
- !ruby/object:Gem::Dependency
|
113
111
|
name: pry-doc
|
114
|
-
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
115
114
|
requirements:
|
116
115
|
- - ! '>='
|
117
116
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
119
|
-
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
121
|
none: false
|
121
|
-
requirement: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
123
|
- - ! '>='
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
126
|
-
MA==
|
127
|
-
none: false
|
128
|
-
prerelease: false
|
129
|
-
type: :development
|
125
|
+
version: '0'
|
130
126
|
- !ruby/object:Gem::Dependency
|
131
127
|
name: awesome_print
|
132
|
-
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
133
130
|
requirements:
|
134
131
|
- - ! '>='
|
135
132
|
- !ruby/object:Gem::Version
|
136
|
-
version:
|
137
|
-
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
138
137
|
none: false
|
139
|
-
requirement: !ruby/object:Gem::Requirement
|
140
138
|
requirements:
|
141
139
|
- - ! '>='
|
142
140
|
- !ruby/object:Gem::Version
|
143
|
-
version:
|
144
|
-
MA==
|
145
|
-
none: false
|
146
|
-
prerelease: false
|
147
|
-
type: :development
|
141
|
+
version: '0'
|
148
142
|
- !ruby/object:Gem::Dependency
|
149
143
|
name: activesupport
|
150
|
-
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
151
146
|
requirements:
|
152
147
|
- - ! '>='
|
153
148
|
- !ruby/object:Gem::Version
|
154
|
-
version:
|
155
|
-
|
149
|
+
version: '0'
|
150
|
+
type: :runtime
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
156
153
|
none: false
|
157
|
-
requirement: !ruby/object:Gem::Requirement
|
158
154
|
requirements:
|
159
155
|
- - ! '>='
|
160
156
|
- !ruby/object:Gem::Version
|
161
|
-
version:
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
This is an alternative implementation of the observer pattern. As you may know, Ruby (and Rails/ActiveRecord) already have an
|
168
|
-
implementation of it. This implementation is a variation of the pattern, so it is not supposed to supersede the existing
|
169
|
-
implementations, but "complete" them for the specific use-cases addressed.
|
157
|
+
version: '0'
|
158
|
+
description: ! "This is an alternative implementation of the observer pattern. As
|
159
|
+
you may know, Ruby (and Rails/ActiveRecord) already have an\n implementation of
|
160
|
+
it. This implementation is a variation of the pattern, so it is not supposed to
|
161
|
+
supersede the existing\n implementations, but \"complete\" them for the specific
|
162
|
+
use-cases addressed."
|
170
163
|
email:
|
171
164
|
- cardoso_tiago@hotmail.com
|
172
165
|
executables: []
|
@@ -201,34 +194,32 @@ files:
|
|
201
194
|
- spec/spec_helper.rb
|
202
195
|
homepage: https://github.com/TiagoCardoso1983/association_observers
|
203
196
|
licenses: []
|
204
|
-
post_install_message:
|
197
|
+
post_install_message:
|
205
198
|
rdoc_options: []
|
206
199
|
require_paths:
|
207
200
|
- lib
|
208
201
|
required_ruby_version: !ruby/object:Gem::Requirement
|
202
|
+
none: false
|
209
203
|
requirements:
|
210
204
|
- - ! '>='
|
211
205
|
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
212
207
|
segments:
|
213
208
|
- 0
|
214
|
-
hash:
|
215
|
-
version: !binary |-
|
216
|
-
MA==
|
217
|
-
none: false
|
209
|
+
hash: -894078036054121301
|
218
210
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
|
+
none: false
|
219
212
|
requirements:
|
220
213
|
- - ! '>='
|
221
214
|
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
222
216
|
segments:
|
223
217
|
- 0
|
224
|
-
hash:
|
225
|
-
version: !binary |-
|
226
|
-
MA==
|
227
|
-
none: false
|
218
|
+
hash: -894078036054121301
|
228
219
|
requirements: []
|
229
|
-
rubyforge_project:
|
220
|
+
rubyforge_project:
|
230
221
|
rubygems_version: 1.8.24
|
231
|
-
signing_key:
|
222
|
+
signing_key:
|
232
223
|
specification_version: 3
|
233
224
|
summary: ! 'The Observer Pattern clearly defines two roles: the observer and the observed.
|
234
225
|
The observer registers itself by the observed. The observed decides when (for which
|
@@ -244,4 +235,4 @@ test_files:
|
|
244
235
|
- spec/datamapper/association_observers_spec.rb
|
245
236
|
- spec/datamapper_helper.rb
|
246
237
|
- spec/spec_helper.rb
|
247
|
-
has_rdoc:
|
238
|
+
has_rdoc:
|