spiderfw 0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README +4 -0
- data/Rakefile +74 -0
- data/apps/cas_server/_init.rb +23 -0
- data/apps/cas_server/config/options.rb +9 -0
- data/apps/cas_server/controllers/mixins/cas_login_mixin.rb +353 -0
- data/apps/cas_server/lib/cas.rb +329 -0
- data/apps/cas_server/lib/utils.rb +30 -0
- data/apps/cas_server/models/login_ticket.rb +11 -0
- data/apps/cas_server/models/mixins/consumable.rb +10 -0
- data/apps/cas_server/models/proxy_granting_ticket.rb +12 -0
- data/apps/cas_server/models/proxy_ticket.rb +12 -0
- data/apps/cas_server/models/service_ticket.rb +22 -0
- data/apps/cas_server/models/ticket.rb +20 -0
- data/apps/cas_server/models/ticket_granting_ticket.rb +15 -0
- data/apps/cas_server/views/logout.shtml +3 -0
- data/apps/core/admin/_init.rb +23 -0
- data/apps/core/admin/admin.rb +17 -0
- data/apps/core/admin/controllers/admin_controller.rb +15 -0
- data/apps/core/admin/views/index.shtml +1 -0
- data/apps/core/admin/views/spider_admin.layout.shtml +23 -0
- data/apps/core/admin/widgets/admin_menu/admin_menu.rb +17 -0
- data/apps/core/auth/_init.rb +42 -0
- data/apps/core/auth/controllers/login_controller.rb +94 -0
- data/apps/core/auth/controllers/mixins/auth_helper.rb +114 -0
- data/apps/core/auth/controllers/mixins/http_basic_auth.rb +24 -0
- data/apps/core/auth/controllers/mixins/http_digest_auth.rb +26 -0
- data/apps/core/auth/lib/authenticable.rb +86 -0
- data/apps/core/auth/lib/authenticator.rb +11 -0
- data/apps/core/auth/lib/digest_authenticator.rb +44 -0
- data/apps/core/auth/lib/login_authenticator.rb +27 -0
- data/apps/core/auth/models/digest_user.rb +34 -0
- data/apps/core/auth/models/group.rb +22 -0
- data/apps/core/auth/models/login_user.rb +15 -0
- data/apps/core/auth/models/mixins/access_control.rb +71 -0
- data/apps/core/auth/models/mixins/authentication_tracking.rb +19 -0
- data/apps/core/auth/models/super_user.rb +8 -0
- data/apps/core/auth/models/user.rb +15 -0
- data/apps/core/auth/po/it/spider_auth.po +33 -0
- data/apps/core/auth/po/spider_auth.pot +31 -0
- data/apps/core/auth/views/login.shtml +25 -0
- data/apps/core/components/_init.rb +21 -0
- data/apps/core/components/po/it/spider_components.po +52 -0
- data/apps/core/components/po/spider_components.pot +53 -0
- data/apps/core/components/public/css/admin.css +73 -0
- data/apps/core/components/public/css/crud.css +58 -0
- data/apps/core/components/public/css/img/add.gif +0 -0
- data/apps/core/components/public/css/img/ajax-loader.gif +0 -0
- data/apps/core/components/public/css/img/back.gif +0 -0
- data/apps/core/components/public/css/img/bg_header.png +0 -0
- data/apps/core/components/public/css/img/body_bg.jpg +0 -0
- data/apps/core/components/public/css/img/gray_gradient.gif +0 -0
- data/apps/core/components/public/css/img/li_bg.png +0 -0
- data/apps/core/components/public/css/img/li_bg_active.png +0 -0
- data/apps/core/components/public/css/img/li_bg_hover.png +0 -0
- data/apps/core/components/public/css/img/logo.png +0 -0
- data/apps/core/components/public/css/img/menu_bg.png +0 -0
- data/apps/core/components/public/css/img/menu_bottom.png +0 -0
- data/apps/core/components/public/css/img/menu_top.png +0 -0
- data/apps/core/components/public/css/img/section-bottom.jpg +0 -0
- data/apps/core/components/public/css/list.css +7 -0
- data/apps/core/components/public/css/menu.css +47 -0
- data/apps/core/components/public/css/spider.css +9 -0
- data/apps/core/components/public/css/switcher.css +13 -0
- data/apps/core/components/public/css/table.css +99 -0
- data/apps/core/components/public/js/inheritance.js +71 -0
- data/apps/core/components/public/js/jquery/jquery-1.3.2.js +4376 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/smoothness/jquery-ui-1.7.2.custom.css +406 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/css/ui-lightness/jquery-ui-1.7.2.custom.css +406 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/AUTHORS.txt +30 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/GPL-LICENSE.txt +278 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/MIT-LICENSE.txt +25 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/ChangeLog.txt +20 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/META.json +32 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/jquery.bgiframe.js +100 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/jquery.bgiframe.min.js +10 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/jquery.bgiframe.pack.js +10 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/bgiframe/test/index.html +197 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/cookie/jquery.cookie.js +97 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/cookie/jquery.cookie.min.js +10 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/cookie/jquery.cookie.pack.js +10 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/cookie/jquery.cookie.zip +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/jsdiff/jsdiff.js +159 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/qunit/testrunner.js +780 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/qunit/testsuite.css +120 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/simulate/jquery.simulate.js +152 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/jquery-1.3.2.js +4376 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-icons_222222_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-icons_2e83ff_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-icons_454545_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-icons_888888_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.accordion.css +9 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.all.css +2 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.base.css +8 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.core.css +37 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.datepicker.css +62 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.dialog.css +13 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.progressbar.css +4 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.resizable.css +13 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.slider.css +17 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.tabs.css +11 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/base/ui.theme.css +245 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/jquery-ui-1.7.2.custom.css +406 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.accordion.css +9 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.all.css +2 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.base.css +8 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.core.css +37 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.datepicker.css +62 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.dialog.css +13 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.progressbar.css +4 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.resizable.css +13 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.slider.css +17 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.tabs.css +11 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/themes/ui-lightness/ui.theme.css +247 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.blind.js +49 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.bounce.js +78 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.clip.js +54 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.core.js +545 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.drop.js +50 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.explode.js +79 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.fold.js +56 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.highlight.js +48 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.pulsate.js +56 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.scale.js +180 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.shake.js +57 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.slide.js +50 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/effects.transfer.js +45 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/jquery-ui-i18n.js +771 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-ar.js +20 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-bg.js +20 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-ca.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-cs.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-da.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-de.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-el.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-eo.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-es.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-fa.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-fi.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-fr.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-he.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-hr.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-hu.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-hy.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-id.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-is.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-it.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-ja.js +20 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-ko.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-lt.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-lv.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-ms.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-nl.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-no.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-pl.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-pt-BR.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-ro.js +22 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-ru.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-sk.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-sl.js +20 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-sq.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-sr-SR.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-sr.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-sv.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-th.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-tr.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-uk.js +25 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-zh-CN.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/i18n/ui.datepicker-zh-TW.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/jquery-ui-1.7.2.custom.js +9133 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.accordion.js +477 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.core.js +519 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.datepicker.js +1636 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.dialog.js +671 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.draggable.js +766 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.droppable.js +282 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.progressbar.js +116 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.resizable.js +800 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.selectable.js +257 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.slider.js +558 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.sortable.js +1019 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/ui/ui.tabs.js +685 -0
- data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/version.txt +1 -0
- data/apps/core/components/public/js/jquery/jquery-ui/index.html +367 -0
- data/apps/core/components/public/js/jquery/jquery-ui/js/jquery-1.3.2.min.js +19 -0
- data/apps/core/components/public/js/jquery/jquery-ui/js/jquery-ui-1.7.2.custom.min.js +298 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/changelog.txt +27 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/jquery.autocomplete.css +48 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/jquery.autocomplete.js +808 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/jquery.autocomplete.min.js +13 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/jquery.autocomplete.pack.js +12 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/lib/jquery.ajaxQueue.js +116 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/lib/jquery.bgiframe.min.js +10 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/lib/jquery.js +3558 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/lib/thickbox-compressed.js +10 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/lib/thickbox.css +163 -0
- data/apps/core/components/public/js/jquery/plugins/jquery-autocomplete/todo +166 -0
- data/apps/core/components/public/js/jquery/plugins/jquery.form.js +653 -0
- data/apps/core/components/public/js/jquery/plugins/jquery.query-2.1.6.js +224 -0
- data/apps/core/components/public/js/jquery/plugins/jquery.url.js +214 -0
- data/apps/core/components/public/js/jquery/plugins/jtree/jquery.jtree.1.0.js +187 -0
- data/apps/core/components/public/js/jquery/plugins/jtree/jquery.jtree.1.0.min.js +1 -0
- data/apps/core/components/public/js/jquery/plugins/jtree/jquery.jtree.spider.1.0.js +193 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/changelog.txt +35 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/ajax-loader.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/file.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/folder-closed.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/folder.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/minus.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/plus.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-black-line.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-black.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-default-line.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-default.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-famfamfam-line.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-famfamfam.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-gray-line.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-gray.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-red-line.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/images/treeview-red.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/jquery.treeview.async.js +110 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/jquery.treeview.css +74 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/jquery.treeview.edit.js +37 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/jquery.treeview.js +256 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/jquery.treeview.min.js +15 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/jquery.treeview.pack.js +16 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/jquery.treeview.sortable.js +386 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/lib/jquery.cookie.js +92 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/lib/jquery.js +3534 -0
- data/apps/core/components/public/js/jquery/plugins/treeview/todo +8 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/LICENSE +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/README +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/jquery.timepickr.css +34 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/jquery.timepickr.js +1413 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/jquery.timepickr.min.js +10 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/222222_256x240_icons_icons.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/2e83ff_256x240_icons_icons.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/454545_256x240_icons_icons.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/888888_256x240_icons_icons.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/aaaaaa_40x100_textures_01_flat_0.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/cccccc_40x100_textures_03_highlight_soft_75.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/cd0a0a_256x240_icons_icons.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/dadada_40x100_textures_02_glass_75.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/e6e6e6_40x100_textures_02_glass_75.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/fbf9ee_40x100_textures_02_glass_55.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/fef1ec_40x100_textures_05_inset_soft_95.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/ffffff_40x100_textures_02_glass_65.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/images/ffffff_40x100_textures_02_glass_75.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.accordion.css +9 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.all.css +4 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.allplugins.css +7 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.core.css +37 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.datepicker.css +60 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.dialog.css +13 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.progressbar.css +4 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.resizable.css +13 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.slider.css +13 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.tabs.css +9 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.theme.css +238 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/themes/default/ui.timepickr.css +44 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/ui.timepickr.js +2307 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/dist/ui.timepickr.min.js +10 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/body-bg.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/btn-hover.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/btn.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/buttons.psd +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/index.html +326 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/jquery.anchorHandler.js +44 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/jquery.strings.js +290 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/jquery.ui.all.js +518 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/jquery.utils.js +255 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/jquery.utils.ui.min.js +26 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/logo-ff.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/logo-ie.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/logo.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/logo.psd +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/package.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/reset.css +48 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/script_code.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/styles.css +308 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/themeroller_ready_black_200px.gif +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/page/weather_sun.png +0 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/src/css/ui.dropslide.css +26 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/src/css/ui.timepickr.css +18 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/src/ui.dropslide.js +132 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/src/ui.timepickr.js +217 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/data/testrunner.js +1 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/index.html +34 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/otherlibs/jquery/1.2.1/jquery.js +11 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/otherlibs/jquery/1.2.3/jquery.js +11 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/qunit/testrunner.js +780 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/qunit/testsuite.css +120 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/styles.css +201 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/test.js +41 -0
- data/apps/core/components/public/js/jquery/plugins/ui-timepickr/test/unit/ui.timepickr.js +154 -0
- data/apps/core/components/public/js/list.js +234 -0
- data/apps/core/components/public/js/spider.js +484 -0
- data/apps/core/components/public/widgets/search_table.js +10 -0
- data/apps/core/components/public/widgets/table.js +9 -0
- data/apps/core/components/widgets/admin/admin.rb +75 -0
- data/apps/core/components/widgets/admin/admin.shtml +16 -0
- data/apps/core/components/widgets/confirm/confirm.rb +37 -0
- data/apps/core/components/widgets/confirm/confirm.shtml +9 -0
- data/apps/core/components/widgets/crud/crud.rb +119 -0
- data/apps/core/components/widgets/crud/crud.shtml +59 -0
- data/apps/core/components/widgets/crud/form_table/form_table.rb +13 -0
- data/apps/core/components/widgets/crud/form_table/form_table.shtml +3 -0
- data/apps/core/components/widgets/list/list.rb +294 -0
- data/apps/core/components/widgets/list/list.shtml +38 -0
- data/apps/core/components/widgets/list/plugins/exportable/exportable_list.rb +19 -0
- data/apps/core/components/widgets/list/plugins/exportable/exportable_list.shtml +5 -0
- data/apps/core/components/widgets/menu/menu.rb +20 -0
- data/apps/core/components/widgets/menu/menu.shtml +13 -0
- data/apps/core/components/widgets/search_table/search_table.rb +22 -0
- data/apps/core/components/widgets/search_table/search_table.shtml +11 -0
- data/apps/core/components/widgets/switcher/switcher.rb +68 -0
- data/apps/core/components/widgets/switcher/switcher.shtml +17 -0
- data/apps/core/components/widgets/table/table.rb +153 -0
- data/apps/core/components/widgets/table/table.shtml +41 -0
- data/apps/core/components/widgets/tabs/tabs.rb +38 -0
- data/apps/core/components/widgets/tabs/tabs.shtml +2 -0
- data/apps/core/forms/_init.rb +22 -0
- data/apps/core/forms/po/it/spider_forms.po +36 -0
- data/apps/core/forms/po/spider_forms.pot +37 -0
- data/apps/core/forms/public/date_time.js +23 -0
- data/apps/core/forms/public/form.css +81 -0
- data/apps/core/forms/public/form.js +19 -0
- data/apps/core/forms/public/input.js +30 -0
- data/apps/core/forms/public/search_select.js +123 -0
- data/apps/core/forms/public/select.js +11 -0
- data/apps/core/forms/tags/element_label.erb +1 -0
- data/apps/core/forms/tags/element_row.erb +4 -0
- data/apps/core/forms/tags/row.erb +4 -0
- data/apps/core/forms/widgets/form/form.rb +430 -0
- data/apps/core/forms/widgets/form/form.shtml +47 -0
- data/apps/core/forms/widgets/inputs/checkbox/checkbox.rb +13 -0
- data/apps/core/forms/widgets/inputs/checkbox/checkbox.shtml +3 -0
- data/apps/core/forms/widgets/inputs/date_time/date_time.rb +48 -0
- data/apps/core/forms/widgets/inputs/date_time/date_time.shtml +4 -0
- data/apps/core/forms/widgets/inputs/hidden/hidden.rb +8 -0
- data/apps/core/forms/widgets/inputs/hidden/hidden.shtml +3 -0
- data/apps/core/forms/widgets/inputs/input/input.rb +105 -0
- data/apps/core/forms/widgets/inputs/input/input.shtml +3 -0
- data/apps/core/forms/widgets/inputs/input/readonly.shtml +6 -0
- data/apps/core/forms/widgets/inputs/password/password.rb +24 -0
- data/apps/core/forms/widgets/inputs/password/password.shtml +5 -0
- data/apps/core/forms/widgets/inputs/search_select/search_select.rb +168 -0
- data/apps/core/forms/widgets/inputs/search_select/search_select.shtml +42 -0
- data/apps/core/forms/widgets/inputs/select/select.rb +126 -0
- data/apps/core/forms/widgets/inputs/select/select.shtml +8 -0
- data/apps/core/forms/widgets/inputs/subform/subform.rb +10 -0
- data/apps/core/forms/widgets/inputs/subform/subform.shtml +5 -0
- data/apps/core/forms/widgets/inputs/text/text.rb +9 -0
- data/apps/core/forms/widgets/inputs/text/text.shtml +3 -0
- data/apps/core/forms/widgets/inputs/text_area/text_area.rb +10 -0
- data/apps/core/forms/widgets/inputs/text_area/text_area.shtml +1 -0
- data/apps/drb_server/_init.rb +8 -0
- data/apps/drb_server/lib/model_server.rb +41 -0
- data/apps/drb_server/script/start_server.rb +19 -0
- data/apps/hippo/_init.rb +10 -0
- data/apps/hippo/models/mixins/hippo_struct.rb +210 -0
- data/apps/hippo/models/security_group.rb +21 -0
- data/apps/hippo/models/security_user.rb +29 -0
- data/apps/messenger/_init.rb +24 -0
- data/apps/messenger/config/options.rb +15 -0
- data/apps/messenger/config/worker.rb +3 -0
- data/apps/messenger/controllers/messenger_controller.rb +80 -0
- data/apps/messenger/controllers/mixins/messenger_controller_mixin.rb +54 -0
- data/apps/messenger/lib/backends/email/smtp.rb +0 -0
- data/apps/messenger/messenger.rb +94 -0
- data/apps/messenger/models/email.rb +22 -0
- data/apps/messenger/models/message.rb +44 -0
- data/apps/messenger/po/it/spider_messenger.po +77 -0
- data/apps/messenger/po/spider_messenger.pot +77 -0
- data/apps/messenger/views/index.shtml +13 -0
- data/apps/messenger/views/list.shtml +5 -0
- data/apps/messenger/views/messenger.layout.shtml +4 -0
- data/apps/messenger/views/queue.shtml +8 -0
- data/apps/messenger/views/tags/sent_messages.shtml +1 -0
- data/apps/soap/_init.rb +16 -0
- data/apps/soap/controllers/soap_controller.rb +334 -0
- data/apps/soap/doc/examples/example.rb +28 -0
- data/apps/soap/lib/soap.rb +217 -0
- data/apps/sso/_init.rb +16 -0
- data/apps/sso/config/options.rb +13 -0
- data/apps/sso/controllers/mixins/saml2_mixin.rb +149 -0
- data/apps/sso/lib/saml2/backend.rb +16 -0
- data/apps/sso/lib/saml2/lasso_backend.rb +88 -0
- data/apps/sso/lib/saml2.rb +112 -0
- data/apps/sso/views/saml2_post.shtml +19 -0
- data/apps/webdav/_init.rb +15 -0
- data/apps/webdav/controllers/webdav_controller.rb +862 -0
- data/apps/webdav/lib/locking.rb +193 -0
- data/apps/webdav/lib/vfs/abstract.rb +78 -0
- data/apps/webdav/lib/vfs/local.rb +126 -0
- data/apps/webdav/lib/vfs/mapped.rb +235 -0
- data/apps/webdav/lib/vfs/properties.rb +41 -0
- data/apps/worker/_init.rb +13 -0
- data/apps/worker/cmd.rb +65 -0
- data/apps/worker/config/options.rb +9 -0
- data/apps/worker/lib/runner.rb +43 -0
- data/apps/worker/lib/task.rb +9 -0
- data/apps/worker/models/job.rb +20 -0
- data/apps/worker/worker.rb +168 -0
- data/bin/spider +9 -0
- data/blueprints/app/_init.rb +10 -0
- data/blueprints/app/controllers/__APP___controller.rb +14 -0
- data/blueprints/app/views/__APP__.layout.shtml +8 -0
- data/blueprints/app/views/index.shtml +3 -0
- data/blueprints/install/config/config.yml +14 -0
- data/blueprints/install/init.rb +3 -0
- data/data/locale/it/LC_MESSAGES/spider.mo +0 -0
- data/data/locale/it/LC_MESSAGES/spider_auth.mo +0 -0
- data/data/locale/it/LC_MESSAGES/spider_components.mo +0 -0
- data/data/locale/it/LC_MESSAGES/spider_forms.mo +0 -0
- data/data/locale/it/LC_MESSAGES/spider_messenger.mo +0 -0
- data/lib/spiderfw/app.rb +186 -0
- data/lib/spiderfw/autoload.rb +12 -0
- data/lib/spiderfw/cache/template_cache.rb +136 -0
- data/lib/spiderfw/cmd/cmd.rb +72 -0
- data/lib/spiderfw/cmd/commands/cert.rb +427 -0
- data/lib/spiderfw/cmd/commands/console.rb +27 -0
- data/lib/spiderfw/cmd/commands/init.rb +52 -0
- data/lib/spiderfw/cmd/commands/model.rb +131 -0
- data/lib/spiderfw/cmd/commands/setup.rb +54 -0
- data/lib/spiderfw/cmd/commands/test.rb +61 -0
- data/lib/spiderfw/cmd/commands/webserver.rb +93 -0
- data/lib/spiderfw/config/configurable.rb +38 -0
- data/lib/spiderfw/config/configuration.rb +281 -0
- data/lib/spiderfw/config/options/spider.rb +122 -0
- data/lib/spiderfw/controller/app_controller.rb +14 -0
- data/lib/spiderfw/controller/controller.rb +321 -0
- data/lib/spiderfw/controller/controller_exceptions.rb +27 -0
- data/lib/spiderfw/controller/controller_io.rb +26 -0
- data/lib/spiderfw/controller/controller_mixin.rb +12 -0
- data/lib/spiderfw/controller/cookie.rb +20 -0
- data/lib/spiderfw/controller/cookies.rb +17 -0
- data/lib/spiderfw/controller/dispatcher.rb +269 -0
- data/lib/spiderfw/controller/first_responder.rb +59 -0
- data/lib/spiderfw/controller/formats/html.rb +90 -0
- data/lib/spiderfw/controller/helpers/widget_helper.rb +73 -0
- data/lib/spiderfw/controller/home_controller.rb +26 -0
- data/lib/spiderfw/controller/http_controller.rb +112 -0
- data/lib/spiderfw/controller/mixins/http_mixin.rb +228 -0
- data/lib/spiderfw/controller/mixins/static_content.rb +90 -0
- data/lib/spiderfw/controller/mixins/visual.rb +489 -0
- data/lib/spiderfw/controller/page_controller.rb +39 -0
- data/lib/spiderfw/controller/request.rb +48 -0
- data/lib/spiderfw/controller/response.rb +50 -0
- data/lib/spiderfw/controller/router.rb +9 -0
- data/lib/spiderfw/controller/scene.rb +27 -0
- data/lib/spiderfw/controller/session/file_session.rb +83 -0
- data/lib/spiderfw/controller/session/flash_hash.rb +56 -0
- data/lib/spiderfw/controller/session/memory_session.rb +62 -0
- data/lib/spiderfw/controller/session/transient_hash.rb +18 -0
- data/lib/spiderfw/controller/session.rb +106 -0
- data/lib/spiderfw/controller/spider_controller.rb +20 -0
- data/lib/spiderfw/create.rb +64 -0
- data/lib/spiderfw/env.rb +17 -0
- data/lib/spiderfw/exceptions.rb +2 -0
- data/lib/spiderfw/home.rb +26 -0
- data/lib/spiderfw/http/adapters/cgi.rb +62 -0
- data/lib/spiderfw/http/adapters/cgi_io.rb +27 -0
- data/lib/spiderfw/http/adapters/fcgi.rb +62 -0
- data/lib/spiderfw/http/adapters/mongrel.rb +207 -0
- data/lib/spiderfw/http/adapters/rack.rb +152 -0
- data/lib/spiderfw/http/adapters/thin.rb +38 -0
- data/lib/spiderfw/http/adapters/webrick.rb +176 -0
- data/lib/spiderfw/http/http.rb +297 -0
- data/lib/spiderfw/http/server.rb +40 -0
- data/lib/spiderfw/i18n/cldr.rb +114 -0
- data/lib/spiderfw/i18n/gettext.rb +8 -0
- data/lib/spiderfw/i18n/i18n.rb +120 -0
- data/lib/spiderfw/i18n/provider.rb +12 -0
- data/lib/spiderfw/i18n/rails.rb +89 -0
- data/lib/spiderfw/i18n/shtml_parser.rb +41 -0
- data/lib/spiderfw/model/active_record.rb +335 -0
- data/lib/spiderfw/model/base_model.rb +2068 -0
- data/lib/spiderfw/model/condition.rb +416 -0
- data/lib/spiderfw/model/data_type.rb +75 -0
- data/lib/spiderfw/model/datatypes/binary.rb +10 -0
- data/lib/spiderfw/model/datatypes/bool.rb +10 -0
- data/lib/spiderfw/model/datatypes/decimal.rb +22 -0
- data/lib/spiderfw/model/datatypes/email.rb +13 -0
- data/lib/spiderfw/model/datatypes/password.rb +63 -0
- data/lib/spiderfw/model/datatypes/serialized_object.rb +32 -0
- data/lib/spiderfw/model/datatypes/text.rb +10 -0
- data/lib/spiderfw/model/datatypes/uuid.rb +29 -0
- data/lib/spiderfw/model/datatypes.rb +19 -0
- data/lib/spiderfw/model/element.rb +250 -0
- data/lib/spiderfw/model/extended_models/managed.rb +43 -0
- data/lib/spiderfw/model/identity_mapper.rb +89 -0
- data/lib/spiderfw/model/inline_model.rb +37 -0
- data/lib/spiderfw/model/mappers/db_mapper.rb +1126 -0
- data/lib/spiderfw/model/mappers/hash_mapper.rb +114 -0
- data/lib/spiderfw/model/mappers/mapper.rb +926 -0
- data/lib/spiderfw/model/mappers/mappers.rb +7 -0
- data/lib/spiderfw/model/mappers/proxy_mapper.rb +25 -0
- data/lib/spiderfw/model/mappers/vfs/flat_file.rb +31 -0
- data/lib/spiderfw/model/mixins/converted.rb +110 -0
- data/lib/spiderfw/model/mixins/list.rb +135 -0
- data/lib/spiderfw/model/mixins/mixins.rb +7 -0
- data/lib/spiderfw/model/mixins/state_machine.rb +81 -0
- data/lib/spiderfw/model/mixins/synchronized.rb +88 -0
- data/lib/spiderfw/model/mixins/tree.rb +296 -0
- data/lib/spiderfw/model/mixins/versioned.rb +147 -0
- data/lib/spiderfw/model/model.rb +226 -0
- data/lib/spiderfw/model/model_hash.rb +50 -0
- data/lib/spiderfw/model/proxy_model.rb +37 -0
- data/lib/spiderfw/model/query.rb +147 -0
- data/lib/spiderfw/model/query_funcs.rb +99 -0
- data/lib/spiderfw/model/query_set.rb +700 -0
- data/lib/spiderfw/model/request.rb +80 -0
- data/lib/spiderfw/model/storage/base_storage.rb +110 -0
- data/lib/spiderfw/model/storage/db/adapters/mssql.rb +129 -0
- data/lib/spiderfw/model/storage/db/adapters/mysql.rb +436 -0
- data/lib/spiderfw/model/storage/db/adapters/oci8.rb +533 -0
- data/lib/spiderfw/model/storage/db/adapters/sqlite.rb +163 -0
- data/lib/spiderfw/model/storage/db/connectors/odbc.rb +213 -0
- data/lib/spiderfw/model/storage/db/db.rb +13 -0
- data/lib/spiderfw/model/storage/db/db_connection_pool.rb +126 -0
- data/lib/spiderfw/model/storage/db/db_connector.rb +9 -0
- data/lib/spiderfw/model/storage/db/db_schema.rb +233 -0
- data/lib/spiderfw/model/storage/db/db_storage.rb +872 -0
- data/lib/spiderfw/model/storage/db/dialects/no_total_rows.rb +18 -0
- data/lib/spiderfw/model/storage/db/reflector.rb +36 -0
- data/lib/spiderfw/model/storage/null_storage.rb +18 -0
- data/lib/spiderfw/model/storage/schema.rb +19 -0
- data/lib/spiderfw/model/storage.rb +72 -0
- data/lib/spiderfw/model/sync.rb +94 -0
- data/lib/spiderfw/model/type.rb +13 -0
- data/lib/spiderfw/model/unit_of_work.rb +75 -0
- data/lib/spiderfw/requires.rb +21 -0
- data/lib/spiderfw/resource.rb +18 -0
- data/lib/spiderfw/setup/setup_task.rb +44 -0
- data/lib/spiderfw/tag/tag.rb +28 -0
- data/lib/spiderfw/templates/blocks/attr_if.rb +32 -0
- data/lib/spiderfw/templates/blocks/comment.rb +38 -0
- data/lib/spiderfw/templates/blocks/debugger.rb +16 -0
- data/lib/spiderfw/templates/blocks/each.rb +51 -0
- data/lib/spiderfw/templates/blocks/html.rb +70 -0
- data/lib/spiderfw/templates/blocks/if.rb +35 -0
- data/lib/spiderfw/templates/blocks/pass.rb +16 -0
- data/lib/spiderfw/templates/blocks/render.rb +23 -0
- data/lib/spiderfw/templates/blocks/run.rb +30 -0
- data/lib/spiderfw/templates/blocks/tag.rb +21 -0
- data/lib/spiderfw/templates/blocks/tag_if.rb +29 -0
- data/lib/spiderfw/templates/blocks/text.rb +43 -0
- data/lib/spiderfw/templates/blocks/widget.rb +58 -0
- data/lib/spiderfw/templates/blocks/yield.rb +18 -0
- data/lib/spiderfw/templates/layout.rb +44 -0
- data/lib/spiderfw/templates/resources/less.rb +14 -0
- data/lib/spiderfw/templates/template.rb +625 -0
- data/lib/spiderfw/templates/template_blocks.rb +185 -0
- data/lib/spiderfw/utils/annotations.rb +201 -0
- data/lib/spiderfw/utils/fork.rb +75 -0
- data/lib/spiderfw/utils/hash_comparison.rb +8 -0
- data/lib/spiderfw/utils/inflector.rb +42 -0
- data/lib/spiderfw/utils/logger.rb +92 -0
- data/lib/spiderfw/utils/monkey/class.rb +59 -0
- data/lib/spiderfw/utils/monkey/date_time.rb +34 -0
- data/lib/spiderfw/utils/monkey/debugger.rb +25 -0
- data/lib/spiderfw/utils/monkey/exception.rb +23 -0
- data/lib/spiderfw/utils/monkey/kernel.rb +12 -0
- data/lib/spiderfw/utils/monkey/module.rb +12 -0
- data/lib/spiderfw/utils/monkey/symbol.rb +7 -0
- data/lib/spiderfw/utils/monkey/time.rb +17 -0
- data/lib/spiderfw/utils/multi_level_hash.rb +33 -0
- data/lib/spiderfw/utils/periodic_runner.rb +50 -0
- data/lib/spiderfw/utils/rails.rb +78 -0
- data/lib/spiderfw/utils/rails_app.rb +53 -0
- data/lib/spiderfw/utils/sanitizer.rb +178 -0
- data/lib/spiderfw/utils/setup_task.rb +35 -0
- data/lib/spiderfw/utils/shared_store/file_shared_store.rb +73 -0
- data/lib/spiderfw/utils/shared_store/memory_shared_store.rb +46 -0
- data/lib/spiderfw/utils/shared_store.rb +47 -0
- data/lib/spiderfw/utils/test_case.rb +24 -0
- data/lib/spiderfw/utils/thread_out.rb +24 -0
- data/lib/spiderfw/version.rb +3 -0
- data/lib/spiderfw/widget/rest_model.rb +20 -0
- data/lib/spiderfw/widget/widget.rb +671 -0
- data/lib/spiderfw/widget/widget_attributes.rb +54 -0
- data/lib/spiderfw/widget/widget_plugin.rb +37 -0
- data/lib/spiderfw.rb +509 -0
- data/spider.gemspec +43 -0
- data/views/errors/404.shtml +6 -0
- data/views/errors/error.layout.shtml +70 -0
- data/views/errors/error_generic.shtml +6 -0
- metadata +800 -0
data/apps/core/components/public/js/jquery/jquery-ui/development-bundle/external/qunit/testrunner.js
ADDED
@@ -0,0 +1,780 @@
|
|
1
|
+
/*
|
2
|
+
* QUnit - jQuery unit testrunner
|
3
|
+
*
|
4
|
+
* http://docs.jquery.com/QUnit
|
5
|
+
*
|
6
|
+
* Copyright (c) 2008 John Resig, Jörn Zaefferer
|
7
|
+
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
8
|
+
* and GPL (GPL-LICENSE.txt) licenses.
|
9
|
+
*
|
10
|
+
* $Id: testrunner.js 6173 2009-02-02 20:09:32Z jeresig $
|
11
|
+
*/
|
12
|
+
|
13
|
+
(function($) {
|
14
|
+
|
15
|
+
// Tests for equality any JavaScript type and structure without unexpected results.
|
16
|
+
// Discussions and reference: http://philrathe.com/articles/equiv
|
17
|
+
// Test suites: http://philrathe.com/tests/equiv
|
18
|
+
// Author: Philippe Rathé <prathe@gmail.com>
|
19
|
+
var equiv = function () {
|
20
|
+
|
21
|
+
var innerEquiv; // the real equiv function
|
22
|
+
var callers = []; // stack to decide between skip/abort functions
|
23
|
+
|
24
|
+
// Determine what is o.
|
25
|
+
function hoozit(o) {
|
26
|
+
if (typeof o === "string") {
|
27
|
+
return "string";
|
28
|
+
|
29
|
+
} else if (typeof o === "boolean") {
|
30
|
+
return "boolean";
|
31
|
+
|
32
|
+
} else if (typeof o === "number") {
|
33
|
+
|
34
|
+
if (isNaN(o)) {
|
35
|
+
return "nan";
|
36
|
+
} else {
|
37
|
+
return "number";
|
38
|
+
}
|
39
|
+
|
40
|
+
} else if (typeof o === "undefined") {
|
41
|
+
return "undefined";
|
42
|
+
|
43
|
+
// consider: typeof null === object
|
44
|
+
} else if (o === null) {
|
45
|
+
return "null";
|
46
|
+
|
47
|
+
// consider: typeof [] === object
|
48
|
+
} else if (o instanceof Array) {
|
49
|
+
return "array";
|
50
|
+
|
51
|
+
// consider: typeof new Date() === object
|
52
|
+
} else if (o instanceof Date) {
|
53
|
+
return "date";
|
54
|
+
|
55
|
+
// consider: /./ instanceof Object;
|
56
|
+
// /./ instanceof RegExp;
|
57
|
+
// typeof /./ === "function"; // => false in IE and Opera,
|
58
|
+
// true in FF and Safari
|
59
|
+
} else if (o instanceof RegExp) {
|
60
|
+
return "regexp";
|
61
|
+
|
62
|
+
} else if (typeof o === "object") {
|
63
|
+
return "object";
|
64
|
+
|
65
|
+
} else if (o instanceof Function) {
|
66
|
+
return "function";
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
// Call the o related callback with the given arguments.
|
71
|
+
function bindCallbacks(o, callbacks, args) {
|
72
|
+
var prop = hoozit(o);
|
73
|
+
if (prop) {
|
74
|
+
if (hoozit(callbacks[prop]) === "function") {
|
75
|
+
return callbacks[prop].apply(callbacks, args);
|
76
|
+
} else {
|
77
|
+
return callbacks[prop]; // or undefined
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
var callbacks = function () {
|
83
|
+
|
84
|
+
// for string, boolean, number and null
|
85
|
+
function useStrictEquality(b, a) {
|
86
|
+
return a === b;
|
87
|
+
}
|
88
|
+
|
89
|
+
return {
|
90
|
+
"string": useStrictEquality,
|
91
|
+
"boolean": useStrictEquality,
|
92
|
+
"number": useStrictEquality,
|
93
|
+
"null": useStrictEquality,
|
94
|
+
"undefined": useStrictEquality,
|
95
|
+
|
96
|
+
"nan": function (b) {
|
97
|
+
return isNaN(b);
|
98
|
+
},
|
99
|
+
|
100
|
+
"date": function (b, a) {
|
101
|
+
return hoozit(b) === "date" && a.valueOf() === b.valueOf();
|
102
|
+
},
|
103
|
+
|
104
|
+
"regexp": function (b, a) {
|
105
|
+
return hoozit(b) === "regexp" &&
|
106
|
+
a.source === b.source && // the regex itself
|
107
|
+
a.global === b.global && // and its modifers (gmi) ...
|
108
|
+
a.ignoreCase === b.ignoreCase &&
|
109
|
+
a.multiline === b.multiline;
|
110
|
+
},
|
111
|
+
|
112
|
+
// - skip when the property is a method of an instance (OOP)
|
113
|
+
// - abort otherwise,
|
114
|
+
// initial === would have catch identical references anyway
|
115
|
+
"function": function () {
|
116
|
+
var caller = callers[callers.length - 1];
|
117
|
+
return caller !== Object &&
|
118
|
+
typeof caller !== "undefined";
|
119
|
+
},
|
120
|
+
|
121
|
+
"array": function (b, a) {
|
122
|
+
var i;
|
123
|
+
var len;
|
124
|
+
|
125
|
+
// b could be an object literal here
|
126
|
+
if ( ! (hoozit(b) === "array")) {
|
127
|
+
return false;
|
128
|
+
}
|
129
|
+
|
130
|
+
len = a.length;
|
131
|
+
if (len !== b.length) { // safe and faster
|
132
|
+
return false;
|
133
|
+
}
|
134
|
+
for (i = 0; i < len; i++) {
|
135
|
+
if( ! innerEquiv(a[i], b[i])) {
|
136
|
+
return false;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
return true;
|
140
|
+
},
|
141
|
+
|
142
|
+
"object": function (b, a) {
|
143
|
+
var i;
|
144
|
+
var eq = true; // unless we can proove it
|
145
|
+
var aProperties = [], bProperties = []; // collection of strings
|
146
|
+
|
147
|
+
// comparing constructors is more strict than using instanceof
|
148
|
+
if ( a.constructor !== b.constructor) {
|
149
|
+
return false;
|
150
|
+
}
|
151
|
+
|
152
|
+
// stack constructor before traversing properties
|
153
|
+
callers.push(a.constructor);
|
154
|
+
|
155
|
+
for (i in a) { // be strict: don't ensures hasOwnProperty and go deep
|
156
|
+
|
157
|
+
aProperties.push(i); // collect a's properties
|
158
|
+
|
159
|
+
if ( ! innerEquiv(a[i], b[i])) {
|
160
|
+
eq = false;
|
161
|
+
}
|
162
|
+
}
|
163
|
+
|
164
|
+
callers.pop(); // unstack, we are done
|
165
|
+
|
166
|
+
for (i in b) {
|
167
|
+
bProperties.push(i); // collect b's properties
|
168
|
+
}
|
169
|
+
|
170
|
+
// Ensures identical properties name
|
171
|
+
return eq && innerEquiv(aProperties.sort(), bProperties.sort());
|
172
|
+
}
|
173
|
+
};
|
174
|
+
}();
|
175
|
+
|
176
|
+
innerEquiv = function () { // can take multiple arguments
|
177
|
+
var args = Array.prototype.slice.apply(arguments);
|
178
|
+
if (args.length < 2) {
|
179
|
+
return true; // end transition
|
180
|
+
}
|
181
|
+
|
182
|
+
return (function (a, b) {
|
183
|
+
if (a === b) {
|
184
|
+
return true; // catch the most you can
|
185
|
+
|
186
|
+
} else if (typeof a !== typeof b || a === null || b === null || typeof a === "undefined" || typeof b === "undefined") {
|
187
|
+
return false; // don't lose time with error prone cases
|
188
|
+
|
189
|
+
} else {
|
190
|
+
return bindCallbacks(a, callbacks, [b, a]);
|
191
|
+
}
|
192
|
+
|
193
|
+
// apply transition with (1..n) arguments
|
194
|
+
})(args[0], args[1]) && arguments.callee.apply(this, args.splice(1, args.length -1));
|
195
|
+
};
|
196
|
+
|
197
|
+
return innerEquiv;
|
198
|
+
}(); // equiv
|
199
|
+
|
200
|
+
var GETParams = $.map( location.search.slice(1).split('&'), decodeURIComponent ),
|
201
|
+
ngindex = $.inArray("noglobals", GETParams),
|
202
|
+
noglobals = ngindex !== -1;
|
203
|
+
|
204
|
+
if( noglobals )
|
205
|
+
GETParams.splice( ngindex, 1 );
|
206
|
+
|
207
|
+
var config = {
|
208
|
+
stats: {
|
209
|
+
all: 0,
|
210
|
+
bad: 0
|
211
|
+
},
|
212
|
+
queue: [],
|
213
|
+
// block until document ready
|
214
|
+
blocking: true,
|
215
|
+
//restrict modules/tests by get parameters
|
216
|
+
filters: GETParams,
|
217
|
+
isLocal: !!(window.location.protocol == 'file:')
|
218
|
+
};
|
219
|
+
|
220
|
+
// public API as global methods
|
221
|
+
$.extend(window, {
|
222
|
+
test: test,
|
223
|
+
module: module,
|
224
|
+
expect: expect,
|
225
|
+
ok: ok,
|
226
|
+
equals: equals,
|
227
|
+
start: start,
|
228
|
+
stop: stop,
|
229
|
+
reset: reset,
|
230
|
+
isLocal: config.isLocal,
|
231
|
+
same: function(a, b, message) {
|
232
|
+
push(equiv(a, b), a, b, message);
|
233
|
+
},
|
234
|
+
QUnit: {
|
235
|
+
equiv: equiv,
|
236
|
+
ok: ok,
|
237
|
+
done: function(failures, total){},
|
238
|
+
log: function(result, message){}
|
239
|
+
},
|
240
|
+
// legacy methods below
|
241
|
+
isSet: isSet,
|
242
|
+
isObj: isObj,
|
243
|
+
compare: function() {
|
244
|
+
throw "compare is deprecated - use same() instead";
|
245
|
+
},
|
246
|
+
compare2: function() {
|
247
|
+
throw "compare2 is deprecated - use same() instead";
|
248
|
+
},
|
249
|
+
serialArray: function() {
|
250
|
+
throw "serialArray is deprecated - use jsDump.parse() instead";
|
251
|
+
},
|
252
|
+
q: q,
|
253
|
+
t: t,
|
254
|
+
url: url,
|
255
|
+
triggerEvent: triggerEvent
|
256
|
+
});
|
257
|
+
|
258
|
+
$(window).load(function() {
|
259
|
+
$('#userAgent').html(navigator.userAgent);
|
260
|
+
var head = $('<div class="testrunner-toolbar"><label for="filter-pass">Hide passed tests</label></div>').insertAfter("#userAgent");
|
261
|
+
$('<input type="checkbox" id="filter-pass" />').attr("disabled", true).prependTo(head).click(function() {
|
262
|
+
$('li.pass')[this.checked ? 'hide' : 'show']();
|
263
|
+
});
|
264
|
+
$('<input type="checkbox" id="filter-missing">').attr("disabled", true).appendTo(head).click(function() {
|
265
|
+
$("li.fail:contains('missing test - untested code is broken code')").parent('ol').parent('li.fail')[this.checked ? 'hide' : 'show']();
|
266
|
+
});
|
267
|
+
$("#filter-missing").after('<label for="filter-missing">Hide missing tests (untested code is broken code)</label>');
|
268
|
+
runTest();
|
269
|
+
});
|
270
|
+
|
271
|
+
function synchronize(callback) {
|
272
|
+
config.queue.push(callback);
|
273
|
+
if(!config.blocking) {
|
274
|
+
process();
|
275
|
+
}
|
276
|
+
}
|
277
|
+
|
278
|
+
function process() {
|
279
|
+
while(config.queue.length && !config.blocking) {
|
280
|
+
config.queue.shift()();
|
281
|
+
}
|
282
|
+
}
|
283
|
+
|
284
|
+
function stop(timeout) {
|
285
|
+
config.blocking = true;
|
286
|
+
if (timeout)
|
287
|
+
config.timeout = setTimeout(function() {
|
288
|
+
QUnit.ok( false, "Test timed out" );
|
289
|
+
start();
|
290
|
+
}, timeout);
|
291
|
+
}
|
292
|
+
function start() {
|
293
|
+
// A slight delay, to avoid any current callbacks
|
294
|
+
setTimeout(function() {
|
295
|
+
if(config.timeout)
|
296
|
+
clearTimeout(config.timeout);
|
297
|
+
config.blocking = false;
|
298
|
+
process();
|
299
|
+
}, 13);
|
300
|
+
}
|
301
|
+
|
302
|
+
function validTest( name ) {
|
303
|
+
var i = config.filters.length,
|
304
|
+
run = false;
|
305
|
+
|
306
|
+
if( !i )
|
307
|
+
return true;
|
308
|
+
|
309
|
+
while( i-- ){
|
310
|
+
var filter = config.filters[i],
|
311
|
+
not = filter.charAt(0) == '!';
|
312
|
+
if( not )
|
313
|
+
filter = filter.slice(1);
|
314
|
+
if( name.indexOf(filter) != -1 )
|
315
|
+
return !not;
|
316
|
+
if( not )
|
317
|
+
run = true;
|
318
|
+
}
|
319
|
+
return run;
|
320
|
+
}
|
321
|
+
|
322
|
+
function runTest() {
|
323
|
+
config.blocking = false;
|
324
|
+
var started = +new Date;
|
325
|
+
config.fixture = document.getElementById('main').innerHTML;
|
326
|
+
config.ajaxSettings = $.ajaxSettings;
|
327
|
+
synchronize(function() {
|
328
|
+
$('<p id="testresult" class="result"/>').html(['Tests completed in ',
|
329
|
+
+new Date - started, ' milliseconds.<br/>',
|
330
|
+
'<span class="bad">', config.stats.bad, '</span> tests of <span class="all">', config.stats.all, '</span> failed.']
|
331
|
+
.join(''))
|
332
|
+
.appendTo("body");
|
333
|
+
$("#banner").addClass(config.stats.bad ? "fail" : "pass");
|
334
|
+
QUnit.done( config.stats.bad, config.stats.all );
|
335
|
+
});
|
336
|
+
}
|
337
|
+
|
338
|
+
var pollution;
|
339
|
+
|
340
|
+
function saveGlobal(){
|
341
|
+
pollution = [ ];
|
342
|
+
|
343
|
+
if( noglobals )
|
344
|
+
for( var key in window )
|
345
|
+
pollution.push(key);
|
346
|
+
}
|
347
|
+
function checkPollution( name ){
|
348
|
+
var old = pollution;
|
349
|
+
saveGlobal();
|
350
|
+
|
351
|
+
if( pollution.length > old.length ){
|
352
|
+
ok( false, "Introduced global variable(s): " + diff(old, pollution).join(", ") );
|
353
|
+
config.expected++;
|
354
|
+
}
|
355
|
+
}
|
356
|
+
|
357
|
+
function diff( clean, dirty ){
|
358
|
+
return $.grep( dirty, function(name){
|
359
|
+
return $.inArray( name, clean ) == -1;
|
360
|
+
});
|
361
|
+
}
|
362
|
+
|
363
|
+
function test(name, callback) {
|
364
|
+
if(config.currentModule)
|
365
|
+
name = config.currentModule + " module: " + name;
|
366
|
+
var lifecycle = $.extend({
|
367
|
+
setup: function() {},
|
368
|
+
teardown: function() {}
|
369
|
+
}, config.moduleLifecycle);
|
370
|
+
|
371
|
+
if ( !validTest(name) )
|
372
|
+
return;
|
373
|
+
|
374
|
+
synchronize(function() {
|
375
|
+
config.assertions = [];
|
376
|
+
config.expected = null;
|
377
|
+
try {
|
378
|
+
if( !pollution )
|
379
|
+
saveGlobal();
|
380
|
+
lifecycle.setup();
|
381
|
+
} catch(e) {
|
382
|
+
QUnit.ok( false, "Setup failed on " + name + ": " + e.message );
|
383
|
+
}
|
384
|
+
})
|
385
|
+
synchronize(function() {
|
386
|
+
try {
|
387
|
+
callback();
|
388
|
+
} catch(e) {
|
389
|
+
if( typeof console != "undefined" && console.error && console.warn ) {
|
390
|
+
console.error("Test " + name + " died, exception and test follows");
|
391
|
+
console.error(e);
|
392
|
+
console.warn(callback.toString());
|
393
|
+
}
|
394
|
+
QUnit.ok( false, "Died on test #" + (config.assertions.length + 1) + ": " + e.message );
|
395
|
+
// else next test will carry the responsibility
|
396
|
+
saveGlobal();
|
397
|
+
}
|
398
|
+
});
|
399
|
+
synchronize(function() {
|
400
|
+
try {
|
401
|
+
checkPollution();
|
402
|
+
lifecycle.teardown();
|
403
|
+
} catch(e) {
|
404
|
+
QUnit.ok( false, "Teardown failed on " + name + ": " + e.message );
|
405
|
+
}
|
406
|
+
})
|
407
|
+
synchronize(function() {
|
408
|
+
try {
|
409
|
+
reset();
|
410
|
+
} catch(e) {
|
411
|
+
if( typeof console != "undefined" && console.error && console.warn ) {
|
412
|
+
console.error("reset() failed, following Test " + name + ", exception and reset fn follows");
|
413
|
+
console.error(e);
|
414
|
+
console.warn(reset.toString());
|
415
|
+
}
|
416
|
+
}
|
417
|
+
|
418
|
+
if(config.expected && config.expected != config.assertions.length) {
|
419
|
+
QUnit.ok( false, "Expected " + config.expected + " assertions, but " + config.assertions.length + " were run" );
|
420
|
+
}
|
421
|
+
|
422
|
+
var good = 0, bad = 0;
|
423
|
+
var ol = $("<ol/>").hide();
|
424
|
+
config.stats.all += config.assertions.length;
|
425
|
+
for ( var i = 0; i < config.assertions.length; i++ ) {
|
426
|
+
var assertion = config.assertions[i];
|
427
|
+
$("<li/>").addClass(assertion.result ? "pass" : "fail").text(assertion.message || "(no message)").appendTo(ol);
|
428
|
+
assertion.result ? good++ : bad++;
|
429
|
+
}
|
430
|
+
config.stats.bad += bad;
|
431
|
+
|
432
|
+
var b = $("<strong/>").html(name + " <b style='color:black;'>(<b class='fail'>" + bad + "</b>, <b class='pass'>" + good + "</b>, " + config.assertions.length + ")</b>")
|
433
|
+
.click(function(){
|
434
|
+
$(this).next().toggle();
|
435
|
+
})
|
436
|
+
.dblclick(function(event) {
|
437
|
+
var target = $(event.target).filter("strong").clone();
|
438
|
+
if ( target.length ) {
|
439
|
+
target.children().remove();
|
440
|
+
location.href = location.href.match(/^(.+?)(\?.*)?$/)[1] + "?" + encodeURIComponent($.trim(target.text()));
|
441
|
+
}
|
442
|
+
});
|
443
|
+
|
444
|
+
$("<li/>").addClass(bad ? "fail" : "pass").append(b).append(ol).appendTo("#tests");
|
445
|
+
|
446
|
+
if(bad) {
|
447
|
+
$("#filter-pass").attr("disabled", null);
|
448
|
+
$("#filter-missing").attr("disabled", null);
|
449
|
+
}
|
450
|
+
});
|
451
|
+
}
|
452
|
+
|
453
|
+
// call on start of module test to prepend name to all tests
|
454
|
+
function module(name, lifecycle) {
|
455
|
+
config.currentModule = name;
|
456
|
+
config.moduleLifecycle = lifecycle;
|
457
|
+
}
|
458
|
+
|
459
|
+
/**
|
460
|
+
* Specify the number of expected assertions to gurantee that failed test (no assertions are run at all) don't slip through.
|
461
|
+
*/
|
462
|
+
function expect(asserts) {
|
463
|
+
config.expected = asserts;
|
464
|
+
}
|
465
|
+
|
466
|
+
/**
|
467
|
+
* Resets the test setup. Useful for tests that modify the DOM.
|
468
|
+
*/
|
469
|
+
function reset() {
|
470
|
+
$("#main").html( config.fixture );
|
471
|
+
$.event.global = {};
|
472
|
+
$.ajaxSettings = $.extend({}, config.ajaxSettings);
|
473
|
+
}
|
474
|
+
|
475
|
+
/**
|
476
|
+
* Asserts true.
|
477
|
+
* @example ok( $("a").size() > 5, "There must be at least 5 anchors" );
|
478
|
+
*/
|
479
|
+
function ok(a, msg) {
|
480
|
+
QUnit.log(a, msg);
|
481
|
+
|
482
|
+
config.assertions.push({
|
483
|
+
result: !!a,
|
484
|
+
message: msg
|
485
|
+
});
|
486
|
+
}
|
487
|
+
|
488
|
+
/**
|
489
|
+
* Asserts that two arrays are the same
|
490
|
+
*/
|
491
|
+
function isSet(a, b, msg) {
|
492
|
+
function serialArray( a ) {
|
493
|
+
var r = [];
|
494
|
+
|
495
|
+
if ( a && a.length )
|
496
|
+
for ( var i = 0; i < a.length; i++ ) {
|
497
|
+
var str = a[i].nodeName;
|
498
|
+
if ( str ) {
|
499
|
+
str = str.toLowerCase();
|
500
|
+
if ( a[i].id )
|
501
|
+
str += "#" + a[i].id;
|
502
|
+
} else
|
503
|
+
str = a[i];
|
504
|
+
r.push( str );
|
505
|
+
}
|
506
|
+
|
507
|
+
return "[ " + r.join(", ") + " ]";
|
508
|
+
}
|
509
|
+
var ret = true;
|
510
|
+
if ( a && b && a.length != undefined && a.length == b.length ) {
|
511
|
+
for ( var i = 0; i < a.length; i++ )
|
512
|
+
if ( a[i] != b[i] )
|
513
|
+
ret = false;
|
514
|
+
} else
|
515
|
+
ret = false;
|
516
|
+
QUnit.ok( ret, !ret ? (msg + " expected: " + serialArray(b) + " result: " + serialArray(a)) : msg );
|
517
|
+
}
|
518
|
+
|
519
|
+
/**
|
520
|
+
* Asserts that two objects are equivalent
|
521
|
+
*/
|
522
|
+
function isObj(a, b, msg) {
|
523
|
+
var ret = true;
|
524
|
+
|
525
|
+
if ( a && b ) {
|
526
|
+
for ( var i in a )
|
527
|
+
if ( a[i] != b[i] )
|
528
|
+
ret = false;
|
529
|
+
|
530
|
+
for ( i in b )
|
531
|
+
if ( a[i] != b[i] )
|
532
|
+
ret = false;
|
533
|
+
} else
|
534
|
+
ret = false;
|
535
|
+
|
536
|
+
QUnit.ok( ret, msg );
|
537
|
+
}
|
538
|
+
|
539
|
+
/**
|
540
|
+
* Returns an array of elements with the given IDs, eg.
|
541
|
+
* @example q("main", "foo", "bar")
|
542
|
+
* @result [<div id="main">, <span id="foo">, <input id="bar">]
|
543
|
+
*/
|
544
|
+
function q() {
|
545
|
+
var r = [];
|
546
|
+
for ( var i = 0; i < arguments.length; i++ )
|
547
|
+
r.push( document.getElementById( arguments[i] ) );
|
548
|
+
return r;
|
549
|
+
}
|
550
|
+
|
551
|
+
/**
|
552
|
+
* Asserts that a select matches the given IDs
|
553
|
+
* @example t("Check for something", "//[a]", ["foo", "baar"]);
|
554
|
+
* @result returns true if "//[a]" return two elements with the IDs 'foo' and 'baar'
|
555
|
+
*/
|
556
|
+
function t(a,b,c) {
|
557
|
+
var f = $(b);
|
558
|
+
var s = "";
|
559
|
+
for ( var i = 0; i < f.length; i++ )
|
560
|
+
s += (s && ",") + '"' + f[i].id + '"';
|
561
|
+
isSet(f, q.apply(q,c), a + " (" + b + ")");
|
562
|
+
}
|
563
|
+
|
564
|
+
/**
|
565
|
+
* Add random number to url to stop IE from caching
|
566
|
+
*
|
567
|
+
* @example url("data/test.html")
|
568
|
+
* @result "data/test.html?10538358428943"
|
569
|
+
*
|
570
|
+
* @example url("data/test.php?foo=bar")
|
571
|
+
* @result "data/test.php?foo=bar&10538358345554"
|
572
|
+
*/
|
573
|
+
function url(value) {
|
574
|
+
return value + (/\?/.test(value) ? "&" : "?") + new Date().getTime() + "" + parseInt(Math.random()*100000);
|
575
|
+
}
|
576
|
+
|
577
|
+
/**
|
578
|
+
* Checks that the first two arguments are equal, with an optional message.
|
579
|
+
* Prints out both actual and expected values.
|
580
|
+
*
|
581
|
+
* Prefered to ok( actual == expected, message )
|
582
|
+
*
|
583
|
+
* @example equals( $.format("Received {0} bytes.", 2), "Received 2 bytes." );
|
584
|
+
*
|
585
|
+
* @param Object actual
|
586
|
+
* @param Object expected
|
587
|
+
* @param String message (optional)
|
588
|
+
*/
|
589
|
+
function equals(actual, expected, message) {
|
590
|
+
push(expected == actual, actual, expected, message);
|
591
|
+
}
|
592
|
+
|
593
|
+
function push(result, actual, expected, message) {
|
594
|
+
message = message || (result ? "okay" : "failed");
|
595
|
+
QUnit.ok( result, result ? message + ": " + expected : message + ", expected: " + jsDump.parse(expected) + " result: " + jsDump.parse(actual) );
|
596
|
+
}
|
597
|
+
|
598
|
+
/**
|
599
|
+
* Trigger an event on an element.
|
600
|
+
*
|
601
|
+
* @example triggerEvent( document.body, "click" );
|
602
|
+
*
|
603
|
+
* @param DOMElement elem
|
604
|
+
* @param String type
|
605
|
+
*/
|
606
|
+
function triggerEvent( elem, type, event ) {
|
607
|
+
if ( $.browser.mozilla || $.browser.opera ) {
|
608
|
+
event = document.createEvent("MouseEvents");
|
609
|
+
event.initMouseEvent(type, true, true, elem.ownerDocument.defaultView,
|
610
|
+
0, 0, 0, 0, 0, false, false, false, false, 0, null);
|
611
|
+
elem.dispatchEvent( event );
|
612
|
+
} else if ( $.browser.msie ) {
|
613
|
+
elem.fireEvent("on"+type);
|
614
|
+
}
|
615
|
+
}
|
616
|
+
|
617
|
+
})(jQuery);
|
618
|
+
|
619
|
+
/**
|
620
|
+
* jsDump
|
621
|
+
* Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
|
622
|
+
* Licensed under BSD (http://www.opensource.org/licenses/bsd-license.php)
|
623
|
+
* Date: 5/15/2008
|
624
|
+
* @projectDescription Advanced and extensible data dumping for Javascript.
|
625
|
+
* @version 1.0.0
|
626
|
+
* @author Ariel Flesler
|
627
|
+
* @link {http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html}
|
628
|
+
*/
|
629
|
+
(function(){
|
630
|
+
function quote( str ){
|
631
|
+
return '"' + str.toString().replace(/"/g, '\\"') + '"';
|
632
|
+
};
|
633
|
+
function literal( o ){
|
634
|
+
return o + '';
|
635
|
+
};
|
636
|
+
function join( pre, arr, post ){
|
637
|
+
var s = jsDump.separator(),
|
638
|
+
base = jsDump.indent();
|
639
|
+
inner = jsDump.indent(1);
|
640
|
+
if( arr.join )
|
641
|
+
arr = arr.join( ',' + s + inner );
|
642
|
+
if( !arr )
|
643
|
+
return pre + post;
|
644
|
+
return [ pre, inner + arr, base + post ].join(s);
|
645
|
+
};
|
646
|
+
function array( arr ){
|
647
|
+
var i = arr.length, ret = Array(i);
|
648
|
+
this.up();
|
649
|
+
while( i-- )
|
650
|
+
ret[i] = this.parse( arr[i] );
|
651
|
+
this.down();
|
652
|
+
return join( '[', ret, ']' );
|
653
|
+
};
|
654
|
+
|
655
|
+
var reName = /^function (\w+)/;
|
656
|
+
|
657
|
+
var jsDump = window.jsDump = {
|
658
|
+
parse:function( obj, type ){//type is used mostly internally, you can fix a (custom)type in advance
|
659
|
+
var parser = this.parsers[ type || this.typeOf(obj) ];
|
660
|
+
type = typeof parser;
|
661
|
+
|
662
|
+
return type == 'function' ? parser.call( this, obj ) :
|
663
|
+
type == 'string' ? parser :
|
664
|
+
this.parsers.error;
|
665
|
+
},
|
666
|
+
typeOf:function( obj ){
|
667
|
+
var type = typeof obj,
|
668
|
+
f = 'function';//we'll use it 3 times, save it
|
669
|
+
return type != 'object' && type != f ? type :
|
670
|
+
!obj ? 'null' :
|
671
|
+
obj.exec ? 'regexp' :// some browsers (FF) consider regexps functions
|
672
|
+
obj.getHours ? 'date' :
|
673
|
+
obj.scrollBy ? 'window' :
|
674
|
+
obj.nodeName == '#document' ? 'document' :
|
675
|
+
obj.nodeName ? 'node' :
|
676
|
+
obj.item ? 'nodelist' : // Safari reports nodelists as functions
|
677
|
+
obj.callee ? 'arguments' :
|
678
|
+
obj.call || obj.constructor != Array && //an array would also fall on this hack
|
679
|
+
(obj+'').indexOf(f) != -1 ? f : //IE reports functions like alert, as objects
|
680
|
+
'length' in obj ? 'array' :
|
681
|
+
type;
|
682
|
+
},
|
683
|
+
separator:function(){
|
684
|
+
return this.multiline ? this.HTML ? '<br />' : '\n' : this.HTML ? ' ' : ' ';
|
685
|
+
},
|
686
|
+
indent:function( extra ){// extra can be a number, shortcut for increasing-calling-decreasing
|
687
|
+
if( !this.multiline )
|
688
|
+
return '';
|
689
|
+
var chr = this.indentChar;
|
690
|
+
if( this.HTML )
|
691
|
+
chr = chr.replace(/\t/g,' ').replace(/ /g,' ');
|
692
|
+
return Array( this._depth_ + (extra||0) ).join(chr);
|
693
|
+
},
|
694
|
+
up:function( a ){
|
695
|
+
this._depth_ += a || 1;
|
696
|
+
},
|
697
|
+
down:function( a ){
|
698
|
+
this._depth_ -= a || 1;
|
699
|
+
},
|
700
|
+
setParser:function( name, parser ){
|
701
|
+
this.parsers[name] = parser;
|
702
|
+
},
|
703
|
+
// The next 3 are exposed so you can use them
|
704
|
+
quote:quote,
|
705
|
+
literal:literal,
|
706
|
+
join:join,
|
707
|
+
//
|
708
|
+
_depth_: 1,
|
709
|
+
// This is the list of parsers, to modify them, use jsDump.setParser
|
710
|
+
parsers:{
|
711
|
+
window: '[Window]',
|
712
|
+
document: '[Document]',
|
713
|
+
error:'[ERROR]', //when no parser is found, shouldn't happen
|
714
|
+
unknown: '[Unknown]',
|
715
|
+
'null':'null',
|
716
|
+
undefined:'undefined',
|
717
|
+
'function':function( fn ){
|
718
|
+
var ret = 'function',
|
719
|
+
name = 'name' in fn ? fn.name : (reName.exec(fn)||[])[1];//functions never have name in IE
|
720
|
+
if( name )
|
721
|
+
ret += ' ' + name;
|
722
|
+
ret += '(';
|
723
|
+
|
724
|
+
ret = [ ret, this.parse( fn, 'functionArgs' ), '){'].join('');
|
725
|
+
return join( ret, this.parse(fn,'functionCode'), '}' );
|
726
|
+
},
|
727
|
+
array: array,
|
728
|
+
nodelist: array,
|
729
|
+
arguments: array,
|
730
|
+
object:function( map ){
|
731
|
+
var ret = [ ];
|
732
|
+
this.up();
|
733
|
+
for( var key in map )
|
734
|
+
ret.push( this.parse(key,'key') + ': ' + this.parse(map[key]) );
|
735
|
+
this.down();
|
736
|
+
return join( '{', ret, '}' );
|
737
|
+
},
|
738
|
+
node:function( node ){
|
739
|
+
var open = this.HTML ? '<' : '<',
|
740
|
+
close = this.HTML ? '>' : '>';
|
741
|
+
|
742
|
+
var tag = node.nodeName.toLowerCase(),
|
743
|
+
ret = open + tag;
|
744
|
+
|
745
|
+
for( var a in this.DOMAttrs ){
|
746
|
+
var val = node[this.DOMAttrs[a]];
|
747
|
+
if( val )
|
748
|
+
ret += ' ' + a + '=' + this.parse( val, 'attribute' );
|
749
|
+
}
|
750
|
+
return ret + close + open + '/' + tag + close;
|
751
|
+
},
|
752
|
+
functionArgs:function( fn ){//function calls it internally, it's the arguments part of the function
|
753
|
+
var l = fn.length;
|
754
|
+
if( !l ) return '';
|
755
|
+
|
756
|
+
var args = Array(l);
|
757
|
+
while( l-- )
|
758
|
+
args[l] = String.fromCharCode(97+l);//97 is 'a'
|
759
|
+
return ' ' + args.join(', ') + ' ';
|
760
|
+
},
|
761
|
+
key:quote, //object calls it internally, the key part of an item in a map
|
762
|
+
functionCode:'[code]', //function calls it internally, it's the content of the function
|
763
|
+
attribute:quote, //node calls it internally, it's an html attribute value
|
764
|
+
string:quote,
|
765
|
+
date:quote,
|
766
|
+
regexp:literal, //regex
|
767
|
+
number:literal,
|
768
|
+
'boolean':literal
|
769
|
+
},
|
770
|
+
DOMAttrs:{//attributes to dump from nodes, name=>realName
|
771
|
+
id:'id',
|
772
|
+
name:'name',
|
773
|
+
'class':'className'
|
774
|
+
},
|
775
|
+
HTML:false,//if true, entities are escaped ( <, >, \t, space and \n )
|
776
|
+
indentChar:' ',//indentation unit
|
777
|
+
multiline:true //if true, items in a collection, are separated by a \n, else just a space.
|
778
|
+
};
|
779
|
+
|
780
|
+
})();
|