the_sortable_tree 2.3.3 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +10 -4
- data/app/assets/javascripts/expandable_tree/hashchange.js.coffee +33 -0
- data/app/assets/javascripts/expandable_tree/initializer.js.coffee +76 -22
- data/app/assets/javascripts/expandable_tree/jquery.cookie.coffee +68 -0
- data/app/assets/javascripts/expandable_tree/restorable.js.coffee +125 -0
- data/app/assets/javascripts/jquery.ui.nestedSortable.js +2 -0
- data/app/assets/javascripts/sortable_tree/initializer.js.coffee +40 -34
- data/app/assets/stylesheets/expandable_tree.css.scss +8 -2
- data/app/assets/stylesheets/sortable_tree.css.scss +11 -9
- data/app/controllers/the_sortable_tree_controller.rb +12 -11
- data/app/helpers/render_expandable_tree_helper.rb +1 -3
- data/app/helpers/render_sortable_tree_helper.rb +1 -2
- data/lib/the_sortable_tree/version.rb +1 -1
- data/spec/{the_sortable_tree_app → dummy_app}/Gemfile +1 -1
- data/spec/dummy_app/Gemfile.lock +134 -0
- data/spec/dummy_app/README.md +33 -0
- data/spec/{the_sortable_tree_app → dummy_app}/Rakefile +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/assets/images/rails.png +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/assets/javascripts/application.js +5 -1
- data/spec/{the_sortable_tree_app → dummy_app}/app/assets/stylesheets/application.css +1 -1
- data/spec/{the_sortable_tree_app → dummy_app}/app/controllers/admin/pages_controller.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/controllers/application_controller.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/controllers/article_categories_controller.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/controllers/inventory/categories_controller.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/controllers/pages_controller.rb +1 -1
- data/spec/{the_sortable_tree_app → dummy_app}/app/controllers/welcome_controller.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/models/admin/page.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/models/admin.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/models/article_category.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/models/inventory/category.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/models/inventory.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/models/page.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/views/admin/pages/index.html.haml +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/views/admin/pages/manage.html.haml +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/views/admin/pages/namespaced_link.html.haml +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/views/admin/pages/nested_options.html.haml +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/views/admin/pages/node_manage.html.haml +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/views/article_categories/index.html.haml +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/views/article_categories/manage.html.haml +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/views/inventory/categories/index.html.haml +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/views/inventory/categories/manage.html.haml +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/views/layouts/application.html.erb +0 -0
- data/spec/dummy_app/app/views/pages/expand.html.haml +8 -0
- data/spec/{the_sortable_tree_app/app/views/pages/expand_children.html.haml → dummy_app/app/views/pages/expand_node.html.haml} +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/views/pages/index.html.haml +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/views/pages/manage.html.haml +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/views/pages/nested_options.html.haml +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/app/views/welcome/index.html.haml +1 -1
- data/spec/{the_sortable_tree_app → dummy_app}/config/application.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/config/boot.rb +0 -0
- data/spec/dummy_app/config/database.yml +3 -0
- data/spec/dummy_app/config/database.yml.example +3 -0
- data/spec/{the_sortable_tree_app → dummy_app}/config/environment.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/config/environments/development.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/config/environments/production.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/config/environments/test.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/config/initializers/backtrace_silencers.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/config/initializers/inflections.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/config/initializers/mime_types.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/config/initializers/secret_token.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/config/initializers/session_store.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/config/initializers/wrap_parameters.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/config/locales/en.yml +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/config/routes.rb +7 -2
- data/spec/{the_sortable_tree_app → dummy_app}/config.ru +0 -0
- data/spec/dummy_app/db/development.db +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/db/migrate/20120211053457_create_pages.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/db/migrate/20120503173258_create_article_categories.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/db/migrate/20120508093823_create_inventory_categories.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/db/migrate/20130128160328_create_admin_pages.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/db/schema.rb +14 -14
- data/spec/{the_sortable_tree_app → dummy_app}/db/seeds.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/doc/README_FOR_APP +0 -0
- data/spec/dummy_app/log/development.log +32859 -0
- data/spec/{the_sortable_tree_app → dummy_app}/public/404.html +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/public/422.html +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/public/500.html +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/public/favicon.ico +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/public/robots.txt +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/script/rails +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/test/fixtures/admin/pages.yml +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/test/fixtures/article_categories.yml +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/test/fixtures/comments.yml +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/test/fixtures/inventory/categories.yml +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/test/functional/inventory/category_controller_test.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/test/performance/browsing_test.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/test/test_helper.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/test/unit/admin/page_test.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/test/unit/article_category_test.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/test/unit/comment_test.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/test/unit/helpers/inventory/category_helper_test.rb +0 -0
- data/spec/{the_sortable_tree_app → dummy_app}/test/unit/inventory/category_test.rb +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/7078a6e7d50d4f9d68fa0d4816aa48e19cc24fe5/expandable_tree.css.scssc +0 -0
- data/spec/{the_sortable_tree_app/tmp/cache/sass/2255c97fc63f030a9ce238cccb311b4b1e966328 → dummy_app/tmp/cache/assets/development/sass/7078a6e7d50d4f9d68fa0d4816aa48e19cc24fe5}/nested_options.css.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/7078a6e7d50d4f9d68fa0d4816aa48e19cc24fe5/sortable_tree.css.scssc +0 -0
- data/spec/{the_sortable_tree_app/tmp/cache/sass/2255c97fc63f030a9ce238cccb311b4b1e966328 → dummy_app/tmp/cache/assets/development/sass/7078a6e7d50d4f9d68fa0d4816aa48e19cc24fe5}/tree.css.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/05efd66e23c98c77afeb4a7bcb45f8bf +0 -0
- data/spec/{the_sortable_tree_app/tmp/cache/assets/C6B/530/sprockets%2F54e7598ead46f414a5474993750992a6 → dummy_app/tmp/cache/assets/development/sprockets/075f155915b68deac9b84d36e9e78e12} +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/1142f73fad150a752112a732b733591b +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/{the_sortable_tree_app/tmp/cache/assets/D48/300/sprockets%2F392aba9fd44f378041913c9f0edef429 → dummy_app/tmp/cache/assets/development/sprockets/17329c76961a36ab755c53272d334b99} +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/1c62fe9e8cce00645d6440af4ac61ce0 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/1d6831069f2ba3e6b5a700231417128f +0 -0
- data/spec/{the_sortable_tree_app/tmp/cache/assets/D0F/540/sprockets%2Ffdff04173da67c582219de85c136320f → dummy_app/tmp/cache/assets/development/sprockets/206ce2975a6d174ac740cab27481be7c} +0 -0
- data/spec/{the_sortable_tree_app/tmp/cache/assets/D07/110/sprockets%2F4a6961a0c735dbbba76f35e606f34027 → dummy_app/tmp/cache/assets/development/sprockets/22e25b35a790c2b5fabc74f93b74078d} +0 -0
- data/spec/{the_sortable_tree_app/tmp/cache/assets/DF1/8B0/sprockets%2F2f0d2d00353acefe637b5338a9abfdfb → dummy_app/tmp/cache/assets/development/sprockets/2d9f90ebaaf77755df5bce7315fbab07} +0 -0
- data/spec/{the_sortable_tree_app/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 → dummy_app/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af} +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/33a50ea83c8c0b953c9462be9ac2e5ae +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/34efe139b4a7055695595585160a0903 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/351a8f38490961801e253ef169b6298e +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/3f8d6db1d41d5620f91eb915cb1212c5 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/41055928923856ad1bf8548fc57b65b0 +0 -0
- data/spec/{the_sortable_tree_app/tmp/cache/assets/CB1/D00/sprockets%2F90a69052f559169cc0338bb9e7b2071c → dummy_app/tmp/cache/assets/development/sprockets/45202fa0f913fbdccbf35341f8dd7b36} +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/4b4bd169c4e69a64a4a2741e174cf578 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/4d0c7146cf04552f8b598a3e111d7997 +0 -0
- data/spec/{the_sortable_tree_app/tmp/cache/assets/CDC/B70/sprockets%2Fb8655a3e58029cd981112a7ce421db65 → dummy_app/tmp/cache/assets/development/sprockets/4fa563d2736e57350e947f3c45446a31} +0 -0
- data/spec/{the_sortable_tree_app/tmp/cache/assets/C3B/4B0/sprockets%2F4143dd2388a3252adb1804945871a002 → dummy_app/tmp/cache/assets/development/sprockets/589dc20ca8832fd1e57cee612a33470d} +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/592f5283e9aaf10abfabe06adb90dd24 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/5f57b8f9ade7989a4ad4910dbc14e4b5 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/61de97016b38506f89e31b4614e3ada2 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/65203852a8bf7f4dd76a8ff5fd20d8e5 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/66facc18f7ab080c8a8e3186cddb39aa +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/68f3f70d3556b5c8039f76c18c9520a0 +0 -0
- data/spec/{the_sortable_tree_app/tmp/cache/assets/D14/F00/sprockets%2Fb0d459b10f17bcc3955798772c7bac18 → dummy_app/tmp/cache/assets/development/sprockets/6ffb1af77ca6f262aec891f176a4d5a2} +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/7210b4d08933fddd9c8bf1d8e7b9dcb1 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/77b67e5a493f0abd66712e2cfdccfbf7 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/79e26ff62a5184d59f12cbaae40e0bf0 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/80cb309fcd056cda2563f749bc0fedae +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/8223a88c26fdebbe77f2189f253c84d2 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/82e61fb673d352eed69e219594c9d13d +0 -0
- data/spec/{the_sortable_tree_app/tmp/cache/assets/DAE/A40/sprockets%2F78e36ff8ef2fc355f82b30e0bfb397b5 → dummy_app/tmp/cache/assets/development/sprockets/8505bd144271a52deb9ced0582114f3d} +0 -0
- data/spec/{the_sortable_tree_app/tmp/cache/assets/DA2/800/sprockets%2F21a7cffa498af4bfb7a0849616b41dd8 → dummy_app/tmp/cache/assets/development/sprockets/8625ec6aecaca3766f0df3d7a6236594} +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/87521f5a93bf531f819abebebd4c2aa4 +0 -0
- data/spec/{the_sortable_tree_app/tmp/cache/assets/D5F/560/sprockets%2Fa07f8d3d20c8ad7093220eb04c67a6cd → dummy_app/tmp/cache/assets/development/sprockets/8979439153b5a4760f1b278fdd0e9a5c} +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/8f2995d8912687da614ff3b98b6e24ed +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/93d8d86bb80be6fb6a366b13800b4942 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/99359f7a098eb16495189cf6d728f7b3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/99deda2445e2710cc890a25f205c51a6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/9ac815a1e6ab54e57f903054f878db1c +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/9f3643f6af4c46696ba0eab98830a7d8 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/b55d5f8b7ac32c8022256909a8139dfe +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/bc0aca73f9504eb4d1a1d68755eedadb +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/bcd93e383d1f771b5a289b74ec7fb4bb +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/bd13d384c236f2e3cf25c76ece28ce24 +0 -0
- data/spec/{the_sortable_tree_app/tmp/cache/assets/D38/E20/sprockets%2F0e50ead9c50e79817fc32184e900ba5a → dummy_app/tmp/cache/assets/development/sprockets/bfde58c0dd8b76566ab23cc887e93a50} +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/bfe30d1ba2625e651981933ffe03ce20 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/c1320f0226f27d7f547663a7deba9644 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/c4432eee045f7b58525ed694662f6e12 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/c7748b5f3eb8c8fea2e080c3dccaeae7 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/cc6925acc7747a5cbe6e54df08217dbd +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/cd2cfd2ecacdf768c8a4b41c1070fbcf +0 -0
- data/spec/{the_sortable_tree_app/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af → dummy_app/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994} +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/d47a5f0466fc7f582750aa20a0182dbd +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/daf14199207e9836228590d5efe3dcf3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/e2c92d620a13bc05f71b3405ec753edb +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/ea90d043aa01ed3e8e0b6cd49ea4c2a6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/eb9be27c994815f00a4c4c630c775c54 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/eca8bd0ac188e23c00a4f531569d1d1e +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/ed396f8ec81394d660b1d6d6aab7b289 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/f664eb5cbdc07ddaea6383c623fe0bac +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/f6f10c5b2a6282dca22b82b11b25ec12 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/f83592d6f5ee1f5eaaf7192d73dd5cb0 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/fe2d1a86e5d6de106fa359f8c4028d77 +0 -0
- metadata +376 -317
- data/spec/the_sortable_tree_app/Gemfile.lock +0 -138
- data/spec/the_sortable_tree_app/README.md +0 -9
- data/spec/the_sortable_tree_app/app/views/pages/expand.html.haml +0 -7
- data/spec/the_sortable_tree_app/config/database.yml +0 -11
- data/spec/the_sortable_tree_app/db/development.db +0 -0
- data/spec/the_sortable_tree_app/db/production.db +0 -0
- data/spec/the_sortable_tree_app/db/test.db +0 -0
- data/spec/the_sortable_tree_app/log/development.log +0 -18672
- data/spec/the_sortable_tree_app/log/production.log +0 -5
- data/spec/the_sortable_tree_app/tmp/cache/assets/C50/BE0/sprockets%2Fa139ccc37272f09e8337565114558a42 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/C77/560/sprockets%2F813f25e4a0780001a1f80f83ea522987 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/C81/090/sprockets%2F5338822ad86a0a0079f990225ed9037d +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/C9A/730/sprockets%2F12ff81fe7a0c213d511536b1a9712613 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/C9B/370/sprockets%2F4b19719024eb862bb0b40c2903b2444f +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/CC9/ED0/sprockets%2Fa98594ed698bb2f25c32497158b7346f +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/CD5/540/sprockets%2Fa2e03c2a79820a23e494e3b8459c32f0 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/CE9/BD0/sprockets%2F22287637edb361485c371efd7817acc7 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/CEA/2D0/sprockets%2F77e58093f6053b9964ca2b36bd34a94d +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/CEE/3C0/sprockets%2Ff078d8a33d271e8bf062dfd978343537 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/CF0/590/sprockets%2F66914ec5c90e7fa7285377a17c4b94e3 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/CF8/C70/sprockets%2Fb086216a7cea4b05f2d10a54a1508c86 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/D0A/840/sprockets%2F38149c503a4865c81cef8cc0226b6a3d +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/D0E/CE0/sprockets%2F54005c20e9fd12f1d6d7bf9f7080f822 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/D14/170/sprockets%2F2a860136457d8b8f4fedb7bcb3962136 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/D42/760/sprockets%2Fa26ac9237d11ffa65fca30c861979e36 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/D47/BE0/sprockets%2F544a4972c2f7438e092ab50cbc8c9de9 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/D51/420/sprockets%2F8497f4db9b07de37eee54184fd031e93 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/D59/D90/sprockets%2Ff09bd16e880b660cbf49848bc97f29e7 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/D7C/D70/sprockets%2F8c4e6f6fc945e97cae12d8218a21f8b3 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/DD3/4C0/sprockets%2Fb4b73a83da8ea301f18e578dc3d9dde6 +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/assets/E03/A20/sprockets%2F74f7c02ea34e1ecfcb83bff7c167c75d +0 -0
- data/spec/the_sortable_tree_app/tmp/cache/sass/2255c97fc63f030a9ce238cccb311b4b1e966328/sortable_tree.css.scssc +0 -0
@@ -0,0 +1,134 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../../
|
3
|
+
specs:
|
4
|
+
the_sortable_tree (2.4.0)
|
5
|
+
rails (>= 3.1)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actionmailer (4.0.0)
|
11
|
+
actionpack (= 4.0.0)
|
12
|
+
mail (~> 2.5.3)
|
13
|
+
actionpack (4.0.0)
|
14
|
+
activesupport (= 4.0.0)
|
15
|
+
builder (~> 3.1.0)
|
16
|
+
erubis (~> 2.7.0)
|
17
|
+
rack (~> 1.5.2)
|
18
|
+
rack-test (~> 0.6.2)
|
19
|
+
activemodel (4.0.0)
|
20
|
+
activesupport (= 4.0.0)
|
21
|
+
builder (~> 3.1.0)
|
22
|
+
activerecord (4.0.0)
|
23
|
+
activemodel (= 4.0.0)
|
24
|
+
activerecord-deprecated_finders (~> 1.0.2)
|
25
|
+
activesupport (= 4.0.0)
|
26
|
+
arel (~> 4.0.0)
|
27
|
+
activerecord-deprecated_finders (1.0.3)
|
28
|
+
activesupport (4.0.0)
|
29
|
+
i18n (~> 0.6, >= 0.6.4)
|
30
|
+
minitest (~> 4.2)
|
31
|
+
multi_json (~> 1.3)
|
32
|
+
thread_safe (~> 0.1)
|
33
|
+
tzinfo (~> 0.3.37)
|
34
|
+
arel (4.0.0)
|
35
|
+
atomic (1.1.10)
|
36
|
+
awesome_nested_set (2.1.6)
|
37
|
+
activerecord (>= 3.0.0)
|
38
|
+
builder (3.1.4)
|
39
|
+
coffee-rails (4.0.0)
|
40
|
+
coffee-script (>= 2.2.0)
|
41
|
+
railties (>= 4.0.0.beta, < 5.0)
|
42
|
+
coffee-script (2.2.0)
|
43
|
+
coffee-script-source
|
44
|
+
execjs
|
45
|
+
coffee-script-source (1.6.3)
|
46
|
+
erubis (2.7.0)
|
47
|
+
execjs (1.4.0)
|
48
|
+
multi_json (~> 1.0)
|
49
|
+
faker (1.1.2)
|
50
|
+
i18n (~> 0.5)
|
51
|
+
haml (4.0.3)
|
52
|
+
tilt
|
53
|
+
haml-rails (0.4)
|
54
|
+
actionpack (>= 3.1, < 4.1)
|
55
|
+
activesupport (>= 3.1, < 4.1)
|
56
|
+
haml (>= 3.1, < 4.1)
|
57
|
+
railties (>= 3.1, < 4.1)
|
58
|
+
hike (1.2.3)
|
59
|
+
i18n (0.6.4)
|
60
|
+
jquery-rails (3.0.2)
|
61
|
+
railties (>= 3.0, < 5.0)
|
62
|
+
thor (>= 0.14, < 2.0)
|
63
|
+
jquery-ui-rails (4.0.3)
|
64
|
+
jquery-rails
|
65
|
+
railties (>= 3.1.0)
|
66
|
+
json (1.8.0)
|
67
|
+
mail (2.5.4)
|
68
|
+
mime-types (~> 1.16)
|
69
|
+
treetop (~> 1.4.8)
|
70
|
+
mime-types (1.23)
|
71
|
+
minitest (4.7.5)
|
72
|
+
multi_json (1.7.7)
|
73
|
+
polyglot (0.3.3)
|
74
|
+
rack (1.5.2)
|
75
|
+
rack-test (0.6.2)
|
76
|
+
rack (>= 1.0)
|
77
|
+
rails (4.0.0)
|
78
|
+
actionmailer (= 4.0.0)
|
79
|
+
actionpack (= 4.0.0)
|
80
|
+
activerecord (= 4.0.0)
|
81
|
+
activesupport (= 4.0.0)
|
82
|
+
bundler (>= 1.3.0, < 2.0)
|
83
|
+
railties (= 4.0.0)
|
84
|
+
sprockets-rails (~> 2.0.0)
|
85
|
+
railties (4.0.0)
|
86
|
+
actionpack (= 4.0.0)
|
87
|
+
activesupport (= 4.0.0)
|
88
|
+
rake (>= 0.8.7)
|
89
|
+
thor (>= 0.18.1, < 2.0)
|
90
|
+
rake (10.1.0)
|
91
|
+
sass (3.2.9)
|
92
|
+
sass-rails (4.0.0)
|
93
|
+
railties (>= 4.0.0.beta, < 5.0)
|
94
|
+
sass (>= 3.1.10)
|
95
|
+
sprockets-rails (~> 2.0.0)
|
96
|
+
sprockets (2.10.0)
|
97
|
+
hike (~> 1.2)
|
98
|
+
multi_json (~> 1.0)
|
99
|
+
rack (~> 1.0)
|
100
|
+
tilt (~> 1.1, != 1.3.0)
|
101
|
+
sprockets-rails (2.0.0)
|
102
|
+
actionpack (>= 3.0)
|
103
|
+
activesupport (>= 3.0)
|
104
|
+
sprockets (~> 2.8)
|
105
|
+
sqlite3 (1.3.7)
|
106
|
+
thor (0.18.1)
|
107
|
+
thread_safe (0.1.0)
|
108
|
+
atomic
|
109
|
+
tilt (1.4.1)
|
110
|
+
treetop (1.4.14)
|
111
|
+
polyglot
|
112
|
+
polyglot (>= 0.3.1)
|
113
|
+
tzinfo (0.3.37)
|
114
|
+
uglifier (2.1.1)
|
115
|
+
execjs (>= 0.3.0)
|
116
|
+
multi_json (~> 1.0, >= 1.0.2)
|
117
|
+
|
118
|
+
PLATFORMS
|
119
|
+
ruby
|
120
|
+
|
121
|
+
DEPENDENCIES
|
122
|
+
awesome_nested_set
|
123
|
+
coffee-rails
|
124
|
+
faker
|
125
|
+
haml
|
126
|
+
haml-rails
|
127
|
+
jquery-rails
|
128
|
+
jquery-ui-rails
|
129
|
+
json
|
130
|
+
rails (~> 4.0.0)
|
131
|
+
sass-rails
|
132
|
+
sqlite3
|
133
|
+
the_sortable_tree!
|
134
|
+
uglifier
|
@@ -0,0 +1,33 @@
|
|
1
|
+
## TheSortableTree Test Application
|
2
|
+
|
3
|
+
#### Ruby 1.9.3 + Rails 4 + Haml 4 + the_sortable_tree (2.3.0)
|
4
|
+
|
5
|
+
Create Database config file
|
6
|
+
|
7
|
+
```
|
8
|
+
cp config/database.yml.example config/database.yml
|
9
|
+
```
|
10
|
+
|
11
|
+
Create Database and Test data
|
12
|
+
|
13
|
+
```
|
14
|
+
rake db:drop && rake db:create && rake db:migrate && rake db:seed
|
15
|
+
```
|
16
|
+
|
17
|
+
Start Rails 4
|
18
|
+
|
19
|
+
```
|
20
|
+
rails s
|
21
|
+
```
|
22
|
+
|
23
|
+
or
|
24
|
+
|
25
|
+
```
|
26
|
+
rails s -p 3000 -b site.com
|
27
|
+
```
|
28
|
+
|
29
|
+
Open browser
|
30
|
+
|
31
|
+
```
|
32
|
+
localhost:3000
|
33
|
+
```
|
File without changes
|
File without changes
|
@@ -12,5 +12,9 @@
|
|
12
12
|
|
13
13
|
//= require jquery.ui.nestedSortable
|
14
14
|
//= require sortable_tree/initializer
|
15
|
-
|
15
|
+
|
16
|
+
//= require expandable_tree/jquery.cookie
|
17
|
+
//= require expandable_tree/restorable
|
18
|
+
//= require expandable_tree/hashchange
|
19
|
+
//= require expandable_tree/initializer
|
16
20
|
*/
|
File without changes
|
File without changes
|
data/spec/{the_sortable_tree_app → dummy_app}/app/controllers/article_categories_controller.rb
RENAMED
File without changes
|
data/spec/{the_sortable_tree_app → dummy_app}/app/controllers/inventory/categories_controller.rb
RENAMED
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class PagesController < ApplicationController
|
2
2
|
include TheSortableTreeController::Rebuild
|
3
|
-
|
3
|
+
include TheSortableTreeController::ExpandNode
|
4
4
|
|
5
5
|
def index
|
6
6
|
@pages = Page.nested_set.select('id, title, content, parent_id').limit(15)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/{the_sortable_tree_app → dummy_app}/app/views/admin/pages/namespaced_link.html.haml
RENAMED
File without changes
|
data/spec/{the_sortable_tree_app → dummy_app}/app/views/admin/pages/nested_options.html.haml
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/{the_sortable_tree_app → dummy_app}/app/views/inventory/categories/index.html.haml
RENAMED
File without changes
|
data/spec/{the_sortable_tree_app → dummy_app}/app/views/inventory/categories/manage.html.haml
RENAMED
File without changes
|
File without changes
|
@@ -0,0 +1,8 @@
|
|
1
|
+
%p= link_to raw('← back'), '/'
|
2
|
+
|
3
|
+
%p= link_to 'Create New Page', new_page_path
|
4
|
+
|
5
|
+
Count: #{ @pages.count }
|
6
|
+
|
7
|
+
%ol.sortable_tree.expandable{ data: { max_levels: 5, rebuild_url: rebuild_pages_url, expand_node_url: expand_node_pages_url, cookie_store: :true, cookie_scope: @pages.first.class } }
|
8
|
+
= expandable_tree @pages
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -9,7 +9,7 @@
|
|
9
9
|
%li= link_to 'pages/nested_options', nested_options_pages_path
|
10
10
|
%li= link_to 'pages/manage (sortable tree)', manage_pages_path
|
11
11
|
%li= link_to 'pages/node_manage (sortable tree)', node_manage_pages_path
|
12
|
-
|
12
|
+
%li= link_to 'pages/expand (expandable tree)', expand_pages_path
|
13
13
|
|
14
14
|
%h5 Admin::Pages (model Admin::Pages + namespace :admin)
|
15
15
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -7,8 +7,13 @@ TheSortableTreeTest::Application.routes.draw do
|
|
7
7
|
|
8
8
|
resources :pages do
|
9
9
|
collection do
|
10
|
-
get :nested_options
|
11
|
-
|
10
|
+
get :nested_options
|
11
|
+
get :manage
|
12
|
+
get :node_manage
|
13
|
+
get :expand
|
14
|
+
|
15
|
+
post :rebuild
|
16
|
+
post :expand_node
|
12
17
|
end
|
13
18
|
end
|
14
19
|
|
File without changes
|
Binary file
|
File without changes
|
data/spec/{the_sortable_tree_app → dummy_app}/db/migrate/20120503173258_create_article_categories.rb
RENAMED
File without changes
|
File without changes
|
data/spec/{the_sortable_tree_app → dummy_app}/db/migrate/20130128160328_create_admin_pages.rb
RENAMED
File without changes
|
@@ -9,11 +9,11 @@
|
|
9
9
|
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
10
|
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
11
|
#
|
12
|
-
# It's strongly recommended
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:
|
14
|
+
ActiveRecord::Schema.define(version: 20130128160328) do
|
15
15
|
|
16
|
-
create_table "admin_pages", :
|
16
|
+
create_table "admin_pages", force: true do |t|
|
17
17
|
t.string "title"
|
18
18
|
t.text "content"
|
19
19
|
t.text "secret_field"
|
@@ -21,11 +21,11 @@ ActiveRecord::Schema.define(:version => 20130128160328) do
|
|
21
21
|
t.integer "lft"
|
22
22
|
t.integer "rgt"
|
23
23
|
t.integer "depth"
|
24
|
-
t.datetime "created_at"
|
25
|
-
t.datetime "updated_at"
|
24
|
+
t.datetime "created_at"
|
25
|
+
t.datetime "updated_at"
|
26
26
|
end
|
27
27
|
|
28
|
-
create_table "article_categories", :
|
28
|
+
create_table "article_categories", force: true do |t|
|
29
29
|
t.string "title"
|
30
30
|
t.text "content"
|
31
31
|
t.text "secret_field"
|
@@ -33,11 +33,11 @@ ActiveRecord::Schema.define(:version => 20130128160328) do
|
|
33
33
|
t.integer "lft"
|
34
34
|
t.integer "rgt"
|
35
35
|
t.integer "depth"
|
36
|
-
t.datetime "created_at"
|
37
|
-
t.datetime "updated_at"
|
36
|
+
t.datetime "created_at"
|
37
|
+
t.datetime "updated_at"
|
38
38
|
end
|
39
39
|
|
40
|
-
create_table "inventory_categories", :
|
40
|
+
create_table "inventory_categories", force: true do |t|
|
41
41
|
t.string "title"
|
42
42
|
t.text "content"
|
43
43
|
t.text "secret_field"
|
@@ -45,11 +45,11 @@ ActiveRecord::Schema.define(:version => 20130128160328) do
|
|
45
45
|
t.integer "lft"
|
46
46
|
t.integer "rgt"
|
47
47
|
t.integer "depth"
|
48
|
-
t.datetime "created_at"
|
49
|
-
t.datetime "updated_at"
|
48
|
+
t.datetime "created_at"
|
49
|
+
t.datetime "updated_at"
|
50
50
|
end
|
51
51
|
|
52
|
-
create_table "pages", :
|
52
|
+
create_table "pages", force: true do |t|
|
53
53
|
t.string "title"
|
54
54
|
t.text "content"
|
55
55
|
t.text "secret_field"
|
@@ -57,8 +57,8 @@ ActiveRecord::Schema.define(:version => 20130128160328) do
|
|
57
57
|
t.integer "lft"
|
58
58
|
t.integer "rgt"
|
59
59
|
t.integer "depth"
|
60
|
-
t.datetime "created_at"
|
61
|
-
t.datetime "updated_at"
|
60
|
+
t.datetime "created_at"
|
61
|
+
t.datetime "updated_at"
|
62
62
|
end
|
63
63
|
|
64
64
|
end
|
File without changes
|
File without changes
|