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
data/.document
ADDED
data/.gitignore
ADDED
data/README.markdown
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "javascriptmvc"
|
8
|
+
gem.summary = %Q{Binaries for interacting with JavascriptMVC}
|
9
|
+
gem.email = "tdreyno@gmail.com"
|
10
|
+
gem.homepage = "http://github.com/tdreyno/javascriptmvc"
|
11
|
+
gem.authors = ["Thomas Reynolds"]
|
12
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
13
|
+
end
|
14
|
+
Jeweler::GemcutterTasks.new
|
15
|
+
rescue LoadError
|
16
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
17
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.0.0.pre15
|
data/bin/jmvc-build
ADDED
data/bin/jmvc-gen
ADDED
data/bin/jmvc-get
ADDED
data/bin/jmvc-init
ADDED
data/bin/jmvc-update
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
class JavascriptMVC
|
4
|
+
def self.init!(folder=nil, *options)
|
5
|
+
if !folder
|
6
|
+
$stderr.puts "Error: You must provide a path to initialize a new project"
|
7
|
+
return
|
8
|
+
end
|
9
|
+
|
10
|
+
FileUtils.mkdir_p(folder)
|
11
|
+
local_jmvc = File.join(File.dirname(__FILE__), "javascriptmvc")
|
12
|
+
|
13
|
+
client_jmvc = File.expand_path(folder)
|
14
|
+
if !File.exists?(client_jmvc) || !File.directory?(client_jmvc) || !File.writable?(client_jmvc)
|
15
|
+
$stderr.puts "Error: You must have permission to write to the destination folder"
|
16
|
+
return
|
17
|
+
end
|
18
|
+
|
19
|
+
$stderr.puts "Copying library files"
|
20
|
+
library_folders = [
|
21
|
+
File.join(local_jmvc, "documentjs"),
|
22
|
+
File.join(local_jmvc, "funcunit"),
|
23
|
+
File.join(local_jmvc, "jquery"),
|
24
|
+
File.join(local_jmvc, "steal")
|
25
|
+
]
|
26
|
+
FileUtils.cp_r(library_folders, client_jmvc)
|
27
|
+
|
28
|
+
$stderr.puts "Making binary files executable"
|
29
|
+
FileUtils.chmod 0755, File.join(client_jmvc, "steal", "js")
|
30
|
+
|
31
|
+
$stderr.puts "Success: Project initialized in #{folder}"
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.gen!(app = nil, *options)
|
35
|
+
js_bin = get_js_binary_file
|
36
|
+
|
37
|
+
if !js_bin
|
38
|
+
return
|
39
|
+
end
|
40
|
+
|
41
|
+
if !app
|
42
|
+
$stderr.puts "Error: You must include the path for the app you want to generate"
|
43
|
+
return
|
44
|
+
end
|
45
|
+
|
46
|
+
$stderr.puts `#{js_bin} steal/generate/app #{app}`
|
47
|
+
end
|
48
|
+
|
49
|
+
def self.get!(source = nil, *options)
|
50
|
+
js_bin = get_js_binary_file
|
51
|
+
|
52
|
+
if !js_bin
|
53
|
+
return
|
54
|
+
end
|
55
|
+
|
56
|
+
if !source
|
57
|
+
$stderr.puts "Error: You must include the path (or library name) of the module you want to get"
|
58
|
+
return
|
59
|
+
end
|
60
|
+
|
61
|
+
$stderr.puts `#{js_bin} steal/getjs #{source}`
|
62
|
+
end
|
63
|
+
|
64
|
+
def self.update!
|
65
|
+
js_bin = get_js_binary_file
|
66
|
+
|
67
|
+
if !js_bin
|
68
|
+
return
|
69
|
+
end
|
70
|
+
|
71
|
+
$stderr.puts "Updating library from github"
|
72
|
+
`#{js_bin} steal/update`
|
73
|
+
$stderr.puts "Update complete"
|
74
|
+
end
|
75
|
+
|
76
|
+
def self.build!(*apps)
|
77
|
+
js_bin = get_js_binary_file
|
78
|
+
|
79
|
+
if !js_bin
|
80
|
+
return
|
81
|
+
end
|
82
|
+
|
83
|
+
$stderr.puts "Building apps: #{apps.join(',')}"
|
84
|
+
$stderr.puts `#{js_bin} steal/buildjs #{apps.join(" ")}`
|
85
|
+
end
|
86
|
+
|
87
|
+
def self.get_js_binary_file(prefix=nil)
|
88
|
+
js_bin = File.join("steal", "js")
|
89
|
+
js_bin = prefix + js_bin if prefix
|
90
|
+
|
91
|
+
if !File.exists?(js_bin) || !File.executable?(js_bin)
|
92
|
+
$stderr.puts "Error: StealJS must exist in steal/js and be executable"
|
93
|
+
end
|
94
|
+
|
95
|
+
js_bin
|
96
|
+
end
|
97
|
+
end
|
File without changes
|
@@ -0,0 +1,76 @@
|
|
1
|
+
/**
|
2
|
+
* Used to set scope to add to classes or methods in another file.
|
3
|
+
* Examples:
|
4
|
+
* @codestart no-highlight
|
5
|
+
* /* @add steal.String Static *| adds to steal.String's static methods
|
6
|
+
* /* @add steal.Controller Prototype *| adds to steal.Controller's prototype methods
|
7
|
+
* @codeend
|
8
|
+
* It's important to note that add must be in its own comment block.
|
9
|
+
*/
|
10
|
+
DocumentJS.Pair.extend('DocumentJS.Add',
|
11
|
+
{
|
12
|
+
comment_setup: DocumentJS.Function.prototype.comment_setup,
|
13
|
+
/**
|
14
|
+
* Looks for a line like @add (scope) (Static|Prototype)
|
15
|
+
* @param {String} line the line that had @add
|
16
|
+
*/
|
17
|
+
add_add : function(line){
|
18
|
+
var m = line.match(/^@add\s+([\w\.]+)\s*([\w\.]+)?/i)
|
19
|
+
if(m){
|
20
|
+
var sub = m.pop()
|
21
|
+
this.sub_scope = sub ? sub.toLowerCase() : null;
|
22
|
+
this.scope_name = m.pop()
|
23
|
+
}
|
24
|
+
},
|
25
|
+
/**
|
26
|
+
* Searches for the new scope.
|
27
|
+
* @return {DocumentJS.Pair} The new scope where additional comments will be added
|
28
|
+
*/
|
29
|
+
scope : function(){
|
30
|
+
|
31
|
+
var Class = DocumentJS.Class
|
32
|
+
|
33
|
+
//find
|
34
|
+
var inst;
|
35
|
+
for(var l =0 ; l < Class.listing.length; l++){
|
36
|
+
if(Class.listing[l].name == this.scope_name) {
|
37
|
+
inst = Class.listing[l];break;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
if(!inst){
|
41
|
+
var Class = DocumentJS.Constructor
|
42
|
+
for(var l =0 ; l < Class.listing.length; l++){
|
43
|
+
if(Class.listing[l].name == this.scope_name) {
|
44
|
+
inst = Class.listing[l];break;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
if(!inst){
|
49
|
+
var Class = DocumentJS.Page
|
50
|
+
for(var l =0 ; l < Class.listing.length; l++){
|
51
|
+
if(Class.listing[l].name == this.scope_name) {
|
52
|
+
inst = Class.listing[l];break;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
if(!inst) return this;
|
57
|
+
if(this.sub_scope){
|
58
|
+
var children = inst.children;
|
59
|
+
var child;
|
60
|
+
for(var i=0; i< children.length; i++){
|
61
|
+
if(children[i].Class.shortName.toLowerCase() == this.sub_scope.toLowerCase()) {
|
62
|
+
child = children[i];break;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
if(child) return child;
|
66
|
+
}
|
67
|
+
return inst;
|
68
|
+
|
69
|
+
},
|
70
|
+
toHTML: function(){return ""},
|
71
|
+
linker: function(){}
|
72
|
+
});
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
@@ -0,0 +1,285 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
* @class DocumentJS
|
4
|
+
* @tag core, documentation
|
5
|
+
* DocumentJS provides powerful and easy to extend documentation functionality.
|
6
|
+
* It's smart enough to guess
|
7
|
+
* at things like function names and parameters, but powerful enough to generate
|
8
|
+
* <span class='highlight'>JavaScriptMVC's entire website</span>!
|
9
|
+
*
|
10
|
+
* <br/>
|
11
|
+
*
|
12
|
+
* <p>DocumentJS is pure JavaScript so it is easy to modify and make improvements. First, lets show what
|
13
|
+
* DocumentJS can document: </p>
|
14
|
+
* <ul>
|
15
|
+
* <li>[DocumentJS.Attribute | @attribute] - values on an object.</li>
|
16
|
+
* <li>[DocumentJS.Function | @function] - functions on an object.</li>
|
17
|
+
* <li>[DocumentJS.Constructor | @constructor] - functions you call like: new Thing()</li>
|
18
|
+
* <li>[DocumentJS.Class| @class] - normal JS Objects and source that uses [jQuery.Class]</li>
|
19
|
+
* </ul>
|
20
|
+
* <p>You can also specifify where your functions and attributes are being added with: </p>
|
21
|
+
* <ul>
|
22
|
+
* <li>[DocumentJS.Prototype | @prototype] - add to the previous class or constructor's prototype functions</li>
|
23
|
+
* <li>[DocumentJS.Static | @static] - add to the previous class or constructor's static functions</li>
|
24
|
+
* <li>[DocumentJS.Add |@add] - add docs to a class or construtor described in another file</li>
|
25
|
+
* </ul>
|
26
|
+
* <p>Finally, you have [DocumentJS.Directive|directives] that provide addtional info about the comment:</p>
|
27
|
+
* <ul>
|
28
|
+
* <li>[DocumentJS.Directive.Alias|@alias] - another commonly used name for Class or Constructor</li>
|
29
|
+
* <li>[DocumentJS.Directive.Author|@author] - author of class</li>
|
30
|
+
* <li>[DocumentJS.Directive.CodeStart|@codestart] -> [DocumentJS.Directive.CodeEnd|@codeend] - insert highlighted code block</li>
|
31
|
+
* <li>[DocumentJS.Directive.Hide|@hide] - hide in Class view</li>
|
32
|
+
* <li>[DocumentJS.Directive.Inherits|@inherits] - what the Class or Constructor inherits</li>
|
33
|
+
* <li>[DocumentJS.Directive.Init|@init] - constructor function</li>
|
34
|
+
* <li>[DocumentJS.Directive.Param|@param] - A function's parameter</li>
|
35
|
+
* <li>[DocumentJS.Directive.Plugin|@plugin] - by which plugin this object gets steald</li>
|
36
|
+
* <li>[DocumentJS.Directive.Return|@return] - what a function returns</li>
|
37
|
+
* <li>[DocumentJS.Directive.Tag|@tag] - tags for searching</li>
|
38
|
+
* </ul>
|
39
|
+
* <h3>Example</h3>
|
40
|
+
* The following documents a Person constructor.
|
41
|
+
* @codestart
|
42
|
+
* /* @constructor
|
43
|
+
* * Person represents a human with a name. Read about the
|
44
|
+
* * animal class [Animal | here].
|
45
|
+
* * @init
|
46
|
+
* * You must pass in a name.
|
47
|
+
* * @params {String} name A person's name
|
48
|
+
* *|
|
49
|
+
* Person = function(name){
|
50
|
+
* this.name = name
|
51
|
+
* Person.count ++;
|
52
|
+
* }
|
53
|
+
* /* @Static *|
|
54
|
+
* steal.Object.extend(Person, {
|
55
|
+
* /* Number of People *|
|
56
|
+
* count: 0
|
57
|
+
* })
|
58
|
+
* /* @Prototype *|
|
59
|
+
* Person.prototype = {
|
60
|
+
* /* Returns a formal name
|
61
|
+
* * @return {String} the name with "Mrs." added
|
62
|
+
* *|
|
63
|
+
* fancy_name : function(){
|
64
|
+
* return "Mrs. "+this.name;
|
65
|
+
* }
|
66
|
+
* }
|
67
|
+
* @codeend
|
68
|
+
* There are a few things to notice:
|
69
|
+
* <ul>
|
70
|
+
* <li>The example closes comments with <i>*|</i>. You should close them with / instead of |.</li>
|
71
|
+
* <li>We create a link to another class with <i>[Animal | here]</i>.</li>
|
72
|
+
* </ul>
|
73
|
+
*
|
74
|
+
* <h3>Using with a JavaScritpMVC application</h3>
|
75
|
+
* You just have to run the docs script in your apps scripts folder:
|
76
|
+
* <pre>js <i>APPNAME</i>/scripts/docs.js</pre>
|
77
|
+
* Open <i>APPNAME</i>/docs.html to see your documentation.
|
78
|
+
* <h3>Using without JavaScriptMVC</h3>
|
79
|
+
* Coming soon!
|
80
|
+
* <h3>Inspiration</h3>
|
81
|
+
* DocumentJS was inspired by the [http://api.jquery.com/ jQuery API Browser] by [http://remysharp.com/ Remy Sharp]
|
82
|
+
*/
|
83
|
+
DocumentJS.extend(DocumentJS,
|
84
|
+
/* @Static */
|
85
|
+
{
|
86
|
+
render_to: function(file, ejs, data){
|
87
|
+
new DocumentJS.File(file).save( new DocumentJS.EJS({ text : readFile(ejs) }).render(data) );
|
88
|
+
//MVCOptions.save(file, this.render(ejs, data) );
|
89
|
+
},
|
90
|
+
render : function(ejs, data){
|
91
|
+
var v = new DocumentJS.EJS({text: readFile(ejs), name: ejs });
|
92
|
+
return v.render(data)
|
93
|
+
},
|
94
|
+
/**
|
95
|
+
* Replaces content in brackets [] with a link to source.
|
96
|
+
* @param {String} content Any text, usually a commment.
|
97
|
+
*/
|
98
|
+
link_content : function(content){
|
99
|
+
return content.replace(/\[\s*([^\|\]\s]*)\s*\|?\s*([^\]]*)\s*\]/g, function(match, first, n){
|
100
|
+
//need to get last
|
101
|
+
//need to remove trailing whitespace
|
102
|
+
var url = DocumentJS.objects[first];
|
103
|
+
if(url){
|
104
|
+
if(!n){
|
105
|
+
n = first.replace(/\.prototype|\.static/,"")
|
106
|
+
}
|
107
|
+
return "<a href='"+url+"'>"+n+"</a>"
|
108
|
+
}else if(typeof first == 'string' && first.match(/^https?|www\.|#/)){
|
109
|
+
return "<a href='"+first+"'>"+(n || first)+"</a>"
|
110
|
+
}
|
111
|
+
return match;
|
112
|
+
})
|
113
|
+
},
|
114
|
+
/**
|
115
|
+
* Will replace with a link to a class or function if appropriate.
|
116
|
+
* @param {Object} content
|
117
|
+
*/
|
118
|
+
link : function(content){
|
119
|
+
var url = DocumentJS.objects[content];
|
120
|
+
return url ? "<a href='#&who="+content+"'>"+content+"</a>" : content;
|
121
|
+
},
|
122
|
+
/**
|
123
|
+
* A map of the full name of all the objects the application creates and the url to
|
124
|
+
* the documentation for them.
|
125
|
+
*/
|
126
|
+
objects : {}
|
127
|
+
});
|
128
|
+
|
129
|
+
/**
|
130
|
+
* @constructor
|
131
|
+
* @hide
|
132
|
+
* Creates documentation for an application
|
133
|
+
* @init
|
134
|
+
* Generates documentation from the passed in files.
|
135
|
+
* @param {Array} total An array of path names or objects with a path and text.
|
136
|
+
* @param {Object} app_name The application name.
|
137
|
+
*/
|
138
|
+
DocumentJS.Application = function(total, app_name){
|
139
|
+
|
140
|
+
this.name = app_name;
|
141
|
+
this.total = total;
|
142
|
+
this.files = [];
|
143
|
+
|
144
|
+
//create each Script, which will create each class/constructor, etc
|
145
|
+
for(var s=0; s < total.length; s++){
|
146
|
+
this.files.push( new DocumentJS.Script(total[s]) )
|
147
|
+
}
|
148
|
+
//sort class and constructors so they are easy to find
|
149
|
+
this.all_sorted = DocumentJS.Class.listing.concat( DocumentJS.Constructor.listing ).sort( DocumentJS.Pair.sort_by_name )
|
150
|
+
}
|
151
|
+
|
152
|
+
|
153
|
+
DocumentJS.Application.prototype =
|
154
|
+
/* @prototype */
|
155
|
+
{
|
156
|
+
/**
|
157
|
+
* Creates the documentation files.
|
158
|
+
* @param {String} path where to put the docs
|
159
|
+
*/
|
160
|
+
generate : function(path, convert){
|
161
|
+
/* Make the needed directory structure for documentation */
|
162
|
+
//new steal.File('docs/classes/').mkdirs();
|
163
|
+
print("generating ...")
|
164
|
+
convert = convert || function(name, ob, everything, path){
|
165
|
+
var toJSON = DocumentJS.toJSON(ob)
|
166
|
+
|
167
|
+
new DocumentJS.File(path+"/"+name+".json").save("C("+toJSON+")");
|
168
|
+
}
|
169
|
+
|
170
|
+
var types = [ DocumentJS.Class, DocumentJS.Constructor, DocumentJS.Function, DocumentJS.Page, DocumentJS.Attribute]
|
171
|
+
for(var t = 0; t< types.length; t++){
|
172
|
+
for(var i = 0; i < types[t].listing.length; i++){
|
173
|
+
var ob = types[t].listing[i];
|
174
|
+
|
175
|
+
var oliteral = ob.serialize();
|
176
|
+
|
177
|
+
var name = oliteral.name.replace(/ /g, "_").replace(/./g, ".").replace(/>/g, "_gt_").replace(/\*/g,"_star_");
|
178
|
+
convert(name, oliteral, this.all_sorted, path)
|
179
|
+
}
|
180
|
+
}
|
181
|
+
this.searchData(path, convert);
|
182
|
+
this.summary_page(path, convert)
|
183
|
+
},
|
184
|
+
/**
|
185
|
+
* Creates a page for all classes and constructors
|
186
|
+
* @param {String} summary the left hand side.
|
187
|
+
*/
|
188
|
+
summary_page : function(path, convert){
|
189
|
+
//find index page
|
190
|
+
var base = path.replace(/[^\/]*$/,"");
|
191
|
+
for(var p = 0; p < DocumentJS.Page.listing.length; p++){
|
192
|
+
if(DocumentJS.Page.listing[p].full_name() == 'index')
|
193
|
+
this.indexPage = DocumentJS.Page.listing[p];
|
194
|
+
}
|
195
|
+
//checks if you have a summary
|
196
|
+
if( readFile(path+"/summary.ejs") ){
|
197
|
+
DocumentJS.render_to(base+"docs.html",path+"/summary.ejs" , this)
|
198
|
+
}else{
|
199
|
+
print("Using default page layout. Overwrite by creating: "+path+"/summary.ejs");
|
200
|
+
DocumentJS.render_to(base+"docs.html","documentjs/jmvcdoc/summary.ejs" , {
|
201
|
+
pathToRoot: new DocumentJS.File(base.replace(/\/[^\/]*$/, "")).pathToRoot(),
|
202
|
+
path: path
|
203
|
+
}); //default
|
204
|
+
}
|
205
|
+
|
206
|
+
|
207
|
+
},
|
208
|
+
indexOf : function(array, item){
|
209
|
+
var i = 0, length = array.length;
|
210
|
+
for (; i < length; i++)
|
211
|
+
if (array[i] === item) return i;
|
212
|
+
return -1;
|
213
|
+
},
|
214
|
+
addTagToSearchData : function(data, tag, searchData){
|
215
|
+
|
216
|
+
var letter, l, depth=2, current= searchData;
|
217
|
+
|
218
|
+
for(l=0; l < depth; l++){
|
219
|
+
letter = tag.substring(l,l+1);
|
220
|
+
if(!current[letter]){
|
221
|
+
current[letter] = {};
|
222
|
+
current[letter].list = [];
|
223
|
+
}
|
224
|
+
if(this.indexOf(current[letter].list, data) == -1)
|
225
|
+
current[letter].list.push(data);
|
226
|
+
current = current[letter];
|
227
|
+
}
|
228
|
+
},
|
229
|
+
addToSearchData : function(list, searchData){
|
230
|
+
var c, parts, part, p, fullName;
|
231
|
+
for(var i =0; i < list.length; i++){
|
232
|
+
c = list[i];
|
233
|
+
//break up into parts
|
234
|
+
fullName = c.full_name();
|
235
|
+
searchData.list[fullName] = {name: fullName, shortName: c.Class.shortName.toLowerCase(), title: c.title, tags: c.tags};
|
236
|
+
parts = fullName.split(".");
|
237
|
+
for(p=0; p< parts.length; p++){
|
238
|
+
part = parts[p].toLowerCase();
|
239
|
+
if(part == "jquery") continue;
|
240
|
+
this.addTagToSearchData(fullName, part, searchData)
|
241
|
+
}
|
242
|
+
//now add tags if there are tags
|
243
|
+
if(c.tags){
|
244
|
+
for(var t=0; t< c.tags.length; t++)
|
245
|
+
this.addTagToSearchData(fullName, c.tags[t], searchData);
|
246
|
+
}
|
247
|
+
|
248
|
+
}
|
249
|
+
},
|
250
|
+
searchData : function(path, convert){
|
251
|
+
var sortedClasses = DocumentJS.Class.listing.sort( DocumentJS.Pair.sort_by_name )
|
252
|
+
|
253
|
+
//go through and create 2 level hash structure
|
254
|
+
var searchData = {list: {}};
|
255
|
+
|
256
|
+
var docData = {};
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
this.addToSearchData(sortedClasses, searchData)
|
261
|
+
this.addToSearchData(DocumentJS.Function.listing, searchData)
|
262
|
+
this.addToSearchData(DocumentJS.Constructor.listing, searchData)
|
263
|
+
this.addToSearchData(DocumentJS.Static.listing, searchData)
|
264
|
+
this.addToSearchData(DocumentJS.Prototype.listing, searchData)
|
265
|
+
this.addToSearchData(DocumentJS.Page.listing, searchData)
|
266
|
+
this.addToSearchData(DocumentJS.Attribute.listing, searchData)
|
267
|
+
|
268
|
+
|
269
|
+
new DocumentJS.File(path+"/searchData.json").save("C("+DocumentJS.toJSON(searchData, false)+")");
|
270
|
+
|
271
|
+
//new DocumentJS.File(this.name+"/docs/searchData.json").save("C("+DocumentJS.toJSON(searchData, false)+")");
|
272
|
+
|
273
|
+
},
|
274
|
+
/**
|
275
|
+
* Only shows five folders in a path.
|
276
|
+
* @param {String} path a file path to convert
|
277
|
+
* @return {String}
|
278
|
+
*/
|
279
|
+
clean_path : function(path){
|
280
|
+
return path;
|
281
|
+
var parts = path.split("/")
|
282
|
+
if(parts.length > 5) parts = parts.slice(parts.length - 5);
|
283
|
+
return parts.join("/");
|
284
|
+
}
|
285
|
+
}
|