javascriptmvc 3.0.0.pre15
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +21 -0
- data/README.markdown +15 -0
- data/Rakefile +17 -0
- data/VERSION +1 -0
- data/bin/jmvc-build +4 -0
- data/bin/jmvc-gen +4 -0
- data/bin/jmvc-get +4 -0
- data/bin/jmvc-init +4 -0
- data/bin/jmvc-update +4 -0
- data/lib/javascriptmvc.rb +97 -0
- data/lib/javascriptmvc/documentjs/README +0 -0
- data/lib/javascriptmvc/documentjs/add.js +76 -0
- data/lib/javascriptmvc/documentjs/application.js +285 -0
- data/lib/javascriptmvc/documentjs/attribute.js +61 -0
- data/lib/javascriptmvc/documentjs/baseclass.js +537 -0
- data/lib/javascriptmvc/documentjs/class.js +141 -0
- data/lib/javascriptmvc/documentjs/constructor.js +145 -0
- data/lib/javascriptmvc/documentjs/directives.js +394 -0
- data/lib/javascriptmvc/documentjs/distance.js +49 -0
- data/lib/javascriptmvc/documentjs/document +21 -0
- data/lib/javascriptmvc/documentjs/documentjs.js +76 -0
- data/lib/javascriptmvc/documentjs/file.js +55 -0
- data/lib/javascriptmvc/documentjs/function.js +112 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/close.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/download.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/fav-off.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/fav-on.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/favicon.ico +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/logo.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/pre.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-icons_222222_256x240.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-icons_2e83ff_256x240.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-icons_454545_256x240.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-icons_888888_256x240.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/video.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/production.js +552 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/style.css +354 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/summary.ejs +134 -0
- data/lib/javascriptmvc/documentjs/json.js +172 -0
- data/lib/javascriptmvc/documentjs/page.js +107 -0
- data/lib/javascriptmvc/documentjs/pair.js +302 -0
- data/lib/javascriptmvc/documentjs/prototype.js +13 -0
- data/lib/javascriptmvc/documentjs/scripts/build.js +6 -0
- data/lib/javascriptmvc/documentjs/static.js +25 -0
- data/lib/javascriptmvc/documentjs/test/docs/Something.json +1 -0
- data/lib/javascriptmvc/documentjs/test/docs/searchData.json +1 -0
- data/lib/javascriptmvc/documentjs/test/something.js +8 -0
- data/lib/javascriptmvc/documentjs/test/test.html +6 -0
- data/lib/javascriptmvc/documentjs/test_doc.html +1 -0
- data/lib/javascriptmvc/documentjs/update +5 -0
- data/lib/javascriptmvc/funcunit/README +17 -0
- data/lib/javascriptmvc/funcunit/autosuggest/auto_suggest.js +495 -0
- data/lib/javascriptmvc/funcunit/autosuggest/autosuggest.css +24 -0
- data/lib/javascriptmvc/funcunit/autosuggest/autosuggest.html +26 -0
- data/lib/javascriptmvc/funcunit/autosuggest/autosuggest.js +17 -0
- data/lib/javascriptmvc/funcunit/autosuggest/autosuggest_test.js +14 -0
- data/lib/javascriptmvc/funcunit/autosuggest/funcunit.html +15 -0
- data/lib/javascriptmvc/funcunit/build.js +54 -0
- data/lib/javascriptmvc/funcunit/drivers/selenium.js +129 -0
- data/lib/javascriptmvc/funcunit/drivers/standard.js +169 -0
- data/lib/javascriptmvc/funcunit/envjs +13 -0
- data/lib/javascriptmvc/funcunit/envjs.bat +28 -0
- data/lib/javascriptmvc/funcunit/funcunit.html +20 -0
- data/lib/javascriptmvc/funcunit/funcunit.js +1509 -0
- data/lib/javascriptmvc/funcunit/java/selenium-java-client-driver.jar +0 -0
- data/lib/javascriptmvc/funcunit/java/selenium-server.jar +0 -0
- data/lib/javascriptmvc/funcunit/qunit.html +22 -0
- data/lib/javascriptmvc/funcunit/qunit/qunit.css +119 -0
- data/lib/javascriptmvc/funcunit/qunit/qunit.js +1124 -0
- data/lib/javascriptmvc/funcunit/qunit/rhino/rhino.js +24 -0
- data/lib/javascriptmvc/funcunit/qunit/test/qunit.html +18 -0
- data/lib/javascriptmvc/funcunit/qunit/test/test.js +7 -0
- data/lib/javascriptmvc/funcunit/resources/funcunit.js +31 -0
- data/lib/javascriptmvc/funcunit/resources/jquery.js +6378 -0
- data/lib/javascriptmvc/funcunit/resources/json.js +201 -0
- data/lib/javascriptmvc/funcunit/resources/selenium_start.js +43 -0
- data/lib/javascriptmvc/funcunit/scripts/run.js +36 -0
- data/lib/javascriptmvc/funcunit/scripts/test.js +55 -0
- data/lib/javascriptmvc/funcunit/settings.js +10 -0
- data/lib/javascriptmvc/funcunit/synthetic/browsers.js +151 -0
- data/lib/javascriptmvc/funcunit/synthetic/demo.html +150 -0
- data/lib/javascriptmvc/funcunit/synthetic/demo/record.js +254 -0
- data/lib/javascriptmvc/funcunit/synthetic/drag/drag.html +41 -0
- data/lib/javascriptmvc/funcunit/synthetic/drag/drag.js +268 -0
- data/lib/javascriptmvc/funcunit/synthetic/drag/qunit.html +20 -0
- data/lib/javascriptmvc/funcunit/synthetic/drag/test/qunit/drag_test.js +195 -0
- data/lib/javascriptmvc/funcunit/synthetic/drag/test/qunit/qunit.js +7 -0
- data/lib/javascriptmvc/funcunit/synthetic/key.js +832 -0
- data/lib/javascriptmvc/funcunit/synthetic/mouse.js +291 -0
- data/lib/javascriptmvc/funcunit/synthetic/qunit.html +22 -0
- data/lib/javascriptmvc/funcunit/synthetic/recorder.html +303 -0
- data/lib/javascriptmvc/funcunit/synthetic/synthetic.html +85 -0
- data/lib/javascriptmvc/funcunit/synthetic/synthetic.js +796 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/qunit/key_test.js +391 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/qunit/mouse_test.js +233 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/qunit/qunit.js +6 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/qunit/synthetic_test.js +91 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/submit.html +29 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/submitted.html +3 -0
- data/lib/javascriptmvc/funcunit/template.html +18 -0
- data/lib/javascriptmvc/funcunit/test/drag.html +63 -0
- data/lib/javascriptmvc/funcunit/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/funcunit/test/funcunit/funcunit_test.js +87 -0
- data/lib/javascriptmvc/funcunit/test/funcunit/open_test.js +28 -0
- data/lib/javascriptmvc/funcunit/test/funcunit/protodrag_test.js +13 -0
- data/lib/javascriptmvc/funcunit/test/funcunit/syn_test.js +41 -0
- data/lib/javascriptmvc/funcunit/test/jquery.event.drag.js +801 -0
- data/lib/javascriptmvc/funcunit/test/jquery.event.drop.js +439 -0
- data/lib/javascriptmvc/funcunit/test/jquery.js +6360 -0
- data/lib/javascriptmvc/funcunit/test/myapp.html +103 -0
- data/lib/javascriptmvc/funcunit/test/myotherapp.html +15 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/dragdrop.js +974 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/effects.js +1123 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/funcunit_test.js +20 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/myapp.html +63 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/prototype.js +4874 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/scriptaculous.js +68 -0
- data/lib/javascriptmvc/funcunit/update +5 -0
- data/lib/javascriptmvc/jquery/README +24 -0
- data/lib/javascriptmvc/jquery/build.js +73 -0
- data/lib/javascriptmvc/jquery/class/class.html +109 -0
- data/lib/javascriptmvc/jquery/class/class.js +627 -0
- data/lib/javascriptmvc/jquery/class/qunit.html +15 -0
- data/lib/javascriptmvc/jquery/class/test/qunit/class_test.js +146 -0
- data/lib/javascriptmvc/jquery/class/test/qunit/qunit.js +5 -0
- data/lib/javascriptmvc/jquery/class/test/qunit/test.html +20 -0
- data/lib/javascriptmvc/jquery/controller/controller.html +89 -0
- data/lib/javascriptmvc/jquery/controller/controller.js +735 -0
- data/lib/javascriptmvc/jquery/controller/history/history.html +44 -0
- data/lib/javascriptmvc/jquery/controller/history/history.js +177 -0
- data/lib/javascriptmvc/jquery/controller/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/scripts/compress.js +6 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/scripts/docs.js +6 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/subscribe.html +56 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/subscribe.js +27 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/funcunit/subscribe_test.js +11 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/qunit/subscribe_test.js +4 -0
- data/lib/javascriptmvc/jquery/controller/test/qunit/controller_test.js +170 -0
- data/lib/javascriptmvc/jquery/controller/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/controller/view/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/controller/view/test/qunit/controller_view_test.js +15 -0
- data/lib/javascriptmvc/jquery/controller/view/test/qunit/qunit.js +6 -0
- data/lib/javascriptmvc/jquery/controller/view/test/qunit/views/init.micro +1 -0
- data/lib/javascriptmvc/jquery/controller/view/view.js +102 -0
- data/lib/javascriptmvc/jquery/dom/closest/closest.html +23 -0
- data/lib/javascriptmvc/jquery/dom/closest/closest.js +47 -0
- data/lib/javascriptmvc/jquery/dom/closest/funcunit.html +20 -0
- data/lib/javascriptmvc/jquery/dom/closest/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/dom/closest/scripts/compress.js +3 -0
- data/lib/javascriptmvc/jquery/dom/closest/scripts/doc.js +4 -0
- data/lib/javascriptmvc/jquery/dom/closest/scripts/test.js +55 -0
- data/lib/javascriptmvc/jquery/dom/closest/settings.js +40 -0
- data/lib/javascriptmvc/jquery/dom/closest/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/dom/closest/test/funcunit/tests/basic.js +11 -0
- data/lib/javascriptmvc/jquery/dom/closest/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/dom/closest/test/qunit/tests/basic.js +4 -0
- data/lib/javascriptmvc/jquery/dom/compare/compare.html +88 -0
- data/lib/javascriptmvc/jquery/dom/compare/compare.js +67 -0
- data/lib/javascriptmvc/jquery/dom/compare/qunit.html +20 -0
- data/lib/javascriptmvc/jquery/dom/compare/test/qunit/compare_test.js +19 -0
- data/lib/javascriptmvc/jquery/dom/compare/test/qunit/qunit.js +5 -0
- data/lib/javascriptmvc/jquery/dom/cookie/cookie.html +25 -0
- data/lib/javascriptmvc/jquery/dom/cookie/cookie.js +119 -0
- data/lib/javascriptmvc/jquery/dom/cookie/scripts/compress.js +6 -0
- data/lib/javascriptmvc/jquery/dom/cookie/scripts/doc.js +6 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/funcunit/cookie_test.js +11 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/funcunit/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/qunit/cookie_test.js +4 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/cur_styles.html +71 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/cur_styles.js +120 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/test/qunit/curStyles.micro +3 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/test/qunit/cur_styles_test.js +22 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/test/qunit/outer.micro +0 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/curstyles.html +22 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/dimensions.html +132 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/dimensions.js +140 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/test/qunit/curStyles.micro +3 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/test/qunit/dimensions_test.js +8 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/test/qunit/outer.micro +0 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/dom/dom.js +7 -0
- data/lib/javascriptmvc/jquery/dom/fixture/fixture.html +143 -0
- data/lib/javascriptmvc/jquery/dom/fixture/fixture.js +521 -0
- data/lib/javascriptmvc/jquery/dom/fixture/fixtures/messages.html +31 -0
- data/lib/javascriptmvc/jquery/dom/fixture/fixtures/test.json +3 -0
- data/lib/javascriptmvc/jquery/dom/fixture/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/dom/fixture/test/qunit/fixture_test.js +50 -0
- data/lib/javascriptmvc/jquery/dom/fixture/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/dom/form_params/form_params.html +57 -0
- data/lib/javascriptmvc/jquery/dom/form_params/form_params.js +106 -0
- data/lib/javascriptmvc/jquery/dom/form_params/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/dom/form_params/test/qunit/basics.micro +27 -0
- data/lib/javascriptmvc/jquery/dom/form_params/test/qunit/checkbox.micro +20 -0
- data/lib/javascriptmvc/jquery/dom/form_params/test/qunit/form_params_test.js +43 -0
- data/lib/javascriptmvc/jquery/dom/form_params/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/dom/form_params/test/qunit/truthy.micro +8 -0
- data/lib/javascriptmvc/jquery/dom/within/within.js +67 -0
- data/lib/javascriptmvc/jquery/error/background.png +0 -0
- data/lib/javascriptmvc/jquery/error/error.html +31 -0
- data/lib/javascriptmvc/jquery/error/error.js +227 -0
- data/lib/javascriptmvc/jquery/error/setup.js +4 -0
- data/lib/javascriptmvc/jquery/error/test/test.html +23 -0
- data/lib/javascriptmvc/jquery/error/test/test.js +4 -0
- data/lib/javascriptmvc/jquery/event/default/compress.js +7 -0
- data/lib/javascriptmvc/jquery/event/default/default.html +85 -0
- data/lib/javascriptmvc/jquery/event/default/default.js +193 -0
- data/lib/javascriptmvc/jquery/event/default/defaultjquery.html +117 -0
- data/lib/javascriptmvc/jquery/event/default/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/event/default/test/qunit/default_test.js +104 -0
- data/lib/javascriptmvc/jquery/event/default/test/qunit/html.micro +8 -0
- data/lib/javascriptmvc/jquery/event/default/test/qunit/qunit.js +6 -0
- data/lib/javascriptmvc/jquery/event/default/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/event/destroyed/destroyed.html +24 -0
- data/lib/javascriptmvc/jquery/event/destroyed/destroyed.js +40 -0
- data/lib/javascriptmvc/jquery/event/destroyed/destroyed_menu.html +96 -0
- data/lib/javascriptmvc/jquery/event/destroyed/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/destroyed/test/qunit/destroyed_test.js +12 -0
- data/lib/javascriptmvc/jquery/event/destroyed/test/qunit/qunit.js +6 -0
- data/lib/javascriptmvc/jquery/event/drag/drag.html +105 -0
- data/lib/javascriptmvc/jquery/event/drag/drag.js +466 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/limit.html +74 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/limit.js +56 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/scripts/compress.js +6 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/scripts/doc.js +6 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/funcunit/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/funcunit/limit_test.js +11 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/qunit/limit_test.js +4 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/event/drag/qunit.html +16 -0
- data/lib/javascriptmvc/jquery/event/drag/scroll/scroll.js +120 -0
- data/lib/javascriptmvc/jquery/event/drag/test/qunit/drag_test.js +130 -0
- data/lib/javascriptmvc/jquery/event/drag/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/event/drop/drop.html +74 -0
- data/lib/javascriptmvc/jquery/event/drop/drop.js +301 -0
- data/lib/javascriptmvc/jquery/event/event.js +6 -0
- data/lib/javascriptmvc/jquery/event/hashchange/hashchange.js +245 -0
- data/lib/javascriptmvc/jquery/event/hover/compress.js +7 -0
- data/lib/javascriptmvc/jquery/event/hover/hover.html +56 -0
- data/lib/javascriptmvc/jquery/event/hover/hover.js +219 -0
- data/lib/javascriptmvc/jquery/event/hover/qunit.html +16 -0
- data/lib/javascriptmvc/jquery/event/hover/test/qunit/hover_test.js +55 -0
- data/lib/javascriptmvc/jquery/event/hover/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/event/livehack/compress.js +7 -0
- data/lib/javascriptmvc/jquery/event/livehack/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/livehack/livehack.html +25 -0
- data/lib/javascriptmvc/jquery/event/livehack/livehack.js +167 -0
- data/lib/javascriptmvc/jquery/event/offline/funcunit.html +20 -0
- data/lib/javascriptmvc/jquery/event/offline/offline.html +26 -0
- data/lib/javascriptmvc/jquery/event/offline/offline.js +36 -0
- data/lib/javascriptmvc/jquery/event/offline/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/event/offline/scripts/compress.js +3 -0
- data/lib/javascriptmvc/jquery/event/offline/scripts/doc.js +4 -0
- data/lib/javascriptmvc/jquery/event/offline/settings.js +41 -0
- data/lib/javascriptmvc/jquery/event/offline/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/event/offline/test/funcunit/tests/basic.js +11 -0
- data/lib/javascriptmvc/jquery/event/offline/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/event/offline/test/qunit/tests/basic.js +4 -0
- data/lib/javascriptmvc/jquery/event/resize/funcunit.html +20 -0
- data/lib/javascriptmvc/jquery/event/resize/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/event/resize/resize.html +23 -0
- data/lib/javascriptmvc/jquery/event/resize/resize.js +50 -0
- data/lib/javascriptmvc/jquery/event/resize/scripts/compress.js +3 -0
- data/lib/javascriptmvc/jquery/event/resize/scripts/doc.js +4 -0
- data/lib/javascriptmvc/jquery/event/resize/scripts/test.js +55 -0
- data/lib/javascriptmvc/jquery/event/resize/settings.js +40 -0
- data/lib/javascriptmvc/jquery/event/resize/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/event/resize/test/funcunit/tests/basic.js +11 -0
- data/lib/javascriptmvc/jquery/event/resize/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/event/resize/test/qunit/tests/basic.js +4 -0
- data/lib/javascriptmvc/jquery/event/select/scripts/compress.js +6 -0
- data/lib/javascriptmvc/jquery/event/select/scripts/doc.js +6 -0
- data/lib/javascriptmvc/jquery/event/select/select.html +63 -0
- data/lib/javascriptmvc/jquery/event/select/select.js +65 -0
- data/lib/javascriptmvc/jquery/event/select/test/funcunit/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/select/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/event/select/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/event/select/test/funcunit/select_test.js +11 -0
- data/lib/javascriptmvc/jquery/event/select/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/select/test/qunit/qunit.js +5 -0
- data/lib/javascriptmvc/jquery/event/select/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/event/select/test/qunit/select_test.js +4 -0
- data/lib/javascriptmvc/jquery/generate/app +23 -0
- data/lib/javascriptmvc/jquery/generate/controller +21 -0
- data/lib/javascriptmvc/jquery/generate/model +26 -0
- data/lib/javascriptmvc/jquery/generate/page +20 -0
- data/lib/javascriptmvc/jquery/generate/plugin +20 -0
- data/lib/javascriptmvc/jquery/generate/scaffold +23 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/(application_name).css.ejs +4 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/(application_name).html.ejs +23 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/(application_name).js.ejs +21 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/controllers/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/docs/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/fixtures/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/funcunit.html.ejs +15 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/models/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/qunit.html.ejs +20 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/resources/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/scripts/build.js.ejs +6 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/scripts/clean.js.ejs +6 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/scripts/docs.js.ejs +4 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/test/funcunit/(application_name)_test.js.ejs +9 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/test/funcunit/funcunit.js.ejs +3 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/test/qunit/(application_name)_test.js.ejs +5 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/test/qunit/qunit.js.ejs +3 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/views/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/controller/controllers/(underscore)_controller.js.ejs +12 -0
- data/lib/javascriptmvc/jquery/generate/templates/model/fixtures.link +1 -0
- data/lib/javascriptmvc/jquery/generate/templates/model/models.link +1 -0
- data/lib/javascriptmvc/jquery/generate/templates/model/test/qunit.link +1 -0
- data/lib/javascriptmvc/jquery/generate/templates/page.ejs +23 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/(application_name).html.ejs +23 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/(application_name).js.ejs +3 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/fixtures/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/funcunit.html.ejs +15 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/qunit.html.ejs +20 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/resources/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/scripts.link +1 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/test.link +1 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/views/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/controllers/(underscore)_controller.js.ejs +96 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/fixtures/(plural).json.get.ejs +3 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/models/(underscore).js.ejs +83 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/test/funcunit/(underscore)_controller_test.js.ejs +63 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/test/qunit/(underscore)_test.js.ejs +45 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/views/(underscore)/edit.ejs.ejs +10 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/views/(underscore)/init.ejs.ejs +26 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/views/(underscore)/list.ejs.ejs +5 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/views/(underscore)/show.ejs.ejs +10 -0
- data/lib/javascriptmvc/jquery/jquery.js +6360 -0
- data/lib/javascriptmvc/jquery/lang/json/json.html +25 -0
- data/lib/javascriptmvc/jquery/lang/json/json.js +201 -0
- data/lib/javascriptmvc/jquery/lang/json/scripts/compress.js +6 -0
- data/lib/javascriptmvc/jquery/lang/json/scripts/doc.js +6 -0
- data/lib/javascriptmvc/jquery/lang/json/test/funcunit/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/lang/json/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/lang/json/test/funcunit/json_test.js +11 -0
- data/lib/javascriptmvc/jquery/lang/json/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/lang/json/test/qunit/json_test.js +4 -0
- data/lib/javascriptmvc/jquery/lang/json/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/lang/json/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/lang/json/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/lang/lang.html +27 -0
- data/lib/javascriptmvc/jquery/lang/lang.js +104 -0
- data/lib/javascriptmvc/jquery/lang/openajax/openajax.js +202 -0
- data/lib/javascriptmvc/jquery/lang/rsplit/rsplit.js +31 -0
- data/lib/javascriptmvc/jquery/lang/vector/vector.js +167 -0
- data/lib/javascriptmvc/jquery/model/associations/associations.html +25 -0
- data/lib/javascriptmvc/jquery/model/associations/associations.js +46 -0
- data/lib/javascriptmvc/jquery/model/associations/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/model/associations/test/qunit/associations_test.js +51 -0
- data/lib/javascriptmvc/jquery/model/associations/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/model/associations/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/model/backup/backup.js +82 -0
- data/lib/javascriptmvc/jquery/model/json_rest/json_rest.js +91 -0
- data/lib/javascriptmvc/jquery/model/list/list.js +148 -0
- data/lib/javascriptmvc/jquery/model/list/qunit.html +16 -0
- data/lib/javascriptmvc/jquery/model/list/test/qunit/list_test.js +58 -0
- data/lib/javascriptmvc/jquery/model/list/test/qunit/qunit.js +6 -0
- data/lib/javascriptmvc/jquery/model/list/test/qunit/run.js +0 -0
- data/lib/javascriptmvc/jquery/model/model.js +537 -0
- data/lib/javascriptmvc/jquery/model/qunit.html +17 -0
- data/lib/javascriptmvc/jquery/model/store/store.js +66 -0
- data/lib/javascriptmvc/jquery/model/test/qunit/model_test.js +71 -0
- data/lib/javascriptmvc/jquery/model/test/qunit/qunit.js +5 -0
- data/lib/javascriptmvc/jquery/qunit.html +15 -0
- data/lib/javascriptmvc/jquery/test/funcunit/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/test/funcunit/jquerytest_test.js +11 -0
- data/lib/javascriptmvc/jquery/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/test/qunit/qunit.js +22 -0
- data/lib/javascriptmvc/jquery/update +5 -0
- data/lib/javascriptmvc/jquery/view/compress.js +7 -0
- data/lib/javascriptmvc/jquery/view/ejs/ejs.html +25 -0
- data/lib/javascriptmvc/jquery/view/ejs/ejs.js +489 -0
- data/lib/javascriptmvc/jquery/view/ejs/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/funcunit/ejs_test.js +11 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/qunit/ejs_test.js +4 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/view/fulljslint.js +3774 -0
- data/lib/javascriptmvc/jquery/view/helpers/helpers.js +338 -0
- data/lib/javascriptmvc/jquery/view/jaml/compress.js +7 -0
- data/lib/javascriptmvc/jquery/view/jaml/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/jaml/jaml.html +25 -0
- data/lib/javascriptmvc/jquery/view/jaml/jaml.js +73 -0
- data/lib/javascriptmvc/jquery/view/jaml/node.js +149 -0
- data/lib/javascriptmvc/jquery/view/jaml/template.js +131 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/funcunit/jaml_test.js +11 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/qunit/jaml_test.js +4 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/view/micro/compress.js +7 -0
- data/lib/javascriptmvc/jquery/view/micro/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/micro/micro.html +25 -0
- data/lib/javascriptmvc/jquery/view/micro/micro.js +57 -0
- data/lib/javascriptmvc/jquery/view/micro/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/view/micro/test/funcunit/micro_test.js +11 -0
- data/lib/javascriptmvc/jquery/view/micro/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/view/micro/test/qunit/micro_test.js +4 -0
- data/lib/javascriptmvc/jquery/view/micro/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/micro/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/view/micro/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/view/qunit.html +16 -0
- data/lib/javascriptmvc/jquery/view/test/compression/compression.html +12 -0
- data/lib/javascriptmvc/jquery/view/test/compression/compression.js +11 -0
- data/lib/javascriptmvc/jquery/view/test/compression/run.js +36 -0
- data/lib/javascriptmvc/jquery/view/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/view/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/view/test/funcunit/view_test.js +11 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/nested_plugin.ejs +1 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/plugin.ejs +1 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/template.ejs +1 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/template.jaml +3 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/template.micro +1 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/template.tmpl +1 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/view_test.js +24 -0
- data/lib/javascriptmvc/jquery/view/tmpl/tmpl.js +150 -0
- data/lib/javascriptmvc/jquery/view/view.html +65 -0
- data/lib/javascriptmvc/jquery/view/view.js +296 -0
- data/lib/javascriptmvc/js +56 -0
- data/lib/javascriptmvc/js.bat +57 -0
- data/lib/javascriptmvc/steal/README +26 -0
- data/lib/javascriptmvc/steal/build/apps/apps.js +208 -0
- data/lib/javascriptmvc/steal/build/apps/test.js +4 -0
- data/lib/javascriptmvc/steal/build/build.js +281 -0
- data/lib/javascriptmvc/steal/build/pluginify.js +73 -0
- data/lib/javascriptmvc/steal/build/scripts/compiler.jar +0 -0
- data/lib/javascriptmvc/steal/build/scripts/scripts.js +155 -0
- data/lib/javascriptmvc/steal/build/styles/cssmin.js +17 -0
- data/lib/javascriptmvc/steal/build/styles/styles.js +84 -0
- data/lib/javascriptmvc/steal/build/test/basicpage.html +6 -0
- data/lib/javascriptmvc/steal/build/test/basicproduction.js +1 -0
- data/lib/javascriptmvc/steal/build/test/basicsource.js +6 -0
- data/lib/javascriptmvc/steal/build/test/css/css/css1.css +1 -0
- data/lib/javascriptmvc/steal/build/test/css/css/justin.png +0 -0
- data/lib/javascriptmvc/steal/build/test/css/css2.css +5 -0
- data/lib/javascriptmvc/steal/build/test/css/page.html +9 -0
- data/lib/javascriptmvc/steal/build/test/css/production.css +1 -0
- data/lib/javascriptmvc/steal/build/test/css/test.js +7 -0
- data/lib/javascriptmvc/steal/build/test/css/upload.PNG +0 -0
- data/lib/javascriptmvc/steal/build/test/foreign.html +6 -0
- data/lib/javascriptmvc/steal/build/test/foreign.js +2 -0
- data/lib/javascriptmvc/steal/build/test/removecode.js +11 -0
- data/lib/javascriptmvc/steal/build/test/run.js +57 -0
- data/lib/javascriptmvc/steal/build/test/stealpage.html +10 -0
- data/lib/javascriptmvc/steal/build/test/stealprodpage.html +10 -0
- data/lib/javascriptmvc/steal/build/test/test.js +3 -0
- data/lib/javascriptmvc/steal/buildjs +21 -0
- data/lib/javascriptmvc/steal/clean/beautify.js +1108 -0
- data/lib/javascriptmvc/steal/clean/clean.js +179 -0
- data/lib/javascriptmvc/steal/clean/jslint.js +5662 -0
- data/lib/javascriptmvc/steal/clean/test.js +7 -0
- data/lib/javascriptmvc/steal/cleanjs +5 -0
- data/lib/javascriptmvc/steal/coffee/coffee-script.js +9 -0
- data/lib/javascriptmvc/steal/coffee/coffee.js +56 -0
- data/lib/javascriptmvc/steal/dev/dev.js +83 -0
- data/lib/javascriptmvc/steal/end.js +1 -0
- data/lib/javascriptmvc/steal/generate/app +23 -0
- data/lib/javascriptmvc/steal/generate/ejs.js +470 -0
- data/lib/javascriptmvc/steal/generate/generate.js +211 -0
- data/lib/javascriptmvc/steal/generate/inflector.js +117 -0
- data/lib/javascriptmvc/steal/generate/system.js +33 -0
- data/lib/javascriptmvc/steal/generate/templates/app/(application_name).css.ejs +10 -0
- data/lib/javascriptmvc/steal/generate/templates/app/(application_name).html.ejs +18 -0
- data/lib/javascriptmvc/steal/generate/templates/app/(application_name).js.ejs +10 -0
- data/lib/javascriptmvc/steal/generate/templates/app/docs/.ignore +0 -0
- data/lib/javascriptmvc/steal/generate/templates/app/resources/.ignore +0 -0
- data/lib/javascriptmvc/steal/generate/templates/app/resources/example.coffee.ejs +5 -0
- data/lib/javascriptmvc/steal/generate/templates/app/resources/example.js.ejs +13 -0
- data/lib/javascriptmvc/steal/generate/templates/app/resources/example.less.ejs +9 -0
- data/lib/javascriptmvc/steal/generate/templates/app/scripts/build.js.ejs +6 -0
- data/lib/javascriptmvc/steal/generate/templates/app/scripts/clean.js.ejs +6 -0
- data/lib/javascriptmvc/steal/generate/templates/app/test/.ignore +0 -0
- data/lib/javascriptmvc/steal/generate/templates/page.ejs +23 -0
- data/lib/javascriptmvc/steal/generate/test/test.js +92 -0
- data/lib/javascriptmvc/steal/get/get.js +163 -0
- data/lib/javascriptmvc/steal/get/gets.json +10 -0
- data/lib/javascriptmvc/steal/get/getter.js +115 -0
- data/lib/javascriptmvc/steal/get/github.js +134 -0
- data/lib/javascriptmvc/steal/get/json.js +172 -0
- data/lib/javascriptmvc/steal/getjs +5 -0
- data/lib/javascriptmvc/steal/js +56 -0
- data/lib/javascriptmvc/steal/js.bat +57 -0
- data/lib/javascriptmvc/steal/less/less.js +117 -0
- data/lib/javascriptmvc/steal/less/less_engine.js +2529 -0
- data/lib/javascriptmvc/steal/rhino/blank.html +6 -0
- data/lib/javascriptmvc/steal/rhino/build.js +31 -0
- data/lib/javascriptmvc/steal/rhino/docs.js +68 -0
- data/lib/javascriptmvc/steal/rhino/empty.html +12 -0
- data/lib/javascriptmvc/steal/rhino/env.js +11537 -0
- data/lib/javascriptmvc/steal/rhino/file.js +299 -0
- data/lib/javascriptmvc/steal/rhino/js.jar +0 -0
- data/lib/javascriptmvc/steal/rhino/loader.js +8 -0
- data/lib/javascriptmvc/steal/rhino/prompt.js +49 -0
- data/lib/javascriptmvc/steal/rhino/steal.js +122 -0
- data/lib/javascriptmvc/steal/rhino/test.js +16 -0
- data/lib/javascriptmvc/steal/steal.js +1317 -0
- data/lib/javascriptmvc/steal/steal.production.js +23 -0
- data/lib/javascriptmvc/steal/test/absoluteurl.html +7 -0
- data/lib/javascriptmvc/steal/test/absoluteurl/absoluteurl.js +1 -0
- data/lib/javascriptmvc/steal/test/absoluteurl/alert.js +1 -0
- data/lib/javascriptmvc/steal/test/another/two.js +2 -0
- data/lib/javascriptmvc/steal/test/one/four.js +1 -0
- data/lib/javascriptmvc/steal/test/one/one.js +6 -0
- data/lib/javascriptmvc/steal/test/qunit/qunit.html +22 -0
- data/lib/javascriptmvc/steal/test/qunit/qunit.js +3 -0
- data/lib/javascriptmvc/steal/test/qunit/steal_test.js +197 -0
- data/lib/javascriptmvc/steal/test/run.js +12 -0
- data/lib/javascriptmvc/steal/test/steal.html +37 -0
- data/lib/javascriptmvc/steal/test/test.js +82 -0
- data/lib/javascriptmvc/steal/test/three.js +3 -0
- data/lib/javascriptmvc/steal/testing/test.html +20 -0
- data/lib/javascriptmvc/steal/testing/testing.js +48 -0
- data/lib/javascriptmvc/steal/update +5 -0
- metadata +622 -0
File without changes
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
2
|
+
"http://www.w3.org/TR/html4/strict.dtd">
|
3
|
+
<html lang="en">
|
4
|
+
<head>
|
5
|
+
<title><%= application_name %></title>
|
6
|
+
<style type='text/css'>
|
7
|
+
body {font-family: verdana}
|
8
|
+
.error {border: solid 1px red;}
|
9
|
+
.error_text { color: red; font-size: 10px;}
|
10
|
+
td {padding: 3px;}
|
11
|
+
</style>
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<h1>Welcome to JavaScriptMVC 3.0!</h1>
|
15
|
+
<ul>
|
16
|
+
<li>Steal plugins and files in <i><%= path %>/<%= application_name %>.js</i>.</li>
|
17
|
+
<li>Change to production mode by changing <i>development</i> to <i>production</i> in this file.</li>
|
18
|
+
</ul>
|
19
|
+
<script type='text/javascript'
|
20
|
+
src='<%= path_to_steal ? path_to_steal +"/" : "" %>steal/steal.js?<%= path %>,development'>
|
21
|
+
</script>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,92 @@
|
|
1
|
+
// load('steal/generate/test/test.js')
|
2
|
+
|
3
|
+
load('steal/rhino/steal.js')
|
4
|
+
|
5
|
+
steal("//steal/generate/generate", function(steal){
|
6
|
+
|
7
|
+
steal.generate("steal/generate/templates/app","foo",{})
|
8
|
+
|
9
|
+
|
10
|
+
})
|
11
|
+
|
12
|
+
|
13
|
+
quit();
|
14
|
+
// load('steal/generate/test/run.js')
|
15
|
+
|
16
|
+
load('steal/test/helpers.js')
|
17
|
+
_S.clear();
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Tests generating a very basic plugin and then tries to load it
|
21
|
+
* (one level deep first then two levels deep)
|
22
|
+
*/
|
23
|
+
print("-- generate cnu plugin --");
|
24
|
+
|
25
|
+
_args = ['cnu']; load('steal/generate/plugin');_S.clear();
|
26
|
+
_S.open('cnu/cnu.html')
|
27
|
+
if(typeof steal == 'undefined') throw "didn't load steal"
|
28
|
+
_S.clear();
|
29
|
+
|
30
|
+
print("-- try 2 levels deep --");
|
31
|
+
_args = ['cnu/widget']; load('steal/generate/plugin');_S.clear();
|
32
|
+
_S.open('cnu/widget/widget.html')
|
33
|
+
if(typeof steal == 'undefined') throw "didn't load steal"
|
34
|
+
_S.clear();
|
35
|
+
|
36
|
+
/**
|
37
|
+
* Tests generating a very basic controller and model
|
38
|
+
*/
|
39
|
+
print("-- generate controller --");
|
40
|
+
_args = ['Cnu.Controllers.Todos']; load('steal/generate/controller');_S.clear();
|
41
|
+
print("-- generate model --");
|
42
|
+
_args = ['Cnu.Models.Todo']; load('steal/generate/model');_S.clear();
|
43
|
+
load('steal/file/file.js');
|
44
|
+
cnuContent = readFile('cnu/cnu.js').
|
45
|
+
replace(".models()", ".models('todo')").
|
46
|
+
replace(".controllers()", ".controllers('todos')");
|
47
|
+
new steal.File('cnu/cnu.js').save( cnuContent );
|
48
|
+
|
49
|
+
print("-- generate page --")
|
50
|
+
_args = ['cnugen','cnu']; load('steal/generate/page');_S.clear();
|
51
|
+
|
52
|
+
_S.open('cnu/cnugen.html')
|
53
|
+
if(typeof Cnu.Controllers.TodosController == 'undefined') throw "didn't load Cnu.Controllers.TodosController"
|
54
|
+
if(typeof Cnu.Models.Todo == 'undefined') throw "didn't load Cnu.Models.Todo"
|
55
|
+
|
56
|
+
|
57
|
+
/**
|
58
|
+
* Tests generating a unit and functional tests
|
59
|
+
*/
|
60
|
+
_S.clear();
|
61
|
+
print("-- generate unit test --");
|
62
|
+
_args = ['cnu','cnu_unit']; load('steal/generate/unit_test');_S.clear();
|
63
|
+
print("-- generate functional test --");
|
64
|
+
_args = ['cnu','cnu_functional']; load('steal/generate/functional_test');_S.clear();
|
65
|
+
|
66
|
+
_S.clear();
|
67
|
+
load('steal/file/file.js');
|
68
|
+
cnuQunitContent = readFile('cnu/test/qunit/qunit.js').
|
69
|
+
replace(".then(\"basic\")", ".then(\"cnu_unit_test\")");
|
70
|
+
new steal.File('cnu/test/qunit/qunit.js').save( cnuQunitContent );
|
71
|
+
|
72
|
+
cnuFuncunitContent = readFile('cnu/test/funcunit/funcunit.js').
|
73
|
+
replace(".then(\"basic\")", ".then(\"cnu_functional_test\")");
|
74
|
+
new steal.File('cnu/test/funcunit/funcunit.js').save( cnuFuncunitContent );
|
75
|
+
|
76
|
+
_S.clear();
|
77
|
+
//now see if unit and functional run
|
78
|
+
print("-- Run unit tests for cnu --");
|
79
|
+
load('cnu/scripts/qunit.js');
|
80
|
+
|
81
|
+
_S.sleep(300);
|
82
|
+
|
83
|
+
_S.clear();
|
84
|
+
load('steal/file/file.js');
|
85
|
+
|
86
|
+
_S.clear();
|
87
|
+
print("-- Run functional tests for cnu --");
|
88
|
+
load('cnu/scripts/funcunit.js');_S.clear();
|
89
|
+
|
90
|
+
_S.sleep(300);
|
91
|
+
|
92
|
+
_S.clear();
|
@@ -0,0 +1,163 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
steal("//steal/get/json","//steal/rhino/prompt",function(steal){
|
4
|
+
/**
|
5
|
+
* @parent stealjs
|
6
|
+
* Downloads and installs a plugin from a url. Normally this is run from the steal/getjs script.
|
7
|
+
*
|
8
|
+
* <p>The following copies the mustache-javascript repo to a local mustache folder.</p>
|
9
|
+
*
|
10
|
+
* @codestart text
|
11
|
+
* js steal/getjs "ttp://github.com/tdreyno/mustache-javascriptmvc mustache
|
12
|
+
* @codeend
|
13
|
+
* <p>Get will:</p>
|
14
|
+
* <ul>
|
15
|
+
* <li>Download the files that comprise the plugin.</li>
|
16
|
+
* <li>Prompt you to install dependencies found in its dependencies.json file.</li>
|
17
|
+
* <li>Prompt you to run an install script.</li>
|
18
|
+
* </ul>
|
19
|
+
* <h2>Offical Plugins</h2>
|
20
|
+
* <p>JavaScriptMVC maintains a list of offical plugins compatible with JavaScriptMVC 3.0.
|
21
|
+
* You can install these by simply typing there name. This is the current list of
|
22
|
+
* offical plugins:
|
23
|
+
* </p>
|
24
|
+
* <ul>
|
25
|
+
* <li><code>mustache</code> - mustache templates.</li>
|
26
|
+
* <li><code>steal</code> - script loader, and more.</li>
|
27
|
+
* <li><code>jquery</code> - jQuery 1.4.3 and the MVC components.</li>
|
28
|
+
* <li><code>funcunit</code> - Functional testing platform.</li>
|
29
|
+
* <li><code>phui</code> - UI widgets.</li>
|
30
|
+
* <li><code>documentjs</code> - documentation engine.</li>
|
31
|
+
* </ul>
|
32
|
+
* <p>You can install these just by writing</p>
|
33
|
+
* @codestart text
|
34
|
+
* js steal/getjs funcunit
|
35
|
+
* @codeend
|
36
|
+
* <p>If you have something good, let us know on the forums and we can make your project official too!</p>
|
37
|
+
* <h2>The Get function</h2>
|
38
|
+
* get takes a url or official plugin name and installs it.
|
39
|
+
* @param {String} url the path to a svn or github repo or a name of a recognized plugin.
|
40
|
+
* @param {Object} options configure the download.
|
41
|
+
* <table class='options'>
|
42
|
+
* <tr>
|
43
|
+
* <th>Name</th><th>Description</th>
|
44
|
+
* </tr>
|
45
|
+
* <tr><td>name</td>
|
46
|
+
* <td>The name of the folder to put the download in.</td></tr>
|
47
|
+
*
|
48
|
+
* </table>
|
49
|
+
*
|
50
|
+
*/
|
51
|
+
var get = (steal.get = function(url, options){
|
52
|
+
options = steal.opts(options,{name: 1});
|
53
|
+
var getter,
|
54
|
+
name = options.name
|
55
|
+
|
56
|
+
if(! url.match(/^http/)){
|
57
|
+
name = url;
|
58
|
+
url = pluginList(name);
|
59
|
+
}
|
60
|
+
if(!url){
|
61
|
+
print("There is no plugin named "+name);
|
62
|
+
return;
|
63
|
+
}
|
64
|
+
getter = url.indexOf("github.com") != -1 ? get.github : get.getter;
|
65
|
+
if(!name){
|
66
|
+
name = guessName(url);
|
67
|
+
}
|
68
|
+
//make the folder for this plugin
|
69
|
+
new steal.File(name).mkdirs();
|
70
|
+
|
71
|
+
installDependencies(url, name);
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
//get contents
|
76
|
+
var fetcher = new getter(url, name, options);
|
77
|
+
fetcher.quiet = options.quiet || true
|
78
|
+
|
79
|
+
fetcher.fetch();
|
80
|
+
|
81
|
+
print("\n "+name+" plugin downloaded.");
|
82
|
+
runInstallScript(name);
|
83
|
+
|
84
|
+
}),
|
85
|
+
/**
|
86
|
+
* @hide
|
87
|
+
* looks for a url elsewhere
|
88
|
+
* @param {Object} name
|
89
|
+
*/
|
90
|
+
pluginList = function(name){
|
91
|
+
print(" Looking for plugin ...")
|
92
|
+
|
93
|
+
var plugin_list_source =
|
94
|
+
readUrl("http://github.com/jupiterjs/steal/raw/master/get/gets.json");
|
95
|
+
var plugin_list;
|
96
|
+
eval("plugin_list = "+plugin_list_source);
|
97
|
+
if(plugin_list[name]) {
|
98
|
+
return plugin_list[name]
|
99
|
+
}
|
100
|
+
var plugin_list_source =
|
101
|
+
readFile("gets.json");
|
102
|
+
|
103
|
+
eval("plugin_list = "+plugin_list_source);
|
104
|
+
return plugin_list[name]
|
105
|
+
},
|
106
|
+
//gets teh name from the url
|
107
|
+
guessName= function(url){
|
108
|
+
var name = new steal.File(url).basename();
|
109
|
+
if(name == 'trunk' || ! name){
|
110
|
+
name = new steal.File( new steal.File(url).dir() ).basename();
|
111
|
+
}
|
112
|
+
return name;
|
113
|
+
},
|
114
|
+
installDependencies= function(url, name){
|
115
|
+
print(" Checking dependencies ...");
|
116
|
+
var depend_url = url + (url.lastIndexOf("/") == url.length - 1 ? "" : "/" )+"dependencies.json",
|
117
|
+
depend_text,
|
118
|
+
dependencies;
|
119
|
+
try{
|
120
|
+
depend_text = readUrl(depend_url);
|
121
|
+
}catch(e){};
|
122
|
+
|
123
|
+
if(!depend_text ) {
|
124
|
+
print(" No dependancies");
|
125
|
+
return;
|
126
|
+
}
|
127
|
+
|
128
|
+
try{
|
129
|
+
dependencies = JSONparse( depend_text );
|
130
|
+
}catch(e){
|
131
|
+
print(" No or mailformed dependencies");
|
132
|
+
return;
|
133
|
+
}
|
134
|
+
|
135
|
+
|
136
|
+
for(var plug_name in dependencies){
|
137
|
+
if(steal.prompt.yesno("Install dependancy "+plug_name+"? (yN):")){
|
138
|
+
print("Installing "+plug_name+"...");
|
139
|
+
steal.get(dependencies[plug_name], {name: plug_name});
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
print(" Installed all dependencies for "+name)
|
144
|
+
},
|
145
|
+
runInstallScript = function(name){
|
146
|
+
if(readFile(name+"/install.js")){
|
147
|
+
|
148
|
+
var res = steal.prompt.yesno("\n "+name+" has an install script."+
|
149
|
+
"\n WARNING! Install scripts may be evil. "+
|
150
|
+
"\n You can run it manually after reading the file by running:"+
|
151
|
+
"\n js "+name+"/install.js"+
|
152
|
+
"\n\n Would you like to run it now? (yN):")
|
153
|
+
if(res){
|
154
|
+
print(" running ...")
|
155
|
+
load(name+"/install.js")
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
|
161
|
+
},
|
162
|
+
"//steal/get/getter",
|
163
|
+
"//steal/get/github")
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"mustache" : "http://github.com/tdreyno/mustache-javascriptmvc",
|
3
|
+
"steal" : "http://github.com/jupiterjs/steal",
|
4
|
+
"jquery" : "http://github.com/jupiterjs/javascriptmvc",
|
5
|
+
"funcunit" : "http://github.com/jupiterjs/funcunit",
|
6
|
+
"phui" : "http://github.com/jupiterjs/phui",
|
7
|
+
"documentjs" : "http://github.com/jupiterjs/documentjs",
|
8
|
+
"ss/state_machine" : "http://github.com/secondstory/secondstoryjs-statemachine",
|
9
|
+
"ss/router" : "http://github.com/secondstory/secondstoryjs-router"
|
10
|
+
}
|
@@ -0,0 +1,115 @@
|
|
1
|
+
/* This is a port to JavaScript of Rail's plugin functionality. It uses the following
|
2
|
+
* license:
|
3
|
+
* This is Free Software, copyright 2005 by Ryan Tomayko (rtomayko@gmail.com)
|
4
|
+
and is licensed MIT: (http://www.opensource.org/licenses/mit-license.php)
|
5
|
+
*/
|
6
|
+
|
7
|
+
steal(function(steal){
|
8
|
+
|
9
|
+
|
10
|
+
steal.get.getter = function(url, where, options , level){
|
11
|
+
if(url){
|
12
|
+
this.init.apply(this, arguments)
|
13
|
+
}
|
14
|
+
}
|
15
|
+
steal.get.getter.prototype = {
|
16
|
+
init: function( url, where, options, level ) {
|
17
|
+
|
18
|
+
this.url = url + ( /\/$/.test(url) ? "" : "/" );
|
19
|
+
this.level = level || -1
|
20
|
+
this.cwd = where || "."
|
21
|
+
this.quite = options.quite
|
22
|
+
this.ignore = options.ignore;
|
23
|
+
},
|
24
|
+
ls: function() {
|
25
|
+
var links = [],
|
26
|
+
rhf = this;
|
27
|
+
|
28
|
+
|
29
|
+
if(this.url.match( /^svn:\/\/.*/ ) ){
|
30
|
+
print('not supported')
|
31
|
+
}else{
|
32
|
+
links.concat( rhf.links("", readUrl( this.url) ) );
|
33
|
+
}
|
34
|
+
|
35
|
+
|
36
|
+
return links;
|
37
|
+
//store and return flatten
|
38
|
+
},
|
39
|
+
//gets the links from a page
|
40
|
+
links: function( base_url, contents ) {
|
41
|
+
var links = [],
|
42
|
+
anchors = contents.match(/href\s*=\s*\"*[^\">]*/ig),
|
43
|
+
ignore = this.ignore;
|
44
|
+
|
45
|
+
anchors.forEach(function(link){
|
46
|
+
link = link.replace(/href="/i, "");
|
47
|
+
|
48
|
+
if( !/svnindex.xsl$/.test(link) && ! /^(\w*:|)\/\//.test( link ) && ! /^\./.test(link) ){
|
49
|
+
links.push( (new steal.File(base_url)).join(link) );
|
50
|
+
}
|
51
|
+
|
52
|
+
})
|
53
|
+
|
54
|
+
return links;
|
55
|
+
},
|
56
|
+
//pushes a directory to go into and check
|
57
|
+
push_d: function( dir ) {
|
58
|
+
this.cwd = (new steal.File(this.cwd)).join(dir);
|
59
|
+
new steal.File( this.cwd ).mkdir()
|
60
|
+
},
|
61
|
+
//pops up to the parent directory
|
62
|
+
pop_d: function() {
|
63
|
+
this.cwd = new steal.File(this.cwd).dir();
|
64
|
+
},
|
65
|
+
//downloads content from a url
|
66
|
+
download: function( link ) {
|
67
|
+
//var text = readUrl( link);
|
68
|
+
|
69
|
+
var bn = new steal.File(link).basename(),
|
70
|
+
f = new steal.File(this.cwd).join(bn),
|
71
|
+
oldsrc,
|
72
|
+
newsrc,
|
73
|
+
p = " ";
|
74
|
+
|
75
|
+
if(f.match(this.ignore)){
|
76
|
+
print(" I "+f);
|
77
|
+
return;
|
78
|
+
}
|
79
|
+
|
80
|
+
oldsrc = readFile(f);
|
81
|
+
new steal.File(f).download_from( link, true );
|
82
|
+
newsrc = readFile(f);
|
83
|
+
|
84
|
+
if(oldsrc){
|
85
|
+
if(oldsrc == newsrc) {
|
86
|
+
return;
|
87
|
+
}
|
88
|
+
print(p+"U "+f);
|
89
|
+
}else{
|
90
|
+
print(p+"A "+f);
|
91
|
+
}
|
92
|
+
},
|
93
|
+
//gets the url or the directory
|
94
|
+
fetch: function( links ){
|
95
|
+
var auto_fetch = !links;
|
96
|
+
links = links || [this.url]
|
97
|
+
var rhf = this;
|
98
|
+
links.forEach(function(link){
|
99
|
+
link.match(/\/$/) || auto_fetch ? rhf.fetch_dir(link) : rhf.download(link);
|
100
|
+
})
|
101
|
+
},
|
102
|
+
//gets a directory
|
103
|
+
fetch_dir: function( url ) {
|
104
|
+
this.level++;
|
105
|
+
if(this.level > 0) this.push_d( new steal.File(url).basename() );
|
106
|
+
|
107
|
+
var contents = readUrl(url)
|
108
|
+
this.fetch(this.links(url, contents));
|
109
|
+
if(this.level > 0) this.pop_d();
|
110
|
+
this.level --;
|
111
|
+
}
|
112
|
+
|
113
|
+
}
|
114
|
+
|
115
|
+
})
|
@@ -0,0 +1,134 @@
|
|
1
|
+
/* This is a port to JavaScript of Rail's plugin functionality. It uses the following
|
2
|
+
* license:
|
3
|
+
* This is Free Software, copyright 2005 by Ryan Tomayko (rtomayko@gmail.com)
|
4
|
+
and is licensed MIT: (http://www.opensource.org/licenses/mit-license.php)
|
5
|
+
*/
|
6
|
+
|
7
|
+
steal(function(steal){
|
8
|
+
|
9
|
+
steal.get.github = function(url, where, options , level){
|
10
|
+
if(url){
|
11
|
+
this.init.apply(this, arguments)
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
steal.get.github.prototype = new steal.get.getter();
|
16
|
+
steal.extend(steal.get.github.prototype,{
|
17
|
+
init: function( url, where, options, level ) {
|
18
|
+
|
19
|
+
steal.get.getter.prototype.init.apply(this,arguments);
|
20
|
+
this.orig_cwd = this.cwd;
|
21
|
+
if(this.ignore){
|
22
|
+
this.ignore.push(".gitignore", "dist")
|
23
|
+
}else{
|
24
|
+
this.ignore = [".gitignore", "dist"]
|
25
|
+
}
|
26
|
+
var split = url.split("/")
|
27
|
+
this.username = split[3];
|
28
|
+
this.project = split[4];
|
29
|
+
this.branch = options.tag || "master";
|
30
|
+
},
|
31
|
+
get_latest_commit: function() {
|
32
|
+
// http://github.com/api/v2/json/commits/list/jupiterjs/steal/master
|
33
|
+
var latestCommitUrl = "http://github.com/api/v2/json/commits/list/"+this.username+"/"+this.project+"/"+this.branch,
|
34
|
+
commitsText = readUrl(latestCommitUrl)
|
35
|
+
eval("var c = "+commitsText);
|
36
|
+
var commitId = c.commits[0].tree
|
37
|
+
return commitId;
|
38
|
+
},
|
39
|
+
ls_top: function( link ) {
|
40
|
+
var id = this.get_latest_commit(),
|
41
|
+
browseUrl = "http://github.com/api/v2/json/tree/show/"+this.username+"/"+this.project+"/"+id,
|
42
|
+
browseText = readUrl(browseUrl)
|
43
|
+
eval("var tree = "+browseText);
|
44
|
+
var urls = [],
|
45
|
+
item;
|
46
|
+
for(var i=0; i<tree.tree.length; i++){
|
47
|
+
item = tree.tree[i];
|
48
|
+
if(item.type == "blob"){
|
49
|
+
urls.push(this.url+item.name);
|
50
|
+
}
|
51
|
+
else if(item.type == "tree"){
|
52
|
+
urls.push(this.url+item.name+'/');
|
53
|
+
}
|
54
|
+
}
|
55
|
+
return urls;
|
56
|
+
},
|
57
|
+
//links are relative
|
58
|
+
links: function( base_url, contents ) {
|
59
|
+
var links = [],
|
60
|
+
newLink,
|
61
|
+
anchors = contents.match(/href\s*=\s*\"*[^\">]*/ig),
|
62
|
+
ignore = this.ignore,
|
63
|
+
self = this,
|
64
|
+
base = self.url + self.cwd.replace(self.orig_cwd+"/", "");
|
65
|
+
anchors.forEach(function(link){
|
66
|
+
link = link.replace(/href="/i, "");
|
67
|
+
newLink = base+(/\/$/.test(base) ? "": "/")+link;
|
68
|
+
links.push(newLink);
|
69
|
+
})
|
70
|
+
return links;
|
71
|
+
},
|
72
|
+
download: function( link ) {
|
73
|
+
// get real download link
|
74
|
+
// http://github.com/jupiterjs/funcunit/qunit/qunit.js -->
|
75
|
+
// http://github.com/jupiterjs/steal/raw/master/test/qunit/qunit.js
|
76
|
+
var rawUrl = this.url+"raw/"+this.branch+"/"+link.replace(this.url, ""),
|
77
|
+
bn = new steal.File(link).basename(),
|
78
|
+
f = new steal.File(this.cwd).join(bn);
|
79
|
+
|
80
|
+
for(var i=0; i<this.ignore.length; i++){
|
81
|
+
if(f.match(this.ignore[i])){
|
82
|
+
print(" I "+f);
|
83
|
+
return;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
var oldsrc = readFile(f),
|
88
|
+
tmp = new steal.File("tmp");
|
89
|
+
|
90
|
+
tmp.download_from( rawUrl, true );
|
91
|
+
var newsrc = readFile("tmp");
|
92
|
+
var p = " ",
|
93
|
+
pstar = " "
|
94
|
+
if(oldsrc){
|
95
|
+
var trim = /\s+$/gm,
|
96
|
+
jar = /\.jar$/.test(f)
|
97
|
+
|
98
|
+
|
99
|
+
if ((!jar && oldsrc.replace(trim, '') == newsrc.replace(trim, ''))
|
100
|
+
|| (jar && oldsrc == newsrc)) {
|
101
|
+
tmp.remove();
|
102
|
+
return;
|
103
|
+
}
|
104
|
+
print(pstar+"U "+f);
|
105
|
+
tmp.copyTo(f);
|
106
|
+
}else{
|
107
|
+
print(pstar+"A "+f);
|
108
|
+
tmp.copyTo(f);
|
109
|
+
}
|
110
|
+
tmp.remove();
|
111
|
+
},
|
112
|
+
fetch_dir: function( url ) {
|
113
|
+
this.level++;
|
114
|
+
if (this.level > 0) {
|
115
|
+
this.push_d(new steal.File(url).basename());
|
116
|
+
}
|
117
|
+
if(this.level == 0){
|
118
|
+
this.fetch(this.ls_top())
|
119
|
+
} else{
|
120
|
+
// change to the raw url
|
121
|
+
// http://github.com/jupiterjs/javascriptmvc/
|
122
|
+
// http://github.com/jupiterjs/javascriptmvc/tree/master/controller?raw=true
|
123
|
+
var rawUrl = this.url+"tree/"+this.branch+"/"+url.replace(this.url, "")+"?raw=true",
|
124
|
+
contents = readUrl(rawUrl)
|
125
|
+
this.fetch(this.links(url, contents));
|
126
|
+
}
|
127
|
+
if (this.level > 0) {
|
128
|
+
this.pop_d();
|
129
|
+
}
|
130
|
+
this.level --;
|
131
|
+
}
|
132
|
+
})
|
133
|
+
|
134
|
+
})
|