rd_resource_controller 1.0.0 → 1.0.1
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.
- data/VERSION.yml +1 -1
- data/lib/resource_controller/controller.rb +4 -4
- metadata +78 -83
data/VERSION.yml
CHANGED
@@ -35,25 +35,25 @@ module ResourceController
|
|
35
35
|
show do
|
36
36
|
wants.html
|
37
37
|
|
38
|
-
failure.wants.html { render :text => "Member object not found." }
|
38
|
+
failure.wants.html { render :text => I18n.t('resource_controller.member_object_not_found', :default => "Member object not found.") }
|
39
39
|
end
|
40
40
|
|
41
41
|
create do
|
42
|
-
flash "Successfully created!"
|
42
|
+
flash I18n.t('resource_controller.successfully_created', :default => "Successfully created!")
|
43
43
|
wants.html { redirect_to object_url }
|
44
44
|
|
45
45
|
failure.wants.html { render :action => "new" }
|
46
46
|
end
|
47
47
|
|
48
48
|
update do
|
49
|
-
flash "Successfully updated!"
|
49
|
+
flash I18n.t('resource_controller.successfully_updated', :default => "Successfully updated!")
|
50
50
|
wants.html { redirect_to object_url }
|
51
51
|
|
52
52
|
failure.wants.html { render :action => "edit" }
|
53
53
|
end
|
54
54
|
|
55
55
|
destroy do
|
56
|
-
flash "Successfully
|
56
|
+
flash I18n.t('resource_controller.successfully_removed', :default => "Successfully updated!")
|
57
57
|
wants.html { redirect_to collection_url }
|
58
58
|
failure.wants.html { redirect_to object_url }
|
59
59
|
end
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rd_resource_controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 23
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
8
|
+
- 1
|
9
|
+
version: 1.0.1
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- James Golick
|
@@ -17,7 +16,7 @@ autorequire:
|
|
17
16
|
bindir: bin
|
18
17
|
cert_chain: []
|
19
18
|
|
20
|
-
date:
|
19
|
+
date: 2011-01-19 00:00:00 +03:00
|
21
20
|
default_executable:
|
22
21
|
dependencies: []
|
23
22
|
|
@@ -290,134 +289,130 @@ rdoc_options:
|
|
290
289
|
require_paths:
|
291
290
|
- lib
|
292
291
|
required_ruby_version: !ruby/object:Gem::Requirement
|
293
|
-
none: false
|
294
292
|
requirements:
|
295
293
|
- - ">="
|
296
294
|
- !ruby/object:Gem::Version
|
297
|
-
hash: 3
|
298
295
|
segments:
|
299
296
|
- 0
|
300
297
|
version: "0"
|
301
298
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
302
|
-
none: false
|
303
299
|
requirements:
|
304
300
|
- - ">="
|
305
301
|
- !ruby/object:Gem::Version
|
306
|
-
hash: 3
|
307
302
|
segments:
|
308
303
|
- 0
|
309
304
|
version: "0"
|
310
305
|
requirements: []
|
311
306
|
|
312
307
|
rubyforge_project:
|
313
|
-
rubygems_version: 1.3.
|
308
|
+
rubygems_version: 1.3.6
|
314
309
|
signing_key:
|
315
310
|
specification_version: 3
|
316
311
|
summary: Rails RESTful controller abstraction plugin.
|
317
312
|
test_files:
|
318
|
-
- test/app/
|
319
|
-
- test/app/controllers/application_controller.rb
|
320
|
-
- test/app/controllers/cms/options_controller.rb
|
321
|
-
- test/app/controllers/cms/personnel_controller.rb
|
322
|
-
- test/app/controllers/cms/photos_controller.rb
|
323
|
-
- test/app/controllers/cms/products_controller.rb
|
324
|
-
- test/app/controllers/comments_controller.rb
|
325
|
-
- test/app/controllers/images_controller.rb
|
326
|
-
- test/app/controllers/options_controller.rb
|
327
|
-
- test/app/controllers/people_controller.rb
|
328
|
-
- test/app/controllers/photos_controller.rb
|
329
|
-
- test/app/controllers/posts_controller.rb
|
330
|
-
- test/app/controllers/projects_controller.rb
|
331
|
-
- test/app/controllers/somethings_controller.rb
|
332
|
-
- test/app/controllers/tags_controller.rb
|
333
|
-
- test/app/controllers/users_controller.rb
|
334
|
-
- test/app/helpers/accounts_helper.rb
|
335
|
-
- test/app/helpers/application_helper.rb
|
336
|
-
- test/app/helpers/cms/products_helper.rb
|
337
|
-
- test/app/helpers/comments_helper.rb
|
313
|
+
- test/app/helpers/posts_helper.rb
|
338
314
|
- test/app/helpers/images_helper.rb
|
339
|
-
- test/app/helpers/
|
315
|
+
- test/app/helpers/users_helper.rb
|
316
|
+
- test/app/helpers/projects_helper.rb
|
317
|
+
- test/app/helpers/comments_helper.rb
|
340
318
|
- test/app/helpers/people_helper.rb
|
341
319
|
- test/app/helpers/photos_helper.rb
|
342
|
-
- test/app/helpers/posts_helper.rb
|
343
|
-
- test/app/helpers/projects_helper.rb
|
344
320
|
- test/app/helpers/somethings_helper.rb
|
321
|
+
- test/app/helpers/application_helper.rb
|
322
|
+
- test/app/helpers/options_helper.rb
|
323
|
+
- test/app/helpers/accounts_helper.rb
|
324
|
+
- test/app/helpers/cms/products_helper.rb
|
345
325
|
- test/app/helpers/tags_helper.rb
|
346
|
-
- test/app/helpers/users_helper.rb
|
347
|
-
- test/app/models/account.rb
|
348
326
|
- test/app/models/comment.rb
|
349
327
|
- test/app/models/image.rb
|
350
|
-
- test/app/models/option.rb
|
351
|
-
- test/app/models/personnel.rb
|
352
328
|
- test/app/models/photo.rb
|
329
|
+
- test/app/models/option.rb
|
353
330
|
- test/app/models/post.rb
|
331
|
+
- test/app/models/personnel.rb
|
332
|
+
- test/app/models/account.rb
|
354
333
|
- test/app/models/product.rb
|
355
|
-
- test/app/models/project.rb
|
356
|
-
- test/app/models/something.rb
|
357
334
|
- test/app/models/tag.rb
|
335
|
+
- test/app/models/something.rb
|
336
|
+
- test/app/models/project.rb
|
358
337
|
- test/app/models/user.rb
|
359
|
-
- test/
|
360
|
-
- test/
|
361
|
-
- test/
|
362
|
-
- test/
|
363
|
-
- test/
|
364
|
-
- test/
|
365
|
-
- test/
|
366
|
-
- test/
|
367
|
-
- test/
|
368
|
-
- test/
|
369
|
-
- test/
|
370
|
-
- test/
|
371
|
-
- test/
|
372
|
-
- test/
|
373
|
-
- test/
|
374
|
-
- test/
|
375
|
-
- test/db/
|
338
|
+
- test/app/controllers/projects_controller.rb
|
339
|
+
- test/app/controllers/users_controller.rb
|
340
|
+
- test/app/controllers/application_controller.rb
|
341
|
+
- test/app/controllers/posts_controller.rb
|
342
|
+
- test/app/controllers/photos_controller.rb
|
343
|
+
- test/app/controllers/somethings_controller.rb
|
344
|
+
- test/app/controllers/tags_controller.rb
|
345
|
+
- test/app/controllers/comments_controller.rb
|
346
|
+
- test/app/controllers/people_controller.rb
|
347
|
+
- test/app/controllers/accounts_controller.rb
|
348
|
+
- test/app/controllers/images_controller.rb
|
349
|
+
- test/app/controllers/cms/personnel_controller.rb
|
350
|
+
- test/app/controllers/cms/photos_controller.rb
|
351
|
+
- test/app/controllers/cms/products_controller.rb
|
352
|
+
- test/app/controllers/cms/options_controller.rb
|
353
|
+
- test/app/controllers/options_controller.rb
|
354
|
+
- test/db/schema.rb
|
376
355
|
- test/db/migrate/009_add_account_id_to_photos.rb
|
356
|
+
- test/db/migrate/006_create_tags.rb
|
357
|
+
- test/db/migrate/013_create_personnel.rb
|
377
358
|
- test/db/migrate/010_create_projects.rb
|
359
|
+
- test/db/migrate/014_add_personnel_id_to_photos.rb
|
360
|
+
- test/db/migrate/004_create_options.rb
|
361
|
+
- test/db/migrate/002_create_products.rb
|
378
362
|
- test/db/migrate/011_create_images.rb
|
379
363
|
- test/db/migrate/012_create_users.rb
|
380
|
-
- test/db/migrate/
|
381
|
-
- test/db/migrate/
|
382
|
-
- test/db/
|
383
|
-
- test/
|
384
|
-
- test/
|
385
|
-
- test/
|
386
|
-
- test/
|
364
|
+
- test/db/migrate/005_create_photos.rb
|
365
|
+
- test/db/migrate/008_create_accounts.rb
|
366
|
+
- test/db/migrate/007_create_somethings.rb
|
367
|
+
- test/db/migrate/003_create_comments.rb
|
368
|
+
- test/db/migrate/001_create_posts.rb
|
369
|
+
- test/config/application.rb
|
370
|
+
- test/config/boot.rb
|
371
|
+
- test/config/initializers/session_store.rb
|
372
|
+
- test/config/initializers/secret_token.rb
|
373
|
+
- test/config/initializers/inflections.rb
|
374
|
+
- test/config/environments/test.rb
|
375
|
+
- test/config/environments/development.rb
|
376
|
+
- test/config/routes.rb
|
377
|
+
- test/config/environment.rb
|
387
378
|
- test/test/functional/images_controller_test.rb
|
388
|
-
- test/test/functional/
|
389
|
-
- test/test/functional/photos_controller_test.rb
|
379
|
+
- test/test/functional/users_controller_test.rb
|
390
380
|
- test/test/functional/posts_controller_test.rb
|
381
|
+
- test/test/functional/comments_controller_test.rb
|
382
|
+
- test/test/functional/people_controller_test.rb
|
391
383
|
- test/test/functional/projects_controller_test.rb
|
392
|
-
- test/test/functional/
|
384
|
+
- test/test/functional/photos_controller_test.rb
|
393
385
|
- test/test/functional/tags_controller_test.rb
|
394
|
-
- test/test/functional/
|
386
|
+
- test/test/functional/somethings_controller_test.rb
|
387
|
+
- test/test/functional/cms/products_controller_test.rb
|
388
|
+
- test/test/functional/cms/options_controller_test.rb
|
389
|
+
- test/test/functional/cms/photos_controller_test.rb
|
395
390
|
- test/test/test_helper.rb
|
396
|
-
- test/test/unit/
|
397
|
-
- test/test/unit/account_test.rb
|
398
|
-
- test/test/unit/action_options_test.rb
|
391
|
+
- test/test/unit/image_test.rb
|
399
392
|
- test/test/unit/base_test.rb
|
400
|
-
- test/test/unit/
|
401
|
-
- test/test/unit/failable_action_options_test.rb
|
393
|
+
- test/test/unit/helpers/singleton_nested_test.rb
|
402
394
|
- test/test/unit/helpers/current_objects_test.rb
|
395
|
+
- test/test/unit/helpers/singleton_urls_test.rb
|
396
|
+
- test/test/unit/helpers/urls_test.rb
|
403
397
|
- test/test/unit/helpers/internal_test.rb
|
404
398
|
- test/test/unit/helpers/nested_test.rb
|
405
399
|
- test/test/unit/helpers/singleton_current_objects_test.rb
|
406
|
-
- test/test/unit/helpers/singleton_nested_test.rb
|
407
|
-
- test/test/unit/helpers/singleton_urls_test.rb
|
408
|
-
- test/test/unit/helpers/urls_test.rb
|
409
|
-
- test/test/unit/helpers_test.rb
|
410
|
-
- test/test/unit/image_test.rb
|
411
|
-
- test/test/unit/option_test.rb
|
412
|
-
- test/test/unit/photo_test.rb
|
413
400
|
- test/test/unit/post_test.rb
|
401
|
+
- test/test/unit/urligence_test.rb
|
402
|
+
- test/test/unit/tag_test.rb
|
403
|
+
- test/test/unit/something_test.rb
|
404
|
+
- test/test/unit/option_test.rb
|
414
405
|
- test/test/unit/project_test.rb
|
406
|
+
- test/test/unit/account_test.rb
|
407
|
+
- test/test/unit/action_options_test.rb
|
408
|
+
- test/test/unit/comment_test.rb
|
409
|
+
- test/test/unit/failable_action_options_test.rb
|
415
410
|
- test/test/unit/response_collector_test.rb
|
416
|
-
- test/test/unit/
|
417
|
-
- test/test/unit/
|
418
|
-
- test/test/unit/
|
419
|
-
- test/vendor/plugins/dynamic_form/init.rb
|
411
|
+
- test/test/unit/helpers_test.rb
|
412
|
+
- test/test/unit/photo_test.rb
|
413
|
+
- test/test/unit/accessors_test.rb
|
420
414
|
- test/vendor/plugins/dynamic_form/lib/action_view/helpers/dynamic_form.rb
|
415
|
+
- test/vendor/plugins/dynamic_form/init.rb
|
421
416
|
- test/vendor/plugins/dynamic_form/test/dynamic_form_i18n_test.rb
|
422
|
-
- test/vendor/plugins/dynamic_form/test/dynamic_form_test.rb
|
423
417
|
- test/vendor/plugins/dynamic_form/test/test_helper.rb
|
418
|
+
- test/vendor/plugins/dynamic_form/test/dynamic_form_test.rb
|