muck-comments 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.rdoc +24 -0
- data/Rakefile +2 -11
- data/VERSION +1 -1
- data/app/controllers/muck/comments_controller.rb +66 -36
- data/app/helpers/muck_comments_helper.rb +23 -5
- data/app/views/activity_templates/_comment.html.erb +3 -9
- data/app/views/comments/_comment.html.erb +6 -25
- data/app/views/comments/_form.html.erb +2 -1
- data/app/views/comments/index.html.erb +3 -0
- data/app/views/comments/new.html.erb +5 -0
- data/db/migrate/20090730154102_allow_null_user.rb +9 -0
- data/lib/active_record/acts/muck_comment.rb +2 -2
- data/lib/acts_as_commentable_with_threading.rb +3 -3
- data/lib/muck_comments.rb +2 -0
- data/locales/en.yml +5 -1
- data/muck-comments.gemspec +307 -15
- data/test/rails_root/.gitignore +8 -0
- data/test/rails_root/.rake_tasks +103 -0
- data/test/rails_root/Capfile +3 -0
- data/test/rails_root/Rakefile +15 -0
- data/test/rails_root/app/controllers/application_controller.rb +21 -0
- data/test/rails_root/app/controllers/default_controller.rb +7 -0
- data/test/rails_root/app/helpers/application_helper.rb +3 -0
- data/test/rails_root/app/models/.keep +0 -0
- data/test/rails_root/app/models/comment.rb +3 -0
- data/test/rails_root/app/models/user.rb +8 -0
- data/test/rails_root/app/models/user_session.rb +2 -0
- data/test/rails_root/app/views/default/index.html.erb +0 -0
- data/test/rails_root/app/views/layouts/default.html.erb +26 -0
- data/test/rails_root/config/amazon_s3.yml +14 -0
- data/test/rails_root/config/boot.rb +109 -0
- data/test/rails_root/config/database.yml +23 -0
- data/test/rails_root/config/environment.rb +30 -0
- data/test/rails_root/config/environments/cucumber.rb +38 -0
- data/test/rails_root/config/environments/development.rb +19 -0
- data/test/rails_root/config/environments/production.rb +1 -0
- data/test/rails_root/config/environments/test.rb +42 -0
- data/test/rails_root/config/global_config.yml +77 -0
- data/test/rails_root/config/initializers/inflections.rb +10 -0
- data/test/rails_root/config/initializers/mime_types.rb +5 -0
- data/test/rails_root/config/initializers/requires.rb +13 -0
- data/test/rails_root/config/initializers/session_store.rb +8 -0
- data/test/rails_root/config/routes.rb +4 -0
- data/test/rails_root/db/.keep +0 -0
- data/test/rails_root/db/migrate/20090320174818_create_muck_permissions_and_roles.rb +16 -0
- data/test/rails_root/db/migrate/20090402033319_add_muck_activities.rb +36 -0
- data/test/rails_root/db/migrate/20090402234137_create_languages.rb +18 -0
- data/test/rails_root/db/migrate/20090426041056_create_countries.rb +15 -0
- data/test/rails_root/db/migrate/20090426041103_create_states.rb +18 -0
- data/test/rails_root/db/migrate/20090602041838_create_users.rb +39 -0
- data/test/rails_root/db/migrate/20090608073052_create_friends.rb +16 -0
- data/test/rails_root/db/migrate/20090613173314_create_comments.rb +24 -0
- data/test/rails_root/db/migrate/20090703055724_add_contents.rb +49 -0
- data/test/rails_root/db/migrate/20090704220055_create_slugs.rb +18 -0
- data/test/rails_root/db/migrate/20090704220120_acts_as_taggable_on_migration.rb +29 -0
- data/test/rails_root/db/migrate/20090730044139_add_comment_cache.rb +9 -0
- data/test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb +9 -0
- data/test/rails_root/db/migrate/20090730154102_allow_null_user.rb +9 -0
- data/test/rails_root/db/schema.rb +215 -0
- data/test/rails_root/features/comments.feature +21 -0
- data/test/rails_root/features/step_definitions/comment_steps.rb +11 -0
- data/test/rails_root/features/step_definitions/common_steps.rb +93 -0
- data/test/rails_root/features/step_definitions/webrat_steps.rb +128 -0
- data/test/rails_root/features/support/env.rb +49 -0
- data/test/rails_root/features/support/paths.rb +33 -0
- data/test/rails_root/lib/tasks/cucumber.rake +20 -0
- data/test/rails_root/public/.htaccess +40 -0
- data/test/rails_root/public/404.html +30 -0
- data/test/rails_root/public/422.html +30 -0
- data/test/rails_root/public/500.html +30 -0
- data/test/rails_root/public/dispatch.rb +10 -0
- data/test/rails_root/public/favicon.ico +0 -0
- data/test/rails_root/public/images/arrow_left.gif +0 -0
- data/test/rails_root/public/images/arrow_right.gif +0 -0
- data/test/rails_root/public/images/fancybox/fancy_closebox.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_left.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_progress.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_right.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_shadow_e.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_shadow_n.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_shadow_ne.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_shadow_nw.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_shadow_s.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_shadow_se.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_shadow_sw.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_shadow_w.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_title_left.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_title_main.png +0 -0
- data/test/rails_root/public/images/fancybox/fancy_title_right.png +0 -0
- data/test/rails_root/public/images/icons/accept.png +0 -0
- data/test/rails_root/public/images/icons/add.png +0 -0
- data/test/rails_root/public/images/icons/delete.png +0 -0
- data/test/rails_root/public/images/icons/vote.png +0 -0
- data/test/rails_root/public/images/loading.gif +0 -0
- data/test/rails_root/public/images/nothing.png +0 -0
- data/test/rails_root/public/images/profile_default.jpg +0 -0
- data/test/rails_root/public/images/rails.png +0 -0
- data/test/rails_root/public/images/spinner.gif +0 -0
- data/test/rails_root/public/images/sprites.png +0 -0
- data/test/rails_root/public/javascripts/application.js +2 -0
- data/test/rails_root/public/javascripts/builder.js +136 -0
- data/test/rails_root/public/javascripts/controls.js +963 -0
- data/test/rails_root/public/javascripts/dragdrop.js +972 -0
- data/test/rails_root/public/javascripts/effects.js +1120 -0
- data/test/rails_root/public/javascripts/fancyzoom.min.js +1 -0
- data/test/rails_root/public/javascripts/jquery/jquery-ui.js +273 -0
- data/test/rails_root/public/javascripts/jquery/jquery.easing.js +1 -0
- data/test/rails_root/public/javascripts/jquery/jquery.fancybox.js +9 -0
- data/test/rails_root/public/javascripts/jquery/jquery.form.js +637 -0
- data/test/rails_root/public/javascripts/jquery/jquery.jgrowl.js +2 -0
- data/test/rails_root/public/javascripts/jquery/jquery.js +19 -0
- data/test/rails_root/public/javascripts/jquery/jquery.tips.js +69 -0
- data/test/rails_root/public/javascripts/muck.js +80 -0
- data/test/rails_root/public/javascripts/muck_activities.js +108 -0
- data/test/rails_root/public/javascripts/prototype.js +4225 -0
- data/test/rails_root/public/javascripts/scriptaculous.js +58 -0
- data/test/rails_root/public/javascripts/slider.js +277 -0
- data/test/rails_root/public/javascripts/sound.js +60 -0
- data/test/rails_root/public/robots.txt +1 -0
- data/test/rails_root/public/stylesheets/.keep +0 -0
- data/test/rails_root/public/stylesheets/admin.css +12 -0
- data/test/rails_root/public/stylesheets/blueprint/ie.css +26 -0
- data/test/rails_root/public/stylesheets/blueprint/liquid_screen.css +203 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/cross.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/key.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/tick.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/buttons/readme.txt +32 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/buttons/screen.css +97 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/fancy-type/readme.txt +14 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/fancy-type/screen.css +71 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/doc.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/email.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/external.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/feed.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/im.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/pdf.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/visited.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/xls.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/readme.txt +18 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/link-icons/screen.css +40 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/liquid/liquid.css +134 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/liquid/src/liquid.css +197 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/rtl/readme.txt +10 -0
- data/test/rails_root/public/stylesheets/blueprint/plugins/rtl/screen.css +109 -0
- data/test/rails_root/public/stylesheets/blueprint/print.css +30 -0
- data/test/rails_root/public/stylesheets/blueprint/screen.css +251 -0
- data/test/rails_root/public/stylesheets/blueprint/sprite.css +1 -0
- data/test/rails_root/public/stylesheets/blueprint/src/forms.css +49 -0
- data/test/rails_root/public/stylesheets/blueprint/src/grid.css +213 -0
- data/test/rails_root/public/stylesheets/blueprint/src/grid.png +0 -0
- data/test/rails_root/public/stylesheets/blueprint/src/ie.css +59 -0
- data/test/rails_root/public/stylesheets/blueprint/src/print.css +85 -0
- data/test/rails_root/public/stylesheets/blueprint/src/reset.css +38 -0
- data/test/rails_root/public/stylesheets/blueprint/src/typography.css +105 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_diagonals-small_0_aaaaaa_40x40.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_diagonals-thick_15_444444_40x40.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_100_f0f0f0_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_50_99c2ff_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_55_fbf5d0_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_80_e6e6e6_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_highlight-soft_100_e7eef3_1x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_222222_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_2694e8_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_2e83ff_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_72a7cf_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_888888_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_ffffff_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/cupertino/jquery-ui-1.7.1.custom.css +404 -0
- data/test/rails_root/public/stylesheets/jquery/jquery.fancybox.css +44 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_217bc0_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_2e83ff_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_469bdd_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_6da8d5_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_f9bd01_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/redmond/jquery-ui-1.7.1.custom.css +404 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/smoothness/jquery-ui-1.7.1.custom.css +404 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/test/rails_root/public/stylesheets/jquery/ui-lightness/jquery-ui-1.7.1.custom.css +404 -0
- data/test/rails_root/public/stylesheets/reset.css +0 -0
- data/test/rails_root/public/stylesheets/styles.css +89 -0
- data/test/rails_root/public/stylesheets/themes/blue/styles.css +1 -0
- data/test/rails_root/public/stylesheets/themes/red/styles.css +1 -0
- data/test/rails_root/script/about +3 -0
- data/test/rails_root/script/breakpointer +3 -0
- data/test/rails_root/script/console +3 -0
- data/test/rails_root/script/create_project.rb +52 -0
- data/test/rails_root/script/cucumber +8 -0
- data/test/rails_root/script/dbconsole +3 -0
- data/test/rails_root/script/destroy +3 -0
- data/test/rails_root/script/generate +3 -0
- data/test/rails_root/script/performance/benchmarker +3 -0
- data/test/rails_root/script/performance/profiler +3 -0
- data/test/rails_root/script/performance/request +3 -0
- data/test/rails_root/script/plugin +3 -0
- data/test/rails_root/script/process/inspector +3 -0
- data/test/rails_root/script/process/reaper +3 -0
- data/test/rails_root/script/process/spawner +3 -0
- data/test/rails_root/script/runner +3 -0
- data/test/rails_root/script/server +3 -0
- data/test/rails_root/test/factories.rb +75 -0
- data/test/rails_root/test/functional/.keep +0 -0
- data/test/rails_root/test/functional/comments_controller_test.rb +72 -0
- data/test/rails_root/test/mocks/development/.keep +0 -0
- data/test/rails_root/test/mocks/test/.keep +0 -0
- data/test/rails_root/test/shoulda_macros/controller.rb +49 -0
- data/test/rails_root/test/shoulda_macros/forms.rb +32 -0
- data/test/rails_root/test/shoulda_macros/models.rb +50 -0
- data/test/rails_root/test/shoulda_macros/pagination.rb +53 -0
- data/test/rails_root/test/shoulda_macros/plugins.rb +34 -0
- data/test/rails_root/test/test_helper.rb +48 -0
- data/test/rails_root/test/unit/.keep +0 -0
- data/test/rails_root/test/unit/comment_test.rb +63 -0
- data/test/rails_root/test/unit/user_test.rb +23 -0
- data/test/rails_root/vendor/plugins/ssl_requirement/README +43 -0
- data/test/rails_root/vendor/plugins/ssl_requirement/lib/ssl_requirement.rb +62 -0
- data/test/rails_root/vendor/plugins/ssl_requirement/test/ssl_requirement_test.rb +132 -0
- data/test/rails_root/vendor/plugins/validation_reflection/CHANGELOG +24 -0
- data/test/rails_root/vendor/plugins/validation_reflection/LICENSE +20 -0
- data/test/rails_root/vendor/plugins/validation_reflection/README +64 -0
- data/test/rails_root/vendor/plugins/validation_reflection/Rakefile +22 -0
- data/test/rails_root/vendor/plugins/validation_reflection/about.yml +7 -0
- data/test/rails_root/vendor/plugins/validation_reflection/init.rb +8 -0
- data/test/rails_root/vendor/plugins/validation_reflection/lib/boiler_plate/validation_reflection.rb +129 -0
- data/test/rails_root/vendor/plugins/validation_reflection/test/test_helper.rb +36 -0
- data/test/rails_root/vendor/plugins/validation_reflection/test/validation_reflection_test.rb +126 -0
- metadata +307 -15
- data/test/db/database.yml +0 -18
- data/test/db/schema.rb +0 -25
- data/test/factories.rb +0 -8
- data/test/functional/comments_controller_test.rb +0 -34
- data/test/test_helper.rb +0 -44
- data/test/unit/comment_test.rb +0 -49
- data/test/unit/commentable_test.rb +0 -7
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-comments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Ball
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-08-08 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -52,8 +52,11 @@ files:
|
|
52
52
|
- app/views/comments/_comment.html.erb
|
53
53
|
- app/views/comments/_comment_title.html.erb
|
54
54
|
- app/views/comments/_form.html.erb
|
55
|
+
- app/views/comments/index.html.erb
|
56
|
+
- app/views/comments/new.html.erb
|
55
57
|
- config/muck_comments_routes.rb
|
56
58
|
- db/migrate/20090613173314_create_comments.rb
|
59
|
+
- db/migrate/20090730154102_allow_null_user.rb
|
57
60
|
- install.rb
|
58
61
|
- lib/active_record/acts/muck_comment.rb
|
59
62
|
- lib/acts_as_commentable_with_threading.rb
|
@@ -108,13 +111,253 @@ files:
|
|
108
111
|
- muck-comments.gemspec
|
109
112
|
- rails/init.rb
|
110
113
|
- tasks/muck_comments_tasks.rake
|
111
|
-
- test/
|
112
|
-
- test/
|
113
|
-
- test/
|
114
|
-
- test/
|
115
|
-
- test/
|
116
|
-
- test/
|
117
|
-
- test/
|
114
|
+
- test/rails_root/.gitignore
|
115
|
+
- test/rails_root/.rake_tasks
|
116
|
+
- test/rails_root/Capfile
|
117
|
+
- test/rails_root/Rakefile
|
118
|
+
- test/rails_root/app/controllers/application_controller.rb
|
119
|
+
- test/rails_root/app/controllers/default_controller.rb
|
120
|
+
- test/rails_root/app/helpers/application_helper.rb
|
121
|
+
- test/rails_root/app/models/.keep
|
122
|
+
- test/rails_root/app/models/comment.rb
|
123
|
+
- test/rails_root/app/models/user.rb
|
124
|
+
- test/rails_root/app/models/user_session.rb
|
125
|
+
- test/rails_root/app/views/default/index.html.erb
|
126
|
+
- test/rails_root/app/views/layouts/default.html.erb
|
127
|
+
- test/rails_root/config/amazon_s3.yml
|
128
|
+
- test/rails_root/config/boot.rb
|
129
|
+
- test/rails_root/config/database.yml
|
130
|
+
- test/rails_root/config/environment.rb
|
131
|
+
- test/rails_root/config/environments/cucumber.rb
|
132
|
+
- test/rails_root/config/environments/development.rb
|
133
|
+
- test/rails_root/config/environments/production.rb
|
134
|
+
- test/rails_root/config/environments/test.rb
|
135
|
+
- test/rails_root/config/global_config.yml
|
136
|
+
- test/rails_root/config/initializers/inflections.rb
|
137
|
+
- test/rails_root/config/initializers/mime_types.rb
|
138
|
+
- test/rails_root/config/initializers/requires.rb
|
139
|
+
- test/rails_root/config/initializers/session_store.rb
|
140
|
+
- test/rails_root/config/routes.rb
|
141
|
+
- test/rails_root/db/.keep
|
142
|
+
- test/rails_root/db/migrate/20090320174818_create_muck_permissions_and_roles.rb
|
143
|
+
- test/rails_root/db/migrate/20090402033319_add_muck_activities.rb
|
144
|
+
- test/rails_root/db/migrate/20090402234137_create_languages.rb
|
145
|
+
- test/rails_root/db/migrate/20090426041056_create_countries.rb
|
146
|
+
- test/rails_root/db/migrate/20090426041103_create_states.rb
|
147
|
+
- test/rails_root/db/migrate/20090602041838_create_users.rb
|
148
|
+
- test/rails_root/db/migrate/20090608073052_create_friends.rb
|
149
|
+
- test/rails_root/db/migrate/20090613173314_create_comments.rb
|
150
|
+
- test/rails_root/db/migrate/20090703055724_add_contents.rb
|
151
|
+
- test/rails_root/db/migrate/20090704220055_create_slugs.rb
|
152
|
+
- test/rails_root/db/migrate/20090704220120_acts_as_taggable_on_migration.rb
|
153
|
+
- test/rails_root/db/migrate/20090730044139_add_comment_cache.rb
|
154
|
+
- test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb
|
155
|
+
- test/rails_root/db/migrate/20090730154102_allow_null_user.rb
|
156
|
+
- test/rails_root/features/comments.feature
|
157
|
+
- test/rails_root/features/step_definitions/comment_steps.rb
|
158
|
+
- test/rails_root/features/step_definitions/common_steps.rb
|
159
|
+
- test/rails_root/features/step_definitions/webrat_steps.rb
|
160
|
+
- test/rails_root/features/support/env.rb
|
161
|
+
- test/rails_root/features/support/paths.rb
|
162
|
+
- test/rails_root/lib/tasks/cucumber.rake
|
163
|
+
- test/rails_root/public/.htaccess
|
164
|
+
- test/rails_root/public/404.html
|
165
|
+
- test/rails_root/public/422.html
|
166
|
+
- test/rails_root/public/500.html
|
167
|
+
- test/rails_root/public/dispatch.rb
|
168
|
+
- test/rails_root/public/favicon.ico
|
169
|
+
- test/rails_root/public/images/arrow_left.gif
|
170
|
+
- test/rails_root/public/images/arrow_right.gif
|
171
|
+
- test/rails_root/public/images/fancybox/fancy_closebox.png
|
172
|
+
- test/rails_root/public/images/fancybox/fancy_left.png
|
173
|
+
- test/rails_root/public/images/fancybox/fancy_progress.png
|
174
|
+
- test/rails_root/public/images/fancybox/fancy_right.png
|
175
|
+
- test/rails_root/public/images/fancybox/fancy_shadow_e.png
|
176
|
+
- test/rails_root/public/images/fancybox/fancy_shadow_n.png
|
177
|
+
- test/rails_root/public/images/fancybox/fancy_shadow_ne.png
|
178
|
+
- test/rails_root/public/images/fancybox/fancy_shadow_nw.png
|
179
|
+
- test/rails_root/public/images/fancybox/fancy_shadow_s.png
|
180
|
+
- test/rails_root/public/images/fancybox/fancy_shadow_se.png
|
181
|
+
- test/rails_root/public/images/fancybox/fancy_shadow_sw.png
|
182
|
+
- test/rails_root/public/images/fancybox/fancy_shadow_w.png
|
183
|
+
- test/rails_root/public/images/fancybox/fancy_title_left.png
|
184
|
+
- test/rails_root/public/images/fancybox/fancy_title_main.png
|
185
|
+
- test/rails_root/public/images/fancybox/fancy_title_right.png
|
186
|
+
- test/rails_root/public/images/icons/accept.png
|
187
|
+
- test/rails_root/public/images/icons/add.png
|
188
|
+
- test/rails_root/public/images/icons/delete.png
|
189
|
+
- test/rails_root/public/images/icons/vote.png
|
190
|
+
- test/rails_root/public/images/loading.gif
|
191
|
+
- test/rails_root/public/images/nothing.png
|
192
|
+
- test/rails_root/public/images/profile_default.jpg
|
193
|
+
- test/rails_root/public/images/rails.png
|
194
|
+
- test/rails_root/public/images/spinner.gif
|
195
|
+
- test/rails_root/public/images/sprites.png
|
196
|
+
- test/rails_root/public/javascripts/application.js
|
197
|
+
- test/rails_root/public/javascripts/builder.js
|
198
|
+
- test/rails_root/public/javascripts/controls.js
|
199
|
+
- test/rails_root/public/javascripts/dragdrop.js
|
200
|
+
- test/rails_root/public/javascripts/effects.js
|
201
|
+
- test/rails_root/public/javascripts/fancyzoom.min.js
|
202
|
+
- test/rails_root/public/javascripts/jquery/jquery-ui.js
|
203
|
+
- test/rails_root/public/javascripts/jquery/jquery.easing.js
|
204
|
+
- test/rails_root/public/javascripts/jquery/jquery.fancybox.js
|
205
|
+
- test/rails_root/public/javascripts/jquery/jquery.form.js
|
206
|
+
- test/rails_root/public/javascripts/jquery/jquery.jgrowl.js
|
207
|
+
- test/rails_root/public/javascripts/jquery/jquery.js
|
208
|
+
- test/rails_root/public/javascripts/jquery/jquery.tips.js
|
209
|
+
- test/rails_root/public/javascripts/muck.js
|
210
|
+
- test/rails_root/public/javascripts/muck_activities.js
|
211
|
+
- test/rails_root/public/javascripts/prototype.js
|
212
|
+
- test/rails_root/public/javascripts/scriptaculous.js
|
213
|
+
- test/rails_root/public/javascripts/slider.js
|
214
|
+
- test/rails_root/public/javascripts/sound.js
|
215
|
+
- test/rails_root/public/robots.txt
|
216
|
+
- test/rails_root/public/stylesheets/.keep
|
217
|
+
- test/rails_root/public/stylesheets/admin.css
|
218
|
+
- test/rails_root/public/stylesheets/blueprint/ie.css
|
219
|
+
- test/rails_root/public/stylesheets/blueprint/liquid_screen.css
|
220
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/cross.png
|
221
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/key.png
|
222
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/buttons/icons/tick.png
|
223
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/buttons/readme.txt
|
224
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/buttons/screen.css
|
225
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/fancy-type/readme.txt
|
226
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/fancy-type/screen.css
|
227
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/doc.png
|
228
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/email.png
|
229
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/external.png
|
230
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/feed.png
|
231
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/im.png
|
232
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/pdf.png
|
233
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/visited.png
|
234
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/link-icons/icons/xls.png
|
235
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/link-icons/readme.txt
|
236
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/link-icons/screen.css
|
237
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/liquid/liquid.css
|
238
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/liquid/src/liquid.css
|
239
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/rtl/readme.txt
|
240
|
+
- test/rails_root/public/stylesheets/blueprint/plugins/rtl/screen.css
|
241
|
+
- test/rails_root/public/stylesheets/blueprint/print.css
|
242
|
+
- test/rails_root/public/stylesheets/blueprint/screen.css
|
243
|
+
- test/rails_root/public/stylesheets/blueprint/sprite.css
|
244
|
+
- test/rails_root/public/stylesheets/blueprint/src/forms.css
|
245
|
+
- test/rails_root/public/stylesheets/blueprint/src/grid.css
|
246
|
+
- test/rails_root/public/stylesheets/blueprint/src/grid.png
|
247
|
+
- test/rails_root/public/stylesheets/blueprint/src/ie.css
|
248
|
+
- test/rails_root/public/stylesheets/blueprint/src/print.css
|
249
|
+
- test/rails_root/public/stylesheets/blueprint/src/reset.css
|
250
|
+
- test/rails_root/public/stylesheets/blueprint/src/typography.css
|
251
|
+
- test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_diagonals-small_0_aaaaaa_40x40.png
|
252
|
+
- test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_diagonals-thick_15_444444_40x40.png
|
253
|
+
- test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_100_f0f0f0_1x400.png
|
254
|
+
- test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_50_99c2ff_1x400.png
|
255
|
+
- test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_55_fbf5d0_1x400.png
|
256
|
+
- test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_80_e6e6e6_1x400.png
|
257
|
+
- test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_glass_95_fef1ec_1x400.png
|
258
|
+
- test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png
|
259
|
+
- test/rails_root/public/stylesheets/jquery/cupertino/images/ui-bg_highlight-soft_100_e7eef3_1x100.png
|
260
|
+
- test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_222222_256x240.png
|
261
|
+
- test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_2694e8_256x240.png
|
262
|
+
- test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_2e83ff_256x240.png
|
263
|
+
- test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_72a7cf_256x240.png
|
264
|
+
- test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_888888_256x240.png
|
265
|
+
- test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_cd0a0a_256x240.png
|
266
|
+
- test/rails_root/public/stylesheets/jquery/cupertino/images/ui-icons_ffffff_256x240.png
|
267
|
+
- test/rails_root/public/stylesheets/jquery/cupertino/jquery-ui-1.7.1.custom.css
|
268
|
+
- test/rails_root/public/stylesheets/jquery/jquery.fancybox.css
|
269
|
+
- test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png
|
270
|
+
- test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_flat_55_fbec88_40x100.png
|
271
|
+
- test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png
|
272
|
+
- test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_85_dfeffc_1x400.png
|
273
|
+
- test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_glass_95_fef1ec_1x400.png
|
274
|
+
- test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png
|
275
|
+
- test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png
|
276
|
+
- test/rails_root/public/stylesheets/jquery/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png
|
277
|
+
- test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_217bc0_256x240.png
|
278
|
+
- test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_2e83ff_256x240.png
|
279
|
+
- test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_469bdd_256x240.png
|
280
|
+
- test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_6da8d5_256x240.png
|
281
|
+
- test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_cd0a0a_256x240.png
|
282
|
+
- test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_d8e7f3_256x240.png
|
283
|
+
- test/rails_root/public/stylesheets/jquery/redmond/images/ui-icons_f9bd01_256x240.png
|
284
|
+
- test/rails_root/public/stylesheets/jquery/redmond/jquery-ui-1.7.1.custom.css
|
285
|
+
- test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
|
286
|
+
- test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
|
287
|
+
- test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
|
288
|
+
- test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
|
289
|
+
- test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_75_dadada_1x400.png
|
290
|
+
- test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
|
291
|
+
- test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
|
292
|
+
- test/rails_root/public/stylesheets/jquery/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
|
293
|
+
- test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_222222_256x240.png
|
294
|
+
- test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_2e83ff_256x240.png
|
295
|
+
- test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_454545_256x240.png
|
296
|
+
- test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_888888_256x240.png
|
297
|
+
- test/rails_root/public/stylesheets/jquery/smoothness/images/ui-icons_cd0a0a_256x240.png
|
298
|
+
- test/rails_root/public/stylesheets/jquery/smoothness/jquery-ui-1.7.1.custom.css
|
299
|
+
- test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
|
300
|
+
- test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
|
301
|
+
- test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
|
302
|
+
- test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
|
303
|
+
- test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
|
304
|
+
- test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
|
305
|
+
- test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
|
306
|
+
- test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
|
307
|
+
- test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
|
308
|
+
- test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_222222_256x240.png
|
309
|
+
- test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_228ef1_256x240.png
|
310
|
+
- test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ef8c08_256x240.png
|
311
|
+
- test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffd27a_256x240.png
|
312
|
+
- test/rails_root/public/stylesheets/jquery/ui-lightness/images/ui-icons_ffffff_256x240.png
|
313
|
+
- test/rails_root/public/stylesheets/jquery/ui-lightness/jquery-ui-1.7.1.custom.css
|
314
|
+
- test/rails_root/public/stylesheets/reset.css
|
315
|
+
- test/rails_root/public/stylesheets/styles.css
|
316
|
+
- test/rails_root/public/stylesheets/themes/blue/styles.css
|
317
|
+
- test/rails_root/public/stylesheets/themes/red/styles.css
|
318
|
+
- test/rails_root/script/about
|
319
|
+
- test/rails_root/script/breakpointer
|
320
|
+
- test/rails_root/script/console
|
321
|
+
- test/rails_root/script/create_project.rb
|
322
|
+
- test/rails_root/script/cucumber
|
323
|
+
- test/rails_root/script/dbconsole
|
324
|
+
- test/rails_root/script/destroy
|
325
|
+
- test/rails_root/script/generate
|
326
|
+
- test/rails_root/script/performance/benchmarker
|
327
|
+
- test/rails_root/script/performance/profiler
|
328
|
+
- test/rails_root/script/performance/request
|
329
|
+
- test/rails_root/script/plugin
|
330
|
+
- test/rails_root/script/process/inspector
|
331
|
+
- test/rails_root/script/process/reaper
|
332
|
+
- test/rails_root/script/process/spawner
|
333
|
+
- test/rails_root/script/runner
|
334
|
+
- test/rails_root/script/server
|
335
|
+
- test/rails_root/test/factories.rb
|
336
|
+
- test/rails_root/test/functional/.keep
|
337
|
+
- test/rails_root/test/functional/comments_controller_test.rb
|
338
|
+
- test/rails_root/test/mocks/development/.keep
|
339
|
+
- test/rails_root/test/mocks/test/.keep
|
340
|
+
- test/rails_root/test/shoulda_macros/controller.rb
|
341
|
+
- test/rails_root/test/shoulda_macros/forms.rb
|
342
|
+
- test/rails_root/test/shoulda_macros/models.rb
|
343
|
+
- test/rails_root/test/shoulda_macros/pagination.rb
|
344
|
+
- test/rails_root/test/shoulda_macros/plugins.rb
|
345
|
+
- test/rails_root/test/test_helper.rb
|
346
|
+
- test/rails_root/test/unit/.keep
|
347
|
+
- test/rails_root/test/unit/comment_test.rb
|
348
|
+
- test/rails_root/test/unit/user_test.rb
|
349
|
+
- test/rails_root/vendor/plugins/ssl_requirement/README
|
350
|
+
- test/rails_root/vendor/plugins/ssl_requirement/lib/ssl_requirement.rb
|
351
|
+
- test/rails_root/vendor/plugins/ssl_requirement/test/ssl_requirement_test.rb
|
352
|
+
- test/rails_root/vendor/plugins/validation_reflection/CHANGELOG
|
353
|
+
- test/rails_root/vendor/plugins/validation_reflection/LICENSE
|
354
|
+
- test/rails_root/vendor/plugins/validation_reflection/README
|
355
|
+
- test/rails_root/vendor/plugins/validation_reflection/Rakefile
|
356
|
+
- test/rails_root/vendor/plugins/validation_reflection/about.yml
|
357
|
+
- test/rails_root/vendor/plugins/validation_reflection/init.rb
|
358
|
+
- test/rails_root/vendor/plugins/validation_reflection/lib/boiler_plate/validation_reflection.rb
|
359
|
+
- test/rails_root/vendor/plugins/validation_reflection/test/test_helper.rb
|
360
|
+
- test/rails_root/vendor/plugins/validation_reflection/test/validation_reflection_test.rb
|
118
361
|
- uninstall.rb
|
119
362
|
has_rdoc: true
|
120
363
|
homepage: http://github.com/jbasdf/muck_comments
|
@@ -143,9 +386,58 @@ signing_key:
|
|
143
386
|
specification_version: 2
|
144
387
|
summary: The comment engine for the muck system
|
145
388
|
test_files:
|
146
|
-
- test/
|
147
|
-
- test/
|
148
|
-
- test/
|
149
|
-
- test/
|
150
|
-
- test/
|
151
|
-
- test/
|
389
|
+
- test/rails_root/app/controllers/application_controller.rb
|
390
|
+
- test/rails_root/app/controllers/default_controller.rb
|
391
|
+
- test/rails_root/app/helpers/application_helper.rb
|
392
|
+
- test/rails_root/app/models/comment.rb
|
393
|
+
- test/rails_root/app/models/user.rb
|
394
|
+
- test/rails_root/app/models/user_session.rb
|
395
|
+
- test/rails_root/config/boot.rb
|
396
|
+
- test/rails_root/config/environment.rb
|
397
|
+
- test/rails_root/config/environments/cucumber.rb
|
398
|
+
- test/rails_root/config/environments/development.rb
|
399
|
+
- test/rails_root/config/environments/production.rb
|
400
|
+
- test/rails_root/config/environments/test.rb
|
401
|
+
- test/rails_root/config/initializers/inflections.rb
|
402
|
+
- test/rails_root/config/initializers/mime_types.rb
|
403
|
+
- test/rails_root/config/initializers/requires.rb
|
404
|
+
- test/rails_root/config/initializers/session_store.rb
|
405
|
+
- test/rails_root/config/routes.rb
|
406
|
+
- test/rails_root/db/migrate/20090320174818_create_muck_permissions_and_roles.rb
|
407
|
+
- test/rails_root/db/migrate/20090402033319_add_muck_activities.rb
|
408
|
+
- test/rails_root/db/migrate/20090402234137_create_languages.rb
|
409
|
+
- test/rails_root/db/migrate/20090426041056_create_countries.rb
|
410
|
+
- test/rails_root/db/migrate/20090426041103_create_states.rb
|
411
|
+
- test/rails_root/db/migrate/20090602041838_create_users.rb
|
412
|
+
- test/rails_root/db/migrate/20090608073052_create_friends.rb
|
413
|
+
- test/rails_root/db/migrate/20090613173314_create_comments.rb
|
414
|
+
- test/rails_root/db/migrate/20090703055724_add_contents.rb
|
415
|
+
- test/rails_root/db/migrate/20090704220055_create_slugs.rb
|
416
|
+
- test/rails_root/db/migrate/20090704220120_acts_as_taggable_on_migration.rb
|
417
|
+
- test/rails_root/db/migrate/20090730044139_add_comment_cache.rb
|
418
|
+
- test/rails_root/db/migrate/20090730074858_add_comment_count_to_users.rb
|
419
|
+
- test/rails_root/db/migrate/20090730154102_allow_null_user.rb
|
420
|
+
- test/rails_root/db/schema.rb
|
421
|
+
- test/rails_root/features/step_definitions/comment_steps.rb
|
422
|
+
- test/rails_root/features/step_definitions/common_steps.rb
|
423
|
+
- test/rails_root/features/step_definitions/webrat_steps.rb
|
424
|
+
- test/rails_root/features/support/env.rb
|
425
|
+
- test/rails_root/features/support/paths.rb
|
426
|
+
- test/rails_root/public/dispatch.rb
|
427
|
+
- test/rails_root/script/create_project.rb
|
428
|
+
- test/rails_root/test/factories.rb
|
429
|
+
- test/rails_root/test/functional/comments_controller_test.rb
|
430
|
+
- test/rails_root/test/shoulda_macros/controller.rb
|
431
|
+
- test/rails_root/test/shoulda_macros/forms.rb
|
432
|
+
- test/rails_root/test/shoulda_macros/models.rb
|
433
|
+
- test/rails_root/test/shoulda_macros/pagination.rb
|
434
|
+
- test/rails_root/test/shoulda_macros/plugins.rb
|
435
|
+
- test/rails_root/test/test_helper.rb
|
436
|
+
- test/rails_root/test/unit/comment_test.rb
|
437
|
+
- test/rails_root/test/unit/user_test.rb
|
438
|
+
- test/rails_root/vendor/plugins/ssl_requirement/lib/ssl_requirement.rb
|
439
|
+
- test/rails_root/vendor/plugins/ssl_requirement/test/ssl_requirement_test.rb
|
440
|
+
- test/rails_root/vendor/plugins/validation_reflection/init.rb
|
441
|
+
- test/rails_root/vendor/plugins/validation_reflection/lib/boiler_plate/validation_reflection.rb
|
442
|
+
- test/rails_root/vendor/plugins/validation_reflection/test/test_helper.rb
|
443
|
+
- test/rails_root/vendor/plugins/validation_reflection/test/validation_reflection_test.rb
|
data/test/db/database.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
sqlite3:
|
2
|
-
adapter: sqlite3
|
3
|
-
dbfile: muck_comments.sqlite3.db
|
4
|
-
sqlite3mem:
|
5
|
-
:adapter: sqlite3
|
6
|
-
:dbfile: ":memory:"
|
7
|
-
postgresql:
|
8
|
-
:adapter: postgresql
|
9
|
-
:username: postgres
|
10
|
-
:password: postgres
|
11
|
-
:database: muck_comments_test
|
12
|
-
:min_messages: ERROR
|
13
|
-
mysql:
|
14
|
-
:adapter: mysql
|
15
|
-
:host: localhost
|
16
|
-
:username: root
|
17
|
-
:password:
|
18
|
-
:database: muck_comments_test
|
data/test/db/schema.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
ActiveRecord::Schema.define(:version => 0) do
|
2
|
-
create_table "users", :force => true do |t|
|
3
|
-
t.timestamps
|
4
|
-
end
|
5
|
-
|
6
|
-
create_table "commentables", :force => true do |t|
|
7
|
-
t.timestamps
|
8
|
-
end
|
9
|
-
|
10
|
-
create_table "comments", :force => true do |t|
|
11
|
-
t.integer "commentable_id", :default => 0
|
12
|
-
t.string "commentable_type", :limit => 15, :default => ""
|
13
|
-
t.string "title", :default => ""
|
14
|
-
t.text "body", :default => ""
|
15
|
-
t.string "subject", :default => ""
|
16
|
-
t.integer "user_id", :default => 0, :null => false
|
17
|
-
t.integer "parent_id"
|
18
|
-
t.integer "lft"
|
19
|
-
t.integer "rgt"
|
20
|
-
t.timestamps
|
21
|
-
end
|
22
|
-
|
23
|
-
add_index "comments", "user_id"
|
24
|
-
add_index "comments", "commentable_id"
|
25
|
-
end
|
data/test/factories.rb
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
-
|
3
|
-
class Muck::CommentsControllerTest < ActionController::TestCase
|
4
|
-
|
5
|
-
def setup
|
6
|
-
@controller = Muck::CommentsController.new
|
7
|
-
@request = ActionController::TestRequest.new
|
8
|
-
@response = ActionController::TestResponse.new
|
9
|
-
end
|
10
|
-
|
11
|
-
context "delete comment" do
|
12
|
-
setup do
|
13
|
-
@comment = Factory(:comment)
|
14
|
-
end
|
15
|
-
should "delete comment" do
|
16
|
-
assert_difference "Comment.count", -1 do
|
17
|
-
delete :destroy, { :id => @comment.to_param, :format => 'json' }
|
18
|
-
ensure_flash(/comment successfully removed/i)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
context "create comment" do
|
24
|
-
setup do
|
25
|
-
@user = Factory(:user)
|
26
|
-
end
|
27
|
-
should " be able to create a comment" do
|
28
|
-
assert_difference "Comment.count" do
|
29
|
-
post :create, { :type => 'User', :id => @user.id, :format => 'json', :comment => { :body => 'test' } }
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
data/test/test_helper.rb
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
$:.reject! { |e| e.include? 'TextMate' }
|
2
|
-
$:.unshift(File.dirname(__FILE__) + '/../lib')
|
3
|
-
ENV["RAILS_ENV"] = "test"
|
4
|
-
|
5
|
-
require 'rubygems'
|
6
|
-
require 'active_support'
|
7
|
-
require 'active_support/test_case'
|
8
|
-
require 'active_record'
|
9
|
-
require 'action_controller'
|
10
|
-
require 'test_help'
|
11
|
-
require 'factory_girl'
|
12
|
-
require 'ruby-debug'
|
13
|
-
require 'mocha'
|
14
|
-
require 'redgreen' rescue LoadError
|
15
|
-
require File.expand_path(File.dirname(__FILE__) + '/factories')
|
16
|
-
require File.join(File.dirname(__FILE__), 'shoulda_macros', 'controller')
|
17
|
-
|
18
|
-
plugin_test_dir = File.dirname(__FILE__)
|
19
|
-
|
20
|
-
ActiveRecord::Base.logger = Logger.new(File.join(plugin_test_dir, "debug.log"))
|
21
|
-
|
22
|
-
ActiveRecord::Base.configurations = YAML::load(IO.read(File.join(plugin_test_dir, "db", "database.yml")))
|
23
|
-
ActiveRecord::Base.establish_connection(ENV["DB"] || "sqlite3mem")
|
24
|
-
ActiveRecord::Migration.verbose = false
|
25
|
-
load(File.join(plugin_test_dir, "db", "schema.rb"))
|
26
|
-
|
27
|
-
require File.join(plugin_test_dir, '..', 'init')
|
28
|
-
|
29
|
-
class ActiveSupport::TestCase
|
30
|
-
self.use_transactional_fixtures = true
|
31
|
-
self.use_instantiated_fixtures = false
|
32
|
-
end
|
33
|
-
|
34
|
-
class User < ActiveRecord::Base
|
35
|
-
has_many :comments
|
36
|
-
end
|
37
|
-
|
38
|
-
class Commentable < ActiveRecord::Base
|
39
|
-
acts_as_commentable
|
40
|
-
end
|
41
|
-
|
42
|
-
class Comment < ActiveRecord::Base
|
43
|
-
acts_as_muck_comment
|
44
|
-
end
|
data/test/unit/comment_test.rb
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
require File.join(File.dirname(__FILE__), "..", "test_helper")
|
2
|
-
|
3
|
-
# some of the behavior of awesome_nested_set although does so to demonstrate the use of this gem
|
4
|
-
context "Comment" do
|
5
|
-
setup do
|
6
|
-
@user = User.create!
|
7
|
-
@comment = Comment.create!(:body => "Root comment", :user => @user)
|
8
|
-
end
|
9
|
-
|
10
|
-
context "that is valid" do
|
11
|
-
should "have a user" do
|
12
|
-
assert_not_nil @comment.user
|
13
|
-
end
|
14
|
-
|
15
|
-
should "have a body" do
|
16
|
-
assert_not_nil @comment.body
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
should "not have a parent if it is a root Comment" do
|
21
|
-
assert_nil @comment.parent
|
22
|
-
end
|
23
|
-
|
24
|
-
should " be able to see how many child Comments it has" do
|
25
|
-
assert_equal @comment.children.size, 0
|
26
|
-
end
|
27
|
-
|
28
|
-
should "be able to add child Comments" do
|
29
|
-
grandchild = Comment.new(:body => "This is a grandchild", :user => @user)
|
30
|
-
grandchild.save!
|
31
|
-
grandchild.move_to_child_of(@comment)
|
32
|
-
assert_equal @comment.children.size, 1
|
33
|
-
end
|
34
|
-
|
35
|
-
context "after having a child added" do
|
36
|
-
setup do
|
37
|
-
@child = Comment.create!(:body => "Child comment", :user => @user)
|
38
|
-
@child.move_to_child_of(@comment)
|
39
|
-
end
|
40
|
-
|
41
|
-
should "be able to be referenced by its child" do
|
42
|
-
assert_equal @child.parent, @comment
|
43
|
-
end
|
44
|
-
|
45
|
-
should "be able to see its child" do
|
46
|
-
assert_equal @comment.children.first, @child
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|