wagn 1.14.9 → 1.15.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/conflict.feature +4 -2
- data/features/follow.feature +21 -20
- data/features/notifications.feature +16 -17
- data/features/step_definitions/email_steps.rb +9 -5
- data/features/step_definitions/wagn_steps.rb +25 -9
- data/features/support/scopes.rb +4 -1
- data/features/support/wagn_env.rb +1 -1
- data/features/update_includers.feature +6 -6
- data/lib/decko/engine.rb +58 -0
- data/lib/wagn.rb +0 -17
- data/lib/wagn/all.rb +0 -13
- data/lib/wagn/application.rb +37 -75
- data/lib/wagn/commands.rb +44 -26
- data/lib/wagn/config/environments/development.rb +9 -3
- data/lib/wagn/config/environments/profile.rb +5 -2
- data/lib/wagn/config/initializers/session_store.rb +1 -1
- data/lib/wagn/exceptions.rb +1 -6
- data/lib/wagn/generators/wagn/templates/Gemfile +15 -12
- data/lib/wagn/generators/wagn/templates/config.ru +6 -0
- data/lib/wagn/generators/wagn/templates/config/application.rb +12 -11
- data/lib/wagn/generators/wagn/templates/config/cucumber.yml +1 -1
- data/lib/wagn/generators/wagn/templates/config/databases/mysql.yml +19 -11
- data/lib/wagn/generators/wagn/templates/config/routes.erb +10 -0
- data/lib/wagn/generators/wagn/templates/spec/javascripts/support/deck_jasmine.yml +1 -1
- data/lib/wagn/generators/wagn/templates/spec/javascripts/support/wagn_jasmine.yml +4 -4
- data/lib/wagn/generators/wagn/wagn_generator.rb +23 -22
- data/lib/wagn/mods_spec_helper.rb +8 -7
- data/lib/wagn/simplecov_helper.rb +5 -5
- data/lib/wagn/tasks/db.rake +2 -2
- data/lib/wagn/tasks/test.rake +4 -2
- data/lib/wagn/tasks/wagn.rake +117 -69
- data/rails/application-routes.rb +6 -0
- data/{public → rails}/assets/ace/ext-searchbox.js +0 -0
- data/{public → rails}/assets/ace/mode-coffee.js +0 -0
- data/{public → rails}/assets/ace/mode-css.js +0 -0
- data/{public → rails}/assets/ace/mode-html.js +0 -0
- data/{public → rails}/assets/ace/mode-javascript.js +0 -0
- data/{public → rails}/assets/ace/mode-json.js +0 -0
- data/{public → rails}/assets/ace/mode-scss.js +0 -0
- data/{public → rails}/assets/ace/theme-github.js +0 -0
- data/{public → rails}/assets/ace/theme-textmate.js +0 -0
- data/{public → rails}/assets/ace/worker-coffee.js +0 -0
- data/{public → rails}/assets/ace/worker-css.js +0 -0
- data/{public → rails}/assets/ace/worker-html.js +0 -0
- data/{public → rails}/assets/ace/worker-javascript.js +0 -0
- data/{public → rails}/assets/ace/worker-json.js +0 -0
- data/{public → rails}/assets/body-bg-660b752b44b87594071f3d0851ac5360.png +0 -0
- data/{public → rails}/assets/body-bg-d031f29b6ba7399a6862382c3552f44c.bmp +0 -0
- data/{public → rails}/assets/body-bg.bmp +0 -0
- data/{public → rails}/assets/body-bg.png +0 -0
- data/{public → rails}/assets/external_link-b15ab5051b4ec6f32892ed80019405b5.png +0 -0
- data/{public → rails}/assets/external_link.png +0 -0
- data/rails/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/rails/assets/fonts/glyphicons-halflings-regular.svg +288 -0
- data/rails/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/rails/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/rails/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/{public → rails}/assets/jasmine/404.html +0 -0
- data/{public → rails}/assets/jasmine/500.html +0 -0
- data/{public → rails}/assets/jasmine/card_form.html +0 -0
- data/{public → rails}/assets/jquery-mobile/ajax-loader-d2b731d3e844ea99b7e7cbf7867f11e9.gif +0 -0
- data/{public → rails}/assets/jquery-mobile/ajax-loader.gif +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/action-black-cbdf206f5fcd70925baa44543a4daa00.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/action-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/action-white-d84f0b6801d648581a4e11929f5a2d32.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/action-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/alert-black-59ac7785761e066e1f2ea252de9b0e21.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/alert-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/alert-white-182c69a7ce9148899f4f190148424120.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/alert-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-black-21860d405538900f6b795516df64a9d4.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-l-black-165afd2c432e27080fec5396c3d80473.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-l-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-l-white-6805a8d98143bf7b7a6a4e247bf012ab.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-l-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-r-black-fa7122e338a54119ab23bccbc506cfd8.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-r-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-r-white-216684b9bdb31f38a531e117aa954f3a.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-r-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-white-9580e3163441b122078518da2434ca17.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-d-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-l-black-084aec255becaf2fb316bfefa279a947.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-l-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-l-white-539e8b951594754da95bd2aa435f454b.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-l-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-r-black-7eaef732d6e7ac1c9b4ca7a691882aa7.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-r-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-r-white-ccb86d75bba053287e324429888a1654.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-r-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-black-0a58aa2208f8e48713d73fb9578ee4f9.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-l-black-2ff102393d9aad184f9e416295acd33e.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-l-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-l-white-dbf5a3a640d401e8549a904119b8de7a.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-l-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-r-black-ec45c6f55a7c5d324b7798c668287023.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-r-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-r-white-f73692b173855dbb37cab8ede059c3fc.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-r-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-white-bd0f3e8031d8240f3aacf669ab80df78.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/arrow-u-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/audio-black-7a7cbfa21ae335c963973a7cd3b17ffe.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/audio-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/audio-white-093dc38ea1777aca99344c6d2ebfcc8f.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/audio-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/back-black-1bc687d2f194acdf79d2728fcdd2a50f.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/back-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/back-white-f4b428a3127c9ecb6e6021c17cd5b588.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/back-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/bars-black-fe901336c248a7bba95265784f27b709.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/bars-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/bars-white-c983e57c6abd28719a312521d1f3370b.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/bars-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/bullets-black-c1de1001de576e283b57da525054a4b2.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/bullets-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/bullets-white-4f2871e980101e2bd0d661aac55cd623.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/bullets-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/calendar-black-67e5eabe68665b45263c10fd17ad17ba.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/calendar-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/calendar-white-e648512a4f976466c0df237484fcc9c4.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/calendar-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/camera-black-c5c8b5e08b68d612387428f82bd8e7b9.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/camera-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/camera-white-147393e77b3631d9ad5220cd23c54863.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/camera-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/carat-d-black-291da5f63efc80c062765bca7d939dc9.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/carat-d-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/carat-d-white-891a11602af9a5ffecb4036c42671b32.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/carat-d-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/carat-l-black-8d842b168e8722758ebb9e0e20367dc2.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/carat-l-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/carat-l-white-3c757452f0f441b544023f5ff8087f25.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/carat-l-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/carat-r-black-2ded93b56fcb5b25c7a5b3776e5e65d6.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/carat-r-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/carat-r-white-b176f8f6a2b1cc081ffd10c5b1fa596f.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/carat-r-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/carat-u-black-23e097594ad948f851e4db090aa4136d.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/carat-u-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/carat-u-white-c056d77e74680adf24684602bf581e90.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/carat-u-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/check-black-c30e2bdff08c3250d5d9a5016c3a373c.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/check-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/check-white-6bef746213ce5d01ec057a2e57eba03e.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/check-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/clock-black-426a75bcd9a7fcb19767bdbac8d81e93.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/clock-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/clock-white-eb0b22357bf8f45b9b28b2998f6683ac.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/clock-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/cloud-black-dd4382e46e8039c6eb410c90b34a7a7d.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/cloud-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/cloud-white-b88a47dc043a97a4eac74b1efc62a656.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/cloud-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/comment-black-f4168860db0754ff9cf03fc9946b3379.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/comment-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/comment-white-6b999cb86d6aca17084e27a9f67c8c24.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/comment-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/delete-black-7d8d7896c8845c89d000fa8e97523701.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/delete-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/delete-white-bc789fa534e359f9fee233213eb468de.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/delete-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/edit-black-ec5837b59ac116c6716cd7f1c63e9fca.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/edit-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/edit-white-bdfa858ef0dec5b5ea2297c52c0bea03.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/edit-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/eye-black-6530b6b67ce6f3165d194e79beb9755e.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/eye-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/eye-white-e44323bf6b85c5b1b1fdf66df97a4b8c.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/eye-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/forbidden-black-4cb718a887e88dbaabf04eef0f2312fe.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/forbidden-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/forbidden-white-9138b0037c40f353bc794285384cb1e6.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/forbidden-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/forward-black-dc3302f286f5edebdd8de5953ba0f4be.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/forward-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/forward-white-3c71ad481331c6cd2e55678de52e321b.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/forward-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/gear-black-1877187237f71b7ba7fad9dae2afbff8.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/gear-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/gear-white-3760f8925907885b77332c927c6f69f1.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/gear-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/grid-black-ef43287886d17dad1edfd42d61e77bf9.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/grid-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/grid-white-a90cad859111e48260bb7dd58e089421.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/grid-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/heart-black-1d83e64216d8604f7e140e496585dc2d.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/heart-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/heart-white-70fb68f6f14d6eed8bcb51b9bffb7a1e.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/heart-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/home-black-8839e5c9a8e11a4820f29e49d9a940e1.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/home-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/home-white-7bb7a707d7fec69a6e87aa15cc81a6df.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/home-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/info-black-9b6531eabb8ca3757fa8d7ed9b2a9c61.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/info-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/info-white-8f0b3be835d9c4dc7ef68aaa14360475.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/info-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/location-black-2d64ab16b9762a79da26b57026a8c013.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/location-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/location-white-f20a8601e6921cb9e06551da88746269.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/location-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/lock-black-80468c8080ca8728335411fc2e946bc3.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/lock-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/lock-white-6a9da31e3af79379b9c74a0b299e498b.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/lock-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/mail-black-1ac12d4f1561c196c5b976e3b0271a47.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/mail-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/mail-white-cf3c78ddf8627b915455815d00f4c813.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/mail-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/minus-black-528a578f797a7476ef7e553c4f319724.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/minus-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/minus-white-0a992b9039a4fc5eb017cd32aea41f00.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/minus-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/navigation-black-f290da883ab1408425ac13b0c9d55362.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/navigation-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/navigation-white-c38219949e27a10f27fb1dfe3f101e2b.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/navigation-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/phone-black-8edd665a30189221a6ff370a5913f9c8.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/phone-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/phone-white-30cc61da132a3801c8441353f63dd174.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/phone-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/plus-black-ee8694a3f99b71fa84279d6f47bc69aa.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/plus-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/plus-white-594f2cf43798441607dd1a7a9b9bb68e.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/plus-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/power-black-c31a9b9ca22ce18710d4342c897f7a60.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/power-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/power-white-e3d0f6f4e1b54675c702dd0ef9dd2819.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/power-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/recycle-black-0649d7916693bcabe5b2bee1a26678df.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/recycle-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/recycle-white-f63febb141a2739223217f839c5592a2.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/recycle-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/refresh-black-b9c418000249bc0b23fa20ef2a73dcce.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/refresh-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/refresh-white-741c1f6cc39d51c32a142dfab708ca8c.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/refresh-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/search-black-e67608c6619a436c16bd49df4a00f7a6.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/search-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/search-white-49687883de84b391661162fb73604434.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/search-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/shop-black-c20b263467ce2a8de1b386e775be1d5e.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/shop-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/shop-white-80a8c9c4d2e838919941423dffe0801c.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/shop-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/star-black-a6bc8b485ff200c1deab9e9e77f52b32.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/star-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/star-white-8b620c1dced3da828d9edde9f6022249.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/star-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/tag-black-4fdb325b352b565f422193a80c1e4bfd.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/tag-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/tag-white-a35a79ed983ce834a8ddccefeaebce15.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/tag-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/user-black-85accf54554aa97069b5939b16b5e681.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/user-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/user-white-9abd9f6162d36152c841e475c4aaf118.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/user-white.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/video-black-1d5a483c5ce892d0012c60010286396b.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/video-black.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/video-white-80a2ae6a9b790e6ee05680fcdee8905a.png +0 -0
- data/{public → rails}/assets/jquery-mobile/icons-png/video-white.png +0 -0
- data/{public → rails}/assets/jquery-ui/animated-overlay-602eee4c79a4796b02bb6442948c9e28.gif +0 -0
- data/{public → rails}/assets/jquery-ui/animated-overlay.gif +0 -0
- data/{public → rails}/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100-7d1197a52442bc56fcad60d0390f4b32.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-bg_flat_75_ffffff_40x100-3c4b974defa5e8bdaf8a603034c4435e.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-bg_glass_55_fbf9ee_1x400-38c2dea4d046fd3f56cc3996e2e6018b.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-bg_glass_65_ffffff_1x400-ddb7ee7527bff283054406c50e597e1e.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-bg_glass_75_dadada_1x400-d618461418b1ebc6b7996979f4c3dc92.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-bg_glass_75_e6e6e6_1x400-48d8d545f708e5870a965ce9df8b0e38.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400-f3526b8f82249928f0a6baf044204b15.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100-cec5c56503b8480f834c3fce35dae8df.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-icons_222222_256x240-b1eb177a51ea7925448318a26d988842.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-icons_222222_256x240.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-icons_2e83ff_256x240-49c2da9cac2dc565265586f716491298.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-icons_454545_256x240-68b2fe3268f7604fb0767a0372e2db85.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-icons_454545_256x240.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-icons_888888_256x240-8040cfcc88792375b7788feb59189eef.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-icons_888888_256x240.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-icons_cd0a0a_256x240-d4a62216bf6f0cd0071149890763a5ff.png +0 -0
- data/{public → rails}/assets/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
- data/{public → rails}/assets/jquery.min-388372ef65cc311f6a3df4a6ceac8d22.map +0 -0
- data/{public → rails}/assets/jquery.min.map +0 -0
- data/{public → rails}/assets/manifest.yml +0 -0
- data/{public → rails}/assets/smoothness/animated-overlay-602eee4c79a4796b02bb6442948c9e28.gif +0 -0
- data/{public → rails}/assets/smoothness/animated-overlay.gif +0 -0
- data/{public → rails}/assets/smoothness/ui-bg_flat_0_aaaaaa_40x100-31613497e63975a54520b7065b125dea.png +0 -0
- data/{public → rails}/assets/smoothness/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/{public → rails}/assets/smoothness/ui-bg_flat_75_ffffff_40x100-f4b0e20e6f4c83b9f52cf062ed0f5284.png +0 -0
- data/{public → rails}/assets/smoothness/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/{public → rails}/assets/smoothness/ui-bg_glass_55_fbf9ee_1x400-e3606d6e7ad67486ffdc83edca64d4c5.png +0 -0
- data/{public → rails}/assets/smoothness/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/{public → rails}/assets/smoothness/ui-bg_glass_65_ffffff_1x400-dcec96932b90ff4cd4fea91284a6e9a3.png +0 -0
- data/{public → rails}/assets/smoothness/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/{public → rails}/assets/smoothness/ui-bg_glass_75_dadada_1x400-a2310f533684ede4f1216d7299b5cd58.png +0 -0
- data/{public → rails}/assets/smoothness/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/{public → rails}/assets/smoothness/ui-bg_glass_75_e6e6e6_1x400-d872f3a0a02dea609e4b0321520236d9.png +0 -0
- data/{public → rails}/assets/smoothness/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/{public → rails}/assets/smoothness/ui-bg_glass_95_fef1ec_1x400-9ccaed8a65a3c285c16a73bdf03a69b3.png +0 -0
- data/{public → rails}/assets/smoothness/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/{public → rails}/assets/smoothness/ui-bg_highlight-soft_75_cccccc_1x100-2ef1d227b5c0f33ce3c5e45afa953991.png +0 -0
- data/{public → rails}/assets/smoothness/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/{public → rails}/assets/smoothness/ui-icons_222222_256x240-0675a996f0bdc78890f7b312c543b06a.png +0 -0
- data/{public → rails}/assets/smoothness/ui-icons_222222_256x240.png +0 -0
- data/{public → rails}/assets/smoothness/ui-icons_2e83ff_256x240-6aea736f81a417977efd77f183519a54.png +0 -0
- data/{public → rails}/assets/smoothness/ui-icons_2e83ff_256x240.png +0 -0
- data/{public → rails}/assets/smoothness/ui-icons_454545_256x240-6f4361f45745fb0cd7b0cc2851dc1cc3.png +0 -0
- data/{public → rails}/assets/smoothness/ui-icons_454545_256x240.png +0 -0
- data/{public → rails}/assets/smoothness/ui-icons_888888_256x240-8f6818bd8631ba3489de718e26c7e6cf.png +0 -0
- data/{public → rails}/assets/smoothness/ui-icons_888888_256x240.png +0 -0
- data/{public → rails}/assets/smoothness/ui-icons_cd0a0a_256x240-2969ddba6d0a9c62603a4aa85a363cda.png +0 -0
- data/{public → rails}/assets/smoothness/ui-icons_cd0a0a_256x240.png +0 -0
- data/{public → rails}/assets/tinymce/jquery.tinymce.js +0 -0
- data/{public → rails}/assets/tinymce/langs/en.js +0 -0
- data/{public → rails}/assets/tinymce/license.txt +0 -0
- data/{public → rails}/assets/tinymce/plugins/advhr/css/advhr.css +0 -0
- data/{public → rails}/assets/tinymce/plugins/advhr/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/advhr/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/advhr/js/rule.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/advhr/langs/en_dlg.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/advhr/rule.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/advimage/css/advimage.css +0 -0
- data/{public → rails}/assets/tinymce/plugins/advimage/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/advimage/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/advimage/image.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/advimage/img/sample.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/advimage/js/image.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/advimage/langs/en_dlg.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/advlink/css/advlink.css +0 -0
- data/{public → rails}/assets/tinymce/plugins/advlink/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/advlink/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/advlink/js/advlink.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/advlink/langs/en_dlg.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/advlink/link.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/advlist/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/advlist/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/autolink/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/autolink/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/autoresize/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/autoresize/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/autosave/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/autosave/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/bbcode/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/bbcode/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/contextmenu/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/contextmenu/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/directionality/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/directionality/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/emotions.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-cool.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-cry.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-embarassed.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-frown.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-innocent.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-kiss.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-laughing.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-sealed.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-smile.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-surprised.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-undecided.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-wink.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/img/smiley-yell.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/js/emotions.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/emotions/langs/en_dlg.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/example/dialog.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/example/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/example/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/example/img/example.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/example/js/dialog.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/example/langs/en.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/example/langs/en_dlg.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/example_dependency/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/example_dependency/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/fullpage/css/fullpage.css +0 -0
- data/{public → rails}/assets/tinymce/plugins/fullpage/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/fullpage/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/fullpage/fullpage.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/fullpage/js/fullpage.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/fullpage/langs/en_dlg.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/fullscreen/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/fullscreen/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/fullscreen/fullscreen.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/iespell/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/iespell/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/inlinepopups/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/inlinepopups/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css +0 -0
- data/{public → rails}/assets/tinymce/plugins/inlinepopups/template.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/insertdatetime/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/insertdatetime/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/layer/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/layer/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/legacyoutput/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/legacyoutput/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/lists/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/lists/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/media/css/media.css +0 -0
- data/{public → rails}/assets/tinymce/plugins/media/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/media/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/media/js/embed.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/media/js/media.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/media/langs/en_dlg.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/media/media.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/media/moxieplayer.swf +0 -0
- data/{public → rails}/assets/tinymce/plugins/nonbreaking/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/nonbreaking/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/noneditable/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/noneditable/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/pagebreak/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/pagebreak/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/paste/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/paste/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/paste/js/pastetext.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/paste/js/pasteword.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/paste/langs/en_dlg.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/paste/pastetext.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/paste/pasteword.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/preview/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/preview/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/preview/example.html +0 -0
- data/{public → rails}/assets/tinymce/plugins/preview/jscripts/embed.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/preview/preview.html +0 -0
- data/{public → rails}/assets/tinymce/plugins/print/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/print/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/save/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/save/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/searchreplace/css/searchreplace.css +0 -0
- data/{public → rails}/assets/tinymce/plugins/searchreplace/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/searchreplace/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/searchreplace/js/searchreplace.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/searchreplace/langs/en_dlg.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/searchreplace/searchreplace.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/spellchecker/css/content.css +0 -0
- data/{public → rails}/assets/tinymce/plugins/spellchecker/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/spellchecker/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/spellchecker/img/wline.gif +0 -0
- data/{public → rails}/assets/tinymce/plugins/style/css/props.css +0 -0
- data/{public → rails}/assets/tinymce/plugins/style/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/style/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/style/js/props.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/style/langs/en_dlg.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/style/props.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/style/readme.txt +0 -0
- data/{public → rails}/assets/tinymce/plugins/tabfocus/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/tabfocus/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/table/cell.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/table/css/cell.css +0 -0
- data/{public → rails}/assets/tinymce/plugins/table/css/row.css +0 -0
- data/{public → rails}/assets/tinymce/plugins/table/css/table.css +0 -0
- data/{public → rails}/assets/tinymce/plugins/table/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/table/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/table/js/cell.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/table/js/merge_cells.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/table/js/row.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/table/js/table.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/table/langs/en_dlg.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/table/merge_cells.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/table/row.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/table/table.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/template/blank.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/template/css/template.css +0 -0
- data/{public → rails}/assets/tinymce/plugins/template/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/template/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/template/js/template.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/template/langs/en_dlg.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/template/template.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/visualblocks/css/visualblocks.css +0 -0
- data/{public → rails}/assets/tinymce/plugins/visualblocks/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/visualblocks/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/visualchars/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/visualchars/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/wordcount/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/wordcount/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/abbr.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/acronym.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/attributes.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/cite.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/css/attributes.css +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/css/popup.css +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/del.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/editor_plugin.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/editor_plugin_src.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/ins.htm +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/js/abbr.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/js/acronym.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/js/attributes.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/js/cite.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/js/del.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/js/element_common.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/js/ins.js +0 -0
- data/{public → rails}/assets/tinymce/plugins/xhtmlxtras/langs/en_dlg.js +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/about.htm +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/anchor.htm +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/charmap.htm +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/color_picker.htm +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/editor_template.js +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/editor_template_src.js +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/image.htm +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/img/colorpicker.jpg +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/img/flash.gif +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/img/icons.gif +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/img/iframe.gif +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/img/pagebreak.gif +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/img/quicktime.gif +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/img/realmedia.gif +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/img/shockwave.gif +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/img/trans.gif +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/img/video.gif +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/img/windowsmedia.gif +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/js/about.js +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/js/anchor.js +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/js/charmap.js +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/js/color_picker.js +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/js/image.js +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/js/link.js +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/js/source_editor.js +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/langs/en.js +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/langs/en_dlg.js +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/link.htm +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/shortcuts.htm +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/default/content.css +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/default/dialog.css +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/default/img/items.gif +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/default/ui.css +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/highcontrast/content.css +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/highcontrast/dialog.css +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/highcontrast/ui.css +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/o2k7/content.css +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/o2k7/dialog.css +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/o2k7/ui.css +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/o2k7/ui_black.css +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/skins/o2k7/ui_silver.css +0 -0
- data/{public → rails}/assets/tinymce/themes/advanced/source_editor.htm +0 -0
- data/{public → rails}/assets/tinymce/themes/simple/editor_template.js +0 -0
- data/{public → rails}/assets/tinymce/themes/simple/editor_template_src.js +0 -0
- data/{public → rails}/assets/tinymce/themes/simple/img/icons.gif +0 -0
- data/{public → rails}/assets/tinymce/themes/simple/langs/en.js +0 -0
- data/{public → rails}/assets/tinymce/themes/simple/skins/default/content.css +0 -0
- data/{public → rails}/assets/tinymce/themes/simple/skins/default/ui.css +0 -0
- data/{public → rails}/assets/tinymce/themes/simple/skins/o2k7/content.css +0 -0
- data/{public → rails}/assets/tinymce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
- data/{public → rails}/assets/tinymce/themes/simple/skins/o2k7/ui.css +0 -0
- data/{public → rails}/assets/tinymce/tiny_mce.js +0 -0
- data/{public → rails}/assets/tinymce/tiny_mce_jquery.js +0 -0
- data/{public → rails}/assets/tinymce/tiny_mce_jquery_src.js +0 -0
- data/{public → rails}/assets/tinymce/tiny_mce_popup.js +0 -0
- data/{public → rails}/assets/tinymce/tiny_mce_src.js +0 -0
- data/{public → rails}/assets/tinymce/utils/editable_selects.js +0 -0
- data/{public → rails}/assets/tinymce/utils/form_utils.js +0 -0
- data/{public → rails}/assets/tinymce/utils/mctabs.js +0 -0
- data/{public → rails}/assets/tinymce/utils/validate.js +0 -0
- data/{app → rails}/controllers/card_controller.rb +23 -21
- data/{lib/wagn/config/routes.rb → rails/engine-routes.rb} +2 -6
- data/spec/controllers/card_controller_spec.rb +8 -3
- data/spec/controllers/location_spec.rb +3 -0
- data/test/script/run_engine_deck.sh +47 -0
- data/test/script/run_mig.sh +29 -0
- data/test/test_helper.rb +1 -1
- data/wagn.gemspec +4 -26
- metadata +564 -1250
- data/.gitignore +0 -23
- data/.simplecov +0 -28
- data/.tm_properties +0 -3
- data/CONTRIBUTING.rdoc +0 -24
- data/JASMINE_RAILS_TEST.md +0 -16
- data/README.rdoc +0 -95
- data/VERSION +0 -1
- data/db/bootstrap/card_actions.yml +0 -3613
- data/db/bootstrap/card_acts.yml +0 -7
- data/db/bootstrap/card_changes.yml +0 -10906
- data/db/bootstrap/card_references.yml +0 -3830
- data/db/bootstrap/cards.yml +0 -9876
- data/db/migrate/20110511221913_require_earlier_migrations.rb +0 -17
- data/db/migrate/20120105203350_require_1_8_migrations.rb +0 -15
- data/db/migrate/20121111025347_require_1_10_migrations.rb +0 -15
- data/db/migrate/20121118114000_split_link_type.rb +0 -16
- data/db/migrate/20121118115000_update_link_type.rb +0 -19
- data/db/migrate/20130106052640_table_cleanup.rb +0 -25
- data/db/migrate/20130109015336_trunk_left.rb +0 -14
- data/db/migrate/20130411210957_update_codenames.rb +0 -14
- data/db/migrate/20140822073704_create_new_revision_tables.rb +0 -43
- data/db/migrate/20141001105348_move_revisions_to_actions.rb +0 -62
- data/db/migrate/20141121172918_rename_card_migration_table.rb +0 -15
- data/db/migrate/20141216053032_better_index_names.rb +0 -24
- data/db/migrate_core_cards/20130411191151_renaming_for_menu.rb +0 -49
- data/db/migrate_core_cards/20130411211600_delete_old_related_tab_cards.rb +0 -18
- data/db/migrate_core_cards/20130419215612_import_help_text.rb +0 -13
- data/db/migrate_core_cards/20130823192433_add_style_cards.rb +0 -87
- data/db/migrate_core_cards/20130910183318_move_styles_to_content.rb +0 -11
- data/db/migrate_core_cards/20130920214038_jsonize_tinymce.rb +0 -15
- data/db/migrate_core_cards/20130920291703_update_stylesheets.rb +0 -18
- data/db/migrate_core_cards/20130927191728_account_events.rb +0 -21
- data/db/migrate_core_cards/20131016172445_common_css_patch.rb +0 -12
- data/db/migrate_core_cards/20140110193325_reset_account_request_type.rb +0 -11
- data/db/migrate_core_cards/20140307231621_user_data_to_cards.rb +0 -73
- data/db/migrate_core_cards/20140317035504_account_requests_to_signups.rb +0 -51
- data/db/migrate_core_cards/20140512155840_add_script_cards.rb +0 -83
- data/db/migrate_core_cards/20140629222005_add_email_cards.rb +0 -137
- data/db/migrate_core_cards/20140725180118_config_card_updates.rb +0 -9
- data/db/migrate_core_cards/20141111083921_delete_machine_output.rb +0 -9
- data/db/migrate_core_cards/20141115034214_config_descriptions_etc.rb +0 -14
- data/db/migrate_core_cards/20141119001955_make_symlinks_relative.rb +0 -15
- data/db/migrate_core_cards/20141120120605_fix_notification_html_message.rb +0 -10
- data/db/migrate_core_cards/20141204061304_watchers_to_following.rb +0 -38
- data/db/migrate_core_cards/20141208132416_partial_reference_type.rb +0 -7
- data/db/migrate_core_cards/20141208162106_add_ace_script.rb +0 -12
- data/db/migrate_core_cards/20141230204340_uri_codename.rb +0 -13
- data/db/migrate_core_cards/data/1.11_help_text.json +0 -410
- data/db/migrate_core_cards/data/1.12_stylesheets/classic_cards.scss +0 -101
- data/db/migrate_core_cards/data/1.12_stylesheets/common.scss +0 -226
- data/db/migrate_core_cards/data/1.12_stylesheets/right_sidebar.scss +0 -27
- data/db/migrate_core_cards/data/1.12_stylesheets/traditional.scss +0 -152
- data/db/migrate_core_cards/data/1.13_config_text.json +0 -32
- data/db/migrate_core_cards/data/1.14_config_descriptions_etc.json +0 -77
- data/db/migrate_core_cards/data/mailer/follower_notification_email.html +0 -9
- data/db/migrate_core_cards/data/mailer/follower_notification_email.txt +0 -11
- data/db/migrate_core_cards/data/mailer/mail_config.json +0 -22
- data/db/migrate_core_cards/data/mailer/password_reset_email.html +0 -10
- data/db/migrate_core_cards/data/mailer/password_reset_email.txt +0 -11
- data/db/migrate_core_cards/data/mailer/signup_alert_email.html +0 -7
- data/db/migrate_core_cards/data/mailer/signup_alert_email.txt +0 -5
- data/db/migrate_core_cards/data/mailer/verification_email.html +0 -9
- data/db/migrate_core_cards/data/mailer/verification_email.txt +0 -8
- data/db/schema.rb +0 -128
- data/db/seeds.rb +0 -8
- data/db/version.txt +0 -1
- data/db/version_core_cards.txt +0 -1
- data/lib/card.rb +0 -41
- data/lib/card/act.rb +0 -60
- data/lib/card/action.rb +0 -195
- data/lib/card/active_record_ext.rb +0 -77
- data/lib/card/auth.rb +0 -181
- data/lib/card/change.rb +0 -29
- data/lib/card/chunk.rb +0 -104
- data/lib/card/codename.rb +0 -70
- data/lib/card/content.rb +0 -211
- data/lib/card/core_ext.rb +0 -74
- data/lib/card/diff.rb +0 -429
- data/lib/card/env.rb +0 -54
- data/lib/card/exceptions.rb +0 -41
- data/lib/card/format.rb +0 -549
- data/lib/card/generators/card_migration/USAGE +0 -24
- data/lib/card/generators/card_migration/card_migration_generator.rb +0 -31
- data/lib/card/generators/card_migration/templates/card_migration.erb +0 -10
- data/lib/card/generators/format/USAGE +0 -9
- data/lib/card/generators/format/format_generator.rb +0 -8
- data/lib/card/generators/format/templates/format_spec_template.erb +0 -5
- data/lib/card/generators/format/templates/format_template.erb +0 -3
- data/lib/card/generators/set/USAGE +0 -16
- data/lib/card/generators/set/set_generator.rb +0 -22
- data/lib/card/generators/set/templates/set_spec_template.erb +0 -5
- data/lib/card/generators/set/templates/set_template.erb +0 -1
- data/lib/card/loader.rb +0 -149
- data/lib/card/mailer.rb +0 -37
- data/lib/card/name.rb +0 -39
- data/lib/card/query.rb +0 -78
- data/lib/card/query/card_clause.rb +0 -525
- data/lib/card/query/clause.rb +0 -21
- data/lib/card/query/ref_clause.rb +0 -47
- data/lib/card/query/value_clause.rb +0 -65
- data/lib/card/reference.rb +0 -62
- data/lib/card/set.rb +0 -367
- data/lib/card/set_pattern.rb +0 -168
- data/lib/wagn/cache.rb +0 -185
- data/lib/wagn/config/initializers/01_init_ruby_extensions.rb +0 -7
- data/lib/wagn/config/initializers/inflections.rb +0 -13
- data/lib/wagn/config/initializers/mime_types.rb +0 -13
- data/lib/wagn/config/initializers/notification.rb +0 -4
- data/lib/wagn/config/initializers/paperclip.rb +0 -1
- data/lib/wagn/config/initializers/recaptcha.rb +0 -6
- data/lib/wagn/config/initializers/uuid_state_file.rb +0 -3
- data/lib/wagn/core_migration.rb +0 -5
- data/lib/wagn/log.rb +0 -441
- data/lib/wagn/migration.rb +0 -151
- data/lib/wagn/spec_helper.rb +0 -59
- data/lib/wagn/version.rb +0 -33
- data/mod/01_core/chunk/include.rb +0 -85
- data/mod/01_core/chunk/link.rb +0 -87
- data/mod/01_core/chunk/literal.rb +0 -24
- data/mod/01_core/chunk/reference.rb +0 -53
- data/mod/01_core/chunk/uri.rb +0 -135
- data/mod/01_core/format/data_format.rb +0 -2
- data/mod/01_core/format/html_format.rb +0 -130
- data/mod/01_core/format/text_format.rb +0 -10
- data/mod/01_core/layout/blank.html +0 -5
- data/mod/01_core/layout/default.html +0 -20
- data/mod/01_core/layout/noside.html +0 -16
- data/mod/01_core/layout/pre.html +0 -2
- data/mod/01_core/layout/simple.html +0 -5
- data/mod/01_core/set/all/active_card.rb +0 -35
- data/mod/01_core/set/all/collection.rb +0 -136
- data/mod/01_core/set/all/content.rb +0 -168
- data/mod/01_core/set/all/erb.rb +0 -11
- data/mod/01_core/set/all/fetch.rb +0 -228
- data/mod/01_core/set/all/haml.rb +0 -7
- data/mod/01_core/set/all/initialize.rb +0 -49
- data/mod/01_core/set/all/name.rb +0 -267
- data/mod/01_core/set/all/notify.rb +0 -215
- data/mod/01_core/set/all/pattern.rb +0 -56
- data/mod/01_core/set/all/permissions.rb +0 -260
- data/mod/01_core/set/all/phases.rb +0 -186
- data/mod/01_core/set/all/references.rb +0 -118
- data/mod/01_core/set/all/rules.rb +0 -124
- data/mod/01_core/set/all/states.rb +0 -16
- data/mod/01_core/set/all/templating.rb +0 -120
- data/mod/01_core/set/all/tracked_attributes.rb +0 -114
- data/mod/01_core/set/all/trash.rb +0 -50
- data/mod/01_core/set/all/type.rb +0 -85
- data/mod/01_core/set/all/utils.rb +0 -94
- data/mod/01_core/set_pattern/01_all.rb +0 -7
- data/mod/01_core/set_pattern/02_all_plus.rb +0 -9
- data/mod/01_core/set_pattern/03_type.rb +0 -19
- data/mod/01_core/set_pattern/04_star.rb +0 -11
- data/mod/01_core/set_pattern/05_rstar.rb +0 -13
- data/mod/01_core/set_pattern/06_right.rb +0 -16
- data/mod/01_core/set_pattern/07_type_plus_right.rb +0 -19
- data/mod/01_core/set_pattern/08_self.rb +0 -15
- data/mod/01_core/spec/chunk/literal_spec.rb +0 -14
- data/mod/01_core/spec/chunk/uri_spec.rb +0 -292
- data/mod/01_core/spec/format/data_format_spec.rb +0 -5
- data/mod/01_core/spec/format/html_format_spec.rb +0 -140
- data/mod/01_core/spec/format/text_format_spec.rb +0 -5
- data/mod/01_core/spec/set/all/active_card_spec.rb +0 -5
- data/mod/01_core/spec/set/all/attribute_tracking_spec.rb +0 -21
- data/mod/01_core/spec/set/all/collection_spec.rb +0 -65
- data/mod/01_core/spec/set/all/content_spec.rb +0 -15
- data/mod/01_core/spec/set/all/fetch_spec.rb +0 -205
- data/mod/01_core/spec/set/all/initialize_spec.rb +0 -58
- data/mod/01_core/spec/set/all/name_spec.rb +0 -61
- data/mod/01_core/spec/set/all/notify_spec.rb +0 -199
- data/mod/01_core/spec/set/all/pattern_spec.rb +0 -81
- data/mod/01_core/spec/set/all/permissions_spec.rb +0 -505
- data/mod/01_core/spec/set/all/phases_spec.rb +0 -6
- data/mod/01_core/spec/set/all/references_spec.rb +0 -8
- data/mod/01_core/spec/set/all/rules2_spec.rb +0 -250
- data/mod/01_core/spec/set/all/rules_spec.rb +0 -81
- data/mod/01_core/spec/set/all/states_spec.rb +0 -5
- data/mod/01_core/spec/set/all/templating_spec.rb +0 -111
- data/mod/01_core/spec/set/all/tracked_attributes_spec.rb +0 -328
- data/mod/01_core/spec/set/all/trash_spec.rb +0 -34
- data/mod/01_core/spec/set/all/type_spec.rb +0 -71
- data/mod/01_core/spec/set/all/utils_spec.rb +0 -5
- data/mod/02_basic_types/format/css_format.rb +0 -6
- data/mod/02_basic_types/format/csv_format.rb +0 -6
- data/mod/02_basic_types/format/file_format.rb +0 -3
- data/mod/02_basic_types/format/js_format.rb +0 -6
- data/mod/02_basic_types/format/json_format.rb +0 -6
- data/mod/02_basic_types/format/rss_format.rb +0 -11
- data/mod/02_basic_types/format/xml_format.rb +0 -6
- data/mod/02_basic_types/set/all/all_css.rb +0 -42
- data/mod/02_basic_types/set/all/all_csv.rb +0 -52
- data/mod/02_basic_types/set/all/all_js.rb +0 -7
- data/mod/02_basic_types/set/all/base.rb +0 -122
- data/mod/02_basic_types/set/all/file.rb +0 -13
- data/mod/02_basic_types/set/all/json.rb +0 -66
- data/mod/02_basic_types/set/all/rss.rb +0 -72
- data/mod/02_basic_types/set/all/text.rb +0 -8
- data/mod/02_basic_types/set/type/plain_text.rb +0 -10
- data/mod/02_basic_types/set/type/pointer.rb +0 -281
- data/mod/02_basic_types/spec/set/all/all_css_spec.rb +0 -10
- data/mod/02_basic_types/spec/set/all/all_csv_spec.rb +0 -9
- data/mod/02_basic_types/spec/set/all/base_spec.rb +0 -57
- data/mod/02_basic_types/spec/set/all/file_spec.rb +0 -5
- data/mod/02_basic_types/spec/set/all/json_spec.rb +0 -26
- data/mod/02_basic_types/spec/set/all/rss_spec.rb +0 -8
- data/mod/02_basic_types/spec/set/all/text_spec.rb +0 -5
- data/mod/02_basic_types/spec/set/type/plain_text_spec.rb +0 -11
- data/mod/02_basic_types/spec/set/type/pointer_spec.rb +0 -103
- data/mod/03_machines/lib/card/machine.rb +0 -185
- data/mod/03_machines/lib/card/machine_input.rb +0 -40
- data/mod/03_machines/lib/javascript/ace.js +0 -18204
- data/mod/03_machines/lib/javascript/html5shiv-printshiv.js +0 -1
- data/mod/03_machines/lib/javascript/jquery-ui.js +0 -14913
- data/mod/03_machines/lib/javascript/jquery.autosize.js +0 -274
- data/mod/03_machines/lib/javascript/jquery.fileupload.js +0 -1114
- data/mod/03_machines/lib/javascript/jquery.iframe-transport.js +0 -185
- data/mod/03_machines/lib/javascript/jquery.js +0 -4
- data/mod/03_machines/lib/javascript/jquery.ui.autocomplete.html.js +0 -41
- data/mod/03_machines/lib/javascript/jquery_ujs.js +0 -469
- data/mod/03_machines/lib/javascript/jquerymobile.js +0 -15454
- data/mod/03_machines/lib/javascript/theme-textmate.js +0 -130
- data/mod/03_machines/lib/javascript/tinymce.js +0 -13
- data/mod/03_machines/lib/javascript/wagn.js.coffee +0 -318
- data/mod/03_machines/lib/javascript/wagn_menu.js +0 -67
- data/mod/03_machines/lib/javascript/wagn_mod.js.coffee +0 -404
- data/mod/03_machines/lib/stylesheets/functional.scss +0 -188
- data/mod/03_machines/lib/stylesheets/jquery-ui-smoothness.css +0 -1178
- data/mod/03_machines/lib/stylesheets/standard.scss +0 -719
- data/mod/03_machines/set/right/machine_output.rb +0 -20
- data/mod/03_machines/set/self/script_ace.rb +0 -8
- data/mod/03_machines/set/self/script_card_menu.rb +0 -8
- data/mod/03_machines/set/self/script_html5shiv_printshiv.rb +0 -7
- data/mod/03_machines/set/self/script_jquery.rb +0 -8
- data/mod/03_machines/set/self/script_jquery_helper.rb +0 -14
- data/mod/03_machines/set/self/script_slot.rb +0 -9
- data/mod/03_machines/set/self/script_tinymce.rb +0 -8
- data/mod/03_machines/set/self/style_functional.rb +0 -8
- data/mod/03_machines/set/self/style_jquery_ui_smoothness.rb +0 -8
- data/mod/03_machines/set/self/style_standard.rb +0 -8
- data/mod/03_machines/set/type/coffee_script.rb +0 -58
- data/mod/03_machines/set/type/css.rb +0 -45
- data/mod/03_machines/set/type/java_script.rb +0 -38
- data/mod/03_machines/set/type/scss.rb +0 -23
- data/mod/03_machines/set/type/skin.rb +0 -12
- data/mod/03_machines/spec/lib/shared_machine_examples.rb +0 -174
- data/mod/03_machines/spec/lib/shared_machine_input_examples.rb +0 -64
- data/mod/03_machines/spec/set/right/machine_output_spec.rb +0 -5
- data/mod/03_machines/spec/set/self/style_functional_spec.rb +0 -5
- data/mod/03_machines/spec/set/self/style_jquery_ui_smoothness_spec.rb +0 -5
- data/mod/03_machines/spec/set/self/style_standard_spec.rb +0 -5
- data/mod/03_machines/spec/set/type/coffeescript_spec.rb +0 -26
- data/mod/03_machines/spec/set/type/css_spec.rb +0 -33
- data/mod/03_machines/spec/set/type/javascript_spec.rb +0 -26
- data/mod/03_machines/spec/set/type/scss_spec.rb +0 -56
- data/mod/03_machines/spec/set/type/skin_spec.rb +0 -70
- data/mod/04_settings/lib/card/setting.rb +0 -57
- data/mod/04_settings/set/right/add_help.rb +0 -11
- data/mod/04_settings/set/right/comment.rb +0 -91
- data/mod/04_settings/set/right/create.rb +0 -2
- data/mod/04_settings/set/right/default.rb +0 -3
- data/mod/04_settings/set/right/delete.rb +0 -4
- data/mod/04_settings/set/right/help.rb +0 -3
- data/mod/04_settings/set/right/read.rb +0 -2
- data/mod/04_settings/set/right/script.rb +0 -10
- data/mod/04_settings/set/right/structure.rb +0 -4
- data/mod/04_settings/set/right/style.rb +0 -10
- data/mod/04_settings/set/right/update.rb +0 -2
- data/mod/04_settings/set/self/accountable.rb +0 -2
- data/mod/04_settings/set/self/add_help.rb +0 -2
- data/mod/04_settings/set/self/autoname.rb +0 -2
- data/mod/04_settings/set/self/captcha.rb +0 -2
- data/mod/04_settings/set/self/comment.rb +0 -2
- data/mod/04_settings/set/self/create.rb +0 -2
- data/mod/04_settings/set/self/default.rb +0 -2
- data/mod/04_settings/set/self/delete.rb +0 -2
- data/mod/04_settings/set/self/help.rb +0 -2
- data/mod/04_settings/set/self/input.rb +0 -2
- data/mod/04_settings/set/self/layout.rb +0 -2
- data/mod/04_settings/set/self/on_create.rb +0 -2
- data/mod/04_settings/set/self/on_delete.rb +0 -2
- data/mod/04_settings/set/self/on_update.rb +0 -2
- data/mod/04_settings/set/self/options.rb +0 -2
- data/mod/04_settings/set/self/options_label.rb +0 -2
- data/mod/04_settings/set/self/read.rb +0 -2
- data/mod/04_settings/set/self/script.rb +0 -2
- data/mod/04_settings/set/self/structure.rb +0 -2
- data/mod/04_settings/set/self/style.rb +0 -2
- data/mod/04_settings/set/self/table_of_contents.rb +0 -2
- data/mod/04_settings/set/self/thanks.rb +0 -2
- data/mod/04_settings/set/self/update.rb +0 -2
- data/mod/04_settings/set/type/setting.rb +0 -81
- data/mod/04_settings/spec/set/right/add_help_spec.rb +0 -5
- data/mod/04_settings/spec/set/right/comment_spec.rb +0 -41
- data/mod/04_settings/spec/set/right/create_spec.rb +0 -10
- data/mod/04_settings/spec/set/right/default_spec.rb +0 -5
- data/mod/04_settings/spec/set/right/delete_spec.rb +0 -5
- data/mod/04_settings/spec/set/right/help_spec.rb +0 -5
- data/mod/04_settings/spec/set/right/read_spec.rb +0 -5
- data/mod/04_settings/spec/set/right/script_spec.rb +0 -24
- data/mod/04_settings/spec/set/right/structure_spec.rb +0 -17
- data/mod/04_settings/spec/set/right/style_spec.rb +0 -29
- data/mod/04_settings/spec/set/right/update_spec.rb +0 -5
- data/mod/04_settings/spec/set/type/setting_spec.rb +0 -10
- data/mod/05_email/format/email_html_format.rb +0 -9
- data/mod/05_email/format/email_text_format.rb +0 -11
- data/mod/05_email/set/all/email_html.rb +0 -5
- data/mod/05_email/set/all/email_text.rb +0 -5
- data/mod/05_email/set/right/bcc.rb +0 -45
- data/mod/05_email/set/right/cc.rb +0 -3
- data/mod/05_email/set/right/from.rb +0 -3
- data/mod/05_email/set/right/html_message.rb +0 -3
- data/mod/05_email/set/right/to.rb +0 -3
- data/mod/05_email/set/type/email_template.rb +0 -113
- data/mod/05_standard/file/103/icon-6566.ico +0 -0
- data/mod/05_standard/file/103/large-6566.ico +0 -0
- data/mod/05_standard/file/103/medium-6566.ico +0 -0
- data/mod/05_standard/file/103/original-6566.ico +0 -0
- data/mod/05_standard/file/103/small-6566.ico +0 -0
- data/mod/05_standard/file/79/icon-6556.png +0 -0
- data/mod/05_standard/file/79/large-6556.png +0 -0
- data/mod/05_standard/file/79/medium-6556.png +0 -0
- data/mod/05_standard/file/79/original-6556.png +0 -0
- data/mod/05_standard/file/79/small-6556.png +0 -0
- data/mod/05_standard/file/790/icon-6419.png +0 -0
- data/mod/05_standard/file/790/large-6419.png +0 -0
- data/mod/05_standard/file/790/medium-6419.png +0 -0
- data/mod/05_standard/file/790/original-6419.png +0 -0
- data/mod/05_standard/file/790/small-6419.png +0 -0
- data/mod/05_standard/set/all/account.rb +0 -67
- data/mod/05_standard/set/all/attach.rb +0 -142
- data/mod/05_standard/set/all/comment.rb +0 -39
- data/mod/05_standard/set/all/error.rb +0 -210
- data/mod/05_standard/set/all/event_viz.rb +0 -62
- data/mod/05_standard/set/all/follow.rb +0 -51
- data/mod/05_standard/set/all/history.rb +0 -303
- data/mod/05_standard/set/all/links.rb +0 -102
- data/mod/05_standard/set/all/observer.rb +0 -27
- data/mod/05_standard/set/all/rich_html/content.rb +0 -175
- data/mod/05_standard/set/all/rich_html/editing.rb +0 -145
- data/mod/05_standard/set/all/rich_html/form.rb +0 -211
- data/mod/05_standard/set/all/rich_html/header.rb +0 -58
- data/mod/05_standard/set/all/rich_html/wrapper.rb +0 -74
- data/mod/05_standard/set/right/account.rb +0 -177
- data/mod/05_standard/set/right/email.rb +0 -52
- data/mod/05_standard/set/right/password.rb +0 -39
- data/mod/05_standard/set/right/salt.rb +0 -5
- data/mod/05_standard/set/right/stats.rb +0 -35
- data/mod/05_standard/set/right/status.rb +0 -9
- data/mod/05_standard/set/right/token.rb +0 -5
- data/mod/05_standard/set/right/when_created.rb +0 -5
- data/mod/05_standard/set/right/when_last_edited.rb +0 -5
- data/mod/05_standard/set/rstar/rules.rb +0 -251
- data/mod/05_standard/set/self/account_links.rb +0 -27
- data/mod/05_standard/set/self/alerts.rb +0 -5
- data/mod/05_standard/set/self/all.rb +0 -21
- data/mod/05_standard/set/self/foot.rb +0 -8
- data/mod/05_standard/set/self/head.rb +0 -122
- data/mod/05_standard/set/self/navbox.rb +0 -20
- data/mod/05_standard/set/self/now.rb +0 -6
- data/mod/05_standard/set/self/recent.rb +0 -48
- data/mod/05_standard/set/self/search.rb +0 -43
- data/mod/05_standard/set/self/signin.rb +0 -121
- data/mod/05_standard/set/self/stats.rb +0 -91
- data/mod/05_standard/set/self/version.rb +0 -8
- data/mod/05_standard/set/type/basic.rb +0 -46
- data/mod/05_standard/set/type/cardtype.rb +0 -42
- data/mod/05_standard/set/type/date.rb +0 -8
- data/mod/05_standard/set/type/file.rb +0 -85
- data/mod/05_standard/set/type/html.rb +0 -22
- data/mod/05_standard/set/type/image.rb +0 -67
- data/mod/05_standard/set/type/layout_type.rb +0 -14
- data/mod/05_standard/set/type/number.rb +0 -19
- data/mod/05_standard/set/type/phrase.rb +0 -3
- data/mod/05_standard/set/type/search_type.rb +0 -243
- data/mod/05_standard/set/type/set.rb +0 -118
- data/mod/05_standard/set/type/signup.rb +0 -144
- data/mod/05_standard/set/type/toggle.rb +0 -12
- data/mod/05_standard/set/type/uri.rb +0 -11
- data/mod/05_standard/set/type/user.rb +0 -62
- data/mod/05_standard/spec/chunk/include_spec.rb +0 -186
- data/mod/05_standard/spec/chunk/link_spec.rb +0 -61
- data/mod/05_standard/spec/format/css_format_spec.rb +0 -5
- data/mod/05_standard/spec/format/csv_format_spec.rb +0 -5
- data/mod/05_standard/spec/format/email_html_format_spec.rb +0 -5
- data/mod/05_standard/spec/format/file_format_spec.rb +0 -5
- data/mod/05_standard/spec/format/js_format_spec.rb +0 -3
- data/mod/05_standard/spec/format/json_format_spec.rb +0 -5
- data/mod/05_standard/spec/format/rss_format_spec.rb +0 -5
- data/mod/05_standard/spec/format/xml_format_spec.rb +0 -5
- data/mod/05_standard/spec/set/all/account_spec.rb +0 -137
- data/mod/05_standard/spec/set/all/attach_spec.rb +0 -9
- data/mod/05_standard/spec/set/all/comment_spec.rb +0 -5
- data/mod/05_standard/spec/set/all/email_html_spec.rb +0 -15
- data/mod/05_standard/spec/set/all/error_spec.rb +0 -7
- data/mod/05_standard/spec/set/all/event_viz_spec.rb +0 -9
- data/mod/05_standard/spec/set/all/follow_spec.rb +0 -83
- data/mod/05_standard/spec/set/all/history_spec.rb +0 -173
- data/mod/05_standard/spec/set/all/observer_spec.rb +0 -74
- data/mod/05_standard/spec/set/all/rich_html/form_spec.rb +0 -41
- data/mod/05_standard/spec/set/all/rich_html/wrapper_spec.rb +0 -26
- data/mod/05_standard/spec/set/right/account_spec.rb +0 -162
- data/mod/05_standard/spec/set/right/email_spec.rb +0 -55
- data/mod/05_standard/spec/set/right/password_spec.rb +0 -45
- data/mod/05_standard/spec/set/right/salt_spec.rb +0 -5
- data/mod/05_standard/spec/set/right/stats_spec.rb +0 -13
- data/mod/05_standard/spec/set/right/status_spec.rb +0 -5
- data/mod/05_standard/spec/set/right/token_spec.rb +0 -5
- data/mod/05_standard/spec/set/right/when_created_spec.rb +0 -7
- data/mod/05_standard/spec/set/right/when_last_edited_spec.rb +0 -7
- data/mod/05_standard/spec/set/rstar/rules_spec.rb +0 -25
- data/mod/05_standard/spec/set/self/account_links_spec.rb +0 -9
- data/mod/05_standard/spec/set/self/alerts_spec.rb +0 -5
- data/mod/05_standard/spec/set/self/all_spec.rb +0 -48
- data/mod/05_standard/spec/set/self/foot_spec.rb +0 -5
- data/mod/05_standard/spec/set/self/head_spec.rb +0 -17
- data/mod/05_standard/spec/set/self/navbox_spec.rb +0 -7
- data/mod/05_standard/spec/set/self/now_spec.rb +0 -7
- data/mod/05_standard/spec/set/self/recent_spec.rb +0 -5
- data/mod/05_standard/spec/set/self/search_spec.rb +0 -5
- data/mod/05_standard/spec/set/self/signin_spec.rb +0 -73
- data/mod/05_standard/spec/set/self/stats_spec.rb +0 -12
- data/mod/05_standard/spec/set/self/version_spec.rb +0 -7
- data/mod/05_standard/spec/set/type/basic_spec.rb +0 -5
- data/mod/05_standard/spec/set/type/cardtype_spec.rb +0 -5
- data/mod/05_standard/spec/set/type/date_spec.rb +0 -7
- data/mod/05_standard/spec/set/type/email_template_spec.rb +0 -199
- data/mod/05_standard/spec/set/type/file_spec.rb +0 -5
- data/mod/05_standard/spec/set/type/html_spec.rb +0 -23
- data/mod/05_standard/spec/set/type/image_spec.rb +0 -16
- data/mod/05_standard/spec/set/type/layout_type_spec.rb +0 -7
- data/mod/05_standard/spec/set/type/number_spec.rb +0 -7
- data/mod/05_standard/spec/set/type/phrase_spec.rb +0 -7
- data/mod/05_standard/spec/set/type/search_type_spec.rb +0 -27
- data/mod/05_standard/spec/set/type/set_spec.rb +0 -26
- data/mod/05_standard/spec/set/type/signup_spec.rb +0 -227
- data/mod/05_standard/spec/set/type/toggle_spec.rb +0 -12
- data/mod/05_standard/spec/set/type/uri_spec.rb +0 -41
- data/mod/05_standard/spec/set/type/user_spec.rb +0 -5
- data/spec/lib/card/action_spec.rb +0 -14
- data/spec/lib/card/auth_spec.rb +0 -17
- data/spec/lib/card/chunk_spec.rb +0 -17
- data/spec/lib/card/codename_spec.rb +0 -25
- data/spec/lib/card/content_spec.rb +0 -314
- data/spec/lib/card/diff_spec.rb +0 -210
- data/spec/lib/card/format_spec.rb +0 -82
- data/spec/lib/card/loader_spec.rb +0 -37
- data/spec/lib/card/name_spec.rb +0 -279
- data/spec/lib/card/query_spec.rb +0 -459
- data/spec/lib/card/reference_spec.rb +0 -213
- data/spec/lib/card/set_pattern_spec.rb +0 -56
- data/spec/lib/card/set_spec.rb +0 -88
- data/spec/lib/wagn/cache_spec.rb +0 -122
- data/spec/lib/wagn/log_spec.rb +0 -262
- data/spec/mailers/mailer_spec.rb +0 -63
- data/spec/models/card/cardtype_spec.rb +0 -216
- data/spec/models/card/create_spec.rb +0 -82
- data/spec/models/card/trash_spec.rb +0 -260
- data/spec/models/card/type_transition_spec.rb +0 -161
- data/spec/models/card/validation_spec.rb +0 -36
- data/spec/models/card_spec.rb +0 -177
- data/spec/spec_helper.rb +0 -129
- data/test/fixtures/.gitkeep +0 -0
- data/test/fixtures/card_actions.yml +0 -4908
- data/test/fixtures/card_acts.yml +0 -685
- data/test/fixtures/card_changes.yml +0 -14683
- data/test/fixtures/card_references.yml +0 -5069
- data/test/fixtures/cards.yml +0 -13271
- data/test/fixtures/mao2.jpg +0 -0
- data/test/fixtures/rails.gif +0 -0
- data/test/seed.rb +0 -170
@@ -1,82 +0,0 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
|
-
|
3
|
-
describe Card::Format do
|
4
|
-
|
5
|
-
describe '#show?' do
|
6
|
-
let(:format) { described_class.new Card.new }
|
7
|
-
|
8
|
-
it "should respect defaults" do
|
9
|
-
expect(format.show_view?( :menu, :default_visibility=>:show )).to be_truthy
|
10
|
-
expect(format.show_view?( :menu, :default_visibility=>:hide )).to be_falsey
|
11
|
-
expect(format.show_view?( :menu, {} )).to be_truthy
|
12
|
-
end
|
13
|
-
|
14
|
-
it "should respect developer default overrides" do
|
15
|
-
expect(format.show_view?( :menu, :optional_menu=>:show, :default_visibility=>:hide )).to be_truthy
|
16
|
-
expect(format.show_view?( :menu, :optional_menu=>:hide, :default_visibility=>:show )).to be_falsey
|
17
|
-
expect(format.show_view?( :menu, :optional_menu=>:hide )).to be_falsey
|
18
|
-
end
|
19
|
-
|
20
|
-
it "should handle args from inclusions" do
|
21
|
-
expect(format.show_view?( :menu, :show=>'menu', :default_visibility=>:hide )).to be_truthy
|
22
|
-
expect(format.show_view?( :menu, :hide=>'menu, paging', :default_visibility=>:show )).to be_falsey
|
23
|
-
expect(format.show_view?( :menu, :show=>'menu', :optional_menu=>:hide )).to be_truthy
|
24
|
-
end
|
25
|
-
|
26
|
-
it "should handle hard developer overrides" do
|
27
|
-
expect(format.show_view?( :menu, :optional_menu=>:always, :hide=>'menu' )).to be_truthy
|
28
|
-
expect(format.show_view?( :menu, :optional_menu=>:never, :show=>'menu' )).to be_falsey
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
32
|
-
|
33
|
-
describe 'format helpers and link building' do
|
34
|
-
before :each do
|
35
|
-
# should be a way to get these defaults in these tests
|
36
|
-
Card::Env[:host] = '//test.host'
|
37
|
-
Card::Env[:protocol] = 'http:'
|
38
|
-
end
|
39
|
-
|
40
|
-
let(:card) { Card['Home'] }
|
41
|
-
let(:text_format) { card.format(:text)}
|
42
|
-
let(:html_format) { card.format }
|
43
|
-
let(:url_text1) { 'with external free link http://localhost:2020/path?cgi=foo&bar=baz' }
|
44
|
-
let(:url_text2) { 'with external in link syntax: [[http://brain.org/Home|extra]]' }
|
45
|
-
let(:url_text3) { 'with internal lik [[A]]' }
|
46
|
-
let(:url_text4) { 'with internal lik [[Home|display text]]' }
|
47
|
-
let(:url_text5) { 'external with port: http://localhost:2020/path?cgi=foo+bar=baz after '}
|
48
|
-
|
49
|
-
it "should format links" do
|
50
|
-
cobj = Card::Content.new url_text1, text_format
|
51
|
-
expect(cobj.to_s).to eq url_text1
|
52
|
-
cobj = Card::Content.new url_text2, text_format
|
53
|
-
expect(cobj.to_s).to eq url_text2
|
54
|
-
cobj = Card::Content.new url_text3, text_format
|
55
|
-
expect(cobj.to_s).to eq url_text3
|
56
|
-
cobj = Card::Content.new url_text4, text_format
|
57
|
-
expect(cobj.to_s).to eq url_text4
|
58
|
-
cobj = Card::Content.new url_text5, text_format
|
59
|
-
expect(cobj.to_s).to eq url_text5
|
60
|
-
end
|
61
|
-
|
62
|
-
it "should format html links" do
|
63
|
-
cobj = Card::Content.new url_text1, html_format
|
64
|
-
expect(cobj.to_s).to eq "with external free link <a class=\"external-link\" href=\"http://localhost:2020/path?cgi=foo&bar=baz\">http://localhost:2020/path?cgi=foo&bar=baz</a>"
|
65
|
-
cobj = Card::Content.new url_text2+url_text3+url_text4, html_format
|
66
|
-
expect(cobj.to_s).to eq url_text2+url_text3+url_text4
|
67
|
-
cobj = Card::Content.new url_text5, html_format
|
68
|
-
expect(cobj.to_s).to eq "external with port: <a class=\"external-link\" href=\"http://localhost:2020/path?cgi=foo+bar=baz\">http://localhost:2020/path?cgi=foo+bar=baz</a> after "
|
69
|
-
end
|
70
|
-
|
71
|
-
it "formats page_path" do
|
72
|
-
expect(text_format.page_path card.cardname).to eq '/'+card.name
|
73
|
-
expect(html_format.page_path card.cardname).to eq '/'+card.name
|
74
|
-
expect(text_format.page_path card.cardname, :format => 'txt', :opt1 => 11, :opt2 => 'foo').to eq "/#{card.name}.txt?opt1=11&opt2=foo"
|
75
|
-
end
|
76
|
-
|
77
|
-
it "fomats full path and url" do
|
78
|
-
expect(text_format.wagn_path card.name).to eq "/#{card.name}"
|
79
|
-
expect(html_format.wagn_url card.name).to eq "http://test.host/#{card.name}"
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
@@ -1,37 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
describe Card::Loader do
|
3
|
-
# let(:card_double) { double "Card" }
|
4
|
-
# let(:pat_all_double) { proxy Card::AllSet }
|
5
|
-
# let(:format_double) { proxy Card::Format }
|
6
|
-
# let(:html_format_double) { proxy Card::HtmlFormat }
|
7
|
-
# it "should auto-load Card class methods from lib/wagn and mods" do
|
8
|
-
# #xpect(Card).to receive(:load_mods)
|
9
|
-
# #
|
10
|
-
# card = Card[:all]
|
11
|
-
# expect(card_double).to receive(:load_formats)
|
12
|
-
# #expect(Card).to receive(:load_sets)
|
13
|
-
# #expect(Card).to receive(:tracks).with(:any_args) # so Card still loads without core in failure testing
|
14
|
-
# Card[:all]
|
15
|
-
# #expect(Card.instance_method(:version)).to be
|
16
|
-
# # allow(Card).to receive(:version)
|
17
|
-
# # expect(Card.instance_method(:type_card)).to be
|
18
|
-
# # allow(Card).to receive(:file_path_sdfs)
|
19
|
-
# #expect(Card.instance_method(:file_path)).to be
|
20
|
-
# end
|
21
|
-
# it "should define Card methods from modules" do
|
22
|
-
# expect(Card.instance_method(:set_modules)).to be
|
23
|
-
# end
|
24
|
-
# it "should define Formatter methods from modules" do
|
25
|
-
# #expect(Card.instance_method(:render_core)).to be
|
26
|
-
# expect(Card.instance_method(:_render_raw)).to be
|
27
|
-
# expect(Card.instance_method(:render_core)).to be
|
28
|
-
# expect(Card.instance_method(:_render_raw)).to be
|
29
|
-
# end
|
30
|
-
# it "should define Formatter methods from modules" do
|
31
|
-
# expect(html_format_double.method(:render_core)).to be
|
32
|
-
# expect(html_format_double.method(:_render_raw)).to be
|
33
|
-
# expect(html_format_double.method(:render_core)).to be
|
34
|
-
# expect(html_format_double.method(:_render_raw)).to be
|
35
|
-
# end
|
36
|
-
end
|
37
|
-
=end
|
data/spec/lib/card/name_spec.rb
DELETED
@@ -1,279 +0,0 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
|
-
|
3
|
-
describe Card::Name do
|
4
|
-
|
5
|
-
describe "#key" do
|
6
|
-
|
7
|
-
it "should lowercase and underscore" do
|
8
|
-
expect("This Name".to_name.key).to eq("this_name")
|
9
|
-
end
|
10
|
-
|
11
|
-
it "should remove spaces" do
|
12
|
-
expect("this Name".to_name.key).to eq("this_name")
|
13
|
-
end
|
14
|
-
|
15
|
-
describe "underscores" do
|
16
|
-
|
17
|
-
it "should be treated like spaces" do
|
18
|
-
expect('weird_ combo'.to_name.key).to eq('weird combo'.to_name.key)
|
19
|
-
end
|
20
|
-
|
21
|
-
it "should not impede pluralization checks" do
|
22
|
-
expect('Mamas_and_Papas'.to_name.key).to eq("Mamas and Papas".to_name.key)
|
23
|
-
end
|
24
|
-
|
25
|
-
it "should be removed when before first word character" do
|
26
|
-
expect("_This Name".to_name.key).to eq("this_name")
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|
30
|
-
|
31
|
-
it "should singularize" do
|
32
|
-
expect("ethans".to_name.key).to eq("ethan")
|
33
|
-
end
|
34
|
-
|
35
|
-
it "should change CamelCase to snake case" do
|
36
|
-
expect("ThisThing".to_name.key).to eq("this_thing")
|
37
|
-
end
|
38
|
-
|
39
|
-
it "should handle plus cards" do
|
40
|
-
expect("ThisThing+Ethans".to_name.key).to eq("this_thing+ethan")
|
41
|
-
end
|
42
|
-
|
43
|
-
it "should retain * for star cards" do
|
44
|
-
expect("*right".to_name.key).to eq("*right")
|
45
|
-
end
|
46
|
-
|
47
|
-
it "should not singularize double s's" do
|
48
|
-
expect("grass".to_name.key).to eq('grass')
|
49
|
-
end
|
50
|
-
|
51
|
-
it "should not singularize letter 'S'" do
|
52
|
-
expect('S'.to_name.key).to eq('s')
|
53
|
-
end
|
54
|
-
|
55
|
-
it "should handle unicode characters" do
|
56
|
-
expect("Mañana".to_name.key).to eq('mañana')
|
57
|
-
end
|
58
|
-
|
59
|
-
it "should handle weird initial characters" do
|
60
|
-
expect('__you motha @#$'.to_name.key).to eq('you_motha')
|
61
|
-
expect('?!_you motha @#$'.to_name.key).to eq('you_motha')
|
62
|
-
end
|
63
|
-
|
64
|
-
it "should allow numbers" do
|
65
|
-
expect("3way".to_name.key).to eq('3way')
|
66
|
-
end
|
67
|
-
|
68
|
-
it "internal plurals" do
|
69
|
-
expect("cards hooks label foos".to_name.key).to eq('card_hook_label_foo')
|
70
|
-
end
|
71
|
-
|
72
|
-
it "should handle html entities" do
|
73
|
-
# This no longer takes off the s, is singularize broken now?
|
74
|
-
expect("Jean-françois Noubel".to_name.key).to eq('jean_françoi_noubel')
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
describe "#url_key" do
|
83
|
-
cardnames = ["GrassCommons.org", 'Oh you @##', "Alice's Restaurant!", "PB & J", "Mañana"].map(&:to_name)
|
84
|
-
|
85
|
-
cardnames.each do |cardname|
|
86
|
-
it "should have the same key as the name" do
|
87
|
-
k, k2 = cardname.key, cardname.url_key
|
88
|
-
#warn "cn tok #{cardname.inspect}, #{k.inspect}, #{k2.inspect}"
|
89
|
-
expect(k).to eq(k2.to_name.key)
|
90
|
-
end
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
describe "#valid" do
|
95
|
-
it "accepts valid names" do
|
96
|
-
expect("this+THAT".to_name).to be_valid
|
97
|
-
expect("THE*ONE*AND$!ONLY".to_name).to be_valid
|
98
|
-
end
|
99
|
-
|
100
|
-
it "rejects invalid names" do
|
101
|
-
# "Tes~sd".to_name.should_not be_valid
|
102
|
-
expect("TEST/DDER".to_name).not_to be_valid
|
103
|
-
end
|
104
|
-
|
105
|
-
it "rejects long names" do
|
106
|
-
card = Card.new
|
107
|
-
card.name="1"*256
|
108
|
-
expect(card).not_to be_valid
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
describe "#left_name" do
|
113
|
-
it "returns nil for non junction" do
|
114
|
-
expect("a".to_name.left_name).to eq(nil)
|
115
|
-
end
|
116
|
-
|
117
|
-
it "returns parent for parent" do
|
118
|
-
expect("a+b+c+d".to_name.left_name).to eq("a+b+c")
|
119
|
-
end
|
120
|
-
end
|
121
|
-
|
122
|
-
describe "#tag_name" do
|
123
|
-
it "returns last part of plus card" do
|
124
|
-
expect("a+b+c".to_name.tag).to eq("c")
|
125
|
-
end
|
126
|
-
|
127
|
-
it "returns name of simple card" do
|
128
|
-
expect("a".to_name.tag).to eq("a")
|
129
|
-
end
|
130
|
-
end
|
131
|
-
|
132
|
-
describe "#safe_key" do
|
133
|
-
it "subs pluses & stars" do
|
134
|
-
expect("Alpha?+*be-ta".to_name.safe_key).to eq("alpha-Xbe_tum")
|
135
|
-
end
|
136
|
-
end
|
137
|
-
|
138
|
-
describe "#replace_part" do
|
139
|
-
it "replaces first name part" do
|
140
|
-
expect('a+b'.to_name.replace_part('a','x').to_s).to eq('x+b')
|
141
|
-
end
|
142
|
-
it "replaces second name part" do
|
143
|
-
expect('a+b'.to_name.replace_part('b','x').to_s).to eq('a+x')
|
144
|
-
end
|
145
|
-
it "replaces two name parts" do
|
146
|
-
expect('a+b+c' .to_name.replace_part('a+b', 'x' ).to_s).to eq('x+c')
|
147
|
-
expect('a+b+c+d'.to_name.replace_part('a+b', 'e+f').to_s).to eq('e+f+c+d')
|
148
|
-
end
|
149
|
-
it "doesn't replace two part tag" do
|
150
|
-
expect('a+b+c'.to_name.replace_part('b+c','x').to_s).to eq('a+b+c')
|
151
|
-
end
|
152
|
-
end
|
153
|
-
|
154
|
-
describe "Cardnames star handling" do
|
155
|
-
it "recognizes star cards" do
|
156
|
-
expect('*a'.to_name.star?).to be_truthy
|
157
|
-
end
|
158
|
-
|
159
|
-
it "doesn't recognize star cards with plusses" do
|
160
|
-
expect('*a+*b'.to_name.star?).to be_falsey
|
161
|
-
end
|
162
|
-
|
163
|
-
it "recognizes rstar cards" do
|
164
|
-
expect('a+*a'.to_name.rstar?).to be_truthy
|
165
|
-
end
|
166
|
-
|
167
|
-
it "doesn't recognize star cards as rstar" do
|
168
|
-
expect('*a'.to_name.rstar?).to be_falsey
|
169
|
-
end
|
170
|
-
|
171
|
-
it "doesn't recognize non-star or star left" do
|
172
|
-
expect('*a+a'.to_name.rstar?).to be_falsey
|
173
|
-
end
|
174
|
-
end
|
175
|
-
|
176
|
-
describe "trait_name?" do
|
177
|
-
it "returns true for content codename" do
|
178
|
-
expect("bazoinga+*right+*structure".to_name.trait_name?(:structure)).to be_truthy
|
179
|
-
end
|
180
|
-
|
181
|
-
it "handles arrays" do
|
182
|
-
expect("bazoinga+*right+*structure".to_name.trait_name?(:structure, :default)).to be_truthy
|
183
|
-
end
|
184
|
-
|
185
|
-
it "returns false for non-template" do
|
186
|
-
expect("bazoinga+*right+nontent".to_name.trait_name?(:structure)).to be_falsey
|
187
|
-
end
|
188
|
-
end
|
189
|
-
|
190
|
-
describe "#to_absolute" do
|
191
|
-
it "handles _self, _whole, _" do
|
192
|
-
expect("_self".to_name.to_absolute("foo")).to eq("foo")
|
193
|
-
expect("_whole".to_name.to_absolute("foo")).to eq("foo")
|
194
|
-
expect("_".to_name.to_absolute("foo")).to eq("foo")
|
195
|
-
end
|
196
|
-
|
197
|
-
it "handles _left" do
|
198
|
-
expect("_left+Z".to_name.to_absolute("A+B+C")).to eq("A+B+Z")
|
199
|
-
end
|
200
|
-
|
201
|
-
it "handles white space" do
|
202
|
-
expect("_left + Z".to_name.to_absolute("A+B+C")).to eq("A+B+Z")
|
203
|
-
end
|
204
|
-
|
205
|
-
it "handles _right" do
|
206
|
-
expect("_right+bang".to_name.to_absolute("nutter+butter")).to eq("butter+bang")
|
207
|
-
expect("C+_right".to_name.to_absolute("B+A")).to eq("C+A")
|
208
|
-
end
|
209
|
-
|
210
|
-
it "handles leading +" do
|
211
|
-
expect("+bug".to_name.to_absolute("hum")).to eq("hum+bug")
|
212
|
-
end
|
213
|
-
|
214
|
-
it "handles trailing +" do
|
215
|
-
expect("bug+".to_name.to_absolute("tracks")).to eq("bug+tracks")
|
216
|
-
end
|
217
|
-
|
218
|
-
it "handles _(numbers)" do
|
219
|
-
expect("_1".to_name.to_absolute("A+B+C")).to eq("A")
|
220
|
-
expect("_1+_2".to_name.to_absolute("A+B+C")).to eq("A+B")
|
221
|
-
expect("_2+_3".to_name.to_absolute("A+B+C")).to eq("B+C")
|
222
|
-
end
|
223
|
-
|
224
|
-
it "handles _LLR etc" do
|
225
|
-
expect("_R".to_name.to_absolute("A+B+C+D+E")).to eq("E")
|
226
|
-
expect("_L".to_name.to_absolute("A+B+C+D+E")).to eq("A+B+C+D")
|
227
|
-
expect("_LR".to_name.to_absolute("A+B+C+D+E")).to eq("D")
|
228
|
-
expect("_LL".to_name.to_absolute("A+B+C+D+E")).to eq("A+B+C")
|
229
|
-
expect("_LLR".to_name.to_absolute("A+B+C+D+E")).to eq("C")
|
230
|
-
expect("_LLL".to_name.to_absolute("A+B+C+D+E")).to eq("A+B")
|
231
|
-
expect("_LLLR".to_name.to_absolute("A+B+C+D+E")).to eq("B")
|
232
|
-
expect("_LLLL".to_name.to_absolute("A+B+C+D+E")).to eq("A")
|
233
|
-
end
|
234
|
-
|
235
|
-
context "mismatched requests" do
|
236
|
-
it "returns _self for _left or _right on simple cards" do
|
237
|
-
expect("_left+Z".to_name.to_absolute("A")).to eq("A+Z")
|
238
|
-
expect("_right+Z".to_name.to_absolute("A")).to eq("A+Z")
|
239
|
-
end
|
240
|
-
|
241
|
-
it "handles bogus numbers" do
|
242
|
-
expect("_1".to_name.to_absolute("A")).to eq("A")
|
243
|
-
expect("_1+_2".to_name.to_absolute("A")).to eq("A+A")
|
244
|
-
expect("_2+_3".to_name.to_absolute("A")).to eq("A+A")
|
245
|
-
end
|
246
|
-
|
247
|
-
it "handles bogus _llr requests" do
|
248
|
-
expect("_R".to_name.to_absolute("A")).to eq("A")
|
249
|
-
expect("_L".to_name.to_absolute("A")).to eq("A")
|
250
|
-
expect("_LR".to_name.to_absolute("A")).to eq("A")
|
251
|
-
expect("_LL".to_name.to_absolute("A")).to eq("A")
|
252
|
-
expect("_LLR".to_name.to_absolute("A")).to eq("A")
|
253
|
-
expect("_LLL".to_name.to_absolute("A")).to eq("A")
|
254
|
-
expect("_LLLR".to_name.to_absolute("A")).to eq("A")
|
255
|
-
expect("_LLLL".to_name.to_absolute("A")).to eq("A")
|
256
|
-
end
|
257
|
-
end
|
258
|
-
|
259
|
-
it "does session user substitution" do
|
260
|
-
expect("_user".to_name.to_absolute("A")).to eq(Card::Auth.current.name)
|
261
|
-
Card::Auth.as_bot do
|
262
|
-
expect("_user".to_name.to_absolute("A")).to eq(Card::Auth.current.name)
|
263
|
-
end
|
264
|
-
end
|
265
|
-
end
|
266
|
-
|
267
|
-
describe "#to_show" do
|
268
|
-
it "ignores ignorables" do
|
269
|
-
expect('you+awe'.to_name.to_show('you')).to eq('+awe')
|
270
|
-
expect('me+you+awe'.to_name.to_show('you')).to eq('me+awe') #HMMM..... what should this do?
|
271
|
-
expect('me+you+awe'.to_name.to_show('me' )).to eq('+you+awe')
|
272
|
-
expect('me+you+awe'.to_name.to_show('me','you')).to eq('+awe')
|
273
|
-
expect('me+you'.to_name.to_show('me','you')).to eq('me+you')
|
274
|
-
expect('?a?+awe'.to_name.to_show('A')).to eq('+awe')
|
275
|
-
expect('+awe'.to_name.to_show()).to eq('+awe')
|
276
|
-
end
|
277
|
-
end
|
278
|
-
|
279
|
-
end
|
data/spec/lib/card/query_spec.rb
DELETED
@@ -1,459 +0,0 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
|
-
|
3
|
-
A_JOINEES = ["B", "C", "D", "E", "F"]
|
4
|
-
|
5
|
-
CARDS_MATCHING_TWO = ["Two","One+Two","One+Two+Three","Joe User"].sort
|
6
|
-
|
7
|
-
describe Card::Query do
|
8
|
-
|
9
|
-
describe 'append' do
|
10
|
-
it "should find real cards" do
|
11
|
-
expect(Card::Query.new(:name=>[:in, 'C', 'D', 'F'], :append=>'A' ).run.map(&:name).sort).to eq(["C+A", "D+A", "F+A"])
|
12
|
-
end
|
13
|
-
|
14
|
-
it "should absolutize names" do
|
15
|
-
expect(Card::Query.new(:name=>[:in, 'C', 'D', 'F'], :append=>'_right', :context=>'B+A' ).run.map(&:name).sort).to eq(["C+A", "D+A", "F+A"])
|
16
|
-
end
|
17
|
-
|
18
|
-
it "should find virtual cards" do
|
19
|
-
expect(Card::Query.new(:name=>[:in, 'C', 'D'], :append=>'*plus cards' ).run.map(&:name).sort).to eq(["C+*plus cards", "D+*plus cards"])
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
describe "in" do
|
24
|
-
it "should work for content options" do
|
25
|
-
expect(Card::Query.new(:in=>['AlphaBeta', 'Theta']).run.map(&:name).sort).to eq(%w(A+B T))
|
26
|
-
end
|
27
|
-
|
28
|
-
it "should find the same thing in full syntax" do
|
29
|
-
expect(Card::Query.new(:content=>[:in,'Theta','AlphaBeta']).run.map(&:name).sort).to eq(%w(A+B T))
|
30
|
-
end
|
31
|
-
|
32
|
-
it "should work on types" do
|
33
|
-
expect(Card::Query.new(:type=>[:in,'Cardtype E', 'Cardtype F']).run.map(&:name).sort).to eq(%w(type-e-card type-f-card))
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
describe "symbolization" do
|
38
|
-
it "should handle array values" do
|
39
|
-
query = {'plus'=>['tags',{'refer_to'=>'cookies'}]}
|
40
|
-
expect(Card::Query.new(query).query).to eq({:plus=>['tags',{:refer_to=>'cookies'}]})
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
describe "member_of/member" do
|
49
|
-
it "member_of should find members" do
|
50
|
-
expect(Card::Query.new( :member_of => "r1" ).run.map(&:name).sort).to eq(%w(u1 u2 u3))
|
51
|
-
end
|
52
|
-
it "member should find roles" do
|
53
|
-
expect(Card::Query.new( :member => {:match=>"u1"} ).run.map(&:name).sort).to eq(%w(r1 r2 r3))
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
|
58
|
-
describe "not" do
|
59
|
-
it "should exclude cards matching not criteria" do
|
60
|
-
expect(Card::Query.new(:plus=>"A", :not=>{:plus=>"A+B"}).run.map(&:name).sort).to eq(%w{ B D E F })
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
|
65
|
-
describe "multiple values" do
|
66
|
-
it "should handle multiple values for relational keys" do
|
67
|
-
expect(Card::Query.new( :member_of=>[:all, {:name=>'r1'}, {:key=>'r2'} ], :return=>:name).run.sort).to eq(%w{ u1 u2 })
|
68
|
-
expect(Card::Query.new( :member_of=>[ {:name=>'r1'}, {:key=>'r2'} ], :return=>:name).run.sort).to eq(%w{ u1 u2 })
|
69
|
-
expect(Card::Query.new( :member_of=>[:any, {:name=>'r1'}, {:key=>'r2'} ], :return=>:name).run.sort).to eq(%w{ u1 u2 u3 })
|
70
|
-
end
|
71
|
-
|
72
|
-
it "should handle multiple values for plus_relational keys" do
|
73
|
-
expect(Card::Query.new( :right_plus=>[ :all, 'e', 'c' ], :return=>:name ).run.sort).to eq(%w{ A }) #explicit conjunction
|
74
|
-
expect(Card::Query.new( :right_plus=>[ ['e',{}], 'c' ], :return=>:name ).run.sort).to eq(%w{ A }) # first element is array
|
75
|
-
expect(Card::Query.new( :right_plus=>[ 'e', 'c' ], :return=>:name ).run.sort).to eq([]) # NOT interpreted as multi-value
|
76
|
-
end
|
77
|
-
|
78
|
-
it "should handle multiple values for plus_relational keys" do
|
79
|
-
expect(Card::Query.new( :refer_to=>[ :and, 'a', 'b' ], :return=>:name ).run.sort).to eq(%w{ Y })
|
80
|
-
expect(Card::Query.new( :refer_to=>[ 'a', 'T' ], :return=>:name ).run.sort).to eq(%w{ X Y })
|
81
|
-
expect(Card::Query.new( :refer_to=>[ :or, 'b', 'z' ], :return=>:name ).run.sort).to eq(%w{ A B Y})
|
82
|
-
end
|
83
|
-
|
84
|
-
end
|
85
|
-
|
86
|
-
|
87
|
-
describe "edited_by/editor_of" do
|
88
|
-
it "should find card edited by joe using subquery" do
|
89
|
-
expect(Card::Query.new(:edited_by=>{:match=>"Joe User"}, :sort=>"name").run).to eq([Card["JoeLater"], Card["JoeNow"]])
|
90
|
-
end
|
91
|
-
it "should find card edited by Wagn Bot" do
|
92
|
-
#this is a weak test, since it gives the name, but different sorting mechanisms in other db setups
|
93
|
-
#was having it return *account in some cases and "A" in others
|
94
|
-
expect(Card::Query.new(:edited_by=>"Wagn Bot", :name=>'A', :return=>'name', :limit=>1).run.first).to eq("A")
|
95
|
-
end
|
96
|
-
it "should fail gracefully if user isn't there" do
|
97
|
-
expect(Card::Query.new(:edited_by=>"Joe LUser", :sort=>"name", :limit=>1).run).to eq([])
|
98
|
-
end
|
99
|
-
|
100
|
-
it "should not give duplicate results for multiple edits" do
|
101
|
-
c=Card["JoeNow"]
|
102
|
-
c.content="testagagin"
|
103
|
-
c.save
|
104
|
-
c.content="test3"
|
105
|
-
c.save!
|
106
|
-
expect(Card::Query.new(:edited_by=>"Joe User").run.map(&:name).sort).to eq(["JoeLater","JoeNow"])
|
107
|
-
end
|
108
|
-
|
109
|
-
it "should find joe user among card's editors" do
|
110
|
-
expect(Card::Query.new(:editor_of=>'JoeLater').run.map(&:name)).to eq(['Joe User'])
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
|
-
describe "created_by/creator_of" do
|
115
|
-
before do
|
116
|
-
Card.create :name=>'Create Test', :content=>'sufficiently distinctive'
|
117
|
-
end
|
118
|
-
|
119
|
-
it "should find Joe User as the card's creator" do
|
120
|
-
c = Card.fetch 'Create Test'
|
121
|
-
expect(Card::Query.new(:creator_of=>'Create Test').run.first.name).to eq('Joe User')
|
122
|
-
end
|
123
|
-
|
124
|
-
it "should find card created by Joe User" do
|
125
|
-
expect(Card::Query.new(:created_by=>'Joe User', :eq=>'sufficiently distinctive').run.first.name).to eq('Create Test')
|
126
|
-
end
|
127
|
-
end
|
128
|
-
|
129
|
-
describe "last_edited_by/last_editor_of" do
|
130
|
-
before do
|
131
|
-
c=Card.fetch('A')
|
132
|
-
c.content='peculicious'
|
133
|
-
c.save!
|
134
|
-
end
|
135
|
-
|
136
|
-
it "should find Joe User as the card's last editor" do
|
137
|
-
expect(Card::Query.new(:last_editor_of=>'A').run.first.name).to eq('Joe User')
|
138
|
-
end
|
139
|
-
|
140
|
-
it "should find card created by Joe User" do
|
141
|
-
expect(Card::Query.new(:last_edited_by=>'Joe User', :eq=>'peculicious').run.first.name).to eq('A')
|
142
|
-
end
|
143
|
-
end
|
144
|
-
|
145
|
-
describe "keyword" do
|
146
|
-
it "should escape nonword characters" do
|
147
|
-
expect(Card::Query.new( :match=>"two :(!").run.map(&:name).sort).to eq(CARDS_MATCHING_TWO)
|
148
|
-
end
|
149
|
-
end
|
150
|
-
|
151
|
-
describe "search count" do
|
152
|
-
it "should count search" do
|
153
|
-
s = Card.create! :name=>"ksearch", :type=>'Search', :content=>'{"match":"$keyword"}'
|
154
|
-
expect(s.count(:vars=>{:keyword=>"two"})).to eq(CARDS_MATCHING_TWO.length)
|
155
|
-
end
|
156
|
-
end
|
157
|
-
|
158
|
-
|
159
|
-
describe "cgi_params" do
|
160
|
-
it "should match content from cgi" do
|
161
|
-
expect(Card::Query.new( :match=>"$keyword", :vars=>{:keyword=>"two"}).run.map(&:name).sort).to eq(CARDS_MATCHING_TWO)
|
162
|
-
end
|
163
|
-
end
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
describe "content equality" do
|
168
|
-
it "should match content explicitly" do
|
169
|
-
expect(Card::Query.new( :content=>['=',"I'm number two"] ).run.map(&:name)).to eq(["Joe User"])
|
170
|
-
end
|
171
|
-
it "should match via shortcut" do
|
172
|
-
expect(Card::Query.new( '='=>"I'm number two" ).run.map(&:name)).to eq(["Joe User"])
|
173
|
-
end
|
174
|
-
end
|
175
|
-
|
176
|
-
|
177
|
-
describe "links" do
|
178
|
-
|
179
|
-
it("should handle refer_to") { expect(Card::Query.new( :refer_to=>'Z').run.map(&:name).sort).to eq(%w{ A B }) }
|
180
|
-
it("should handle link_to") { expect(Card::Query.new( :link_to=>'Z').run.map(&:name)).to eq(%w{ A }) }
|
181
|
-
it("should handle include" ) { expect(Card::Query.new( :include=>'Z').run.map(&:name)).to eq(%w{ B }) }
|
182
|
-
it("should handle linked_to_by") { expect(Card::Query.new( :linked_to_by=>'A').run.map(&:name)).to eq(%w{ Z }) }
|
183
|
-
it("should handle included_by") { expect(Card::Query.new( :included_by=>'B').run.map(&:name)).to eq(%w{ Z }) }
|
184
|
-
it("should handle referred_to_by") { expect(Card::Query.new( :referred_to_by=>'X').run.map(&:name).sort).to eq(%w{ A A+B T }) }
|
185
|
-
end
|
186
|
-
|
187
|
-
describe "relative links" do
|
188
|
-
it("should handle relative refer_to") { expect(Card::Query.new( :refer_to=>'_self', :context=>'Z').run.map(&:name).sort).to eq(%w{ A B }) }
|
189
|
-
end
|
190
|
-
|
191
|
-
describe "permissions" do
|
192
|
-
it "should not find cards not in group" do
|
193
|
-
Card::Auth.as_bot do
|
194
|
-
Card.create :name=>"C+*self+*read", :type=>'Pointer', :content=>"[[R1]]"
|
195
|
-
end
|
196
|
-
expect(Card::Query.new( :plus=>"A" ).run.map(&:name).sort).to eq(%w{ B D E F })
|
197
|
-
end
|
198
|
-
end
|
199
|
-
|
200
|
-
describe "basics" do
|
201
|
-
it "should be case insensitive for name" do
|
202
|
-
expect(Card::Query.new( :name=>"a" ).run.first.name).to eq('A')
|
203
|
-
end
|
204
|
-
|
205
|
-
it "should find plus cards" do
|
206
|
-
expect(Card::Query.new( :plus=>"A" ).run.map(&:name).sort).to eq(A_JOINEES)
|
207
|
-
end
|
208
|
-
|
209
|
-
it "should find connection cards" do
|
210
|
-
expect(Card::Query.new( :part=>"A" ).run.map(&:name).sort).to eq(["A+B", "A+C", "A+D", "A+E", "C+A", "D+A", "F+A"])
|
211
|
-
end
|
212
|
-
|
213
|
-
it "should find left connection cards" do
|
214
|
-
expect(Card::Query.new( :left=>"A" ).run.map(&:name).sort).to eq(["A+B", "A+C", "A+D", "A+E"])
|
215
|
-
end
|
216
|
-
|
217
|
-
it "should find right connection cards" do
|
218
|
-
expect(Card::Query.new( :right=>"A" ).run.map(&:name).sort).to eq(["C+A", "D+A", "F+A"])
|
219
|
-
end
|
220
|
-
|
221
|
-
it "should return count" do
|
222
|
-
expect(Card.count_by_wql( :part=>"A" )).to eq(7)
|
223
|
-
end
|
224
|
-
|
225
|
-
|
226
|
-
end
|
227
|
-
|
228
|
-
describe "limit and offset" do
|
229
|
-
it "should return limit" do
|
230
|
-
expect(Card::Query.new( :part=>"A", :limit=>5 ).run.size).to eq(5)
|
231
|
-
end
|
232
|
-
|
233
|
-
it "should not break if offset but no limit" do
|
234
|
-
expect(Card::Query.new( :part=>"A", :offset=>5 ).run.size).not_to eq(0)
|
235
|
-
end
|
236
|
-
|
237
|
-
end
|
238
|
-
|
239
|
-
describe "type" do
|
240
|
-
user_cards = ["Joe Admin", "Joe Camel", "Joe User", "John", "No Count", "Sample User", "Sara", "u1", "u2", "u3"].sort
|
241
|
-
|
242
|
-
it "should find cards of this type" do
|
243
|
-
expect(Card::Query.new( :type=>"_self", :context=>'User').run.map(&:name).sort).to eq(user_cards)
|
244
|
-
end
|
245
|
-
|
246
|
-
it "should find User cards " do
|
247
|
-
expect(Card::Query.new( :type=>"User" ).run.map(&:name).sort).to eq(user_cards)
|
248
|
-
end
|
249
|
-
|
250
|
-
it "should handle casespace variants" do
|
251
|
-
expect(Card::Query.new( :type=>"users" ).run.map(&:name).sort).to eq(user_cards)
|
252
|
-
end
|
253
|
-
|
254
|
-
end
|
255
|
-
|
256
|
-
|
257
|
-
describe "trash handling" do
|
258
|
-
it "should not find cards in the trash" do
|
259
|
-
Card["A+B"].delete!
|
260
|
-
expect(Card::Query.new( :left=>"A" ).run.map(&:name).sort).to eq(["A+C", "A+D", "A+E"])
|
261
|
-
end
|
262
|
-
end
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
describe "order" do
|
268
|
-
it "should sort by create" do
|
269
|
-
Card.create! :name=>"classic skin head"
|
270
|
-
# classic skin head is created more recently than classic skin, which is in the seed data
|
271
|
-
wql = { :sort=>"create", :name=>[:match,'classic skin']}
|
272
|
-
expect( Card::Query.new(wql).run.map(&:name) ).to eq( ["classic skin","classic skin head"] )
|
273
|
-
end
|
274
|
-
|
275
|
-
it "should sort by name" do
|
276
|
-
expect(Card::Query.new( :name=> %w{ in B Z A Y C X }, :sort=>"alpha", :dir=>"desc" ).run.map(&:name)).to eq(%w{ Z Y X C B A })
|
277
|
-
expect(Card::Query.new( :name=> %w{ in B Z A Y C X }, :sort=>"name", :dir=>"desc" ).run.map(&:name)).to eq(%w{ Z Y X C B A })
|
278
|
-
#Card.create! :name => 'the alphabet'
|
279
|
-
#Card::Query.new( :name=>["in", "B", "C", "the alphabet"], :sort=>"name").run.map(&:name).should == ["the alphabet", "B", "C"]
|
280
|
-
end
|
281
|
-
|
282
|
-
it "should sort by content" do
|
283
|
-
expect(Card::Query.new( :name=> %w{ in Z T A }, :sort=>"content").run.map(&:name)).to eq(%w{ A Z T })
|
284
|
-
end
|
285
|
-
|
286
|
-
it "should play nice with match" do
|
287
|
-
expect(Card::Query.new( :match=>'Z', :type=>'Basic', :sort=>"content").run.map(&:name)).to eq(%w{ A B Z })
|
288
|
-
end
|
289
|
-
|
290
|
-
it "should sort by plus card content" do
|
291
|
-
Card::Auth.as_bot do
|
292
|
-
c = Card.fetch('Setting+*self+*table of contents')
|
293
|
-
c.content = '10'
|
294
|
-
c.save
|
295
|
-
c = Card.create! :name=>'Basic+*type+*table of contents', :content=>'3'
|
296
|
-
|
297
|
-
w = Card::Query.new( :right_plus=>'*table of contents', :sort=>{ :right=>'*table_of_contents'}, :sort_as=>'integer' )
|
298
|
-
#warn "sql from new wql = #{w.sql}"
|
299
|
-
expect(w.run.map(&:name)).to eq(%w{ *all Basic+*type Setting+*self })
|
300
|
-
end
|
301
|
-
end
|
302
|
-
|
303
|
-
it "should sort by count" do
|
304
|
-
Card::Auth.as_bot do
|
305
|
-
followed_cards = ['All Eyes On Me', 'Sara Following', 'No One Sees Me']
|
306
|
-
w = Card::Query.new( :name=>[:in, followed_cards].flatten,
|
307
|
-
:sort=>{ :right=>'*following', :item=>'referred_to', :return=>'count' }
|
308
|
-
) # this ugly beast is a count of how often items are referred to by +*following cards
|
309
|
-
expect(w.run.map(&:name)).to eq(followed_cards.reverse)
|
310
|
-
end
|
311
|
-
end
|
312
|
-
|
313
|
-
# it "should sort by update" do
|
314
|
-
# # do this on a restricted set so it won't change every time we add a card..
|
315
|
-
# Card::Query.new( :match=>"two", :sort=>"update", :dir=>"desc").run.map(&:name).should == ["One+Two+Three", "One+Two","Two","Joe User"]
|
316
|
-
# Card["Two"].update_attributes! :content=>"new bar"
|
317
|
-
# Card::Query.new( :match=>"two", :sort=>"update", :dir=>"desc").run.map(&:name).should == ["Two","One+Two+Three", "One+Two","Joe User"]
|
318
|
-
# end
|
319
|
-
#
|
320
|
-
|
321
|
-
end
|
322
|
-
|
323
|
-
describe "params" do
|
324
|
-
it "should merge in params as normal WQL" do
|
325
|
-
expect(Card::Query.new( :params=>{:name=>"two"}).run.first.name).to eq('Two')
|
326
|
-
end
|
327
|
-
end
|
328
|
-
|
329
|
-
|
330
|
-
describe "match" do
|
331
|
-
it "should reach content and name via shortcut" do
|
332
|
-
expect(Card::Query.new( :match=>"two").run.map(&:name).sort).to eq(CARDS_MATCHING_TWO)
|
333
|
-
end
|
334
|
-
|
335
|
-
it "should get only content when content is explicit" do
|
336
|
-
expect(Card::Query.new( :content=>[:match, "two"] ).run.map(&:name).sort).to eq(["Joe User"])
|
337
|
-
end
|
338
|
-
|
339
|
-
it "should get only name when name is explicit" do
|
340
|
-
expect(Card::Query.new( :name=>[:match, "two"] ).run.map(&:name).sort).to eq(["One+Two","One+Two+Three","Two"].sort)
|
341
|
-
end
|
342
|
-
end
|
343
|
-
|
344
|
-
describe "and" do
|
345
|
-
it "should act as a simple passthrough" do
|
346
|
-
expect(Card::Query.new(:and=>{:match=>'two'}).run.map(&:name).sort).to eq(CARDS_MATCHING_TWO)
|
347
|
-
expect(Card::Query.new(:and=>{}, :type=>"Cardtype E").run.first.name).to eq('type-e-card')
|
348
|
-
end
|
349
|
-
|
350
|
-
|
351
|
-
it "should work within 'or'" do
|
352
|
-
results = Card::Query.new(:or=>{:name=>'Z', :and=>{:left=>'A', :right=>'C'}}).run
|
353
|
-
expect(results.length).to eq(2)
|
354
|
-
expect(results.map(&:name).sort).to eq(['A+C','Z'])
|
355
|
-
end
|
356
|
-
end
|
357
|
-
|
358
|
-
describe "any/or" do
|
359
|
-
it "should work with :plus" do
|
360
|
-
expect(Card::Query.new(:plus=>"A", :or =>{:name=>'B', :match=>'K'}, :return=>'name').run.sort).to eq(%w{ B })
|
361
|
-
expect(Card::Query.new(:plus=>"A", :any=>{:name=>'B', :match=>'K'}, :return=>'name').run.sort).to eq(%w{ B })
|
362
|
-
expect(Card::Query.new(:or=>{:right_plus=>"A", :plus=>'B'}, :return=>'name').run.sort).to eq(%w{ A C D F })
|
363
|
-
end
|
364
|
-
end
|
365
|
-
|
366
|
-
describe "offset" do
|
367
|
-
it "should not break count" do
|
368
|
-
expect(Card.count_by_wql({:match=>'two', :offset=>1})).to eq(CARDS_MATCHING_TWO.length)
|
369
|
-
end
|
370
|
-
end
|
371
|
-
|
372
|
-
|
373
|
-
#=end
|
374
|
-
describe "found_by" do
|
375
|
-
before do
|
376
|
-
Card::Auth.current_id = Card::WagnBotID
|
377
|
-
c = Card.create(:name=>'Simple Search', :type=>'Search', :content=>'{"name":"A"}')
|
378
|
-
end
|
379
|
-
|
380
|
-
it "should find cards returned by search of given name" do
|
381
|
-
expect(Card::Query.new(:found_by=>'Simple Search').run.first.name).to eq('A')
|
382
|
-
end
|
383
|
-
it "should find cards returned by virtual cards" do
|
384
|
-
expect(Card::Query.new(:found_by=>'Image+*type+by name').run.map(&:name).sort).to eq(Card.search(:type=>'Image').map(&:name).sort)
|
385
|
-
end
|
386
|
-
it "should play nicely with other properties and relationships" do
|
387
|
-
expect(Card::Query.new(:plus=>{:found_by=>'Simple Search'}).run.map(&:name).sort).to eq(Card::Query.new(:plus=>{:name=>'A'}).run.map(&:name).sort)
|
388
|
-
expect(Card::Query.new(:found_by=>'A+*self', :plus=>'C').run.map(&:name)).to eq(%w{ A })
|
389
|
-
|
390
|
-
end
|
391
|
-
it "should be able to handle _self" do
|
392
|
-
expect(Card::Query.new(:context=>'Simple Search', :left=>{:found_by=>'_self'}, :right=>'B').run.first.name).to eq('A+B')
|
393
|
-
end
|
394
|
-
|
395
|
-
end
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
#=end
|
400
|
-
|
401
|
-
describe "relative" do
|
402
|
-
it "should clean wql" do
|
403
|
-
wql = Card::Query.new( :part=>"_self",:context=>'A' )
|
404
|
-
expect(wql.query[:part]).to eq('A')
|
405
|
-
end
|
406
|
-
|
407
|
-
it "should find connection cards" do
|
408
|
-
expect(Card::Query.new( :part=>"_self", :context=>'A' ).run.map(&:name).sort).to eq(["A+B", "A+C", "A+D", "A+E", "C+A", "D+A", "F+A"])
|
409
|
-
end
|
410
|
-
|
411
|
-
it "should be able to use parts of nonexistent cards in search" do
|
412
|
-
expect(Card['B+A']).to be_nil
|
413
|
-
expect(Card::Query.new( :left=>'_right', :right=>'_left', :context=>'B+A' ).run.map(&:name)).to eq(['A+B'])
|
414
|
-
end
|
415
|
-
|
416
|
-
it "should find plus cards for _self" do
|
417
|
-
expect(Card::Query.new( :plus=>"_self", :context=>"A" ).run.map(&:name).sort).to eq(A_JOINEES)
|
418
|
-
end
|
419
|
-
|
420
|
-
it "should find plus cards for _left" do
|
421
|
-
expect(Card::Query.new( :plus=>"_left", :context=>"A+B" ).run.map(&:name).sort).to eq(A_JOINEES)
|
422
|
-
end
|
423
|
-
|
424
|
-
it "should find plus cards for _right" do
|
425
|
-
expect(Card::Query.new( :plus=>"_right", :context=>"C+A" ).run.map(&:name).sort).to eq(A_JOINEES)
|
426
|
-
end
|
427
|
-
|
428
|
-
end
|
429
|
-
|
430
|
-
|
431
|
-
describe "nested permissions" do
|
432
|
-
it "are generated by default" do
|
433
|
-
perm_count = 0
|
434
|
-
Card::Query.new( { :left=>{:name=>"X"}}).sql.scan( /read_rule_id IN \([\d\,]+\)/ ) do |m|
|
435
|
-
perm_count+=1
|
436
|
-
end
|
437
|
-
expect(perm_count).to eq(2)
|
438
|
-
end
|
439
|
-
|
440
|
-
# it "are not generated inside .without_nested_permissions block" do
|
441
|
-
# perm_count = 0
|
442
|
-
# Card::Query.without_nested_permissions do
|
443
|
-
# Card::Query.new( { :left=>{:name=>"X"}}).sql.scan( /read_rule_id IN \([\d\,]+\)/ ) do |m|
|
444
|
-
# perm_count+=1
|
445
|
-
# end
|
446
|
-
# end
|
447
|
-
# perm_count.should == 1
|
448
|
-
# end
|
449
|
-
end
|
450
|
-
|
451
|
-
#describe "return values" do
|
452
|
-
# # FIXME: should do other return thingies here
|
453
|
-
# it "returns name_content" do
|
454
|
-
# Card::Query.new( { :name => "A+B", :return => "name_content" } ).run.should == {
|
455
|
-
# "A+B" => "AlphaBeta"
|
456
|
-
# }
|
457
|
-
# end
|
458
|
-
#end
|
459
|
-
end
|