typo 5.0.2 → 5.0.3.98
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES-5.0.4 +33 -0
- data/MAINTAINERS +4 -8
- data/README +10 -8
- data/{README.SIDEBARS → SIDEBARS} +0 -0
- data/app/apis/blogger_service.rb +2 -3
- data/app/apis/meta_weblog_service.rb +6 -7
- data/app/apis/movable_type_service.rb +6 -6
- data/app/controllers/accounts_controller.rb +9 -9
- data/app/controllers/admin/base_controller.rb +3 -22
- data/app/controllers/admin/blacklist_controller.rb +4 -4
- data/app/controllers/admin/cache_controller.rb +0 -9
- data/app/controllers/admin/categories_controller.rb +4 -8
- data/app/controllers/admin/comments_controller.rb +4 -4
- data/app/controllers/admin/content_controller.rb +44 -44
- data/app/controllers/admin/dashboard_controller.rb +8 -0
- data/app/controllers/admin/feedback_controller.rb +1 -2
- data/app/controllers/admin/pages_controller.rb +49 -24
- data/app/controllers/admin/resources_controller.rb +5 -5
- data/app/controllers/admin/settings_controller.rb +7 -0
- data/app/controllers/admin/sidebar_controller.rb +5 -8
- data/app/controllers/admin/tags_controller.rb +43 -0
- data/app/controllers/admin/themes_controller.rb +1 -0
- data/app/controllers/admin/trackbacks_controller.rb +4 -13
- data/app/controllers/admin/users_controller.rb +7 -13
- data/app/controllers/application.rb +2 -24
- data/app/controllers/articles_controller.rb +28 -23
- data/app/controllers/comments_controller.rb +4 -6
- data/app/controllers/content_controller.rb +1 -4
- data/app/controllers/feedback_controller.rb +12 -2
- data/app/controllers/grouping_controller.rb +7 -1
- data/app/controllers/redirect_controller.rb +6 -0
- data/app/controllers/theme_controller.rb +2 -3
- data/app/controllers/trackbacks_controller.rb +4 -6
- data/app/controllers/xml_controller.rb +1 -1
- data/app/helpers/admin/base_helper.rb +58 -9
- data/app/helpers/admin/content_helper.rb +7 -0
- data/app/helpers/admin/pages_helper.rb +21 -0
- data/app/helpers/admin/settings_helper.rb +1 -1
- data/app/helpers/application_helper.rb +11 -9
- data/app/helpers/content_helper.rb +5 -14
- data/app/helpers/sidebar_helper.rb +1 -1
- data/app/models/article.rb +81 -68
- data/app/models/blog.rb +14 -44
- data/app/models/blog_sweeper.rb +30 -10
- data/app/models/category.rb +1 -1
- data/app/models/comment.rb +0 -7
- data/app/models/content.rb +40 -18
- data/app/models/feedback.rb +8 -0
- data/app/models/notification_mailer.rb +8 -1
- data/app/models/page.rb +5 -0
- data/app/models/page_cache.rb +22 -7
- data/app/models/profile.rb +10 -0
- data/app/models/right.rb +4 -0
- data/app/models/sidebar.rb +10 -3
- data/app/models/tag.rb +20 -8
- data/app/models/trackback.rb +1 -1
- data/app/models/url_policy.rb +179 -0
- data/app/models/user.rb +30 -0
- data/app/views/accounts/login.html.erb +1 -1
- data/app/views/accounts/logout.html.erb +1 -1
- data/app/views/accounts/signup.html.erb +1 -1
- data/app/views/admin/blacklist/_blacklist_patterns.html.erb +2 -2
- data/app/views/admin/blacklist/_form.html.erb +13 -14
- data/app/views/admin/blacklist/_quick_post.html.erb +4 -13
- data/app/views/admin/blacklist/edit.html.erb +8 -11
- data/app/views/admin/blacklist/index.html.erb +10 -0
- data/app/views/admin/categories/_categories.html.erb +8 -8
- data/app/views/admin/categories/_form.html.erb +8 -3
- data/app/views/admin/categories/_quick_post.html.erb +1 -1
- data/app/views/admin/categories/edit.html.erb +3 -7
- data/app/views/admin/categories/index.html.erb +15 -0
- data/app/views/admin/comments/_form.html.erb +19 -18
- data/app/views/admin/comments/edit.html.erb +3 -7
- data/app/views/admin/comments/index.html.erb +30 -0
- data/app/views/admin/comments/show.html.erb +24 -8
- data/app/views/admin/content/_articles.html.erb +31 -10
- data/app/views/admin/content/_attachment.html.erb +18 -2
- data/app/views/admin/content/_form.html.erb +76 -86
- data/app/views/admin/content/_pages.html.erb +3 -3
- data/app/views/admin/content/edit.html.erb +2 -9
- data/app/views/admin/content/index.html.erb +17 -0
- data/app/views/admin/content/new.html.erb +1 -4
- data/app/views/admin/content/show.html.erb +2 -23
- data/app/views/admin/dashboard/_comments.html.erb +17 -0
- data/app/views/admin/dashboard/_overview.html.erb +4 -0
- data/app/views/admin/dashboard/_popular.html.erb +12 -0
- data/app/views/admin/dashboard/_posts.html.erb +15 -0
- data/app/views/admin/dashboard/_sysinfo.html.erb +13 -0
- data/app/views/admin/dashboard/_welcome.html.erb +3 -0
- data/app/views/admin/dashboard/index.html.erb +13 -57
- data/app/views/admin/feedback/index.html.erb +41 -0
- data/app/views/admin/pages/_form.html.erb +31 -35
- data/app/views/admin/pages/_pages.html.erb +48 -23
- data/app/views/admin/pages/edit.html.erb +3 -8
- data/app/views/admin/pages/index.html.erb +6 -0
- data/app/views/admin/pages/new.html.erb +2 -5
- data/app/views/admin/pages/show.html.erb +2 -12
- data/app/views/admin/resources/_resources.html.erb +6 -5
- data/app/views/admin/resources/index.html.erb +12 -0
- data/app/views/admin/settings/feedback.html.erb +1 -19
- data/app/views/admin/settings/index.html.erb +3 -23
- data/app/views/admin/settings/podcast.html.erb +1 -10
- data/app/views/admin/settings/read.html.erb +1 -10
- data/app/views/admin/settings/spam.html.erb +1 -10
- data/app/views/admin/settings/write.html.erb +2 -14
- data/app/views/admin/shared/_edit.html.erb +1 -4
- data/app/views/admin/sidebar/index.html.erb +11 -8
- data/app/views/admin/tags/_form.html.erb +4 -0
- data/app/views/admin/tags/_tags.html.erb +19 -0
- data/app/views/admin/tags/destroy.html.erb +11 -0
- data/app/views/admin/tags/edit.html.erb +13 -0
- data/app/views/admin/tags/index.html.erb +12 -0
- data/app/views/admin/textfilters/edit.html.erb +3 -5
- data/app/views/admin/textfilters/index.html.erb +12 -0
- data/app/views/admin/textfilters/macro_help.html.erb +1 -1
- data/app/views/admin/textfilters/new.html.erb +2 -8
- data/app/views/admin/textfilters/show.html.erb +1 -6
- data/app/views/admin/textfilters/show_help.html.erb +1 -5
- data/app/views/admin/themes/index.html.erb +19 -15
- data/app/views/admin/trackbacks/edit.html.erb +1 -4
- data/app/views/admin/trackbacks/index.html.erb +22 -0
- data/app/views/admin/users/_form.html.erb +0 -10
- data/app/views/admin/users/edit.html.erb +3 -6
- data/app/views/admin/users/index.html.erb +29 -0
- data/app/views/admin/users/new.html.erb +1 -4
- data/app/views/articles/_atom_feed.atom.builder +1 -1
- data/app/views/articles/archives.html.erb +2 -2
- data/app/views/articles/groupings.html.erb +1 -1
- data/app/views/layouts/administration.html.erb +44 -51
- data/app/views/notification_mailer/_mail_footer.html.erb +1 -1
- data/app/views/notification_mailer/article.html.erb +1 -1
- data/app/views/notification_mailer/comment.html.erb +1 -1
- data/app/views/notification_mailer/notif_user.html.erb +12 -0
- data/app/views/xml/_googlesitemap_item_category.googlesitemap.builder +1 -1
- data/config/environment.rb +0 -1
- data/config/environments/development.rb +5 -0
- data/config/initializers/access_rules.rb +110 -0
- data/config/initializers/active_record_hacks.rb +17 -0
- data/config/initializers/benchmark_hacks.rb +9 -0
- data/config/routes.rb +36 -15
- data/db/converters/README +2 -2
- data/db/migrate/004_add_sidebars.rb +8 -9
- data/db/migrate/067_remove_blog_ids.rb +22 -0
- data/db/migrate/068_fix_grants.rb +113 -0
- data/db/migrate/069_add_modules_to_profile.rb +18 -0
- data/db/schema.mysql-v3.sql +3 -217
- data/db/schema.mysql.sql +3 -217
- data/db/schema.postgresql.sql +3 -217
- data/db/schema.rb +32 -29
- data/db/schema.sqlite.sql +3 -217
- data/db/schema.sqlserver.sql +3 -231
- data/db/schema_version +1 -1
- data/lang/de_DE.rb +6 -9
- data/lang/en_US.rb +3 -0
- data/lang/es_MX.rb +556 -0
- data/lang/fr_FR.rb +171 -45
- data/lang/it_IT.rb +566 -0
- data/lang/ja_JP.rb +553 -0
- data/lang/pl_PL.rb +553 -0
- data/lang/ro_RO.rb +6 -10
- data/lib/sidebars/plugin.rb +1 -3
- data/lib/stateful.rb +6 -2
- data/lib/tasks/release.rake +3 -8
- data/lib/typo_version.rb +1 -1
- data/public/.DS_Store +0 -0
- data/public/.htaccess +1 -1
- data/public/images/admin/arrow_comment_group.gif +0 -0
- data/public/images/admin/typologo.gif +0 -0
- data/public/javascripts/controls.js +484 -354
- data/public/javascripts/dragdrop.js +88 -58
- data/public/javascripts/effects.js +396 -364
- data/public/javascripts/fckcustom.js +27 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckcontextmenu.js +209 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckdataprocessor.js +119 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckdocumentfragment_gecko.js +46 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckdocumentfragment_ie.js +58 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckdomrange.js +808 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckdomrange_gecko.js +103 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckdomrange_ie.js +198 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckdomrangeiterator.js +306 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckeditingarea.js +344 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckelementpath.js +70 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckenterkey.js +629 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckevents.js +66 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckicon.js +103 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckiecleanup.js +68 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckimagepreloader.js +64 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckkeystrokehandler.js +141 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckmenublock.js +150 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckmenublockpanel.js +54 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckmenuitem.js +160 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckpanel.js +338 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckplugin.js +56 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckspecialcombo.js +377 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckstyle.js +1280 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbar.js +103 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarbreak_gecko.js +36 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarbreak_ie.js +38 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarbutton.js +76 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarbuttonui.js +194 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js +139 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarfontscombo.js +98 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarfontsizecombo.js +76 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarpanelbutton.js +92 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js +143 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js +200 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckw3crange.js +447 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckxml.js +108 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckxml_gecko.js +87 -0
- data/public/javascripts/fckeditor/editor/_source/classes/fckxml_ie.js +88 -0
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fck_othercommands.js +462 -0
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckblockquotecommand.js +194 -0
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckcorestylecommand.js +59 -0
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckfitwindow.js +180 -0
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckindentcommands.js +280 -0
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckjustifycommands.js +173 -0
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fcklistcommands.js +382 -0
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fcknamedcommand.js +37 -0
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckpasteplaintextcommand.js +38 -0
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckpastewordcommand.js +40 -0
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckremoveformatcommand.js +45 -0
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckshowblocks.js +76 -0
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_gecko.js +39 -0
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_ie.js +67 -0
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fckstylecommand.js +60 -0
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fcktablecommand.js +106 -0
- data/public/javascripts/fckeditor/editor/_source/commandclasses/fcktextcolorcommand.js +183 -0
- data/public/javascripts/fckeditor/editor/_source/fckconstants.js +56 -0
- data/public/javascripts/fckeditor/editor/_source/fckeditorapi.js +168 -0
- data/public/javascripts/fckeditor/editor/_source/fckjscoreextensions.js +166 -0
- data/public/javascripts/fckeditor/editor/_source/fckscriptloader.js +122 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fck.js +1065 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fck_contextmenu.js +325 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fck_gecko.js +458 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fck_ie.js +420 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckbrowserinfo.js +59 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckcodeformatter.js +100 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckcommands.js +167 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckconfig.js +239 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckdebug.js +56 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckdialog.js +38 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckdialog_gecko.js +103 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckdialog_ie.js +48 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckdocumentprocessor.js +225 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckdomtools.js +884 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fcklanguagemanager.js +162 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fcklisthandler.js +152 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fcklistslib.js +60 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckplugins.js +46 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckregexlib.js +96 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckselection.js +42 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckselection_gecko.js +211 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckselection_ie.js +201 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckstyles.js +372 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fcktablehandler.js +858 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fcktablehandler_gecko.js +56 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fcktablehandler_ie.js +64 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fcktoolbaritems.js +123 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fcktoolbarset.js +373 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fcktools.js +581 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fcktools_gecko.js +270 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fcktools_ie.js +227 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckundo.js +220 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckurlparams.js +39 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckxhtml.js +460 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckxhtml_gecko.js +105 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckxhtml_ie.js +208 -0
- data/public/javascripts/fckeditor/editor/_source/internals/fckxhtmlentities.js +354 -0
- data/public/javascripts/fckeditor/editor/css/behaviors/disablehandles.htc +15 -0
- data/public/javascripts/fckeditor/editor/css/behaviors/showtableborders.htc +36 -0
- data/public/javascripts/fckeditor/editor/css/fck_editorarea.css +91 -0
- data/public/javascripts/fckeditor/editor/css/fck_internal.css +182 -0
- data/public/javascripts/fckeditor/editor/css/fck_showtableborders_gecko.css +42 -0
- data/public/javascripts/fckeditor/editor/css/images/block_address.png +0 -0
- data/public/javascripts/fckeditor/editor/css/images/block_blockquote.png +0 -0
- data/public/javascripts/fckeditor/editor/css/images/block_div.png +0 -0
- data/public/javascripts/fckeditor/editor/css/images/block_h1.png +0 -0
- data/public/javascripts/fckeditor/editor/css/images/block_h2.png +0 -0
- data/public/javascripts/fckeditor/editor/css/images/block_h3.png +0 -0
- data/public/javascripts/fckeditor/editor/css/images/block_h4.png +0 -0
- data/public/javascripts/fckeditor/editor/css/images/block_h5.png +0 -0
- data/public/javascripts/fckeditor/editor/css/images/block_h6.png +0 -0
- data/public/javascripts/fckeditor/editor/css/images/block_p.png +0 -0
- data/public/javascripts/fckeditor/editor/css/images/block_pre.png +0 -0
- data/public/javascripts/fckeditor/editor/css/images/fck_anchor.gif +0 -0
- data/public/javascripts/fckeditor/editor/css/images/fck_flashlogo.gif +0 -0
- data/public/javascripts/fckeditor/editor/css/images/fck_hiddenfield.gif +0 -0
- data/public/javascripts/fckeditor/editor/css/images/fck_pagebreak.gif +0 -0
- data/public/javascripts/fckeditor/editor/dialog/common/fck_dialog_common.css +78 -0
- data/public/javascripts/fckeditor/editor/dialog/common/fck_dialog_common.js +165 -0
- data/public/javascripts/fckeditor/editor/dialog/common/images/locked.gif +0 -0
- data/public/javascripts/fckeditor/editor/dialog/common/images/reset.gif +0 -0
- data/public/javascripts/fckeditor/editor/dialog/common/images/unlocked.gif +0 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_about.html +155 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_about/logo_fckeditor.gif +0 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_about/logo_fredck.gif +0 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_anchor.html +207 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_button.html +109 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_checkbox.html +109 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_colorselector.html +171 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_docprops.html +600 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_docprops/fck_document_preview.html +113 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_find.html +173 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_flash.html +146 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_flash/fck_flash.js +285 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_flash/fck_flash_preview.html +46 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_form.html +106 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_hiddenfield.html +118 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_image.html +252 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_image/fck_image.js +492 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_image/fck_image_preview.html +66 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_link.html +293 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_link/fck_link.js +715 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_listprop.html +116 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_paste.html +340 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_radiobutton.html +109 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_replace.html +452 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_select.html +177 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_select/fck_select.js +194 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_smiley.html +106 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_source.html +65 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_specialchar.html +118 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages.html +64 -0
- data/{spec/fixtures/notifications.yml → public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/blank.html} +0 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controlWindow.js +87 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controls.html +153 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.cfm +146 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php +196 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.pl +180 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellChecker.js +462 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellchecker.html +71 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellerStyle.css +49 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/wordWindow.js +272 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_table.html +293 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_tablecell.html +255 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_template.html +242 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_template/images/template1.gif +0 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_template/images/template2.gif +0 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_template/images/template3.gif +0 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_textarea.html +95 -0
- data/public/javascripts/fckeditor/editor/dialog/fck_textfield.html +140 -0
- data/public/javascripts/fckeditor/editor/dtd/fck_dtd_test.html +43 -0
- data/public/javascripts/fckeditor/editor/dtd/fck_xhtml10strict.js +116 -0
- data/public/javascripts/fckeditor/editor/dtd/fck_xhtml10transitional.js +140 -0
- data/public/javascripts/fckeditor/editor/fckdebug.html +153 -0
- data/public/javascripts/fckeditor/editor/fckdialog.html +336 -0
- data/public/javascripts/fckeditor/editor/fckeditor.html +228 -0
- data/public/javascripts/fckeditor/editor/fckeditor.original.html +331 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/browser.css +89 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/browser.html +163 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmactualfolder.html +67 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmcreatefolder.html +113 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmfolders.html +196 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmresourceslist.html +167 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmresourcetype.html +65 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmupload.html +114 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/ButtonArrow.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/Folder.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/Folder32.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/FolderOpened.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/FolderOpened32.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/FolderUp.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/ai.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/avi.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/bmp.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/cs.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/default.icon.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/dll.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/doc.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/exe.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/fla.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/gif.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/htm.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/html.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/jpg.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/js.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/mdb.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/mp3.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/pdf.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/png.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/ppt.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/rdp.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/swf.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/swt.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/txt.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/vsd.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/xls.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/xml.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/zip.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/ai.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/avi.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/bmp.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/cs.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/default.icon.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/dll.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/doc.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/exe.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/fla.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/gif.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/htm.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/html.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/jpg.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/js.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/mdb.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/mp3.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/pdf.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/png.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/ppt.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/rdp.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/swf.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/swt.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/txt.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/vsd.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/xls.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/xml.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/zip.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/spacer.gif +0 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/js/common.js +55 -0
- data/public/javascripts/fckeditor/editor/filemanager/browser/default/js/fckxml.js +129 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/asp/basexml.asp +62 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/asp/class_upload.asp +353 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/asp/commands.asp +198 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/asp/config.asp +128 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/asp/connector.asp +88 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/asp/io.asp +222 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/asp/upload.asp +61 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/asp/util.asp +55 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/aspx/connector.aspx +30 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/aspx/upload.aspx +30 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/ImageObject.cfc +273 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/cf5_connector.cfm +315 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/cf5_upload.cfm +296 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/cf_basexml.cfm +68 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/cf_commands.cfm +225 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/cf_connector.cfm +89 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/cf_io.cfm +288 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/cf_upload.cfm +68 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/cf_util.cfm +132 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/config.cfm +183 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/connector.cfm +31 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/image.cfc +1325 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/cfm/upload.cfm +31 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/lasso/config.lasso +65 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/lasso/connector.lasso +257 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/lasso/upload.lasso +157 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/basexml.pl +63 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/commands.pl +168 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/connector.cgi +137 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/io.pl +131 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/upload.cgi +118 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/upload_fck.pl +667 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/util.pl +68 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/php/basexml.php +93 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/php/commands.php +245 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/php/config.php +140 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/php/connector.php +87 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/php/io.php +272 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/php/phpcompat.php +17 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/php/upload.php +59 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/php/util.php +185 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/config.py +135 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/connector.py +118 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/fckcommands.py +181 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/fckconnector.py +90 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/fckoutput.py +111 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/fckutil.py +127 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/htaccess.txt +23 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/upload.py +88 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/wsgi.py +58 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/py/zope.py +189 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/test.html +177 -0
- data/public/javascripts/fckeditor/editor/filemanager/connectors/uploadtest.html +149 -0
- data/public/javascripts/fckeditor/editor/images/anchor.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/arrow_ltr.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/arrow_rtl.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/angel_smile.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/angry_smile.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/broken_heart.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/cake.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/confused_smile.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/cry_smile.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/devil_smile.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/embaressed_smile.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/envelope.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/heart.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/kiss.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/lightbulb.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/omg_smile.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/regular_smile.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/sad_smile.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/shades_smile.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/teeth_smile.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/thumbs_down.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/thumbs_up.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/tounge_smile.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/whatchutalkingabout_smile.gif +0 -0
- data/public/javascripts/fckeditor/editor/images/smiley/msn/wink_smile.gif +0 -0
- data/{test/mocks/themes/standard_issue → public/javascripts/fckeditor/editor}/images/spacer.gif +0 -0
- data/public/javascripts/fckeditor/editor/js/fckeditorcode_gecko.js +108 -0
- data/public/javascripts/fckeditor/editor/js/fckeditorcode_ie.js +109 -0
- data/public/javascripts/fckeditor/editor/lang/_translationstatus.txt +76 -0
- data/public/javascripts/fckeditor/editor/lang/af.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/ar.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/bg.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/bn.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/bs.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/ca.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/cs.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/da.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/de.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/el.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/en-au.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/en-ca.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/en-uk.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/en.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/eo.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/es.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/et.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/eu.js +517 -0
- data/public/javascripts/fckeditor/editor/lang/fa.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/fi.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/fo.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/fr.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/gl.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/he.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/hi.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/hr.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/hu.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/it.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/ja.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/km.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/ko.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/lt.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/lv.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/mn.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/ms.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/nb.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/nl.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/no.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/pl.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/pt-br.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/pt.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/ro.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/ru.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/sk.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/sl.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/sr-latn.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/sr.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/sv.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/th.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/tr.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/uk.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/vi.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/zh-cn.js +516 -0
- data/public/javascripts/fckeditor/editor/lang/zh.js +516 -0
- data/public/javascripts/fckeditor/editor/plugins/autogrow/fckplugin.js +92 -0
- data/public/javascripts/fckeditor/editor/plugins/bbcode/_sample/sample.config.js +26 -0
- data/public/javascripts/fckeditor/editor/plugins/bbcode/_sample/sample.html +67 -0
- data/public/javascripts/fckeditor/editor/plugins/bbcode/fckplugin.js +123 -0
- data/public/javascripts/fckeditor/editor/plugins/dragresizetable/fckplugin.js +503 -0
- data/public/javascripts/fckeditor/editor/plugins/placeholder/fck_placeholder.html +100 -0
- data/public/javascripts/fckeditor/editor/plugins/placeholder/fckplugin.js +187 -0
- data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/de.js +27 -0
- data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/en.js +27 -0
- data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/fr.js +27 -0
- data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/it.js +27 -0
- data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/pl.js +27 -0
- data/public/javascripts/fckeditor/editor/plugins/placeholder/placeholder.gif +0 -0
- data/public/javascripts/fckeditor/editor/plugins/simplecommands/fckplugin.js +29 -0
- data/public/javascripts/fckeditor/editor/plugins/tablecommands/fckplugin.js +33 -0
- data/public/javascripts/fckeditor/editor/skins/_fckviewstrips.html +121 -0
- data/public/javascripts/fckeditor/editor/skins/default/fck_dialog.css +139 -0
- data/public/javascripts/fckeditor/editor/skins/default/fck_editor.css +464 -0
- data/public/javascripts/fckeditor/editor/skins/default/fck_strip.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/default/images/toolbar.arrowright.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/default/images/toolbar.buttonarrow.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/default/images/toolbar.collapse.gif +0 -0
- data/{themes/standard_issue/images/spacer.gif → public/javascripts/fckeditor/editor/skins/default/images/toolbar.end.gif} +0 -0
- data/public/javascripts/fckeditor/editor/skins/default/images/toolbar.expand.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/default/images/toolbar.separator.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/default/images/toolbar.start.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/office2003/fck_dialog.css +140 -0
- data/public/javascripts/fckeditor/editor/skins/office2003/fck_editor.css +476 -0
- data/public/javascripts/fckeditor/editor/skins/office2003/fck_strip.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/office2003/images/toolbar.arrowright.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/office2003/images/toolbar.bg.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/office2003/images/toolbar.buttonarrow.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/office2003/images/toolbar.collapse.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/office2003/images/toolbar.end.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/office2003/images/toolbar.expand.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/office2003/images/toolbar.separator.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/office2003/images/toolbar.start.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/silver/fck_dialog.css +143 -0
- data/public/javascripts/fckeditor/editor/skins/silver/fck_editor.css +473 -0
- data/public/javascripts/fckeditor/editor/skins/silver/fck_strip.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.arrowright.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.buttonarrow.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.buttonbg.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.collapse.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.end.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.expand.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.separator.gif +0 -0
- data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.start.gif +0 -0
- data/public/javascripts/fckeditor/fckconfig.js +306 -0
- data/public/javascripts/fckeditor/fckeditor.afp +161 -0
- data/public/javascripts/fckeditor/fckeditor.asp +235 -0
- data/public/javascripts/fckeditor/fckeditor.cfc +273 -0
- data/public/javascripts/fckeditor/fckeditor.cfm +210 -0
- data/public/javascripts/fckeditor/fckeditor.js +212 -0
- data/public/javascripts/fckeditor/fckeditor.lasso +112 -0
- data/public/javascripts/fckeditor/fckeditor.py +162 -0
- data/public/javascripts/fckeditor/fckpackager.xml +262 -0
- data/public/javascripts/fckeditor/fckstyles.xml +114 -0
- data/public/javascripts/fckeditor/fcktemplates.xml +103 -0
- data/public/javascripts/fckeditor/license.txt +1247 -0
- data/public/javascripts/lang/default.js +21 -0
- data/public/javascripts/lang/fr_FR.js +21 -0
- data/public/javascripts/lightbox.js +169 -315
- data/public/javascripts/prototype.js +2817 -1107
- data/public/javascripts/typo.js +51 -11
- data/public/stylesheets/administration.css +170 -94
- data/public/stylesheets/lightbox.css +59 -19
- data/public/stylesheets/typo_code.css +62 -0
- data/public/stylesheets/user-styles.css +16 -0
- data/spec/controllers/accounts_controller_spec.rb +2 -7
- data/spec/controllers/admin/article_preview_spec.rb +20 -0
- data/spec/controllers/admin/blacklist_controller_spec.rb +59 -0
- data/spec/controllers/admin/categories_controller_spec.rb +97 -0
- data/spec/controllers/admin/comments_controller_spec.rb +74 -0
- data/spec/controllers/admin/content_controller_spec.rb +212 -0
- data/spec/controllers/admin/feedback_controller_spec.rb +45 -0
- data/spec/controllers/admin/pages_controller_spec.rb +83 -0
- data/spec/controllers/admin/profiles_controller_spec.rb +13 -0
- data/spec/controllers/admin/resources_controller_spec.rb +46 -0
- data/spec/controllers/admin/settings_controller_spec.rb +22 -0
- data/spec/controllers/admin/textfilters_controller_spec.rb +24 -0
- data/spec/controllers/admin/themes_controller_spec.rb +30 -0
- data/spec/controllers/admin/trackbacks_controller_spec.rb +57 -0
- data/spec/controllers/admin/users_controller_spec.rb +65 -0
- data/spec/controllers/articles_controller_spec.rb +4 -8
- data/spec/controllers/authors_controller_spec.rb +2 -2
- data/spec/controllers/backend_controller_spec.rb +318 -0
- data/spec/controllers/categories_controller_spec.rb +2 -2
- data/spec/controllers/comments_controller_spec.rb +8 -20
- data/spec/controllers/redirect_controller_spec.rb +35 -0
- data/spec/controllers/tags_controller_spec.rb +2 -2
- data/spec/controllers/textfilter_controller_spec.rb +264 -0
- data/spec/controllers/theme_controller_spec.rb +43 -0
- data/spec/controllers/xml_controller_spec.rb +232 -0
- data/spec/models/article_closing_spec.rb +38 -0
- data/spec/models/article_spec.rb +285 -9
- data/spec/models/blacklist_pattern_spec.rb +12 -0
- data/spec/models/blog_spec.rb +10 -4
- data/spec/models/cache_support_spec.rb +0 -4
- data/spec/models/category_spec.rb +1 -5
- data/spec/models/comment_spec.rb +186 -0
- data/spec/models/configuration_spec.rb +7 -9
- data/spec/models/content_state/feedback_states_spec.rb +64 -0
- data/spec/models/notification_spec.rb +8 -0
- data/spec/models/page_spec.rb +2 -10
- data/spec/models/ping_pinger_spec.rb +33 -0
- data/spec/models/ping_spec.rb +2 -9
- data/spec/models/resource_spec.rb +0 -2
- data/spec/models/route_cache_spec.rb +11 -0
- data/spec/models/sidebar_spec.rb +7 -0
- data/spec/models/tag_spec.rb +19 -8
- data/spec/models/theme_spec.rb +6 -7
- data/spec/models/trackback_spec.rb +1 -1
- data/spec/models/trigger_spec.rb +0 -2
- data/spec/models/typo_deprecated_spec.rb +18 -0
- data/spec/models/url_policy_spec.rb +65 -0
- data/spec/models/user_spec.rb +9 -4
- data/spec/spec.opts +2 -5
- data/spec/spec_helper.rb +5 -2
- data/spec/views/comments/html_sanitization_spec.rb +0 -14
- data/test/fixtures/blacklist_patterns.yml +1 -3
- data/test/fixtures/blogs.yml +2 -44
- data/test/fixtures/categories.yml +0 -6
- data/test/fixtures/categorizations.yml +17 -17
- data/test/fixtures/contents.yml +15 -53
- data/test/fixtures/feedback.yml +11 -31
- data/test/fixtures/profiles.yml +9 -0
- data/test/fixtures/redirects.yml +0 -3
- data/test/fixtures/resources.yml +3 -6
- data/test/fixtures/sidebars.yml +0 -2
- data/test/fixtures/tags.yml +3 -6
- data/test/fixtures/text_filters.yml +1 -6
- data/test/fixtures/users.yml +0 -10
- data/test/mocks/themes/typographic/.DS_Store +0 -0
- data/test/mocks/themes/typographic/about.markdown +7 -0
- data/test/mocks/themes/typographic/images/Thumbs.db +0 -0
- data/test/mocks/themes/typographic/images/accept.png +0 -0
- data/test/mocks/themes/typographic/images/accept50.png +0 -0
- data/test/mocks/themes/typographic/images/bg_body.jpg +0 -0
- data/test/mocks/themes/typographic/images/bg_white.png +0 -0
- data/test/mocks/themes/typographic/images/bg_wrapper.jpg +0 -0
- data/test/mocks/themes/typographic/images/bullet_bottom.png +0 -0
- data/test/mocks/themes/typographic/images/bullet_right.png +0 -0
- data/test/mocks/themes/typographic/images/email_open.png +0 -0
- data/test/mocks/themes/typographic/images/email_open50.png +0 -0
- data/test/mocks/themes/typographic/images/meta.png +0 -0
- data/test/mocks/themes/typographic/images/page_edit.png +0 -0
- data/test/mocks/themes/typographic/images/page_edit50.png +0 -0
- data/test/mocks/themes/typographic/images/tag.png +0 -0
- data/test/mocks/themes/typographic/images/user.png +0 -0
- data/test/mocks/themes/typographic/images/user50.png +0 -0
- data/test/mocks/themes/typographic/images/world_link.png +0 -0
- data/test/mocks/themes/typographic/images/world_link50.png +0 -0
- data/test/mocks/themes/typographic/layouts/default.html.erb +42 -0
- data/test/mocks/themes/typographic/preview.png +0 -0
- data/test/mocks/themes/typographic/stylesheets/colors.css +51 -0
- data/test/mocks/themes/typographic/stylesheets/layout.css +346 -0
- data/test/mocks/themes/typographic/stylesheets/reset.css +5 -0
- data/test/mocks/themes/typographic/stylesheets/style.css +36 -0
- data/test/mocks/themes/typographic/views/articles/_article.html.erb +41 -0
- data/test/mocks/themes/typographic/views/articles/_comment.html.erb +14 -0
- data/test/mocks/themes/typographic/views/articles/_comment_form.html.erb +48 -0
- data/test/mocks/themes/typographic/views/articles/_comment_list.html.erb +7 -0
- data/test/mocks/themes/typographic/views/articles/_trackback.html.erb +9 -0
- data/test/mocks/themes/typographic/views/articles/comment_preview.html.erb +10 -0
- data/test/mocks/themes/typographic/views/articles/index.html.erb +5 -0
- data/test/mocks/themes/typographic/views/articles/read.html.erb +42 -0
- data/test/mocks/themes/typographic/views/shared/_search.html.erb +17 -0
- data/test/mocks/themes/typographic/views/theme/static_view_test.html.erb +1 -0
- data/test/test_helper.rb +4 -0
- data/themes/scribbish/layouts/default.html.erb +4 -2
- data/themes/scribbish/stylesheets/content.css +1 -0
- data/themes/scribbish/views/articles/_article.html.erb +6 -6
- data/themes/scribbish/views/articles/_comment.html.erb +1 -1
- data/themes/scribbish/views/articles/_comment_form.html.erb +10 -10
- data/themes/scribbish/views/articles/_comment_list.html.erb +1 -1
- data/themes/scribbish/views/articles/_trackback.html.erb +1 -1
- data/themes/scribbish/views/articles/comment_preview.html.erb +1 -1
- data/themes/scribbish/views/articles/index.html.erb +1 -1
- data/themes/scribbish/views/articles/read.html.erb +4 -4
- data/themes/scribbish/views/shared/_search.html.erb +1 -1
- data/themes/typographic/.DS_Store +0 -0
- data/themes/typographic/about.markdown +7 -0
- data/themes/typographic/images/accept.png +0 -0
- data/themes/typographic/images/accept50.png +0 -0
- data/themes/typographic/images/bg_body.jpg +0 -0
- data/themes/typographic/images/bg_white.png +0 -0
- data/themes/typographic/images/bg_wrapper.jpg +0 -0
- data/themes/typographic/images/bullet_bottom.png +0 -0
- data/themes/typographic/images/bullet_right.png +0 -0
- data/themes/typographic/images/email_open.png +0 -0
- data/themes/typographic/images/email_open50.png +0 -0
- data/themes/typographic/images/meta.png +0 -0
- data/themes/typographic/images/page_edit.png +0 -0
- data/themes/typographic/images/page_edit50.png +0 -0
- data/themes/typographic/images/tag.png +0 -0
- data/themes/typographic/images/user.png +0 -0
- data/themes/typographic/images/user50.png +0 -0
- data/themes/typographic/images/world_link.png +0 -0
- data/themes/typographic/images/world_link50.png +0 -0
- data/themes/typographic/layouts/default.html.erb +42 -0
- data/themes/typographic/preview.png +0 -0
- data/themes/typographic/stylesheets/colors.css +51 -0
- data/themes/typographic/stylesheets/layout.css +346 -0
- data/themes/typographic/stylesheets/reset.css +5 -0
- data/themes/typographic/stylesheets/style.css +36 -0
- data/themes/typographic/views/articles/_article.html.erb +41 -0
- data/themes/typographic/views/articles/_comment.html.erb +14 -0
- data/themes/typographic/views/articles/_comment_form.html.erb +48 -0
- data/themes/typographic/views/articles/_comment_list.html.erb +7 -0
- data/themes/typographic/views/articles/_trackback.html.erb +9 -0
- data/themes/typographic/views/articles/comment_preview.html.erb +10 -0
- data/themes/typographic/views/articles/index.html.erb +5 -0
- data/themes/typographic/views/articles/read.html.erb +42 -0
- data/themes/typographic/views/shared/_search.html.erb +17 -0
- data/themes/typographic/views/theme/static_view_test.html.erb +1 -0
- data/themes/typographic2/.DS_Store +0 -0
- data/themes/typographic2/about.markdown +7 -0
- data/themes/typographic2/images/Thumbs.db +0 -0
- data/themes/typographic2/images/accept.png +0 -0
- data/themes/typographic2/images/accept50.png +0 -0
- data/themes/typographic2/images/bg_body.jpg +0 -0
- data/themes/typographic2/images/bg_white.png +0 -0
- data/themes/typographic2/images/bg_wrapper.jpg +0 -0
- data/themes/typographic2/images/bullet_bottom.png +0 -0
- data/themes/typographic2/images/bullet_right.png +0 -0
- data/themes/typographic2/images/email_open.png +0 -0
- data/themes/typographic2/images/email_open50.png +0 -0
- data/themes/typographic2/images/meta.png +0 -0
- data/themes/typographic2/images/page_edit.png +0 -0
- data/themes/typographic2/images/page_edit50.png +0 -0
- data/themes/typographic2/images/tag.png +0 -0
- data/themes/typographic2/images/user.png +0 -0
- data/themes/typographic2/images/user50.png +0 -0
- data/themes/typographic2/images/world_link.png +0 -0
- data/themes/typographic2/images/world_link50.png +0 -0
- data/themes/typographic2/layouts/default.html.erb +42 -0
- data/themes/typographic2/preview.png +0 -0
- data/themes/typographic2/stylesheets/colors.css +51 -0
- data/themes/typographic2/stylesheets/layout.css +346 -0
- data/themes/typographic2/stylesheets/reset.css +5 -0
- data/themes/typographic2/stylesheets/style.css +36 -0
- data/themes/typographic2/views/articles/_article.html.erb +41 -0
- data/themes/typographic2/views/articles/_comment.html.erb +14 -0
- data/themes/typographic2/views/articles/_comment_form.html.erb +48 -0
- data/themes/typographic2/views/articles/_comment_list.html.erb +7 -0
- data/themes/typographic2/views/articles/_trackback.html.erb +9 -0
- data/themes/typographic2/views/articles/comment_preview.html.erb +10 -0
- data/themes/typographic2/views/articles/index.html.erb +5 -0
- data/themes/typographic2/views/articles/read.html.erb +42 -0
- data/themes/typographic2/views/shared/_search.html.erb +17 -0
- data/themes/{standard_issue → typographic2}/views/theme/static_view_test.html.erb +0 -0
- data/vendor/plugins/archives_sidebar/lib/archives_sidebar.rb +1 -1
- data/vendor/plugins/auto_complete/README +23 -0
- data/vendor/plugins/auto_complete/Rakefile +22 -0
- data/vendor/plugins/auto_complete/init.rb +2 -0
- data/vendor/plugins/auto_complete/lib/auto_complete.rb +47 -0
- data/vendor/plugins/auto_complete/lib/auto_complete_macros_helper.rb +143 -0
- data/vendor/plugins/auto_complete/test/auto_complete_test.rb +67 -0
- data/vendor/plugins/datestamped_resources/lib/datestamped_resources.rb +2 -1
- data/vendor/plugins/fckeditor/CHANGELOG +3 -0
- data/vendor/plugins/fckeditor/README +125 -0
- data/vendor/plugins/fckeditor/Rakefile +72 -0
- data/vendor/plugins/fckeditor/app/controllers/fckeditor_controller.rb +158 -0
- data/vendor/plugins/fckeditor/app/helpers/fckeditor_helper.rb +4 -0
- data/vendor/plugins/fckeditor/app/views/fckeditor/spell_check.rhtml +52 -0
- data/vendor/plugins/fckeditor/init.rb +35 -0
- data/vendor/plugins/fckeditor/install.rb +12 -0
- data/vendor/plugins/fckeditor/lib/fckeditor.rb +101 -0
- data/vendor/plugins/fckeditor/lib/fckeditor_file_utils.rb +81 -0
- data/vendor/plugins/fckeditor/lib/fckeditor_spell_check.rb +43 -0
- data/vendor/plugins/fckeditor/lib/fckeditor_version.rb +9 -0
- data/vendor/plugins/fckeditor/tasks/fckeditor_tasks.rake +97 -0
- data/vendor/plugins/rspec/.autotest +3 -0
- data/vendor/plugins/rspec/CHANGES +33 -1
- data/vendor/plugins/rspec/README +2 -3
- data/vendor/plugins/rspec/Rakefile +7 -5
- data/vendor/plugins/rspec/bin/spec +1 -0
- data/vendor/plugins/rspec/examples/pure/helper_method_example.rb +9 -6
- data/vendor/plugins/rspec/failing_examples/README.txt +7 -0
- data/vendor/plugins/rspec/failing_examples/failing_autogenerated_docstrings_example.rb +19 -0
- data/vendor/plugins/rspec/lib/autotest/rspec.rb +36 -56
- data/vendor/plugins/rspec/lib/spec.rb +0 -7
- data/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb +10 -4
- data/vendor/plugins/rspec/lib/spec/example/example_methods.rb +13 -8
- data/vendor/plugins/rspec/lib/spec/interop/test.rb +3 -1
- data/vendor/plugins/rspec/lib/spec/interop/test/unit/ui/console/testrunner.rb +1 -0
- data/vendor/plugins/rspec/lib/spec/matchers.rb +1 -7
- data/vendor/plugins/rspec/lib/spec/matchers/be.rb +3 -2
- data/vendor/plugins/rspec/lib/spec/matchers/have.rb +3 -0
- data/vendor/plugins/rspec/lib/spec/matchers/raise_error.rb +19 -15
- data/vendor/plugins/rspec/lib/spec/mocks/message_expectation.rb +10 -3
- data/vendor/plugins/rspec/lib/spec/runner.rb +14 -0
- data/vendor/plugins/rspec/lib/spec/runner/formatter/story/html_formatter.rb +6 -2
- data/vendor/plugins/rspec/lib/spec/runner/formatter/story/plain_text_formatter.rb +15 -7
- data/vendor/plugins/rspec/lib/spec/runner/option_parser.rb +5 -33
- data/vendor/plugins/rspec/lib/spec/runner/options.rb +51 -18
- data/vendor/plugins/rspec/lib/spec/runner/spec_parser.rb +49 -31
- data/vendor/plugins/rspec/lib/spec/story/extensions.rb +2 -0
- data/vendor/plugins/rspec/lib/spec/story/extensions/regexp.rb +9 -0
- data/vendor/plugins/rspec/lib/spec/story/extensions/string.rb +9 -0
- data/vendor/plugins/rspec/lib/spec/story/runner.rb +0 -2
- data/vendor/plugins/rspec/lib/spec/story/runner/story_parser.rb +8 -8
- data/vendor/plugins/rspec/lib/spec/story/runner/story_runner.rb +2 -1
- data/vendor/plugins/rspec/lib/spec/story/step.rb +18 -8
- data/vendor/plugins/rspec/lib/spec/story/world.rb +1 -0
- data/vendor/plugins/rspec/lib/spec/version.rb +22 -22
- data/vendor/plugins/rspec/pre_commit/lib/pre_commit.rb +4 -0
- data/vendor/plugins/rspec/pre_commit/lib/pre_commit/core.rb +50 -0
- data/vendor/plugins/rspec/pre_commit/lib/pre_commit/pre_commit.rb +54 -0
- data/vendor/plugins/rspec/pre_commit/lib/pre_commit/rspec.rb +111 -0
- data/vendor/plugins/rspec/pre_commit/lib/pre_commit/rspec_on_rails.rb +313 -0
- data/vendor/plugins/rspec/pre_commit/spec/pre_commit/pre_commit_spec.rb +15 -0
- data/vendor/plugins/rspec/pre_commit/spec/pre_commit/rspec_on_rails_spec.rb +36 -0
- data/vendor/plugins/rspec/pre_commit/spec/spec_helper.rb +3 -0
- data/vendor/plugins/rspec/pre_commit/spec/spec_suite.rb +11 -0
- data/vendor/plugins/rspec/report.html +4358 -0
- data/vendor/plugins/rspec/spec/README.jruby +1 -0
- data/vendor/plugins/rspec/spec/autotest/rspec_spec.rb +15 -84
- data/vendor/plugins/rspec/spec/autotest_helper.rb +2 -1
- data/vendor/plugins/rspec/spec/autotest_matchers.rb +47 -0
- data/vendor/plugins/rspec/spec/rspec_suite.rb +1 -1
- data/vendor/plugins/rspec/{spec.opts → spec/spec.opts} +0 -0
- data/vendor/plugins/rspec/spec/spec/example/example_group_methods_spec.rb +11 -2
- data/vendor/plugins/rspec/spec/spec/example/example_methods_spec.rb +70 -41
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/spec_that_fails.rb +10 -0
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/spec_that_passes.rb +10 -0
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/spec_with_errors.rb +10 -0
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/test_case_that_fails.rb +10 -0
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/test_case_that_passes.rb +10 -0
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/test_case_with_errors.rb +10 -0
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb +38 -0
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/spec_spec.rb +45 -0
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/test_unit_spec_helper.rb +1 -1
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/testcase_spec.rb +40 -5
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/testsuite_adapter_spec.rb +2 -2
- data/vendor/plugins/rspec/spec/spec/matchers/have_spec.rb +19 -0
- data/vendor/plugins/rspec/spec/spec/matchers/match_spec.rb +3 -3
- data/vendor/plugins/rspec/spec/spec/matchers/raise_error_spec.rb +7 -1
- data/vendor/plugins/rspec/spec/spec/mocks/bug_report_10263.rb +1 -1
- data/vendor/plugins/rspec/spec/spec/runner/command_line_spec.rb +3 -2
- data/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html +381 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/story/html_formatter_spec.rb +5 -0
- data/vendor/plugins/rspec/spec/spec/runner/formatter/story/plain_text_formatter_spec.rb +97 -51
- data/vendor/plugins/rspec/spec/spec/runner/option_parser_spec.rb +50 -49
- data/vendor/plugins/rspec/spec/spec/runner/options_spec.rb +72 -2
- data/vendor/plugins/rspec/spec/spec/runner/resources/a_bar.rb +0 -0
- data/vendor/plugins/rspec/spec/spec/runner/resources/a_foo.rb +0 -0
- data/vendor/plugins/rspec/spec/spec/runner/resources/a_spec.rb +1 -0
- data/vendor/plugins/rspec/spec/spec/runner/spec_parser/spec_parser_fixture.rb +70 -0
- data/vendor/plugins/rspec/spec/spec/runner/spec_parser_spec.rb +31 -76
- data/vendor/plugins/rspec/spec/spec/spec_classes.rb +7 -0
- data/vendor/plugins/rspec/spec/spec/story/runner/story_runner_spec.rb +37 -0
- data/vendor/plugins/rspec/spec/spec/story/step_spec.rb +53 -0
- data/vendor/plugins/rspec/spec/spec/story/world_spec.rb +7 -0
- data/vendor/plugins/rspec/stories/example_groups/autogenerated_docstrings +27 -8
- data/vendor/plugins/rspec/stories/example_groups/output +5 -0
- data/vendor/plugins/rspec/stories/interop/test_case_with_should_methods +1 -1
- data/vendor/plugins/rspec/stories/resources/stories/failing_story.rb +15 -0
- data/vendor/plugins/rspec_on_rails/generators/rspec/templates/spec.opts +0 -1
- data/vendor/plugins/rspec_on_rails/generators/rspec_controller/rspec_controller_generator.rb +1 -2
- data/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/rspec_scaffold_generator.rb +1 -3
- data/vendor/plugins/rspec_on_rails/lib/autotest/discover.rb +1 -0
- data/vendor/plugins/rspec_on_rails/lib/autotest/rails_rspec.rb +47 -47
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/controller_example_group.rb +14 -4
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/functional_example_group.rb +4 -4
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/helper_example_group.rb +0 -1
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/rails_example_group.rb +8 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/example/view_example_group.rb +4 -5
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/have_text.rb +2 -2
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/render_template.rb +4 -0
- data/vendor/plugins/rspec_on_rails/lib/spec/rails/version.rb +23 -23
- data/vendor/plugins/rspec_on_rails/spec/rails/autotest/mappings_spec.rb +14 -17
- data/vendor/plugins/rspec_on_rails/spec/rails/example/controller_spec_spec.rb +13 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/example/view_spec_spec.rb +15 -1
- data/vendor/plugins/rspec_on_rails/spec/rails/extensions/action_view_base_spec.rb +37 -26
- data/vendor/plugins/rspec_on_rails/spec/rails/matchers/have_text_spec.rb +62 -0
- data/vendor/plugins/rspec_on_rails/spec/rails/matchers/render_spec.rb +73 -36
- data/vendor/plugins/rspec_on_rails/spec_resources/controllers/controller_spec_controller.rb +9 -1
- data/vendor/plugins/rspec_on_rails/spec_resources/controllers/render_spec_controller.rb +4 -0
- data/vendor/plugins/rspec_on_rails/stories/all.rb +4 -0
- data/vendor/plugins/rspec_on_rails/tasks/rspec.rake +10 -8
- data/vendor/plugins/static_sidebar/lib/static_sidebar.rb +4 -8
- data/vendor/plugins/typo_converter/README +71 -0
- data/vendor/plugins/typo_converter/Rakefile +22 -0
- data/vendor/plugins/typo_converter/init.rb +8 -0
- data/vendor/plugins/typo_converter/lib/converters/base.rb +249 -0
- data/vendor/plugins/typo_converter/lib/converters/dotclear.rb +98 -0
- data/vendor/plugins/typo_converter/lib/converters/dotclear/category.rb +7 -0
- data/vendor/plugins/typo_converter/lib/converters/dotclear/comment.rb +8 -0
- data/vendor/plugins/typo_converter/lib/converters/dotclear/post.rb +9 -0
- data/vendor/plugins/typo_converter/lib/converters/dotclear/user.rb +8 -0
- data/vendor/plugins/typo_converter/lib/converters/dotclear_2.rb +122 -0
- data/vendor/plugins/typo_converter/lib/converters/dotclear_2/category.rb +11 -0
- data/vendor/plugins/typo_converter/lib/converters/dotclear_2/comment.rb +13 -0
- data/vendor/plugins/typo_converter/lib/converters/dotclear_2/post.rb +15 -0
- data/vendor/plugins/typo_converter/lib/converters/dotclear_2/tag.rb +13 -0
- data/vendor/plugins/typo_converter/lib/converters/dotclear_2/user.rb +13 -0
- data/vendor/plugins/typo_converter/lib/converters/wp25.rb +128 -0
- data/vendor/plugins/typo_converter/lib/converters/wp25/comment.rb +12 -0
- data/vendor/plugins/typo_converter/lib/converters/wp25/post.rb +37 -0
- data/vendor/plugins/typo_converter/lib/converters/wp25/term.rb +11 -0
- data/vendor/plugins/typo_converter/lib/converters/wp25/term_relationship.rb +13 -0
- data/vendor/plugins/typo_converter/lib/converters/wp25/term_taxonomy.rb +19 -0
- data/vendor/plugins/typo_converter/lib/converters/wp25/user.rb +12 -0
- data/vendor/plugins/typo_converter/tasks/typo_converters_tasks.rake +4 -0
- data/vendor/plugins/typo_login_system/init.rb +2 -0
- data/vendor/plugins/typo_login_system/lib/access_control.rb +159 -0
- data/vendor/plugins/typo_login_system/lib/login_system.rb +90 -0
- data/vendor/plugins/xml_sidebar/lib/xml_sidebar.rb +1 -1
- metadata +823 -527
- data/CHANGES-5.0 +0 -82
- data/TODO.MULTIUSERS +0 -45
- data/app/views/admin/advanced/index.html.erb +0 -20
- data/app/views/admin/blacklist/list.html.erb +0 -13
- data/app/views/admin/cache/list.html.erb +0 -8
- data/app/views/admin/categories/list.html.erb +0 -18
- data/app/views/admin/categories/show.html.erb +0 -37
- data/app/views/admin/comments/comments.html.erb +0 -4
- data/app/views/admin/comments/list.html.erb +0 -37
- data/app/views/admin/comments/new.html.erb +0 -19
- data/app/views/admin/content/_show_categories.html.erb +0 -9
- data/app/views/admin/content/list.html.erb +0 -21
- data/app/views/admin/content/preview.html.erb +0 -10
- data/app/views/admin/feedback/list.html.erb +0 -48
- data/app/views/admin/pages/list.html.erb +0 -12
- data/app/views/admin/pages/preview.html.erb +0 -1
- data/app/views/admin/resources/list.html.erb +0 -17
- data/app/views/admin/textfilters/list.html.erb +0 -16
- data/app/views/admin/trackbacks/list.html.erb +0 -31
- data/app/views/admin/trackbacks/new.html.erb +0 -15
- data/app/views/admin/users/list.html.erb +0 -32
- data/app/views/admin/users/show.html.erb +0 -23
- data/app/views/layouts/minimal.html.erb +0 -145
- data/db/converters/wordpress.rb +0 -187
- data/db/converters/wordpress2.rb +0 -291
- data/lib/jabber_notify.rb +0 -37
- data/lib/login_system.rb +0 -85
- data/lib/tasks/rcov.rake +0 -38
- data/public/images/admin/bgdivider.gif +0 -0
- data/public/images/admin/bgoff2.png +0 -0
- data/public/images/admin/bgon.png +0 -0
- data/public/images/admin/foot.jpg +0 -0
- data/public/images/admin/table-header-last.png +0 -0
- data/public/images/admin/table-header.png +0 -0
- data/public/images/admin/top.gif +0 -0
- data/public/images/admin/typo.gif +0 -0
- data/public/images/admin/typologo.png +0 -0
- data/public/images/bracket.gif +0 -0
- data/public/images/header.jpg +0 -0
- data/public/images/loading.gif +0 -0
- data/public/javascripts/tiny_mce/langs/en.js +0 -154
- data/public/javascripts/tiny_mce/license.txt +0 -504
- data/public/javascripts/tiny_mce/plugins/advimage/css/advimage.css +0 -13
- data/public/javascripts/tiny_mce/plugins/advimage/editor_plugin.js +0 -1
- data/public/javascripts/tiny_mce/plugins/advimage/editor_plugin_src.js +0 -49
- data/public/javascripts/tiny_mce/plugins/advimage/image.htm +0 -237
- data/public/javascripts/tiny_mce/plugins/advimage/img/sample.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/advimage/js/image.js +0 -403
- data/public/javascripts/tiny_mce/plugins/advimage/langs/en_dlg.js +0 -43
- data/public/javascripts/tiny_mce/plugins/advlink/css/advlink.css +0 -8
- data/public/javascripts/tiny_mce/plugins/advlink/editor_plugin.js +0 -1
- data/public/javascripts/tiny_mce/plugins/advlink/editor_plugin_src.js +0 -58
- data/public/javascripts/tiny_mce/plugins/advlink/js/advlink.js +0 -551
- data/public/javascripts/tiny_mce/plugins/advlink/langs/en_dlg.js +0 -52
- data/public/javascripts/tiny_mce/plugins/advlink/link.htm +0 -339
- data/public/javascripts/tiny_mce/plugins/autosave/editor_plugin.js +0 -1
- data/public/javascripts/tiny_mce/plugins/autosave/editor_plugin_src.js +0 -51
- data/public/javascripts/tiny_mce/plugins/contextmenu/editor_plugin.js +0 -1
- data/public/javascripts/tiny_mce/plugins/contextmenu/editor_plugin_src.js +0 -84
- data/public/javascripts/tiny_mce/plugins/emotions/editor_plugin.js +0 -1
- data/public/javascripts/tiny_mce/plugins/emotions/editor_plugin_src.js +0 -40
- data/public/javascripts/tiny_mce/plugins/emotions/emotions.htm +0 -41
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-cool.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-cry.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-frown.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-smile.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-wink.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/img/smiley-yell.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/emotions/js/emotions.js +0 -22
- data/public/javascripts/tiny_mce/plugins/emotions/langs/en_dlg.js +0 -20
- data/public/javascripts/tiny_mce/plugins/media/css/content.css +0 -6
- data/public/javascripts/tiny_mce/plugins/media/css/media.css +0 -68
- data/public/javascripts/tiny_mce/plugins/media/editor_plugin.js +0 -1
- data/public/javascripts/tiny_mce/plugins/media/editor_plugin_src.js +0 -323
- data/public/javascripts/tiny_mce/plugins/media/img/flash.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/media/img/flv_player.swf +0 -0
- data/public/javascripts/tiny_mce/plugins/media/img/quicktime.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/media/img/realmedia.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/media/img/shockwave.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/media/img/trans.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/media/img/windowsmedia.gif +0 -0
- data/public/javascripts/tiny_mce/plugins/media/js/embed.js +0 -73
- data/public/javascripts/tiny_mce/plugins/media/js/media.js +0 -616
- data/public/javascripts/tiny_mce/plugins/media/langs/en_dlg.js +0 -103
- data/public/javascripts/tiny_mce/plugins/media/media.htm +0 -823
- data/public/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin.js +0 -1
- data/public/javascripts/tiny_mce/plugins/nonbreaking/editor_plugin_src.js +0 -50
- data/public/javascripts/tiny_mce/plugins/paste/blank.htm +0 -22
- data/public/javascripts/tiny_mce/plugins/paste/css/blank.css +0 -14
- data/public/javascripts/tiny_mce/plugins/paste/css/pasteword.css +0 -3
- data/public/javascripts/tiny_mce/plugins/paste/editor_plugin.js +0 -1
- data/public/javascripts/tiny_mce/plugins/paste/editor_plugin_src.js +0 -382
- data/public/javascripts/tiny_mce/plugins/paste/js/pastetext.js +0 -42
- data/public/javascripts/tiny_mce/plugins/paste/js/pasteword.js +0 -56
- data/public/javascripts/tiny_mce/plugins/paste/langs/en_dlg.js +0 -5
- data/public/javascripts/tiny_mce/plugins/paste/pastetext.htm +0 -34
- data/public/javascripts/tiny_mce/plugins/paste/pasteword.htm +0 -29
- data/public/javascripts/tiny_mce/plugins/safari/blank.htm +0 -1
- data/public/javascripts/tiny_mce/plugins/safari/editor_plugin.js +0 -1
- data/public/javascripts/tiny_mce/plugins/safari/editor_plugin_src.js +0 -401
- data/public/javascripts/tiny_mce/plugins/save/editor_plugin.js +0 -1
- data/public/javascripts/tiny_mce/plugins/save/editor_plugin_src.js +0 -103
- data/public/javascripts/tiny_mce/themes/advanced/about.htm +0 -56
- data/public/javascripts/tiny_mce/themes/advanced/anchor.htm +0 -32
- data/public/javascripts/tiny_mce/themes/advanced/charmap.htm +0 -53
- data/public/javascripts/tiny_mce/themes/advanced/color_picker.htm +0 -74
- data/public/javascripts/tiny_mce/themes/advanced/editor_template.js +0 -1
- data/public/javascripts/tiny_mce/themes/advanced/editor_template_src.js +0 -990
- data/public/javascripts/tiny_mce/themes/advanced/image.htm +0 -86
- data/public/javascripts/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/img/icons.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/js/about.js +0 -76
- data/public/javascripts/tiny_mce/themes/advanced/js/anchor.js +0 -30
- data/public/javascripts/tiny_mce/themes/advanced/js/charmap.js +0 -327
- data/public/javascripts/tiny_mce/themes/advanced/js/color_picker.js +0 -245
- data/public/javascripts/tiny_mce/themes/advanced/js/image.js +0 -232
- data/public/javascripts/tiny_mce/themes/advanced/js/link.js +0 -110
- data/public/javascripts/tiny_mce/themes/advanced/js/source_editor.js +0 -62
- data/public/javascripts/tiny_mce/themes/advanced/langs/en.js +0 -62
- data/public/javascripts/tiny_mce/themes/advanced/langs/en_dlg.js +0 -51
- data/public/javascripts/tiny_mce/themes/advanced/link.htm +0 -64
- data/public/javascripts/tiny_mce/themes/advanced/skins/default/content.css +0 -18
- data/public/javascripts/tiny_mce/themes/advanced/skins/default/dialog.css +0 -111
- data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/items.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/default/ui.css +0 -193
- data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/content.css +0 -18
- data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/dialog.css +0 -111
- data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/public/javascripts/tiny_mce/themes/advanced/skins/o2k7/ui.css +0 -193
- data/public/javascripts/tiny_mce/themes/advanced/source_editor.htm +0 -32
- data/public/javascripts/tiny_mce/themes/simple/editor_template.js +0 -1
- data/public/javascripts/tiny_mce/themes/simple/editor_template_src.js +0 -85
- data/public/javascripts/tiny_mce/themes/simple/img/icons.gif +0 -0
- data/public/javascripts/tiny_mce/themes/simple/langs/en.js +0 -11
- data/public/javascripts/tiny_mce/themes/simple/skins/default/content.css +0 -25
- data/public/javascripts/tiny_mce/themes/simple/skins/default/ui.css +0 -32
- data/public/javascripts/tiny_mce/themes/simple/skins/o2k7/content.css +0 -17
- data/public/javascripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
- data/public/javascripts/tiny_mce/themes/simple/skins/o2k7/ui.css +0 -35
- data/public/javascripts/tiny_mce/tiny_mce.js +0 -1
- data/public/javascripts/tiny_mce/tiny_mce_popup.js +0 -221
- data/public/javascripts/tiny_mce/tiny_mce_src.js +0 -8803
- data/public/javascripts/tiny_mce/utils/editable_selects.js +0 -61
- data/public/javascripts/tiny_mce/utils/form_utils.js +0 -193
- data/public/javascripts/tiny_mce/utils/mclayer.js +0 -210
- data/public/javascripts/tiny_mce/utils/mctabs.js +0 -74
- data/public/javascripts/tiny_mce/utils/validate.js +0 -219
- data/public/stylesheets/minimal.css +0 -143
- data/spec/fixtures/blacklist_patterns.yml +0 -10
- data/spec/fixtures/blogs.yml +0 -77
- data/spec/fixtures/categories.yml +0 -35
- data/spec/fixtures/categorizations.yml +0 -31
- data/spec/fixtures/contents.yml +0 -205
- data/spec/fixtures/feedback.yml +0 -159
- data/spec/fixtures/page_caches.yml +0 -7
- data/spec/fixtures/profiles.yml +0 -11
- data/spec/fixtures/redirects.yml +0 -13
- data/spec/fixtures/resources.yml +0 -24
- data/spec/fixtures/sidebars.yml +0 -12
- data/spec/fixtures/tags.yml +0 -10
- data/spec/fixtures/text_filters.yml +0 -42
- data/spec/fixtures/triggers.yml +0 -1
- data/spec/fixtures/users.yml +0 -56
- data/spec/helpers/comments_helper_spec.rb +0 -11
- data/test/fixtures/articles_tags.yml +0 -19
- data/test/functional/accounts_controller_test.rb +0 -78
- data/test/functional/admin/article_preview_test.rb +0 -82
- data/test/functional/admin/blacklist_controller_test.rb +0 -63
- data/test/functional/admin/categories_controller_test.rb +0 -106
- data/test/functional/admin/comments_controller_test.rb +0 -78
- data/test/functional/admin/content_controller_test.rb +0 -232
- data/test/functional/admin/feedback_controller_test.rb +0 -59
- data/test/functional/admin/pages_controller_test.rb +0 -88
- data/test/functional/admin/profiles_controller_test.rb +0 -18
- data/test/functional/admin/resources_controller_test.rb +0 -49
- data/test/functional/admin/settings_controller_test.rb +0 -26
- data/test/functional/admin/textfilters_controller_test.rb +0 -29
- data/test/functional/admin/themes_controller_test.rb +0 -34
- data/test/functional/admin/trackbacks_controller_test.rb +0 -76
- data/test/functional/admin/users_controller_test.rb +0 -78
- data/test/functional/articles_controller_test.rb +0 -263
- data/test/functional/backend_controller_test.rb +0 -287
- data/test/functional/redirect_controller_test.rb +0 -40
- data/test/functional/textfilter_controller_test.rb +0 -273
- data/test/functional/theme_controller_test.rb +0 -45
- data/test/functional/xml_controller_test.rb +0 -235
- data/test/mocks/themes/standard_issue/about.markdown +0 -5
- data/test/mocks/themes/standard_issue/images/img01.gif +0 -0
- data/test/mocks/themes/standard_issue/images/img02.gif +0 -0
- data/test/mocks/themes/standard_issue/images/img03.gif +0 -0
- data/test/mocks/themes/standard_issue/images/img04.jpg +0 -0
- data/test/mocks/themes/standard_issue/images/img05.gif +0 -0
- data/test/mocks/themes/standard_issue/images/img06.gif +0 -0
- data/test/mocks/themes/standard_issue/images/img07.gif +0 -0
- data/test/mocks/themes/standard_issue/images/img08.gif +0 -0
- data/test/mocks/themes/standard_issue/images/img09.gif +0 -0
- data/test/mocks/themes/standard_issue/images/img10.gif +0 -0
- data/test/mocks/themes/standard_issue/images/spinner.gif +0 -0
- data/test/mocks/themes/standard_issue/layouts/default.html.erb +0 -61
- data/test/mocks/themes/standard_issue/preview.png +0 -0
- data/test/mocks/themes/standard_issue/stylesheets/application.css +0 -461
- data/test/mocks/themes/standard_issue/views/articles/_article.html.erb +0 -32
- data/test/mocks/themes/standard_issue/views/articles/_comment.html.erb +0 -12
- data/test/mocks/themes/standard_issue/views/articles/_comment_form.html.erb +0 -48
- data/test/mocks/themes/standard_issue/views/articles/_comment_list.html.erb +0 -7
- data/test/mocks/themes/standard_issue/views/articles/_trackback.html.erb +0 -9
- data/test/mocks/themes/standard_issue/views/articles/comment_preview.html.erb +0 -10
- data/test/mocks/themes/standard_issue/views/articles/index.html.erb +0 -5
- data/test/mocks/themes/standard_issue/views/articles/read.html.erb +0 -42
- data/test/mocks/themes/standard_issue/views/shared/_search.html.erb +0 -17
- data/test/mocks/themes/standard_issue/views/theme/static_view_test.rhtml +0 -1
- data/test/unit/amazon_sidebar_test.rb +0 -36
- data/test/unit/article_closing_test.rb +0 -40
- data/test/unit/article_test.rb +0 -304
- data/test/unit/assumptions_tests.rb +0 -54
- data/test/unit/blacklist_pattern_test.rb +0 -14
- data/test/unit/blog_test.rb +0 -52
- data/test/unit/cache_support_test.rb +0 -62
- data/test/unit/category_test.rb +0 -42
- data/test/unit/comment_test.rb +0 -188
- data/test/unit/configuration_test.rb +0 -21
- data/test/unit/content_state/feedback_states_test.rb +0 -67
- data/test/unit/metafragment_test.rb +0 -63
- data/test/unit/notification_mailer_test.rb +0 -55
- data/test/unit/notification_test.rb +0 -10
- data/test/unit/page_test.rb +0 -45
- data/test/unit/ping_pinger_test.rb +0 -30
- data/test/unit/ping_test.rb +0 -127
- data/test/unit/redirect_test.rb +0 -19
- data/test/unit/resource_test.rb +0 -71
- data/test/unit/route_cache_test.rb +0 -11
- data/test/unit/sidebar_test.rb +0 -9
- data/test/unit/static_sidebar_test.rb +0 -19
- data/test/unit/tag_test.rb +0 -71
- data/test/unit/text_filter_test.rb +0 -126
- data/test/unit/theme_test.rb +0 -44
- data/test/unit/trackback_test.rb +0 -22
- data/test/unit/trigger_test.rb +0 -40
- data/test/unit/typo_deprecated_test.rb +0 -22
- data/test/unit/user_test.rb +0 -111
- data/themes/dirtylicious/about.markdown +0 -3
- data/themes/dirtylicious/images/body.jpg +0 -0
- data/themes/dirtylicious/images/container.jpg +0 -0
- data/themes/dirtylicious/images/gravatar.gif +0 -0
- data/themes/dirtylicious/images/header.jpg +0 -0
- data/themes/dirtylicious/images/li.gif +0 -0
- data/themes/dirtylicious/images/main.gif +0 -0
- data/themes/dirtylicious/images/nav.gif +0 -0
- data/themes/dirtylicious/images/quote.gif +0 -0
- data/themes/dirtylicious/images/spinner.gif +0 -0
- data/themes/dirtylicious/layouts/default.html.erb +0 -60
- data/themes/dirtylicious/preview.png +0 -0
- data/themes/dirtylicious/stylesheets/application.css +0 -327
- data/themes/dirtylicious/views/articles/_article.html.erb +0 -33
- data/themes/dirtylicious/views/articles/_comment.html.erb +0 -14
- data/themes/dirtylicious/views/articles/_comment_form.html.erb +0 -37
- data/themes/dirtylicious/views/articles/_comment_list.html.erb +0 -7
- data/themes/dirtylicious/views/articles/_trackback.html.erb +0 -9
- data/themes/dirtylicious/views/articles/comment_preview.html.erb +0 -10
- data/themes/dirtylicious/views/articles/index.html.erb +0 -5
- data/themes/dirtylicious/views/articles/read.html.erb +0 -42
- data/themes/dirtylicious/views/shared/_search.html.erb +0 -16
- data/themes/standard_issue/about.markdown +0 -5
- data/themes/standard_issue/images/img01.gif +0 -0
- data/themes/standard_issue/images/img02.gif +0 -0
- data/themes/standard_issue/images/img03.gif +0 -0
- data/themes/standard_issue/images/img04.jpg +0 -0
- data/themes/standard_issue/images/img05.gif +0 -0
- data/themes/standard_issue/images/img06.gif +0 -0
- data/themes/standard_issue/images/img07.gif +0 -0
- data/themes/standard_issue/images/img08.gif +0 -0
- data/themes/standard_issue/images/img09.gif +0 -0
- data/themes/standard_issue/images/img10.gif +0 -0
- data/themes/standard_issue/images/spinner.gif +0 -0
- data/themes/standard_issue/layouts/default.html.erb +0 -59
- data/themes/standard_issue/preview.png +0 -0
- data/themes/standard_issue/stylesheets/application.css +0 -461
- data/themes/standard_issue/views/articles/_article.html.erb +0 -32
- data/themes/standard_issue/views/articles/_comment.html.erb +0 -12
- data/themes/standard_issue/views/articles/_comment_form.html.erb +0 -48
- data/themes/standard_issue/views/articles/_comment_list.html.erb +0 -7
- data/themes/standard_issue/views/articles/_trackback.html.erb +0 -9
- data/themes/standard_issue/views/articles/comment_preview.html.erb +0 -10
- data/themes/standard_issue/views/articles/index.html.erb +0 -5
- data/themes/standard_issue/views/articles/read.html.erb +0 -42
- data/themes/standard_issue/views/shared/_search.html.erb +0 -17
- data/vendor/jabber4r/CHANGES +0 -8
- data/vendor/jabber4r/LICENSE.txt +0 -12
- data/vendor/jabber4r/README +0 -180
- data/vendor/jabber4r/Rakefile.rb +0 -143
- data/vendor/jabber4r/lib/jabber4r/jabber4r.rb +0 -22
- data/vendor/jabber4r/lib/jabber4r/jid.rb +0 -93
- data/vendor/jabber4r/lib/jabber4r/protocol.rb +0 -1384
- data/vendor/jabber4r/lib/jabber4r/rexml_1.8_patch.rb +0 -16
- data/vendor/jabber4r/lib/jabber4r/roster.rb +0 -322
- data/vendor/jabber4r/lib/jabber4r/session.rb +0 -615
- data/vendor/jabber4r/lib/jabber4r/vcard.rb +0 -42
- data/vendor/plugins/haml/MIT-LICENSE +0 -20
- data/vendor/plugins/haml/REFERENCE +0 -662
- data/vendor/plugins/haml/Rakefile +0 -171
- data/vendor/plugins/haml/VERSION +0 -1
- data/vendor/plugins/haml/bin/haml +0 -18
- data/vendor/plugins/haml/init.rb +0 -3
- data/vendor/plugins/haml/lib/haml/buffer.rb +0 -224
- data/vendor/plugins/haml/lib/haml/engine.rb +0 -557
- data/vendor/plugins/haml/lib/haml/helpers.rb +0 -220
- data/vendor/plugins/haml/lib/haml/helpers/action_view_mods.rb +0 -54
- data/vendor/plugins/haml/lib/haml/template.rb +0 -138
- data/vendor/plugins/haml/test/benchmark.rb +0 -62
- data/vendor/plugins/haml/test/engine_test.rb +0 -93
- data/vendor/plugins/haml/test/helper_test.rb +0 -105
- data/vendor/plugins/haml/test/mocks/article.rb +0 -6
- data/vendor/plugins/haml/test/profile.rb +0 -45
- data/vendor/plugins/haml/test/results/content_for_layout.xhtml +0 -16
- data/vendor/plugins/haml/test/results/eval_suppressed.xhtml +0 -2
- data/vendor/plugins/haml/test/results/helpers.xhtml +0 -50
- data/vendor/plugins/haml/test/results/helpful.xhtml +0 -5
- data/vendor/plugins/haml/test/results/just_stuff.xhtml +0 -38
- data/vendor/plugins/haml/test/results/list.xhtml +0 -12
- data/vendor/plugins/haml/test/results/original_engine.xhtml +0 -24
- data/vendor/plugins/haml/test/results/partials.xhtml +0 -20
- data/vendor/plugins/haml/test/results/silent_script.xhtml +0 -74
- data/vendor/plugins/haml/test/results/standard.xhtml +0 -42
- data/vendor/plugins/haml/test/results/tag_parsing.xhtml +0 -28
- data/vendor/plugins/haml/test/results/very_basic.xhtml +0 -7
- data/vendor/plugins/haml/test/results/whitespace_handling.xhtml +0 -51
- data/vendor/plugins/haml/test/rhtml/standard.rhtml +0 -51
- data/vendor/plugins/haml/test/runner.rb +0 -15
- data/vendor/plugins/haml/test/template_test.rb +0 -137
- data/vendor/plugins/haml/test/templates/_partial.haml +0 -7
- data/vendor/plugins/haml/test/templates/_text_area.haml +0 -3
- data/vendor/plugins/haml/test/templates/content_for_layout.haml +0 -10
- data/vendor/plugins/haml/test/templates/eval_suppressed.haml +0 -5
- data/vendor/plugins/haml/test/templates/helpers.haml +0 -39
- data/vendor/plugins/haml/test/templates/helpful.haml +0 -6
- data/vendor/plugins/haml/test/templates/just_stuff.haml +0 -34
- data/vendor/plugins/haml/test/templates/list.haml +0 -12
- data/vendor/plugins/haml/test/templates/original_engine.haml +0 -17
- data/vendor/plugins/haml/test/templates/partialize.haml +0 -1
- data/vendor/plugins/haml/test/templates/partials.haml +0 -12
- data/vendor/plugins/haml/test/templates/silent_script.haml +0 -40
- data/vendor/plugins/haml/test/templates/standard.haml +0 -40
- data/vendor/plugins/haml/test/templates/tag_parsing.haml +0 -24
- data/vendor/plugins/haml/test/templates/very_basic.haml +0 -4
- data/vendor/plugins/haml/test/templates/whitespace_handling.haml +0 -66
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/testcase_spec_with_test_unit.rb +0 -20
- data/vendor/plugins/rspec/spec/spec/interop/test/unit/testsuite_adapter_spec_with_test_unit.rb +0 -34
- data/vendor/plugins/rspec_on_rails/generators/helpers/rails_identifier.rb +0 -16
- data/vendor/plugins/tiny_mce/README +0 -10
- data/vendor/plugins/tiny_mce/Rakefile +0 -22
- data/vendor/plugins/tiny_mce/TODO +0 -2
- data/vendor/plugins/tiny_mce/changelog +0 -1017
- data/vendor/plugins/tiny_mce/init.rb +0 -3
- data/vendor/plugins/tiny_mce/install.rb +0 -1
- data/vendor/plugins/tiny_mce/lib/tiny_mce.rb +0 -36
- data/vendor/plugins/tiny_mce/lib/tiny_mce_helper.rb +0 -48
- data/vendor/plugins/tiny_mce/tasks/tiny_mce.rake +0 -40
- data/vendor/plugins/tiny_mce/test/helper_testcase.rb +0 -38
- data/vendor/plugins/tiny_mce/test/tiny_mce_helper_test.rb +0 -67
- data/vendor/plugins/tiny_mce/test/tiny_mce_test.rb +0 -85
- data/vendor/plugins/tiny_mce/tiny_mce_options.yml +0 -121
@@ -1,171 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'rake'
|
3
|
-
|
4
|
-
volatile_requires = ['rcov/rcovtask']
|
5
|
-
not_loaded = []
|
6
|
-
volatile_requires.each do |file|
|
7
|
-
begin
|
8
|
-
require file
|
9
|
-
rescue LoadError
|
10
|
-
not_loaded.push file
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
# For some crazy reason,
|
15
|
-
# some Rake tasks interfere with others
|
16
|
-
# (specifically, benchmarking).
|
17
|
-
# Thus, it's advantageous to only show
|
18
|
-
# the task currently being used.
|
19
|
-
def is_task?(*tasks)
|
20
|
-
ARGV[0].nil? || tasks.include?(ARGV[0])
|
21
|
-
end
|
22
|
-
|
23
|
-
# ----- Default: Testing ------
|
24
|
-
|
25
|
-
desc 'Default: run unit tests.'
|
26
|
-
task :default => :test
|
27
|
-
|
28
|
-
if is_task?('test', 'default')
|
29
|
-
require 'rake/testtask'
|
30
|
-
|
31
|
-
desc 'Test the Haml plugin'
|
32
|
-
Rake::TestTask.new(:test) do |t|
|
33
|
-
t.libs << 'lib'
|
34
|
-
t.pattern = 'test/**/*_test.rb'
|
35
|
-
t.verbose = true
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
# ----- Packaging -----
|
40
|
-
|
41
|
-
if is_task?('package', 'repackage', 'clobber_package')
|
42
|
-
require 'rake/gempackagetask'
|
43
|
-
|
44
|
-
spec = Gem::Specification.new do |spec|
|
45
|
-
spec.name = 'haml'
|
46
|
-
spec.summary = 'An elegant, structured XHTML/XML templating engine.'
|
47
|
-
spec.version = File.read('VERSION').strip
|
48
|
-
spec.author = 'Hampton Catlin'
|
49
|
-
spec.email = 'haml@googlegroups.com'
|
50
|
-
spec.description = <<-END
|
51
|
-
Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or XML
|
52
|
-
that's designed to express the structure of XHTML or XML documents
|
53
|
-
in a non-repetitive, elegant, easy way,
|
54
|
-
using indentation rather than closing tags
|
55
|
-
and allowing Ruby to be embedded with ease.
|
56
|
-
It was originally envisioned as a plugin for Ruby on Rails,
|
57
|
-
but it can function as a stand-alone templating engine.
|
58
|
-
END
|
59
|
-
|
60
|
-
readmes = FileList.new('*') { |list| list.exclude(/[a-z]/) }.to_a
|
61
|
-
spec.executables = ['haml']
|
62
|
-
spec.files = FileList['lib/**/*', 'bin/*', 'test/**/*', 'Rakefile'].to_a + readmes
|
63
|
-
spec.homepage = 'http://haml.hamptoncatlin.com/'
|
64
|
-
spec.has_rdoc = true
|
65
|
-
spec.extra_rdoc_files = readmes
|
66
|
-
spec.rdoc_options += [
|
67
|
-
'--title', 'Haml',
|
68
|
-
'--main', 'REFERENCE',
|
69
|
-
'--exclude', 'lib/haml/buffer.rb',
|
70
|
-
'--line-numbers',
|
71
|
-
'--inline-source'
|
72
|
-
]
|
73
|
-
spec.test_files = FileList['test/**/*_test.rb'].to_a
|
74
|
-
end
|
75
|
-
|
76
|
-
Rake::GemPackageTask.new(spec) do |pkg|
|
77
|
-
pkg.need_zip = true
|
78
|
-
pkg.need_tar_gz = true
|
79
|
-
pkg.need_tar_bz2 = true
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
# ----- Benchmarking -----
|
84
|
-
|
85
|
-
if is_task?('benchmark')
|
86
|
-
temp_desc = <<END
|
87
|
-
Benchmark HAML against ERb.
|
88
|
-
TIMES=n sets the number of runs. Defaults to 100.
|
89
|
-
END
|
90
|
-
|
91
|
-
desc temp_desc.chomp
|
92
|
-
task :benchmark do
|
93
|
-
require 'test/benchmark'
|
94
|
-
|
95
|
-
puts '-'*51, "Benchmark: Haml vs. ERb", '-'*51
|
96
|
-
puts "Running benchmark #{ENV['TIMES']} times..." if ENV['TIMES']
|
97
|
-
times = ENV['TIMES'].to_i if ENV['TIMES']
|
98
|
-
benchmarker = Haml::Benchmarker.new
|
99
|
-
puts benchmarker.benchmark(times || 100)
|
100
|
-
puts '-'*51
|
101
|
-
end
|
102
|
-
end
|
103
|
-
|
104
|
-
# ----- Documentation -----
|
105
|
-
|
106
|
-
if is_task?('rdoc', 'rerdoc', 'clobber_rdoc', 'rdoc_devel', 'rerdoc_devel', 'clobber_rdoc_devel')
|
107
|
-
require 'rake/rdoctask'
|
108
|
-
|
109
|
-
rdoc_task = Proc.new do |rdoc|
|
110
|
-
rdoc.title = 'Haml'
|
111
|
-
rdoc.options << '--line-numbers' << '--inline-source'
|
112
|
-
rdoc.rdoc_files.include('REFERENCE')
|
113
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
114
|
-
rdoc.rdoc_files.exclude('lib/haml/buffer.rb')
|
115
|
-
end
|
116
|
-
|
117
|
-
Rake::RDocTask.new do |rdoc|
|
118
|
-
rdoc_task.call(rdoc)
|
119
|
-
rdoc.rdoc_dir = 'rdoc'
|
120
|
-
end
|
121
|
-
|
122
|
-
Rake::RDocTask.new(:rdoc_devel) do |rdoc|
|
123
|
-
rdoc_task.call(rdoc)
|
124
|
-
rdoc.rdoc_dir = 'rdoc_devel'
|
125
|
-
rdoc.options << '--all'
|
126
|
-
rdoc.rdoc_files.include('test/*.rb')
|
127
|
-
rdoc.rdoc_files = Rake::FileList.new(*rdoc.rdoc_files.to_a)
|
128
|
-
rdoc.rdoc_files.include('lib/haml/buffer.rb')
|
129
|
-
end
|
130
|
-
end
|
131
|
-
|
132
|
-
# ----- Coverage -----
|
133
|
-
|
134
|
-
if is_task?('rcov', 'clobber_rcov')
|
135
|
-
unless not_loaded.include? 'rcov/rcovtask'
|
136
|
-
Rcov::RcovTask.new do |t|
|
137
|
-
t.libs << "test"
|
138
|
-
t.test_files = FileList['test/**/*_test.rb']
|
139
|
-
if ENV['NON_NATIVE']
|
140
|
-
t.rcov_opts << "--no-rcovrt"
|
141
|
-
end
|
142
|
-
t.verbose = true
|
143
|
-
end
|
144
|
-
end
|
145
|
-
end
|
146
|
-
|
147
|
-
# ----- Profiling -----
|
148
|
-
|
149
|
-
if is_task?('profile')
|
150
|
-
temp_desc = <<END
|
151
|
-
Run a profile of HAML.
|
152
|
-
TIMES=n sets the number of runs. Defaults to 100.
|
153
|
-
FILE=n sets the file to profile. Defaults to 'standard'.
|
154
|
-
END
|
155
|
-
desc temp_desc.chomp
|
156
|
-
task :profile do
|
157
|
-
require 'test/profile'
|
158
|
-
|
159
|
-
puts '-'*51, "Profiling Haml::Template", '-'*51
|
160
|
-
|
161
|
-
args = []
|
162
|
-
args.push ENV['TIMES'].to_i if ENV['TIMES']
|
163
|
-
args.push ENV['FILE'] if ENV['FILE']
|
164
|
-
|
165
|
-
profiler = Haml::Profiler.new
|
166
|
-
res = profiler.profile(*args)
|
167
|
-
puts res
|
168
|
-
|
169
|
-
puts '-'*51
|
170
|
-
end
|
171
|
-
end
|
data/vendor/plugins/haml/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.0.3
|
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# The command line Haml parser.
|
3
|
-
|
4
|
-
if ARGV[0] == "--help" or ARGV[0] == "-h" or ARGV[0] == "-?"
|
5
|
-
puts <<END
|
6
|
-
Usage: haml (template file) (output file)
|
7
|
-
|
8
|
-
Description:
|
9
|
-
Uses the Haml engine to parse the specified template
|
10
|
-
and outputs the result to the specified file.
|
11
|
-
END
|
12
|
-
else
|
13
|
-
require File.join(File.dirname(__FILE__), '..', 'lib', 'haml', 'engine')
|
14
|
-
|
15
|
-
template = File.read(ARGV[0])
|
16
|
-
result = Haml::Engine.new(template).to_html
|
17
|
-
File.open(ARGV[1], "w") { |f| f.write(result) }
|
18
|
-
end
|
data/vendor/plugins/haml/init.rb
DELETED
@@ -1,224 +0,0 @@
|
|
1
|
-
module Haml
|
2
|
-
# This class is used only internally. It holds the buffer of XHTML that
|
3
|
-
# is eventually output by Haml::Engine's to_html method. It's called
|
4
|
-
# from within the precompiled code, and helps reduce the amount of
|
5
|
-
# processing done within instance_eval'd code.
|
6
|
-
class Buffer
|
7
|
-
include Haml::Helpers
|
8
|
-
|
9
|
-
# Set the maximum length for a line to be considered a one-liner.
|
10
|
-
# Lines <= the maximum will be rendered on one line,
|
11
|
-
# i.e. <tt><p>Hello world</p></tt>
|
12
|
-
ONE_LINER_LENGTH = 50
|
13
|
-
|
14
|
-
# The string that holds the compiled XHTML. This is aliased as
|
15
|
-
# _erbout for compatibility with ERB-specific code.
|
16
|
-
attr_accessor :buffer
|
17
|
-
|
18
|
-
# The number of tabs that are added or subtracted from the
|
19
|
-
# tabulation proscribed by the precompiled template.
|
20
|
-
attr_accessor :tabulation
|
21
|
-
|
22
|
-
# Creates a new buffer.
|
23
|
-
def initialize(options = {})
|
24
|
-
@options = options
|
25
|
-
@quote_escape = options[:attr_wrapper] == '"' ? """ : "'"
|
26
|
-
@other_quote_char = options[:attr_wrapper] == '"' ? "'" : '"'
|
27
|
-
@buffer = ""
|
28
|
-
@one_liner_pending = false
|
29
|
-
@tabulation = 0
|
30
|
-
end
|
31
|
-
|
32
|
-
# Renders +text+ with the proper tabulation. This also deals with
|
33
|
-
# making a possible one-line tag one line or not.
|
34
|
-
def push_text(text, tabulation, flattened = false)
|
35
|
-
if flattened
|
36
|
-
# In this case, tabulation is the number of spaces, rather
|
37
|
-
# than the number of tabs.
|
38
|
-
@buffer << "#{' ' * tabulation}#{flatten(text + "\n")}"
|
39
|
-
@one_liner_pending = true
|
40
|
-
elsif @one_liner_pending && one_liner?(text)
|
41
|
-
@buffer << text
|
42
|
-
else
|
43
|
-
if @one_liner_pending
|
44
|
-
@buffer << "\n"
|
45
|
-
@one_liner_pending = false
|
46
|
-
end
|
47
|
-
@buffer << "#{tabs(tabulation)}#{text}\n"
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
# Properly formats the output of a script that was run in the
|
52
|
-
# instance_eval.
|
53
|
-
def push_script(result, tabulation, flattened)
|
54
|
-
if flattened
|
55
|
-
result = find_and_flatten(result)
|
56
|
-
end
|
57
|
-
unless result.nil?
|
58
|
-
result = result.to_s
|
59
|
-
while result[-1] == 10 # \n
|
60
|
-
# String#chomp is slow
|
61
|
-
result = result[0...-1]
|
62
|
-
end
|
63
|
-
|
64
|
-
result = result.gsub("\n", "\n#{tabs(tabulation)}")
|
65
|
-
push_text result, tabulation
|
66
|
-
end
|
67
|
-
nil
|
68
|
-
end
|
69
|
-
|
70
|
-
# Takes the various information about the opening tag for an
|
71
|
-
# element, formats it, and adds it to the buffer.
|
72
|
-
def open_tag(name, tabulation, atomic, try_one_line, class_id, attributes_hash, obj_ref, flattened)
|
73
|
-
attributes = {}
|
74
|
-
attributes.merge!(parse_object_ref(obj_ref)) if obj_ref
|
75
|
-
attributes.merge!(parse_class_and_id(class_id)) unless class_id.nil? || class_id.empty?
|
76
|
-
attributes.merge!(attributes_hash) if attributes_hash
|
77
|
-
|
78
|
-
@one_liner_pending = false
|
79
|
-
if atomic
|
80
|
-
str = " />\n"
|
81
|
-
elsif try_one_line
|
82
|
-
@one_liner_pending = true
|
83
|
-
str = ">"
|
84
|
-
elsif flattened
|
85
|
-
str = ">
"
|
86
|
-
else
|
87
|
-
str = ">\n"
|
88
|
-
end
|
89
|
-
@buffer << "#{tabs(tabulation)}<#{name}#{build_attributes(attributes)}#{str}"
|
90
|
-
end
|
91
|
-
|
92
|
-
# Creates a closing tag with the given name.
|
93
|
-
def close_tag(name, tabulation)
|
94
|
-
if @one_liner_pending
|
95
|
-
@buffer << "</#{name}>\n"
|
96
|
-
@one_liner_pending = false
|
97
|
-
else
|
98
|
-
push_text("</#{name}>", tabulation)
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
# Opens an XHTML comment.
|
103
|
-
def open_comment(try_one_line, conditional, tabulation)
|
104
|
-
conditional << ">" if conditional
|
105
|
-
@buffer << "#{tabs(tabulation)}<!--#{conditional.to_s} "
|
106
|
-
if try_one_line
|
107
|
-
@one_liner_pending = true
|
108
|
-
else
|
109
|
-
@buffer << "\n"
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
# Closes an XHTML comment.
|
114
|
-
def close_comment(has_conditional, tabulation)
|
115
|
-
close_tag = has_conditional ? "<![endif]-->" : "-->"
|
116
|
-
if @one_liner_pending
|
117
|
-
@buffer << " #{close_tag}\n"
|
118
|
-
@one_liner_pending = false
|
119
|
-
else
|
120
|
-
push_text(close_tag, tabulation)
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
# Stops parsing a flat section.
|
125
|
-
def stop_flat
|
126
|
-
buffer.concat("\n")
|
127
|
-
@one_liner_pending = false
|
128
|
-
end
|
129
|
-
|
130
|
-
private
|
131
|
-
|
132
|
-
# Gets <tt>count</tt> tabs. Mostly for internal use.
|
133
|
-
def tabs(count)
|
134
|
-
' ' * (count + @tabulation)
|
135
|
-
end
|
136
|
-
|
137
|
-
# Iterates through the classes and ids supplied through <tt>.</tt>
|
138
|
-
# and <tt>#</tt> syntax, and returns a hash with them as attributes,
|
139
|
-
# that can then be merged with another attributes hash.
|
140
|
-
def parse_class_and_id(list)
|
141
|
-
attributes = {}
|
142
|
-
list.scan(/([#.])([-_a-zA-Z0-9]+)/) do |type, property|
|
143
|
-
case type
|
144
|
-
when '.'
|
145
|
-
if attributes[:class]
|
146
|
-
attributes[:class] += " "
|
147
|
-
else
|
148
|
-
attributes[:class] = ""
|
149
|
-
end
|
150
|
-
attributes[:class] += property
|
151
|
-
when '#'
|
152
|
-
attributes[:id] = property
|
153
|
-
end
|
154
|
-
end
|
155
|
-
attributes
|
156
|
-
end
|
157
|
-
|
158
|
-
# Takes an array of objects and uses the class and id of the first
|
159
|
-
# one to create an attributes hash.
|
160
|
-
def parse_object_ref(ref)
|
161
|
-
ref = ref[0]
|
162
|
-
# Let's make sure the value isn't nil. If it is, return the default Hash.
|
163
|
-
return {} if ref.nil?
|
164
|
-
class_name = ref.class.to_s.underscore
|
165
|
-
{:id => "#{class_name}_#{ref.id}", :class => class_name}
|
166
|
-
end
|
167
|
-
|
168
|
-
# Takes a hash and builds a list of XHTML attributes from it, returning
|
169
|
-
# the result.
|
170
|
-
def build_attributes(attributes = {})
|
171
|
-
result = attributes.collect do |a,v|
|
172
|
-
unless v.nil?
|
173
|
-
v = v.to_s
|
174
|
-
attr_wrapper = @options[:attr_wrapper]
|
175
|
-
if v.include? attr_wrapper
|
176
|
-
if v.include? @other_quote_char
|
177
|
-
v = v.gsub(attr_wrapper, @quote_escape)
|
178
|
-
else
|
179
|
-
attr_wrapper = @other_quote_char
|
180
|
-
end
|
181
|
-
end
|
182
|
-
" #{a}=#{attr_wrapper}#{v}#{attr_wrapper}"
|
183
|
-
end
|
184
|
-
end
|
185
|
-
result.sort.join
|
186
|
-
end
|
187
|
-
|
188
|
-
# Returns whether or not the given value is short enough to be rendered
|
189
|
-
# on one line.
|
190
|
-
def one_liner?(value)
|
191
|
-
value.length <= ONE_LINER_LENGTH && value.scan(/\n/).empty?
|
192
|
-
end
|
193
|
-
|
194
|
-
# Isolates the whitespace-sensitive tags in the string and uses Haml::Helpers#flatten
|
195
|
-
# to convert any endlines inside them into html entities.
|
196
|
-
def find_and_flatten(input)
|
197
|
-
input = input.to_s
|
198
|
-
input.scan(/<(textarea|code|pre)[^>]*>(.*?)<\/\1>/im) do |tag, contents|
|
199
|
-
input = input.gsub(contents, Haml::Helpers.flatten(contents))
|
200
|
-
end
|
201
|
-
input
|
202
|
-
end
|
203
|
-
end
|
204
|
-
end
|
205
|
-
|
206
|
-
class String # :nodoc
|
207
|
-
alias_method :old_comp, :<=>
|
208
|
-
def <=>(other)
|
209
|
-
if other.is_a? NilClass
|
210
|
-
-1
|
211
|
-
else
|
212
|
-
old_comp(other)
|
213
|
-
end
|
214
|
-
end
|
215
|
-
end
|
216
|
-
|
217
|
-
class NilClass # :nodoc:
|
218
|
-
include Comparable
|
219
|
-
|
220
|
-
def <=>(other)
|
221
|
-
other.nil? ? 0 : 1
|
222
|
-
end
|
223
|
-
end
|
224
|
-
|
@@ -1,557 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/helpers'
|
2
|
-
require File.dirname(__FILE__) + '/buffer'
|
3
|
-
|
4
|
-
module Haml
|
5
|
-
# This is the class where all the parsing and processing of the HAML
|
6
|
-
# template is done. It can be directly used by the user by creating a
|
7
|
-
# new instance and calling to_html to render the template. For example:
|
8
|
-
#
|
9
|
-
# template = File.load('templates/really_cool_template.haml')
|
10
|
-
# haml_engine = Haml::Engine.new(template)
|
11
|
-
# output = haml_engine.to_html
|
12
|
-
# puts output
|
13
|
-
class Engine
|
14
|
-
# Allow access to the precompiled template
|
15
|
-
attr_reader :precompiled
|
16
|
-
|
17
|
-
# Allow reading and writing of the options hash
|
18
|
-
attr :options, true
|
19
|
-
|
20
|
-
# Designates an XHTML/XML element.
|
21
|
-
ELEMENT = '%'[0]
|
22
|
-
|
23
|
-
# Designates a <tt><div></tt> element with the given class.
|
24
|
-
DIV_CLASS = '.'[0]
|
25
|
-
|
26
|
-
# Designates a <tt><div></tt> element with the given id.
|
27
|
-
DIV_ID = '#'[0]
|
28
|
-
|
29
|
-
# Designates an XHTML/XML comment.
|
30
|
-
COMMENT = '/'[0]
|
31
|
-
|
32
|
-
# Designates an XHTML doctype.
|
33
|
-
DOCTYPE = '!'[0]
|
34
|
-
|
35
|
-
# Designates script, the result of which is output.
|
36
|
-
SCRIPT = '='[0]
|
37
|
-
|
38
|
-
# Designates script, the result of which is flattened and output.
|
39
|
-
FLAT_SCRIPT = '~'[0]
|
40
|
-
|
41
|
-
# Designates script which is run but not output.
|
42
|
-
SILENT_SCRIPT = '-'[0]
|
43
|
-
|
44
|
-
# When following SILENT_SCRIPT, designates a comment that is not output.
|
45
|
-
SILENT_COMMENT = '#'[0]
|
46
|
-
|
47
|
-
# Designates a non-parsed line.
|
48
|
-
ESCAPE = '\\'[0]
|
49
|
-
|
50
|
-
# Designates a non-parsed line. Not actually a character.
|
51
|
-
PLAIN_TEXT = -1
|
52
|
-
|
53
|
-
# Keeps track of the ASCII values of the characters that begin a
|
54
|
-
# specially-interpreted line.
|
55
|
-
SPECIAL_CHARACTERS = [
|
56
|
-
ELEMENT,
|
57
|
-
DIV_CLASS,
|
58
|
-
DIV_ID,
|
59
|
-
COMMENT,
|
60
|
-
DOCTYPE,
|
61
|
-
SCRIPT,
|
62
|
-
FLAT_SCRIPT,
|
63
|
-
SILENT_SCRIPT,
|
64
|
-
ESCAPE
|
65
|
-
]
|
66
|
-
|
67
|
-
# The value of the character that designates that a line is part
|
68
|
-
# of a multiline string.
|
69
|
-
MULTILINE_CHAR_VALUE = '|'[0]
|
70
|
-
|
71
|
-
# Characters that designate that a multiline string may be about
|
72
|
-
# to begin.
|
73
|
-
MULTILINE_STARTERS = SPECIAL_CHARACTERS - ["/"[0]]
|
74
|
-
|
75
|
-
# Keywords that appear in the middle of a Ruby block with lowered
|
76
|
-
# indentation. If a block has been started using indentation,
|
77
|
-
# lowering the indentation with one of these won't end the block.
|
78
|
-
# For example:
|
79
|
-
#
|
80
|
-
# - if foo
|
81
|
-
# %p yes!
|
82
|
-
# - else
|
83
|
-
# %p no!
|
84
|
-
#
|
85
|
-
# The block is ended after <tt>%p no!</tt>, because <tt>else</tt>
|
86
|
-
# is a member of this array.
|
87
|
-
MID_BLOCK_KEYWORDS = ['else', 'elsif', 'rescue', 'ensure', 'when']
|
88
|
-
|
89
|
-
# Creates a new instace of Haml::Engine that will compile the given
|
90
|
-
# template string when <tt>to_html</tt> is called.
|
91
|
-
# See REFERENCE for available options.
|
92
|
-
#
|
93
|
-
#--
|
94
|
-
# When adding options, remember to add information about them
|
95
|
-
# to REFERENCE!
|
96
|
-
#++
|
97
|
-
#
|
98
|
-
def initialize(template, options = {})
|
99
|
-
@options = {
|
100
|
-
:suppress_eval => false,
|
101
|
-
:attr_wrapper => "'",
|
102
|
-
:locals => {}
|
103
|
-
}.merge options
|
104
|
-
@precompiled = @options[:precompiled]
|
105
|
-
|
106
|
-
@template = template.strip #String
|
107
|
-
@to_close_stack = []
|
108
|
-
@output_tabs = 0
|
109
|
-
@template_tabs = 0
|
110
|
-
|
111
|
-
# This is the base tabulation of the currently active
|
112
|
-
# flattened block. -1 signifies that there is no such block.
|
113
|
-
@flat_spaces = -1
|
114
|
-
|
115
|
-
# Only do the first round of pre-compiling if we really need to.
|
116
|
-
# They might be passing in the precompiled string.
|
117
|
-
do_precompile if @precompiled.nil? && (@precompiled = String.new)
|
118
|
-
end
|
119
|
-
|
120
|
-
# Processes the template and returns the result as a string.
|
121
|
-
def to_html(scope = Object.new, &block)
|
122
|
-
@scope_object = scope
|
123
|
-
@buffer = Haml::Buffer.new(@options)
|
124
|
-
|
125
|
-
local_assigns = @options[:locals]
|
126
|
-
|
127
|
-
# Get inside the view object's world
|
128
|
-
@scope_object.instance_eval do
|
129
|
-
# Set all the local assigns
|
130
|
-
local_assigns.each do |key,val|
|
131
|
-
self.class.send(:define_method, key) { val }
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
|
-
# Compile the @precompiled buffer
|
136
|
-
compile &block
|
137
|
-
|
138
|
-
# Return the result string
|
139
|
-
@buffer.buffer
|
140
|
-
end
|
141
|
-
|
142
|
-
private
|
143
|
-
|
144
|
-
#Precompile each line
|
145
|
-
def do_precompile
|
146
|
-
push_silent <<-END
|
147
|
-
def _haml_render
|
148
|
-
_hamlout = @haml_stack[-1]
|
149
|
-
_erbout = _hamlout.buffer
|
150
|
-
END
|
151
|
-
|
152
|
-
old_line = nil
|
153
|
-
old_index = nil
|
154
|
-
old_spaces = nil
|
155
|
-
old_tabs = nil
|
156
|
-
(@template + "\n-#").each_with_index do |line, index|
|
157
|
-
spaces, tabs = count_soft_tabs(line)
|
158
|
-
line = line.strip
|
159
|
-
|
160
|
-
if !line.empty?
|
161
|
-
if old_line
|
162
|
-
block_opened = tabs > old_tabs && !line.empty?
|
163
|
-
|
164
|
-
suppress_render = handle_multiline(old_tabs, old_line, old_index)
|
165
|
-
|
166
|
-
if !suppress_render
|
167
|
-
line_empty = old_line.empty?
|
168
|
-
process_indent(old_tabs, old_line) unless line_empty
|
169
|
-
flat = @flat_spaces != -1
|
170
|
-
|
171
|
-
if flat
|
172
|
-
push_flat(old_line, old_spaces)
|
173
|
-
elsif !line_empty
|
174
|
-
process_line(old_line, old_index, block_opened)
|
175
|
-
end
|
176
|
-
end
|
177
|
-
end
|
178
|
-
|
179
|
-
old_line = line
|
180
|
-
old_index = index
|
181
|
-
old_spaces = spaces
|
182
|
-
old_tabs = tabs
|
183
|
-
elsif @flat_spaces != -1
|
184
|
-
push_flat(old_line, old_spaces)
|
185
|
-
old_line = ''
|
186
|
-
old_spaces = 0
|
187
|
-
end
|
188
|
-
end
|
189
|
-
|
190
|
-
# Close all the open tags
|
191
|
-
@template_tabs.times { close }
|
192
|
-
|
193
|
-
push_silent "end"
|
194
|
-
end
|
195
|
-
|
196
|
-
# Processes and deals with lowering indentation.
|
197
|
-
def process_indent(count, line)
|
198
|
-
if count <= @template_tabs && @template_tabs > 0
|
199
|
-
to_close = @template_tabs - count
|
200
|
-
|
201
|
-
to_close.times do |i|
|
202
|
-
offset = to_close - 1 - i
|
203
|
-
unless offset == 0 && mid_block_keyword?(line)
|
204
|
-
close
|
205
|
-
end
|
206
|
-
end
|
207
|
-
end
|
208
|
-
end
|
209
|
-
|
210
|
-
# Processes a single line of HAML.
|
211
|
-
#
|
212
|
-
# This method doesn't return anything; it simply processes the line and
|
213
|
-
# adds the appropriate code to <tt>@precompiled</tt>.
|
214
|
-
def process_line(line, index, block_opened)
|
215
|
-
case line[0]
|
216
|
-
when DIV_CLASS, DIV_ID
|
217
|
-
render_div(line, index)
|
218
|
-
when ELEMENT
|
219
|
-
render_tag(line, index)
|
220
|
-
when COMMENT
|
221
|
-
render_comment(line)
|
222
|
-
when SCRIPT
|
223
|
-
push_script(line[1..-1], false, block_opened, index)
|
224
|
-
when FLAT_SCRIPT
|
225
|
-
push_flat_script(line[1..-1], block_opened, index)
|
226
|
-
when SILENT_SCRIPT
|
227
|
-
sub_line = line[1..-1]
|
228
|
-
unless sub_line[0] == SILENT_COMMENT
|
229
|
-
push_silent(sub_line, index)
|
230
|
-
if block_opened && !mid_block_keyword?(line)
|
231
|
-
push_and_tabulate([:script])
|
232
|
-
end
|
233
|
-
end
|
234
|
-
when DOCTYPE
|
235
|
-
if line[0...3] == '!!!'
|
236
|
-
render_doctype(line)
|
237
|
-
else
|
238
|
-
push_text line
|
239
|
-
end
|
240
|
-
when ESCAPE
|
241
|
-
push_text line[1..-1]
|
242
|
-
else
|
243
|
-
push_text line
|
244
|
-
end
|
245
|
-
end
|
246
|
-
|
247
|
-
# Returns whether or not the line is a silent script line with one
|
248
|
-
# of Ruby's mid-block keywords.
|
249
|
-
def mid_block_keyword?(line)
|
250
|
-
line.length > 2 && line[0] == SILENT_SCRIPT && MID_BLOCK_KEYWORDS.include?(line[1..-1].split[0])
|
251
|
-
end
|
252
|
-
|
253
|
-
# Deals with all the logic of figuring out whether a given line is
|
254
|
-
# the beginning, continuation, or end of a multiline sequence.
|
255
|
-
#
|
256
|
-
# This returns whether or not the line should be
|
257
|
-
# rendered normally.
|
258
|
-
def handle_multiline(count, line, index)
|
259
|
-
suppress_render = false
|
260
|
-
# Multilines are denoting by ending with a `|` (124)
|
261
|
-
if is_multiline?(line) && @multiline_buffer
|
262
|
-
# A multiline string is active, and is being continued
|
263
|
-
@multiline_buffer += line[0...-1]
|
264
|
-
suppress_render = true
|
265
|
-
elsif is_multiline?(line) && (MULTILINE_STARTERS.include? line[0])
|
266
|
-
# A multiline string has just been activated, start adding the lines
|
267
|
-
@multiline_buffer = line[0...-1]
|
268
|
-
@multiline_count = count
|
269
|
-
@multiline_index = index
|
270
|
-
process_indent(count, line)
|
271
|
-
suppress_render = true
|
272
|
-
elsif @multiline_buffer
|
273
|
-
# A multiline string has just ended, make line into the result
|
274
|
-
unless line.empty?
|
275
|
-
process_line(@multiline_buffer, @multiline_index, count > @multiline_count)
|
276
|
-
@multiline_buffer = nil
|
277
|
-
end
|
278
|
-
end
|
279
|
-
|
280
|
-
return suppress_render
|
281
|
-
end
|
282
|
-
|
283
|
-
# Checks whether or not +line+ is in a multiline sequence.
|
284
|
-
def is_multiline?(line) # ' '[0] == 32
|
285
|
-
line && line.length > 1 && line[-1] == MULTILINE_CHAR_VALUE && line[-2] == 32
|
286
|
-
end
|
287
|
-
|
288
|
-
# Takes <tt>@precompiled</tt>, a string buffer of Ruby code, and
|
289
|
-
# evaluates it in the context of <tt>@scope_object</tt>, after preparing
|
290
|
-
# <tt>@scope_object</tt>. The code in <tt>@precompiled</tt> populates
|
291
|
-
# <tt>@buffer</tt> with the compiled XHTML code.
|
292
|
-
def compile(&block)
|
293
|
-
# Set the local variables pointing to the buffer
|
294
|
-
buffer = @buffer
|
295
|
-
@scope_object.extend Haml::Helpers
|
296
|
-
@scope_object.instance_eval do
|
297
|
-
@haml_stack ||= Array.new
|
298
|
-
@haml_stack.push(buffer)
|
299
|
-
|
300
|
-
class << self
|
301
|
-
attr :haml_lineno # :nodoc:
|
302
|
-
end
|
303
|
-
end
|
304
|
-
|
305
|
-
begin
|
306
|
-
# Evaluate the buffer in the context of the scope object
|
307
|
-
@scope_object.instance_eval @precompiled
|
308
|
-
@scope_object._haml_render &block
|
309
|
-
rescue Exception => e
|
310
|
-
# Get information from the exception and format it so that
|
311
|
-
# Rails can understand it.
|
312
|
-
compile_error = e.message.scan(/\(eval\):([0-9]*):in `[-_a-zA-Z]*': compile error/)[0]
|
313
|
-
filename = "(haml)"
|
314
|
-
if @scope_object.methods.include? "haml_filename"
|
315
|
-
# For some reason that I can't figure out,
|
316
|
-
# @scope_object.methods.include? "haml_filename" && @scope_object.haml_filename
|
317
|
-
# is false when it shouldn't be. Nested if statements work, though.
|
318
|
-
|
319
|
-
if @scope_object.haml_filename
|
320
|
-
filename = "#{@scope_object.haml_filename}.haml"
|
321
|
-
end
|
322
|
-
end
|
323
|
-
lineno = @scope_object.haml_lineno
|
324
|
-
|
325
|
-
if compile_error
|
326
|
-
eval_line = compile_error[0].to_i
|
327
|
-
line_marker = @precompiled.split("\n")[0...eval_line].grep(/@haml_lineno = [0-9]*/)[-1]
|
328
|
-
lineno = line_marker.scan(/[0-9]+/)[0].to_i if line_marker
|
329
|
-
end
|
330
|
-
|
331
|
-
e.backtrace.unshift "#{filename}:#{lineno}"
|
332
|
-
raise e
|
333
|
-
end
|
334
|
-
|
335
|
-
# Get rid of the current buffer
|
336
|
-
@scope_object.instance_eval do
|
337
|
-
@haml_stack.pop
|
338
|
-
end
|
339
|
-
end
|
340
|
-
|
341
|
-
# Evaluates <tt>text</tt> in the context of <tt>@scope_object</tt>, but
|
342
|
-
# does not output the result.
|
343
|
-
def push_silent(text, index = nil)
|
344
|
-
if index
|
345
|
-
@precompiled << "@haml_lineno = #{index + 1}\n#{text}\n"
|
346
|
-
else
|
347
|
-
# Not really DRY, but probably faster
|
348
|
-
@precompiled << "#{text}\n"
|
349
|
-
end
|
350
|
-
end
|
351
|
-
|
352
|
-
# Adds <tt>text</tt> to <tt>@buffer</tt> with appropriate tabulation
|
353
|
-
# without parsing it.
|
354
|
-
def push_text(text)
|
355
|
-
@precompiled << "_hamlout.push_text(#{text.dump}, #{@output_tabs})\n"
|
356
|
-
end
|
357
|
-
|
358
|
-
# Adds +text+ to <tt>@buffer</tt> while flattening text.
|
359
|
-
def push_flat(text, spaces)
|
360
|
-
tabulation = spaces - @flat_spaces
|
361
|
-
@precompiled << "_hamlout.push_text(#{text.dump}, #{tabulation > -1 ? tabulation : 0}, true)\n"
|
362
|
-
end
|
363
|
-
|
364
|
-
# Causes <tt>text</tt> to be evaluated in the context of
|
365
|
-
# <tt>@scope_object</tt> and the result to be added to <tt>@buffer</tt>.
|
366
|
-
#
|
367
|
-
# If <tt>flattened</tt> is true, Haml::Helpers#find_and_flatten is run on
|
368
|
-
# the result before it is added to <tt>@buffer</tt>
|
369
|
-
def push_script(text, flattened, block_opened, index)
|
370
|
-
unless options[:suppress_eval]
|
371
|
-
push_silent("haml_temp = #{text}", index)
|
372
|
-
out = "haml_temp = _hamlout.push_script(haml_temp, #{@output_tabs}, #{flattened})\n"
|
373
|
-
if block_opened
|
374
|
-
push_and_tabulate([:loud, out])
|
375
|
-
else
|
376
|
-
@precompiled << out
|
377
|
-
end
|
378
|
-
end
|
379
|
-
end
|
380
|
-
|
381
|
-
# Causes <tt>text</tt> to be evaluated, and Haml::Helpers#find_and_flatten
|
382
|
-
# to be run on it afterwards.
|
383
|
-
def push_flat_script(text, block_opened, index)
|
384
|
-
unless text.empty?
|
385
|
-
push_script(text, true, block_opened, index)
|
386
|
-
else
|
387
|
-
start_flat(false)
|
388
|
-
end
|
389
|
-
end
|
390
|
-
|
391
|
-
# Closes the most recent item in <tt>@to_close_stack</tt>.
|
392
|
-
def close
|
393
|
-
tag, value = @to_close_stack.pop
|
394
|
-
case tag
|
395
|
-
when :script
|
396
|
-
close_block
|
397
|
-
when :comment
|
398
|
-
close_comment value
|
399
|
-
when :element
|
400
|
-
close_tag value
|
401
|
-
when :flat
|
402
|
-
close_flat value
|
403
|
-
when :loud
|
404
|
-
close_loud value
|
405
|
-
end
|
406
|
-
end
|
407
|
-
|
408
|
-
# Puts a line in <tt>@precompiled</tt> that will add the closing tag of
|
409
|
-
# the most recently opened tag.
|
410
|
-
def close_tag(tag)
|
411
|
-
@output_tabs -= 1
|
412
|
-
@template_tabs -= 1
|
413
|
-
@precompiled << "_hamlout.close_tag(#{tag.dump}, #{@output_tabs})\n"
|
414
|
-
end
|
415
|
-
|
416
|
-
# Closes a Ruby block.
|
417
|
-
def close_block
|
418
|
-
push_silent "end"
|
419
|
-
@template_tabs -= 1
|
420
|
-
end
|
421
|
-
|
422
|
-
# Closes a comment.
|
423
|
-
def close_comment(has_conditional)
|
424
|
-
@output_tabs -= 1
|
425
|
-
@template_tabs -= 1
|
426
|
-
push_silent "_hamlout.close_comment(#{has_conditional}, #{@output_tabs})"
|
427
|
-
end
|
428
|
-
|
429
|
-
# Closes a flattened section.
|
430
|
-
def close_flat(in_tag)
|
431
|
-
@flat_spaces = -1
|
432
|
-
if in_tag
|
433
|
-
close
|
434
|
-
else
|
435
|
-
push_silent('_hamlout.stop_flat')
|
436
|
-
@template_tabs -= 1
|
437
|
-
end
|
438
|
-
end
|
439
|
-
|
440
|
-
# Closes a loud Ruby block.
|
441
|
-
def close_loud(command)
|
442
|
-
push_silent "end"
|
443
|
-
@precompiled << command
|
444
|
-
@template_tabs -= 1
|
445
|
-
end
|
446
|
-
|
447
|
-
# Parses a line that will render as an XHTML tag, and adds the code that will
|
448
|
-
# render that tag to <tt>@precompiled</tt>.
|
449
|
-
def render_tag(line, index)
|
450
|
-
line.scan(/[%]([-:_a-zA-Z0-9]+)([-_a-zA-Z0-9\.\#]*)(\{.*\})?(\[.*\])?([=\/\~]?)?(.*)?/) do |tag_name, attributes, attributes_hash, object_ref, action, value|
|
451
|
-
value = value.to_s
|
452
|
-
|
453
|
-
case action
|
454
|
-
when '/'
|
455
|
-
atomic = true
|
456
|
-
when '=', '~'
|
457
|
-
parse = true
|
458
|
-
else
|
459
|
-
value = value.strip
|
460
|
-
end
|
461
|
-
|
462
|
-
flattened = (action == '~')
|
463
|
-
value_exists = !value.empty?
|
464
|
-
attributes_hash = "nil" unless attributes_hash
|
465
|
-
object_ref = "nil" unless object_ref
|
466
|
-
|
467
|
-
push_silent "_hamlout.open_tag(#{tag_name.inspect}, #{@output_tabs}, #{atomic.inspect}, #{value_exists.inspect}, #{attributes.inspect}, #{attributes_hash}, #{object_ref}, #{flattened.inspect})"
|
468
|
-
|
469
|
-
unless atomic
|
470
|
-
push_and_tabulate([:element, tag_name])
|
471
|
-
@output_tabs += 1
|
472
|
-
|
473
|
-
if value_exists
|
474
|
-
if parse
|
475
|
-
push_script(value, flattened, false, index)
|
476
|
-
else
|
477
|
-
push_text(value)
|
478
|
-
end
|
479
|
-
close
|
480
|
-
elsif flattened
|
481
|
-
start_flat(true)
|
482
|
-
end
|
483
|
-
end
|
484
|
-
end
|
485
|
-
end
|
486
|
-
|
487
|
-
# Renders a line that creates an XHTML tag and has an implicit div because of
|
488
|
-
# <tt>.</tt> or <tt>#</tt>.
|
489
|
-
def render_div(line, index)
|
490
|
-
render_tag('%div' + line, index)
|
491
|
-
end
|
492
|
-
|
493
|
-
# Renders an XHTML comment.
|
494
|
-
def render_comment(line)
|
495
|
-
conditional, content = line.scan(/\/(\[[a-zA-Z0-9 \.]*\])?(.*)/)[0]
|
496
|
-
content = content.strip
|
497
|
-
try_one_line = !content.empty?
|
498
|
-
push_silent "_hamlout.open_comment(#{try_one_line}, #{conditional.inspect}, #{@output_tabs})"
|
499
|
-
@output_tabs += 1
|
500
|
-
push_and_tabulate([:comment, !conditional.nil?])
|
501
|
-
if try_one_line
|
502
|
-
push_text content
|
503
|
-
close
|
504
|
-
end
|
505
|
-
end
|
506
|
-
|
507
|
-
# Renders an XHTML doctype or XML shebang.
|
508
|
-
def render_doctype(line)
|
509
|
-
line = line[3..-1].lstrip.downcase
|
510
|
-
if line[0...3] == "xml"
|
511
|
-
encoding = line.split[1] || "utf-8"
|
512
|
-
wrapper = @options[:attr_wrapper]
|
513
|
-
doctype = "<?xml version=#{wrapper}1.0#{wrapper} encoding=#{wrapper}#{encoding}#{wrapper} ?>"
|
514
|
-
else
|
515
|
-
version, type = line.scan(/([0-9]\.[0-9])?[\s]*([a-zA-Z]*)/)[0]
|
516
|
-
if version == "1.1"
|
517
|
-
doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'
|
518
|
-
else
|
519
|
-
case type
|
520
|
-
when "strict"
|
521
|
-
doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'
|
522
|
-
when "frameset"
|
523
|
-
doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">'
|
524
|
-
else
|
525
|
-
doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
|
526
|
-
end
|
527
|
-
end
|
528
|
-
end
|
529
|
-
push_text doctype
|
530
|
-
end
|
531
|
-
|
532
|
-
# Starts a flattened block.
|
533
|
-
def start_flat(in_tag)
|
534
|
-
# @flat_spaces is the number of indentations in the template
|
535
|
-
# that forms the base of the flattened area
|
536
|
-
if in_tag
|
537
|
-
@to_close_stack.push([:flat, true])
|
538
|
-
else
|
539
|
-
push_and_tabulate([:flat])
|
540
|
-
end
|
541
|
-
@flat_spaces = @template_tabs * 2
|
542
|
-
end
|
543
|
-
|
544
|
-
# Counts the tabulation of a line.
|
545
|
-
def count_soft_tabs(line)
|
546
|
-
spaces = line.index(/[^ ]/)
|
547
|
-
spaces ? [spaces, spaces/2] : []
|
548
|
-
end
|
549
|
-
|
550
|
-
# Pushes value onto <tt>@to_close_stack</tt> and increases
|
551
|
-
# <tt>@template_tabs</tt>.
|
552
|
-
def push_and_tabulate(value)
|
553
|
-
@to_close_stack.push(value)
|
554
|
-
@template_tabs += 1
|
555
|
-
end
|
556
|
-
end
|
557
|
-
end
|