has_moderated 1.0.rc9 → 1.0.rc10
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -240
- data/lib/has_moderated/moderated_attributes.rb +1 -1
- data/lib/has_moderated/moderation_preview.rb +1 -1
- data/lib/has_moderated/version.rb +1 -1
- data/test/dummy/log/test.log +5977 -0
- metadata +209 -204
metadata
CHANGED
@@ -1,177 +1,196 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_moderated
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.rc10
|
5
5
|
prerelease: 4
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- rc
|
10
|
-
- 9
|
11
|
-
version: 1.0.rc9
|
12
6
|
platform: ruby
|
13
|
-
authors:
|
7
|
+
authors:
|
14
8
|
- Jan Berdajs
|
15
9
|
autorequire:
|
16
10
|
bindir: bin
|
17
11
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
type: :runtime
|
12
|
+
date: 2012-06-13 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
23
15
|
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.0.0
|
22
|
+
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
25
|
none: false
|
27
|
-
requirements:
|
28
|
-
- -
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
hash: 2771886031290461382
|
31
|
-
segments:
|
32
|
-
- 3
|
33
|
-
- 0
|
34
|
-
- 0
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
35
29
|
version: 3.0.0
|
36
|
-
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
type: :development
|
30
|
+
- !ruby/object:Gem::Dependency
|
39
31
|
name: sqlite3
|
40
|
-
|
41
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
42
33
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
|
47
|
-
segments:
|
48
|
-
- 0
|
49
|
-
version: "0"
|
50
|
-
requirement: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
52
38
|
type: :development
|
53
|
-
name: rspec
|
54
39
|
prerelease: false
|
55
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rspec
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
56
49
|
none: false
|
57
|
-
requirements:
|
58
|
-
- -
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
|
61
|
-
segments:
|
62
|
-
- 0
|
63
|
-
version: "0"
|
64
|
-
requirement: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
66
54
|
type: :development
|
67
|
-
name: rspec-rails
|
68
55
|
prerelease: false
|
69
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rspec-rails
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
70
65
|
none: false
|
71
|
-
requirements:
|
72
|
-
- -
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
version: "0"
|
78
|
-
requirement: *id004
|
79
|
-
- !ruby/object:Gem::Dependency
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
80
70
|
type: :development
|
81
|
-
name: pry
|
82
71
|
prerelease: false
|
83
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
84
73
|
none: false
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: pry
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
94
86
|
type: :development
|
95
|
-
name: rmagick
|
96
87
|
prerelease: false
|
97
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: rmagick
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
98
97
|
none: false
|
99
|
-
requirements:
|
100
|
-
- -
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
|
103
|
-
segments:
|
104
|
-
- 0
|
105
|
-
version: "0"
|
106
|
-
requirement: *id006
|
107
|
-
- !ruby/object:Gem::Dependency
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
108
102
|
type: :development
|
109
|
-
name: growl
|
110
103
|
prerelease: false
|
111
|
-
version_requirements:
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
112
105
|
none: false
|
113
|
-
requirements:
|
114
|
-
- -
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: growl
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
122
118
|
type: :development
|
123
|
-
name: spork
|
124
119
|
prerelease: false
|
125
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
126
121
|
none: false
|
127
|
-
requirements:
|
128
|
-
- -
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: spork
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
136
134
|
type: :development
|
137
|
-
name: guard-spork
|
138
135
|
prerelease: false
|
139
|
-
version_requirements:
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
140
137
|
none: false
|
141
|
-
requirements:
|
142
|
-
- -
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: guard-spork
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
150
|
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
- !ruby/object:Gem::Dependency
|
151
159
|
name: guard-rspec
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
152
167
|
prerelease: false
|
153
|
-
version_requirements:
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
154
169
|
none: false
|
155
|
-
requirements:
|
156
|
-
- -
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
description: Moderated fields or whole model instances are serialized and saved into
|
175
|
+
a separate moderations table. The moderation can then be accepted and the changes
|
176
|
+
will be applied to the model. This way, lookups for existing, accepted fields or
|
177
|
+
entries will be much faster than if using something like Papertrail, since the changes
|
178
|
+
that have not yet been accepted are stored outside of the model table - in the moderations
|
179
|
+
table.
|
180
|
+
email:
|
165
181
|
- mrbrdo@gmail.com
|
166
182
|
executables: []
|
167
|
-
|
168
183
|
extensions: []
|
169
|
-
|
170
184
|
extra_rdoc_files: []
|
171
|
-
|
172
|
-
|
173
|
-
- lib/has_moderated.rb
|
185
|
+
files:
|
186
|
+
- lib/generators/has_moderated/install/install_generator.rb
|
187
|
+
- lib/generators/has_moderated/install/templates/migrations/1_create_moderations.rb
|
188
|
+
- lib/generators/has_moderated/install/templates/moderation.rb
|
174
189
|
- lib/generators/USAGE
|
190
|
+
- lib/has_moderated/active_record/active_record_helpers.rb
|
191
|
+
- lib/has_moderated/associations/base.rb
|
192
|
+
- lib/has_moderated/associations/collection.rb
|
193
|
+
- lib/has_moderated/associations/has_one.rb
|
175
194
|
- lib/has_moderated/carrier_wave.rb
|
176
195
|
- lib/has_moderated/common.rb
|
177
196
|
- lib/has_moderated/moderated_attributes.rb
|
@@ -182,25 +201,37 @@ files:
|
|
182
201
|
- lib/has_moderated/railtie.rb
|
183
202
|
- lib/has_moderated/user_hooks.rb
|
184
203
|
- lib/has_moderated/version.rb
|
204
|
+
- lib/has_moderated.rb
|
185
205
|
- lib/tasks/has_moderated_tasks.rake
|
186
|
-
- lib/has_moderated/active_record/active_record_helpers.rb
|
187
|
-
- lib/has_moderated/associations/base.rb
|
188
|
-
- lib/has_moderated/associations/collection.rb
|
189
|
-
- lib/has_moderated/associations/has_one.rb
|
190
|
-
- lib/generators/has_moderated/install/install_generator.rb
|
191
|
-
- lib/generators/has_moderated/install/templates/moderation.rb
|
192
|
-
- lib/generators/has_moderated/install/templates/migrations/1_create_moderations.rb
|
193
206
|
- MIT-LICENSE
|
194
207
|
- Rakefile
|
195
208
|
- README.rdoc
|
196
|
-
- test/dummy/
|
197
|
-
- test/dummy/
|
209
|
+
- test/dummy/app/assets/javascripts/application.js
|
210
|
+
- test/dummy/app/assets/stylesheets/application.css
|
211
|
+
- test/dummy/app/controllers/application_controller.rb
|
212
|
+
- test/dummy/app/helpers/application_helper.rb
|
213
|
+
- test/dummy/app/models/moderation.rb
|
214
|
+
- test/dummy/app/uploaders/generic_uploader.rb
|
215
|
+
- test/dummy/app/views/layouts/application.html.erb
|
198
216
|
- test/dummy/config/application.rb
|
199
217
|
- test/dummy/config/boot.rb
|
200
218
|
- test/dummy/config/database.yml
|
201
219
|
- test/dummy/config/environment.rb
|
220
|
+
- test/dummy/config/environments/development.rb
|
221
|
+
- test/dummy/config/environments/production.rb
|
222
|
+
- test/dummy/config/environments/test.rb
|
223
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
224
|
+
- test/dummy/config/initializers/inflections.rb
|
225
|
+
- test/dummy/config/initializers/mime_types.rb
|
226
|
+
- test/dummy/config/initializers/secret_token.rb
|
227
|
+
- test/dummy/config/initializers/session_store.rb
|
228
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
229
|
+
- test/dummy/config/locales/en.yml
|
202
230
|
- test/dummy/config/routes.rb
|
231
|
+
- test/dummy/config.ru
|
203
232
|
- test/dummy/db/development.sqlite3
|
233
|
+
- test/dummy/db/migrate/20120520215008_initial_schema.rb
|
234
|
+
- test/dummy/db/migrate/20120520215224_create_photos.rb
|
204
235
|
- test/dummy/db/schema.rb
|
205
236
|
- test/dummy/db/test.sqlite3
|
206
237
|
- test/dummy/log/development.log
|
@@ -210,75 +241,67 @@ files:
|
|
210
241
|
- test/dummy/public/500.html
|
211
242
|
- test/dummy/public/favicon.ico
|
212
243
|
- test/dummy/public/test.jpg
|
244
|
+
- test/dummy/Rakefile
|
213
245
|
- test/dummy/script/rails
|
214
|
-
- test/dummy/spec/spec_helper.rb
|
215
246
|
- test/dummy/spec/models/photo_spec.rb
|
216
247
|
- test/dummy/spec/models/task_spec.rb
|
248
|
+
- test/dummy/spec/spec_helper.rb
|
217
249
|
- test/dummy/spec/support/crazy_models.rb
|
218
250
|
- test/dummy/spec/support/photos.rb
|
219
|
-
- test/dummy/db/migrate/20120520215008_initial_schema.rb
|
220
|
-
- test/dummy/db/migrate/20120520215224_create_photos.rb
|
221
|
-
- test/dummy/config/environments/development.rb
|
222
|
-
- test/dummy/config/environments/production.rb
|
223
|
-
- test/dummy/config/environments/test.rb
|
224
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
225
|
-
- test/dummy/config/initializers/inflections.rb
|
226
|
-
- test/dummy/config/initializers/mime_types.rb
|
227
|
-
- test/dummy/config/initializers/secret_token.rb
|
228
|
-
- test/dummy/config/initializers/session_store.rb
|
229
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
230
|
-
- test/dummy/config/locales/en.yml
|
231
|
-
- test/dummy/app/controllers/application_controller.rb
|
232
|
-
- test/dummy/app/helpers/application_helper.rb
|
233
|
-
- test/dummy/app/models/moderation.rb
|
234
|
-
- test/dummy/app/uploaders/generic_uploader.rb
|
235
|
-
- test/dummy/app/views/layouts/application.html.erb
|
236
|
-
- test/dummy/app/assets/javascripts/application.js
|
237
|
-
- test/dummy/app/assets/stylesheets/application.css
|
238
251
|
homepage: https://github.com/mrbrdo/has_moderated
|
239
252
|
licenses: []
|
240
|
-
|
241
253
|
post_install_message:
|
242
254
|
rdoc_options: []
|
243
|
-
|
244
|
-
require_paths:
|
255
|
+
require_paths:
|
245
256
|
- lib
|
246
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
257
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
247
258
|
none: false
|
248
|
-
requirements:
|
249
|
-
- -
|
250
|
-
- !ruby/object:Gem::Version
|
251
|
-
|
252
|
-
segments:
|
259
|
+
requirements:
|
260
|
+
- - ! '>='
|
261
|
+
- !ruby/object:Gem::Version
|
262
|
+
version: '0'
|
263
|
+
segments:
|
253
264
|
- 0
|
254
|
-
|
255
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
265
|
+
hash: -1990435384917243688
|
266
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
256
267
|
none: false
|
257
|
-
requirements:
|
258
|
-
- -
|
259
|
-
- !ruby/object:Gem::Version
|
260
|
-
hash: 1960248522488440439
|
261
|
-
segments:
|
262
|
-
- 1
|
263
|
-
- 3
|
264
|
-
- 1
|
268
|
+
requirements:
|
269
|
+
- - ! '>'
|
270
|
+
- !ruby/object:Gem::Version
|
265
271
|
version: 1.3.1
|
266
272
|
requirements: []
|
267
|
-
|
268
273
|
rubyforge_project:
|
269
|
-
rubygems_version: 1.8.
|
274
|
+
rubygems_version: 1.8.24
|
270
275
|
signing_key:
|
271
276
|
specification_version: 3
|
272
277
|
summary: Moderate fields or entire model instances.
|
273
|
-
test_files:
|
274
|
-
- test/dummy/
|
275
|
-
- test/dummy/
|
278
|
+
test_files:
|
279
|
+
- test/dummy/app/assets/javascripts/application.js
|
280
|
+
- test/dummy/app/assets/stylesheets/application.css
|
281
|
+
- test/dummy/app/controllers/application_controller.rb
|
282
|
+
- test/dummy/app/helpers/application_helper.rb
|
283
|
+
- test/dummy/app/models/moderation.rb
|
284
|
+
- test/dummy/app/uploaders/generic_uploader.rb
|
285
|
+
- test/dummy/app/views/layouts/application.html.erb
|
276
286
|
- test/dummy/config/application.rb
|
277
287
|
- test/dummy/config/boot.rb
|
278
288
|
- test/dummy/config/database.yml
|
279
289
|
- test/dummy/config/environment.rb
|
290
|
+
- test/dummy/config/environments/development.rb
|
291
|
+
- test/dummy/config/environments/production.rb
|
292
|
+
- test/dummy/config/environments/test.rb
|
293
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
294
|
+
- test/dummy/config/initializers/inflections.rb
|
295
|
+
- test/dummy/config/initializers/mime_types.rb
|
296
|
+
- test/dummy/config/initializers/secret_token.rb
|
297
|
+
- test/dummy/config/initializers/session_store.rb
|
298
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
299
|
+
- test/dummy/config/locales/en.yml
|
280
300
|
- test/dummy/config/routes.rb
|
301
|
+
- test/dummy/config.ru
|
281
302
|
- test/dummy/db/development.sqlite3
|
303
|
+
- test/dummy/db/migrate/20120520215008_initial_schema.rb
|
304
|
+
- test/dummy/db/migrate/20120520215224_create_photos.rb
|
282
305
|
- test/dummy/db/schema.rb
|
283
306
|
- test/dummy/db/test.sqlite3
|
284
307
|
- test/dummy/log/development.log
|
@@ -288,28 +311,10 @@ test_files:
|
|
288
311
|
- test/dummy/public/500.html
|
289
312
|
- test/dummy/public/favicon.ico
|
290
313
|
- test/dummy/public/test.jpg
|
314
|
+
- test/dummy/Rakefile
|
291
315
|
- test/dummy/script/rails
|
292
|
-
- test/dummy/spec/spec_helper.rb
|
293
316
|
- test/dummy/spec/models/photo_spec.rb
|
294
317
|
- test/dummy/spec/models/task_spec.rb
|
318
|
+
- test/dummy/spec/spec_helper.rb
|
295
319
|
- test/dummy/spec/support/crazy_models.rb
|
296
320
|
- test/dummy/spec/support/photos.rb
|
297
|
-
- test/dummy/db/migrate/20120520215008_initial_schema.rb
|
298
|
-
- test/dummy/db/migrate/20120520215224_create_photos.rb
|
299
|
-
- test/dummy/config/environments/development.rb
|
300
|
-
- test/dummy/config/environments/production.rb
|
301
|
-
- test/dummy/config/environments/test.rb
|
302
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
303
|
-
- test/dummy/config/initializers/inflections.rb
|
304
|
-
- test/dummy/config/initializers/mime_types.rb
|
305
|
-
- test/dummy/config/initializers/secret_token.rb
|
306
|
-
- test/dummy/config/initializers/session_store.rb
|
307
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
308
|
-
- test/dummy/config/locales/en.yml
|
309
|
-
- test/dummy/app/controllers/application_controller.rb
|
310
|
-
- test/dummy/app/helpers/application_helper.rb
|
311
|
-
- test/dummy/app/models/moderation.rb
|
312
|
-
- test/dummy/app/uploaders/generic_uploader.rb
|
313
|
-
- test/dummy/app/views/layouts/application.html.erb
|
314
|
-
- test/dummy/app/assets/javascripts/application.js
|
315
|
-
- test/dummy/app/assets/stylesheets/application.css
|