has_moderated 0.0.21 → 0.0.24
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +48 -9
- data/lib/has_moderated.rb +13 -234
- data/lib/has_moderated/carrier_wave.rb +2 -2
- data/lib/has_moderated/common.rb +129 -0
- data/lib/has_moderated/moderated_associations.rb +59 -0
- data/lib/has_moderated/moderated_attributes.rb +74 -0
- data/lib/has_moderated/moderated_create.rb +48 -0
- data/lib/has_moderated/moderated_destroy.rb +36 -0
- data/lib/has_moderated/moderation_model.rb +64 -23
- data/lib/has_moderated/user_hooks.rb +10 -0
- data/lib/has_moderated/version.rb +1 -1
- data/test/dummy/app/models/hjoin_test.rb +3 -0
- data/test/dummy/app/models/hmanythrough_join.rb +4 -0
- data/test/dummy/app/models/hmanythrough_test.rb +4 -0
- data/test/dummy/app/models/hone_test.rb +3 -0
- data/test/dummy/app/models/photo.rb +1 -1
- data/test/dummy/app/models/subtask.rb +1 -0
- data/test/dummy/app/models/task.rb +7 -2
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20111008195728_create_hone_tests.rb +9 -0
- data/test/dummy/db/migrate/20111008195809_create_hjoin_tests.rb +13 -0
- data/test/dummy/db/migrate/20111009193145_fix_join_table.rb +8 -0
- data/test/dummy/db/migrate/20111009201729_add_title_to_hone_tests.rb +5 -0
- data/test/dummy/db/migrate/20111009205517_create_hmanythrough_tests.rb +9 -0
- data/test/dummy/db/migrate/20111009205545_create_hmanythrough_joins.rb +11 -0
- data/test/dummy/db/schema.rb +33 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +4508 -0
- data/test/dummy/log/test.log +78674 -0
- data/test/dummy/public/test.jpg +0 -0
- data/test/dummy/public/uploads/task_photo/photo/1/test.jpg +0 -0
- data/test/dummy/spec/factories/hjoin_tests.rb +7 -0
- data/test/dummy/spec/factories/hmanythrough_joins.rb +9 -0
- data/test/dummy/spec/factories/hmanythrough_tests.rb +7 -0
- data/test/dummy/spec/factories/hone_tests.rb +7 -0
- data/test/dummy/spec/models/hjoin_test_spec.rb +36 -0
- data/test/dummy/spec/models/hmanythrough_test_spec.rb +99 -0
- data/test/dummy/spec/models/hone_test_spec.rb +36 -0
- data/test/dummy/spec/models/photo_holder_spec.rb +9 -17
- data/test/dummy/spec/models/photo_spec.rb +16 -29
- data/test/dummy/spec/models/task_photo_spec.rb +3 -9
- data/test/dummy/spec/models/task_spec.rb +36 -2
- data/test/dummy/spec/support/photos.rb +28 -0
- metadata +50 -8
- data/test/dummy/falaf/test.rb +0 -0
- data/test/dummy/public/uploads/task_photo/photo/1/logo_arnes.gif +0 -0
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_moderated
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 47
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 24
|
10
|
+
version: 0.0.24
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jan Berdajs
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-10-
|
18
|
+
date: 2011-10-13 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -63,7 +63,13 @@ files:
|
|
63
63
|
- lib/generators/has_moderated/install/templates/moderation.rb
|
64
64
|
- lib/generators/USAGE
|
65
65
|
- lib/has_moderated/carrier_wave.rb
|
66
|
+
- lib/has_moderated/common.rb
|
67
|
+
- lib/has_moderated/moderated_associations.rb
|
68
|
+
- lib/has_moderated/moderated_attributes.rb
|
69
|
+
- lib/has_moderated/moderated_create.rb
|
70
|
+
- lib/has_moderated/moderated_destroy.rb
|
66
71
|
- lib/has_moderated/moderation_model.rb
|
72
|
+
- lib/has_moderated/user_hooks.rb
|
67
73
|
- lib/has_moderated/version.rb
|
68
74
|
- lib/has_moderated.rb
|
69
75
|
- lib/tasks/has_moderated_tasks.rake
|
@@ -74,6 +80,10 @@ files:
|
|
74
80
|
- test/dummy/app/assets/stylesheets/application.css
|
75
81
|
- test/dummy/app/controllers/application_controller.rb
|
76
82
|
- test/dummy/app/helpers/application_helper.rb
|
83
|
+
- test/dummy/app/models/hjoin_test.rb
|
84
|
+
- test/dummy/app/models/hmanythrough_join.rb
|
85
|
+
- test/dummy/app/models/hmanythrough_test.rb
|
86
|
+
- test/dummy/app/models/hone_test.rb
|
77
87
|
- test/dummy/app/models/hook_test.rb
|
78
88
|
- test/dummy/app/models/moderation.rb
|
79
89
|
- test/dummy/app/models/photo.rb
|
@@ -110,29 +120,43 @@ files:
|
|
110
120
|
- test/dummy/db/migrate/20111003234101_create_task_photos.rb
|
111
121
|
- test/dummy/db/migrate/20111004153147_create_hook_tests.rb
|
112
122
|
- test/dummy/db/migrate/20111004164509_create_photo_holders.rb
|
123
|
+
- test/dummy/db/migrate/20111008195728_create_hone_tests.rb
|
124
|
+
- test/dummy/db/migrate/20111008195809_create_hjoin_tests.rb
|
125
|
+
- test/dummy/db/migrate/20111009193145_fix_join_table.rb
|
126
|
+
- test/dummy/db/migrate/20111009201729_add_title_to_hone_tests.rb
|
127
|
+
- test/dummy/db/migrate/20111009205517_create_hmanythrough_tests.rb
|
128
|
+
- test/dummy/db/migrate/20111009205545_create_hmanythrough_joins.rb
|
113
129
|
- test/dummy/db/schema.rb
|
114
130
|
- test/dummy/db/test.sqlite3
|
115
|
-
- test/dummy/falaf/test.rb
|
116
131
|
- test/dummy/log/development.log
|
117
132
|
- test/dummy/log/test.log
|
118
133
|
- test/dummy/public/404.html
|
119
134
|
- test/dummy/public/422.html
|
120
135
|
- test/dummy/public/500.html
|
121
136
|
- test/dummy/public/favicon.ico
|
122
|
-
- test/dummy/public/
|
137
|
+
- test/dummy/public/test.jpg
|
138
|
+
- test/dummy/public/uploads/task_photo/photo/1/test.jpg
|
123
139
|
- test/dummy/Rakefile
|
124
140
|
- test/dummy/script/rails
|
141
|
+
- test/dummy/spec/factories/hjoin_tests.rb
|
142
|
+
- test/dummy/spec/factories/hmanythrough_joins.rb
|
143
|
+
- test/dummy/spec/factories/hmanythrough_tests.rb
|
144
|
+
- test/dummy/spec/factories/hone_tests.rb
|
125
145
|
- test/dummy/spec/factories/hook_tests.rb
|
126
146
|
- test/dummy/spec/factories/photo_holders.rb
|
127
147
|
- test/dummy/spec/factories/photos.rb
|
128
148
|
- test/dummy/spec/factories/task_alls.rb
|
129
149
|
- test/dummy/spec/factories/task_photos.rb
|
150
|
+
- test/dummy/spec/models/hjoin_test_spec.rb
|
151
|
+
- test/dummy/spec/models/hmanythrough_test_spec.rb
|
152
|
+
- test/dummy/spec/models/hone_test_spec.rb
|
130
153
|
- test/dummy/spec/models/hooks_spec.rb
|
131
154
|
- test/dummy/spec/models/photo_holder_spec.rb
|
132
155
|
- test/dummy/spec/models/photo_spec.rb
|
133
156
|
- test/dummy/spec/models/task_photo_spec.rb
|
134
157
|
- test/dummy/spec/models/task_spec.rb
|
135
158
|
- test/dummy/spec/spec_helper.rb
|
159
|
+
- test/dummy/spec/support/photos.rb
|
136
160
|
has_rdoc: true
|
137
161
|
homepage: https://github.com/mrbrdo/has_moderated
|
138
162
|
licenses: []
|
@@ -172,6 +196,10 @@ test_files:
|
|
172
196
|
- test/dummy/app/assets/stylesheets/application.css
|
173
197
|
- test/dummy/app/controllers/application_controller.rb
|
174
198
|
- test/dummy/app/helpers/application_helper.rb
|
199
|
+
- test/dummy/app/models/hjoin_test.rb
|
200
|
+
- test/dummy/app/models/hmanythrough_join.rb
|
201
|
+
- test/dummy/app/models/hmanythrough_test.rb
|
202
|
+
- test/dummy/app/models/hone_test.rb
|
175
203
|
- test/dummy/app/models/hook_test.rb
|
176
204
|
- test/dummy/app/models/moderation.rb
|
177
205
|
- test/dummy/app/models/photo.rb
|
@@ -208,26 +236,40 @@ test_files:
|
|
208
236
|
- test/dummy/db/migrate/20111003234101_create_task_photos.rb
|
209
237
|
- test/dummy/db/migrate/20111004153147_create_hook_tests.rb
|
210
238
|
- test/dummy/db/migrate/20111004164509_create_photo_holders.rb
|
239
|
+
- test/dummy/db/migrate/20111008195728_create_hone_tests.rb
|
240
|
+
- test/dummy/db/migrate/20111008195809_create_hjoin_tests.rb
|
241
|
+
- test/dummy/db/migrate/20111009193145_fix_join_table.rb
|
242
|
+
- test/dummy/db/migrate/20111009201729_add_title_to_hone_tests.rb
|
243
|
+
- test/dummy/db/migrate/20111009205517_create_hmanythrough_tests.rb
|
244
|
+
- test/dummy/db/migrate/20111009205545_create_hmanythrough_joins.rb
|
211
245
|
- test/dummy/db/schema.rb
|
212
246
|
- test/dummy/db/test.sqlite3
|
213
|
-
- test/dummy/falaf/test.rb
|
214
247
|
- test/dummy/log/development.log
|
215
248
|
- test/dummy/log/test.log
|
216
249
|
- test/dummy/public/404.html
|
217
250
|
- test/dummy/public/422.html
|
218
251
|
- test/dummy/public/500.html
|
219
252
|
- test/dummy/public/favicon.ico
|
220
|
-
- test/dummy/public/
|
253
|
+
- test/dummy/public/test.jpg
|
254
|
+
- test/dummy/public/uploads/task_photo/photo/1/test.jpg
|
221
255
|
- test/dummy/Rakefile
|
222
256
|
- test/dummy/script/rails
|
257
|
+
- test/dummy/spec/factories/hjoin_tests.rb
|
258
|
+
- test/dummy/spec/factories/hmanythrough_joins.rb
|
259
|
+
- test/dummy/spec/factories/hmanythrough_tests.rb
|
260
|
+
- test/dummy/spec/factories/hone_tests.rb
|
223
261
|
- test/dummy/spec/factories/hook_tests.rb
|
224
262
|
- test/dummy/spec/factories/photo_holders.rb
|
225
263
|
- test/dummy/spec/factories/photos.rb
|
226
264
|
- test/dummy/spec/factories/task_alls.rb
|
227
265
|
- test/dummy/spec/factories/task_photos.rb
|
266
|
+
- test/dummy/spec/models/hjoin_test_spec.rb
|
267
|
+
- test/dummy/spec/models/hmanythrough_test_spec.rb
|
268
|
+
- test/dummy/spec/models/hone_test_spec.rb
|
228
269
|
- test/dummy/spec/models/hooks_spec.rb
|
229
270
|
- test/dummy/spec/models/photo_holder_spec.rb
|
230
271
|
- test/dummy/spec/models/photo_spec.rb
|
231
272
|
- test/dummy/spec/models/task_photo_spec.rb
|
232
273
|
- test/dummy/spec/models/task_spec.rb
|
233
274
|
- test/dummy/spec/spec_helper.rb
|
275
|
+
- test/dummy/spec/support/photos.rb
|
data/test/dummy/falaf/test.rb
DELETED
File without changes
|
Binary file
|