rubber_ring 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +0 -0
- data/README.md +31 -26
- data/Rakefile +0 -0
- data/app/assets/images/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/glyphicons-halflings.png +0 -0
- data/app/assets/javascripts/libs/dropzone.js +0 -0
- data/app/assets/javascripts/libs/h5utils.js +0 -0
- data/app/assets/javascripts/rubber_ring/application.js +17 -17
- data/app/assets/javascripts/rubber_ring/attachment_dragger.coffee +1 -1
- data/app/assets/javascripts/rubber_ring/attachment_manager.coffee +1 -1
- data/app/assets/javascripts/rubber_ring/attachment_uploader.coffee +0 -0
- data/app/assets/javascripts/rubber_ring/dropdown_menu.coffee +0 -0
- data/app/assets/javascripts/rubber_ring/editor.coffee +48 -56
- data/app/assets/javascripts/rubber_ring/link_editor.coffee +0 -0
- data/app/assets/javascripts/rubber_ring/persistence_manager.coffee +77 -74
- data/app/assets/javascripts/rubber_ring/template_editor.coffee +76 -76
- data/app/assets/javascripts/rubber_ring/util.coffee +22 -22
- data/app/assets/stylesheets/libs/bootstrap.scss.erb +0 -0
- data/app/assets/stylesheets/rubber_ring/application.css +0 -0
- data/app/assets/stylesheets/rubber_ring/cms.scss +200 -183
- data/app/concerns/rubber_ring/build.rb +4 -1
- data/app/concerns/rubber_ring/publish.rb +0 -0
- data/app/concerns/rubber_ring/util.rb +0 -0
- data/app/controllers/rubber_ring/attachments_controller.rb +52 -52
- data/app/controllers/rubber_ring/cms_controller.rb +57 -41
- data/app/controllers/rubber_ring/rubber_ring_controller.rb +67 -67
- data/app/controllers/rubber_ring/sessions_controller.rb +0 -0
- data/app/helpers/rubber_ring/cms_helper.rb +127 -122
- data/app/models/rubber_ring/page.rb +126 -126
- data/app/models/rubber_ring/page_content.rb +5 -5
- data/app/models/rubber_ring/page_template.rb +5 -5
- data/app/views/layouts/rubber_ring/application.html.erb +0 -0
- data/app/views/rubber_ring/_application.html.erb +7 -0
- data/app/views/rubber_ring/_head.html.erb +0 -0
- data/app/views/rubber_ring/_template_control.html.erb +19 -20
- data/app/views/rubber_ring/sessions/new.html.erb +0 -0
- data/config/routes.rb +20 -20
- data/db/migrate/20130520170602_create_pages.rubber_ring.rb +11 -11
- data/db/migrate/20130520170603_create_rubber_ring_page_contents.rubber_ring.rb +11 -11
- data/db/migrate/20130520170604_create_rubber_ring_page_templates.rubber_ring.rb +14 -14
- data/db/seeds.rb +0 -0
- data/lib/generators/rubber_ring/install/USAGE +0 -0
- data/lib/generators/rubber_ring/install/install_generator.rb +0 -0
- data/lib/generators/rubber_ring/install/templates/application.js +0 -0
- data/lib/generators/rubber_ring/install/templates/layout.html.erb +0 -0
- data/lib/generators/rubber_ring/install/templates/publish_template.yml +0 -0
- data/lib/generators/rubber_ring/install/templates/settings_template.rb +0 -0
- data/lib/generators/rubber_ring/page/USAGE +0 -0
- data/lib/generators/rubber_ring/page/page_generator.rb +0 -0
- data/lib/generators/rubber_ring/page/templates/action.html.erb +0 -0
- data/lib/generators/rubber_ring/page/templates/controller.rb +1 -9
- data/lib/rubber_ring/engine.rb +0 -0
- data/lib/rubber_ring/version.rb +1 -1
- data/lib/rubber_ring.rb +0 -0
- data/lib/tasks/rubber_ring_tasks.rake +0 -0
- data/spec/concerns/util_spec.rb +0 -0
- data/spec/controllers/attachments_controller_spec.rb +0 -0
- data/spec/controllers/cms_controller_spec.rb +150 -150
- data/spec/controllers/sessions_controller_spec.rb +0 -0
- data/spec/helpers/cms_helper_spec.rb +86 -63
- data/spec/javascripts/fixtures/duplicate_fields.html +2 -2
- data/spec/javascripts/fixtures/editable_fields.html +26 -15
- data/spec/javascripts/fixtures/templates.html +21 -21
- data/spec/javascripts/helpers/fixtures.js +10 -9
- data/spec/javascripts/helpers/jasmine-jquery.js +0 -0
- data/spec/javascripts/persistence_manager_spec.coffee +67 -5
- data/spec/javascripts/template_editor_spec.coffee +49 -29
- data/spec/javascripts/util_spec.coffee +0 -0
- data/spec/karma.conf.js +86 -86
- data/spec/models/page_spec.rb +196 -196
- data/spec/spec_helper.rb +0 -0
- data/test/dummy/README.rdoc +0 -0
- data/test/dummy/Rakefile +0 -0
- data/test/dummy/app/assets/images/baws.jpg +0 -0
- data/test/dummy/app/assets/javascripts/application.js +0 -0
- data/test/dummy/app/assets/stylesheets/application.css +22 -17
- data/test/dummy/app/controllers/application_controller.rb +0 -0
- data/test/dummy/app/controllers/example_controller.rb +1 -13
- data/test/dummy/app/helpers/application_helper.rb +0 -0
- data/test/dummy/app/views/example/page.html.erb +20 -20
- data/test/dummy/app/views/example/page2.html.erb +13 -13
- data/test/dummy/app/views/layouts/application.html.erb +0 -0
- data/test/dummy/app/views/layouts/rubber_ring/layout.html.erb +0 -0
- data/test/dummy/app/views/templates/_article.html.erb +7 -7
- data/test/dummy/app/views/templates/_blog_post.html.erb +0 -0
- data/test/dummy/app/views/templates/_test_article.html.erb +1 -0
- data/test/dummy/bin/bundle +0 -0
- data/test/dummy/bin/rails +0 -0
- data/test/dummy/bin/rake +0 -0
- data/test/dummy/config/application.rb +0 -0
- data/test/dummy/config/boot.rb +0 -0
- data/test/dummy/config/database.yml +0 -0
- data/test/dummy/config/environment.rb +0 -0
- data/test/dummy/config/environments/development.rb +0 -0
- data/test/dummy/config/environments/production.rb +0 -0
- data/test/dummy/config/environments/test.rb +36 -36
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -0
- data/test/dummy/config/initializers/inflections.rb +0 -0
- data/test/dummy/config/initializers/mime_types.rb +0 -0
- data/test/dummy/config/initializers/rubber_ring.rb +0 -0
- data/test/dummy/config/initializers/secret_token.rb +0 -0
- data/test/dummy/config/initializers/session_store.rb +0 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -0
- data/test/dummy/config/locales/en.yml +0 -0
- data/test/dummy/config/publish.yml +0 -0
- data/test/dummy/config/routes.rb +6 -6
- data/test/dummy/config.ru +0 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130524163154_create_pages.rubber_ring.rb +12 -12
- data/test/dummy/db/migrate/20130524163155_create_rubber_ring_page_contents.rubber_ring.rb +12 -12
- data/test/dummy/db/migrate/20130524163156_create_rubber_ring_page_templates.rubber_ring.rb +15 -15
- data/test/dummy/db/schema.rb +47 -47
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +136305 -23515
- data/test/dummy/log/test.log +51978 -37913
- data/test/dummy/public/404.html +0 -0
- data/test/dummy/public/422.html +0 -0
- data/test/dummy/public/500.html +0 -0
- data/test/dummy/public/build/assets/application.css +22 -17
- data/test/dummy/public/build/assets/application.js +1 -1
- data/test/dummy/public/build/assets/baws.jpg +0 -0
- data/test/dummy/public/build/page2.html +26 -0
- data/test/dummy/public/build/page2.html.gz +0 -0
- data/test/dummy/public/build/upload/en/example/page2/images/app_icon.png +0 -0
- data/test/dummy/public/build/upload/en/example/page2/images/lombard-mb.jpg +0 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/upload/en/example/page2/images/app_icon.png +0 -0
- data/test/dummy/public/upload/en/example/page2/images/lombard-mb.jpg +0 -0
- data/test/dummy/script/rails +6 -6
- data/test/dummy/tmp/cache/assets/development/sass/{9ef9c546be1f15bd909c4626b18ec56c75aac0ce → 6afeb0468679937dd837e6204d8c50da187b1b86}/cms.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/8185f37c4f7dd19815b19559200f49fbf25b143a/cms.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/{5df77a09e28ee5e99b029d061fc8c7aa74ed8701 → bf386cacb2b03aea3662489e692121614b700c0b}/bootstrap.scss.erbc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/005eccb32211a5ffdf41aad3484bbbb4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/03d17cbcdf5da1d77daae00a93e1d8eb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/05b70326df3b56707d29014e51681478 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{d3a4fc418bcc8c28e1477d8ae5981e44 → 0b7e113c317408196c4c5358803207aa} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{82af58bd517f6c898e82655012e662f3 → 0c110aab9d003ece8e77532f992c8ac4} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{c28f157f3954955f1bc4ca11b085e5f1 → 0ce49cb008857ab0744ac6c1b3abbc8b} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{5588d8e326c1909734ec317c6068a8b0 → 0f93e7090f8d9aec40d344a14507179e} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/10c6f6553bf3c14d2073a1dc826c4a03 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{d9a230b2c36f01509e607c6fc423b04f → 12500514d60c3ccadeada02813852775} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{980857c735dc36c6448aa7f0a63d5775 → 171f12428d9e1a40d9fb903b7e468b2d} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1893a62d9206a1fb9d89578a47e6dba8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1cb5879c7320b989a214a03dbb87bf33 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1f634c9d68d6c31855bf84ecb8e9d3a1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1fea295e8b5e18dd84023ff5526e6ef0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/20df56c42f6929328dc9f4b846fbdcfe +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{2bdc67c643c8348c3a0c294004f0fc35 → 2558b6957b25b93991193f924fc75bf8} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2d6a5f1b530809a08781e3fbd07e7ec5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{5802a1804470ed3a7258b19b52db2a15 → 2eb67a7041c777c64ffabc725ac0135a} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{95234f56258851aba6ec6fdab79bccb6 → 332d6068ca366c58c7051fd0916ee2d5} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/335356dbe0c1221a16b3fbb65d50737f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{c1bea1ba92a5304ffd28cc0af4b325d9 → 33af750044e6ee3fc377bf3e1dd729d8} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/33e002f0b7946cd298562302f71fdd77 +0 -0
- data/test/dummy/tmp/cache/assets/{production/sprockets/b81f49d8cf1dbae0f6d1ac4d9d923f17 → development/sprockets/340272cf2848f9a2d74d4f39c9b7642e} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3699e3a1c1e5ad798ad43a8f54dde72f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/373aa7486f8dc9d9548018802c99887d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{c843fdb2b33bf3e87833b23027a9adb9 → 3842af17b9a1edaab79091d7fa77ca66} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3877e7e301c281be42fc7aed5c3c5035 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{f72f9d88e28ad73485fcc24ef00be1f0 → 38b1ca58d468cedaa12b42af6bfe987d} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3beaa45c69e3414a2f8cdd63b39787a2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{021d5ce446187b362f442c81dbc04f33 → 3d57f0a9afcc890433a984ca738403fe} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{dcef36a5aee30ad53443ea58149b5c8d → 411e3d003692f86acf9dc756196ee980} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{77c132a2a2cf0e255033066a80db84e5 → 43c96209871dd10656ee0a583c4d224e} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/457aa334a405736412d49df345885a87 +0 -0
- data/test/dummy/tmp/cache/assets/{production/sprockets/5cceba1f5466432ddc1ca00d96bb6af2 → development/sprockets/4890c29871e7236809e31a1672e437e2} +0 -0
- data/test/dummy/tmp/cache/assets/{production/sprockets/ac74145f99b8dab2053e9ae97ab30b59 → development/sprockets/48e32a4ca9a9cd1e9f28fd35a9c423d4} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4d0e945a1aeffabb6ecbe4e9cfbe9900 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4ff563d50fe6491dbd10a9d82abbfdfb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5158a96c0f825e9f03cb852177150660 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{896e0a59c127f026ecc3ce390c394c6d → 518189fb433e27f6948d41a436a6d152} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/53ba99192c5668743a46c5d52532ab35 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{f7147d2e3eeeaef3c6adef2176a6e9bf → 540ff91c3b7016e16673c857381527f3} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/54a2f8fde589b4f5b63efcc75a604223 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/58eb1186ddb15250a56597cd441118d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5b1e9ead20b30aaaaaf279bd8e3a798e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5cd9203ec5f16de07df500cd98f4f538 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5d5fb516cc13d631c73d6ba74527c7fd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/62dc9541d46ef8f45853e3dca50132d8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/62e078b9f8be16ae7278da400568a918 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/63bca039746bf54ca66ddadf85fe3c74 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/68e88a76cf0ae3b9def99df2da275d32 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6a460bdc2d2ee57d882a40d6fbd9b706 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6cac7e80180a6143add53ed9a5b5290b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/716625880a04396476f184c7f6088be0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{3f68640e722ec4648c55f987c372bd1f → 736f87d63ed4ed02bff28b309e6d778d} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{6386e7f696b5dd6b1588f8051bf78083 → 74c9b855fe76feeff8b3258f58806976} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/764217b04b89871d5a19d639ad08d652 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7647442e68634bf506ceb6529c964ff8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{5cceba1f5466432ddc1ca00d96bb6af2 → 764bddd895dfccfa8ff3ef951c2b7c10} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{cf38200dbb3ee3a9d4dd84cc1d98ada2 → 7651480e2c1dcf5d039f4b10f214f3d4} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/76e238edb63fa832c6aa34fdf57e48a0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{c9d60e346e8632bb3945f7e94cce0036 → 7736698f9e23d715ba80ec4b2f3563f7} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7a4fe9e3d748b6627971dbfa57da0700 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{e0d30e94a53fc0d324ec29d883efd5a0 → 7b9859cd9bb07614b05aa61c7b028bda} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{2ee41f98f4c10cf8d2f5bd28d3bd1b96 → 7bc09e522e5e89e66d9d8f25553fedf5} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{0ceefdff5c5f03895722be20f6ddc26b → 7bcf92aa1727d37bb0c83d72ea558ee2} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7bd7316976b72a4351629802d0d996ac +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7e944534b79a5f98fa45ed7d0d51eb96 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{ffa3b9093369ac4b2758f390b0cafab4 → 7f204bc73e31e97abb5c1782a19038c8} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{a804717f8c355bf77d84f50220f6b66f → 7f37ba97c6c53d35bfb9a59e6e63f559} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8394c16a4541076a7958bd0949b389ec +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/851829daaa9bf188f9e6265fd060a111 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/85e0ba994b32ea76a422598c0635685b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{e64df0317c02ea3aaf0c6ac14b3c1994 → 86c5db77a82b91bbc060a99a2bf8b1d8} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{a6324741c7289fc944f62b446136cf36 → 8b3d169e10e3a60de99777b47413d8c6} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8b74d8c3afdb7163f50f52e10b198290 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8b916bd3400afb4fa336a44771290a7b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{b8bfca64ea01caaf52a8ad9336eba057 → 8c099909d672aad6dfdb0089cebd5cf2} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{672160928c4f356614c3b08e4dd18959 → 8c60f620d6fab20909c331508637d62e} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{cbfd1cdcc8926af0e015fd6e4a8cfe95 → 9056e523b48d7c3d49e3281cb8456f78} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{dfd54ce2610fa0bdcd51a47ebe236db4 → 908f17c91e5d3933c88ff294c2850c48} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{50b7c4b1c7e9124299cdd60ed2bf24fb → 92b0ddad5a7e9502c64f94f791f5b227} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/954bb101caefd0c65eaffd0806b60fe2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9993c347361adbac8056462899c084e5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9e0522ce72f83a2d14b9040602ad671e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9e4856eaccd8050e2cce8f2726bd1ff9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{a1f2a21fb4036d971dd7f36cbfaf3320 → 9f98aa96aafbc2f72bc7ac8094f68d92} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{3052b99e985fcef75d109bb00139ebd3 → a255bb384e0691e2ecd1d9495e06e256} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a2719663651c4c47fea4601da97f674b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a30c5479ead2031a2e521cbfa989dca8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a54698289dfb98cb1c3314d66baf5f91 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a5fc721c5e049fa401638dbbe6f01666 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{ac74145f99b8dab2053e9ae97ab30b59 → a61abd48bf7b7983c84ddba700bf91c2} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{8dda9084ddc7e1b0ce01887b1bfbf7ad → a744ea358a5724c7d05808b92e5733fa} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{8a58cdb1fd183189a813cb45de9b5ecb → a8895017459d5367d9565e4291e9fde5} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{da3b6190521b537ef46190c99c630173 → a9fead645c2c02e002382413d89e2459} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/aafab1cd25c75cd144df598aa4d48858 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b064391743404352c0d06d1dae692bbc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b4520c38ae1fcee31b76f988e89dced4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b4da7dedc3efa1b2420734a75da1402f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b5d99651fe9edd91970e38aaf098c3b6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{eb0dcd1f1d9812e1f7eb10b58e6b1ac9 → b867b71b34a178f9e2109581794d9746} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{cc2b3e15e75ad21a379b54186f0b3e63 → ba021acb60c8110caf167b5ddd687bd7} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{c8c8b769bfa8c90477013dc463dce8dd → bd84cc90c9c326977210109197cd8275} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{7b3469b8a6587d3fdde5168bcadc1829 → bf1f8c24547868c27b950882afb48ea6} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c0625d8a0a68787afb029146355062df +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c10a1994812cf191cd2ee4ef1f979bf0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{b0e2ed0167a71948529cf8507015a638 → c3d2138f727c60328d03d9035f0269bf} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c3fbb5f0690b2b69916c7cdfa2e6290b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c52fba073da9df226a864c2299f176f2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{b81f49d8cf1dbae0f6d1ac4d9d923f17 → c5b203e7f49dc081135c7781927db895} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{ce0f026a8f35c2824e68416229e502b0 → c641f626cb9e5f27cd52aea0c7968c4e} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c76f44b59338c92655cdb50acd5a51b7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{00dfd740f227e8eacf8dc70e8923aa30 → c887c975279c3c47685cf7124ed6a1bd} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{0fa97a19dba2b30d1269220457488770 → c9f9f57faf109718fb4af1d7c1817ecf} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ca5ae160185d691a80add93c7951ad8d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cb676c28d1dce8658c2ce261c40ff62d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cbb7cfa2a375a0ec163c71490071ae70 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{f5630318facff40bd4c26746561e91a5 → cc94cf292a326391d2963cba90f6bff5} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{e508a5da5b2a6ba14eaabe1fc9987f1b → cdeb8f35f199762f504a99aa024e4e87} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{de3b887062709ecbae0f43a1967507b3 → d2e2a9efa562c5d2fa461561ebcc1290} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d35e97e22dc8f2ebda1bed928a03ad8a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{ea3fbcf111211cf25a1e84abd8890069 → d5d3364d0d5abb33f4592912ab042d79} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{b0b79f650d323d7f80a4c7456dfce684 → d693a95e7a2c07d61b52e47271cbdbb5} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d7d736c1deac61de2c15341befe77a2e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d7d7b4cc12064138abb7eb48e552ce75 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{b344975ddf3cba471441e737f3ca0570 → d9bc0dc05b0c310aad16ab0b6d57427a} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{d06332ce072d0af8fda4bb34381370ef → da2a232cfd1b66aa714ec6d05c9731b1} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dc3d91ae1d7f973c1354a745e97076dd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e031b1069cbdfd42e262ccf38f88551f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e0c1faca0fe3b99790f1467965b76234 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e0e949e3a882294df1ac6efb53555963 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{d1734506eed8ef7a8e5c73e599b0debb → e3706c14b9e23f333d832cf3965247e3} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e65687a477607576014aae3cce13d0e1 +0 -0
- data/test/dummy/tmp/cache/assets/{production/sprockets/021d5ce446187b362f442c81dbc04f33 → development/sprockets/e6870ccbd0c9096ef15a3bc88af47a69} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{5449d7c21a154077e042b276efcfe346 → ea9cb066f249c19b768e4a04e3dccda1} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{17ea4d79d21b1f083c77f59ba9b3372d → ec43597e5721c7016d842c14a94fd8ac} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/eca6e114f4db2379855c8af72fafaa45 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ee94e4fa77c994757234bd188b221771 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/eeccfebd3c89a085ade5e49efa39fad9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ef9bb4e9c3dedc3c4b035c2334693110 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f270587a206c85bb7163b16529b5ff69 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{19686f8659e57712f166b6b342155e6c → f4df1f1776710c62b946a89a0ca8d0ae} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{a6f3ccbc9cf1cae48fad3c83ffea2dd8 → f6b6006654dfb1057cd1e0903e98e6ba} +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/{8c20ea028e7ef9e18ab2517785615d32 → f885539e8180d385ffb61daf45b985dc} +0 -0
- metadata +255 -629
- data/test/dummy/db/production.sqlite3 +0 -0
- data/test/dummy/log/production.log +0 -2835
- data/test/dummy/public/assets/application-4e268cfccc1f26318c22a87c9e6b9095.js +0 -1
- data/test/dummy/public/assets/application-4e268cfccc1f26318c22a87c9e6b9095.js.gz +0 -0
- data/test/dummy/public/assets/application-e006d1eddf81edb7ed682d933d95167f.css +0 -18
- data/test/dummy/public/assets/application-e006d1eddf81edb7ed682d933d95167f.css.gz +0 -0
- data/test/dummy/public/assets/baws-27045628978f5e419d534d01c63ab3d6.jpg +0 -0
- data/test/dummy/public/assets/glyphicons-halflings-b47b2b03ec961163432b4cfe22cd6f31.png +0 -0
- data/test/dummy/public/assets/glyphicons-halflings-white-ec01567c9d4e5aba3fd3efa6e3054574.png +0 -0
- data/test/dummy/public/assets/manifest-d64ae8f73d13a404515a9c833b8ea4d7.json +0 -1
- data/test/dummy/public/assets/rubber_ring/application-166bd1c30eaa1f5b77c159a552ca0d1d.js +0 -4
- data/test/dummy/public/assets/rubber_ring/application-166bd1c30eaa1f5b77c159a552ca0d1d.js.gz +0 -0
- data/test/dummy/public/assets/rubber_ring/application-2211071c03381f99bd440671529d6d2d.css +0 -4358
- data/test/dummy/public/assets/rubber_ring/application-2211071c03381f99bd440671529d6d2d.css.gz +0 -0
- data/test/dummy/public/assets/rubber_ring/application-4ba3fedbf9929e7910c6f1497a82c4d1.css +0 -4380
- data/test/dummy/public/assets/rubber_ring/application-4ba3fedbf9929e7910c6f1497a82c4d1.css.gz +0 -0
- data/test/dummy/public/assets/rubber_ring/application-9b07b9a701e0e3a8bb9f2af9749adbac.js +0 -4
- data/test/dummy/public/assets/rubber_ring/application-9b07b9a701e0e3a8bb9f2af9749adbac.js.gz +0 -0
- data/test/dummy/public/build/assets/application-4e268cfccc1f26318c22a87c9e6b9095.js +0 -1
- data/test/dummy/public/build/assets/application-4e268cfccc1f26318c22a87c9e6b9095.js.gz +0 -0
- data/test/dummy/public/build/assets/application-e006d1eddf81edb7ed682d933d95167f.css +0 -18
- data/test/dummy/public/build/assets/application-e006d1eddf81edb7ed682d933d95167f.css.gz +0 -0
- data/test/dummy/public/build/assets/assets/images/baws.jpg +0 -0
- data/test/dummy/public/build/assets/assets/javascripts/application.js +0 -6
- data/test/dummy/public/build/assets/assets/stylesheets/application.css +0 -17
- data/test/dummy/public/build/assets/baws-27045628978f5e419d534d01c63ab3d6.jpg +0 -0
- data/test/dummy/public/build/assets/controllers/application_controller.rb +0 -5
- data/test/dummy/public/build/assets/controllers/example_controller.rb +0 -15
- data/test/dummy/public/build/assets/glyphicons-halflings-b47b2b03ec961163432b4cfe22cd6f31.png +0 -0
- data/test/dummy/public/build/assets/glyphicons-halflings-white-ec01567c9d4e5aba3fd3efa6e3054574.png +0 -0
- data/test/dummy/public/build/assets/helpers/application_helper.rb +0 -2
- data/test/dummy/public/build/assets/images/baws.jpg +0 -0
- data/test/dummy/public/build/assets/javascripts/application.js +0 -6
- data/test/dummy/public/build/assets/manifest-d64ae8f73d13a404515a9c833b8ea4d7.json +0 -1
- data/test/dummy/public/build/assets/rubber_ring/application-166bd1c30eaa1f5b77c159a552ca0d1d.js +0 -4
- data/test/dummy/public/build/assets/rubber_ring/application-166bd1c30eaa1f5b77c159a552ca0d1d.js.gz +0 -0
- data/test/dummy/public/build/assets/rubber_ring/application-2211071c03381f99bd440671529d6d2d.css +0 -4358
- data/test/dummy/public/build/assets/rubber_ring/application-2211071c03381f99bd440671529d6d2d.css.gz +0 -0
- data/test/dummy/public/build/assets/rubber_ring/application-4ba3fedbf9929e7910c6f1497a82c4d1.css +0 -4380
- data/test/dummy/public/build/assets/rubber_ring/application-4ba3fedbf9929e7910c6f1497a82c4d1.css.gz +0 -0
- data/test/dummy/public/build/assets/rubber_ring/application-9b07b9a701e0e3a8bb9f2af9749adbac.js +0 -4
- data/test/dummy/public/build/assets/rubber_ring/application-9b07b9a701e0e3a8bb9f2af9749adbac.js.gz +0 -0
- data/test/dummy/public/build/assets/stylesheets/application.css +0 -17
- data/test/dummy/public/build/assets/views/example/page.html.erb +0 -31
- data/test/dummy/public/build/assets/views/example/page2.html.erb +0 -10
- data/test/dummy/public/build/assets/views/layouts/application.html.erb +0 -14
- data/test/dummy/public/build/assets/views/layouts/rubber_ring/application.html.erb +0 -22
- data/test/dummy/public/build/assets/views/templates/_article.html.erb +0 -9
- data/test/dummy/public/build/upload/example/page/attachments/dbvis.license +0 -11
- data/test/dummy/public/build/upload/example/page/images/nutella.jpg +0 -0
- data/test/dummy/public/upload/en/example/page2/images/snb.jpg +0 -0
- data/test/dummy/public/upload/example/page/attachments/BoobyTrap.pdf +0 -0
- data/test/dummy/public/upload/example/page/attachments/main.html +0 -29
- data/test/dummy/public/upload/example/page/images/nutella.jpg +0 -0
- data/test/dummy/public/upload/example/page/images/snb.jpg +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/144bb07df25732886de34fc892b7c84d418ab110/cms.scss.erbc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/144bb07df25732886de34fc892b7c84d418ab110/cms.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/9ef9c546be1f15bd909c4626b18ec56c75aac0ce/cms.scss.erbc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/c8e2efff656b76a26ac2cc5b5528e2ab9741b52a/bootstrap.scss.erbc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0218b228ced412bf87b02ca1b6be60b3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/052ccadc06984b221f1af051c32e613a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0894458794b51b17900c3d7abefc2aa5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0dd47da3f882e810b77e341b2bcd8abc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0de91e83e7c32c81d59a95bccdedb34f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0f096a9239d1b8b3c0d7f0a079ba8dc6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0f7e8127f53c92f853b2d1f7f3887b25 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/11eedd47a993ae43b134c4a8323fe16d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/14e730b33d5c77e57ef1d749d3f59d09 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/15c9e067f0a919861ad0e339ccabb55b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/162e101507dda2e6e16d3b6d20ac7155 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/16aa40bf8985a2f1f3e5dea5d72e6218 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1de6a759b14c2e99ab1641cad5521433 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/22a5108e690ae432a7d96ad27ae23356 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/22b9081ba2ffde46760b70110d440b5c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/25b52470f85dd54b7db5010558291a3a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2bf91fb337440bb9de78c2e6c6bcb95f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/37ffa56a3e6b08a7683a7b180bac45e9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3fcb125156ac9a61f029c8a3ea0f9c40 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4081dfc5b927754129b209331c267441 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/41b539dab4032aeab4acc677841be9e1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/449d8c2f5dfa78068e85472dcee833fc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/47086b08a2d4af414320d0316d43636b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5343637e2648daefcbb5f6da93e22170 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5698b010ec22ef0139df1ec7921bada0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/573028956728676e330972a5f5b14ce1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/593143829da9d8a11949cdea62925830 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5a3608849ffcf6b5ffd0e0c519899b0f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5b28ba105943c3d7648e1c3a64497d6a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/613c2f7728f24118bf60b70e5467b04e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/62a837ae3a144323a69c9c742a0d338e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6428de878f492d768cfef210554eb78e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/65e9bcd0c838633f8992701c9486752f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/66c2afe997efeeb00c23f320cd5154b1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/69088615f9cef33446fa9ce9af0cbfcb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/69c591a2e6598aef38bce6f1bfd9a583 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6c0e89bb1f1dd6fef016f0f030b155a4 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/74d99242046d9e80efe6e63d318f0d23 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/75ec5eefcca62d9bfa875ebb00e5acae +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7b89b96229652f6b39b4956713d83fb3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7bb9867f00636aa2e82aab7c8cde1156 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7d185042919d487db4ba3415054bf46b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7d541dc935739c00601285ef558dc186 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7d643ed86fb6b4f4bc4cbc1573edf562 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7d7c5e1189ffb57c1027fbb1f4849056 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7e0a659f836bf08aa7e86a3b3bd64a0a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8085921c00ddb46d86508243dd466f7a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/808e7e23c256ba7b4ae032c997b7f7d1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/813778cca328c7d9a71e6ad9bd6b5b93 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/898c074f26089ae77019f6bb0d7b87c3 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8aa0c86835fc92349a71e76dfa064cf0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8d50fa8e9c1035cb3fbf50bcd2dad220 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/91307c7344a9f3f6f727226a87aaf6b1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/977b0e7fd460cd4ebb7482e0bc5dae0d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9a27bf15ceccd6156c4fbddfe430431f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9bbfa312e4f834114c0d7fcf15e9d591 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a0ddccdbb865754a76b131fa64932582 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/aac96aa095d26ef97f58eb4126da0bf7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ab136f8b2c696dd4d96e4899a0e8a4ac +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b2bf0c4531b78b65440c4c84908149fe +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b8acda462092c7c76b1322856f8e39ca +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bf9bfc00456efae4900ccf4afcb76b1a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c01f86af98746d42cda25607438cc39f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c38b7c525999d0c070c974f0e1858073 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c4393dff2f5bbfb3db980d09f116e865 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c64c25da8d01c54ccf41dc956d9c9b44 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c6a502787893c3368f02209006ef3c3a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c6fc4a60aef7967d11f2188d3a8317e8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d60ab8b8e8ff9e6df6e04cb335e79e38 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d786e75d26229c39c37d842fb4de0479 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/dcf2f012e3f4d3ecc9b1a2f21290fefd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/de7818edd5229ecc4f5808d25aea085d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e010156bdbfaae9098512ae86bf0288b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/ea97af2f7f945b7c87258b2338f5bc0c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f2137fda0185692d9909c6bde77f6ac5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7428da6a5bd069f4c521897f2ff0549 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fa7d07347669600716cb3cb894127454 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fe4a3fb260cf70c451034496362792e4 +0 -0
- data/test/dummy/tmp/cache/assets/production/sass/144bb07df25732886de34fc892b7c84d418ab110/cms.scss.erbc +0 -0
- data/test/dummy/tmp/cache/assets/production/sass/144bb07df25732886de34fc892b7c84d418ab110/cms.scssc +0 -0
- data/test/dummy/tmp/cache/assets/production/sass/5df77a09e28ee5e99b029d061fc8c7aa74ed8701/bootstrap.scss.erbc +0 -0
- data/test/dummy/tmp/cache/assets/production/sass/9ef9c546be1f15bd909c4626b18ec56c75aac0ce/cms.scss.erbc +0 -0
- data/test/dummy/tmp/cache/assets/production/sass/c8e2efff656b76a26ac2cc5b5528e2ab9741b52a/bootstrap.scss.erbc +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/00dfd740f227e8eacf8dc70e8923aa30 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/052ccadc06984b221f1af051c32e613a +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/0894458794b51b17900c3d7abefc2aa5 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/0ceefdff5c5f03895722be20f6ddc26b +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/0dd47da3f882e810b77e341b2bcd8abc +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/0f096a9239d1b8b3c0d7f0a079ba8dc6 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/0f7e8127f53c92f853b2d1f7f3887b25 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/11eedd47a993ae43b134c4a8323fe16d +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/14e730b33d5c77e57ef1d749d3f59d09 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/16aa40bf8985a2f1f3e5dea5d72e6218 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/17ea4d79d21b1f083c77f59ba9b3372d +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/1893a62d9206a1fb9d89578a47e6dba8 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/1de6a759b14c2e99ab1641cad5521433 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/22a5108e690ae432a7d96ad27ae23356 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/2bf91fb337440bb9de78c2e6c6bcb95f +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/37ffa56a3e6b08a7683a7b180bac45e9 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/3f68640e722ec4648c55f987c372bd1f +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/41b539dab4032aeab4acc677841be9e1 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/4d0e945a1aeffabb6ecbe4e9cfbe9900 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/5343637e2648daefcbb5f6da93e22170 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/5698b010ec22ef0139df1ec7921bada0 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/593143829da9d8a11949cdea62925830 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/5a3608849ffcf6b5ffd0e0c519899b0f +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/613c2f7728f24118bf60b70e5467b04e +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/6428de878f492d768cfef210554eb78e +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/65e9bcd0c838633f8992701c9486752f +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/66c2afe997efeeb00c23f320cd5154b1 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/672160928c4f356614c3b08e4dd18959 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/69088615f9cef33446fa9ce9af0cbfcb +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/69c591a2e6598aef38bce6f1bfd9a583 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/6c0e89bb1f1dd6fef016f0f030b155a4 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/74d99242046d9e80efe6e63d318f0d23 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/77c132a2a2cf0e255033066a80db84e5 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/7b3469b8a6587d3fdde5168bcadc1829 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/7b89b96229652f6b39b4956713d83fb3 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/7bb9867f00636aa2e82aab7c8cde1156 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/7d185042919d487db4ba3415054bf46b +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/7d541dc935739c00601285ef558dc186 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/7e0a659f836bf08aa7e86a3b3bd64a0a +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/8085921c00ddb46d86508243dd466f7a +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/808e7e23c256ba7b4ae032c997b7f7d1 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/82af58bd517f6c898e82655012e662f3 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/896e0a59c127f026ecc3ce390c394c6d +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/8aa0c86835fc92349a71e76dfa064cf0 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/8c20ea028e7ef9e18ab2517785615d32 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/91307c7344a9f3f6f727226a87aaf6b1 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/977b0e7fd460cd4ebb7482e0bc5dae0d +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/9e4856eaccd8050e2cce8f2726bd1ff9 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/a0ddccdbb865754a76b131fa64932582 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/aac96aa095d26ef97f58eb4126da0bf7 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/ab136f8b2c696dd4d96e4899a0e8a4ac +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/b0e2ed0167a71948529cf8507015a638 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/b2bf0c4531b78b65440c4c84908149fe +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/bf9bfc00456efae4900ccf4afcb76b1a +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/c01f86af98746d42cda25607438cc39f +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/c0625d8a0a68787afb029146355062df +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/c28f157f3954955f1bc4ca11b085e5f1 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/c4393dff2f5bbfb3db980d09f116e865 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/c6a502787893c3368f02209006ef3c3a +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/c76f44b59338c92655cdb50acd5a51b7 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/c8c8b769bfa8c90477013dc463dce8dd +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/c9d60e346e8632bb3945f7e94cce0036 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/cbfd1cdcc8926af0e015fd6e4a8cfe95 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/cc2b3e15e75ad21a379b54186f0b3e63 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/ce0f026a8f35c2824e68416229e502b0 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/cf38200dbb3ee3a9d4dd84cc1d98ada2 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/d60ab8b8e8ff9e6df6e04cb335e79e38 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/d786e75d26229c39c37d842fb4de0479 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/da3b6190521b537ef46190c99c630173 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/dcf2f012e3f4d3ecc9b1a2f21290fefd +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/de3b887062709ecbae0f43a1967507b3 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/e010156bdbfaae9098512ae86bf0288b +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/e0e949e3a882294df1ac6efb53555963 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/e508a5da5b2a6ba14eaabe1fc9987f1b +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/f2137fda0185692d9909c6bde77f6ac5 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/f5630318facff40bd4c26746561e91a5 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/f72f9d88e28ad73485fcc24ef00be1f0 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/f7428da6a5bd069f4c521897f2ff0549 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/fa7d07347669600716cb3cb894127454 +0 -0
- data/test/dummy/tmp/cache/assets/production/sprockets/ffa3b9093369ac4b2758f390b0cafab4 +0 -0
data/spec/models/page_spec.rb
CHANGED
@@ -1,196 +1,196 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe RubberRing::Page do
|
4
|
-
it 'should create new page with content' do
|
5
|
-
RubberRing::Page.save_or_update({
|
6
|
-
controller: 'test',
|
7
|
-
action: 'test',
|
8
|
-
locale: 'en',
|
9
|
-
content: { 'cms_key' => 'cms_value' }
|
10
|
-
})
|
11
|
-
|
12
|
-
RubberRing::Page.all.count.should eq 1
|
13
|
-
RubberRing::PageContent.all.count.should eq 1
|
14
|
-
|
15
|
-
page = RubberRing::Page.first
|
16
|
-
page.content['cms_key'].should eq 'cms_value'
|
17
|
-
page.content['key2'].should eq nil
|
18
|
-
page.locale.should eq 'en'
|
19
|
-
end
|
20
|
-
|
21
|
-
it 'should update page content' do
|
22
|
-
RubberRing::Page.save_or_update({
|
23
|
-
controller: 'test',
|
24
|
-
action: 'test',
|
25
|
-
content: { 'cms_key' => 'cms_value' }
|
26
|
-
})
|
27
|
-
|
28
|
-
RubberRing::Page.save_or_update({
|
29
|
-
controller: 'test',
|
30
|
-
action: 'test',
|
31
|
-
content: { 'cms_key' => 'cms_value_new' }
|
32
|
-
})
|
33
|
-
|
34
|
-
RubberRing::Page.all.count.should eq 1
|
35
|
-
RubberRing::PageContent.all.count.should eq 1
|
36
|
-
|
37
|
-
# we need to reload page to fetch all page contents
|
38
|
-
page = RubberRing::Page.first
|
39
|
-
page.content['cms_key'].should eq 'cms_value_new'
|
40
|
-
end
|
41
|
-
|
42
|
-
it 'should add page content' do
|
43
|
-
RubberRing::Page.save_or_update({
|
44
|
-
controller: 'test',
|
45
|
-
action: 'test',
|
46
|
-
content: { 'cms_key' => 'cms_value' }
|
47
|
-
})
|
48
|
-
|
49
|
-
RubberRing::Page.save_or_update({
|
50
|
-
controller: 'test',
|
51
|
-
action: 'test',
|
52
|
-
content: { 'cms_key_new' => 'cms_value_new' }
|
53
|
-
})
|
54
|
-
|
55
|
-
RubberRing::Page.all.count.should eq 1
|
56
|
-
RubberRing::PageContent.all.count.should eq 2
|
57
|
-
|
58
|
-
# we need to reload page to fetch all page contents
|
59
|
-
page = RubberRing::Page.first
|
60
|
-
page.content['cms_key'].should eq 'cms_value'
|
61
|
-
page.content['cms_key_new'].should eq 'cms_value_new'
|
62
|
-
end
|
63
|
-
|
64
|
-
|
65
|
-
it 'should remove right page content' do
|
66
|
-
RubberRing::Page.save_or_update({
|
67
|
-
controller: 'test',
|
68
|
-
action: 'test',
|
69
|
-
content: { 'cms_key' => 'cms_value' }
|
70
|
-
})
|
71
|
-
|
72
|
-
RubberRing::Page.save_or_update({
|
73
|
-
controller: 'test',
|
74
|
-
action: 'test',
|
75
|
-
content: { 'cms_key_new' => 'cms_value_new' }
|
76
|
-
})
|
77
|
-
|
78
|
-
RubberRing::PageContent.all.count.should eq 2
|
79
|
-
|
80
|
-
RubberRing::Page.remove({
|
81
|
-
controller: 'test',
|
82
|
-
action: 'test',
|
83
|
-
content: {}
|
84
|
-
},
|
85
|
-
'cms_key'
|
86
|
-
)
|
87
|
-
|
88
|
-
RubberRing::Page.all.count.should eq 1
|
89
|
-
RubberRing::PageContent.all.count.should eq 1
|
90
|
-
|
91
|
-
page = RubberRing::Page.first
|
92
|
-
page.content['cms_key_new'].should eq 'cms_value_new'
|
93
|
-
end
|
94
|
-
|
95
|
-
describe 'grouping keys for duplicable content' do
|
96
|
-
before do
|
97
|
-
child1 = {
|
98
|
-
controller: 'test_controller',
|
99
|
-
action: 'test_action',
|
100
|
-
content: {
|
101
|
-
'child_key_0' => 'child_value_0'
|
102
|
-
}
|
103
|
-
}
|
104
|
-
|
105
|
-
child2 = {
|
106
|
-
controller: 'test_controller',
|
107
|
-
action: 'test_action',
|
108
|
-
content: {
|
109
|
-
'child_key_1' => 'child_value_1'
|
110
|
-
}
|
111
|
-
}
|
112
|
-
|
113
|
-
RubberRing::Page.save_or_update(child1)
|
114
|
-
RubberRing::Page.save_or_update(child2)
|
115
|
-
end
|
116
|
-
|
117
|
-
it 'should be in a group of two' do
|
118
|
-
page = RubberRing::Page.first
|
119
|
-
page.group_keys('child_key').should eq %w(child_key_0 child_key_1)
|
120
|
-
page.content['child_key_0'].should eq 'child_value_0'
|
121
|
-
page.content['child_key_1'].should eq 'child_value_1'
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
|
-
describe 'page templates' do
|
126
|
-
before do
|
127
|
-
RubberRing::Page.save_or_update_templates({
|
128
|
-
controller: 'test',
|
129
|
-
action: 'test',
|
130
|
-
locale: 'en',
|
131
|
-
content: {
|
132
|
-
'0' => {
|
133
|
-
'key' => 'template_key',
|
134
|
-
'index' => 1,
|
135
|
-
'template' => 'article',
|
136
|
-
'sort' => 1,
|
137
|
-
'tclass' => 'article_class',
|
138
|
-
'element' => 'article'
|
139
|
-
},
|
140
|
-
'1' => {
|
141
|
-
'key' => 'template_key',
|
142
|
-
'index' => 2,
|
143
|
-
'template' => 'blog_post',
|
144
|
-
'sort' => 2,
|
145
|
-
'tclass' => 'blog_post_class',
|
146
|
-
'element' => 'div'
|
147
|
-
}
|
148
|
-
}
|
149
|
-
})
|
150
|
-
end
|
151
|
-
|
152
|
-
it 'should create page templates' do
|
153
|
-
RubberRing::Page.all.count.should eq 1
|
154
|
-
RubberRing::PageContent.all.count.should eq 0
|
155
|
-
RubberRing::PageTemplate.all.count.should eq 2
|
156
|
-
|
157
|
-
page = RubberRing::Page.first
|
158
|
-
page.page_templates[0].template.should eq 'article'
|
159
|
-
page.page_templates[0].id.should eq 1
|
160
|
-
page.page_templates[0].sort.should eq 1
|
161
|
-
page.page_templates[0].tclass.should eq 'article_class'
|
162
|
-
page.page_templates[0].element.should eq 'article'
|
163
|
-
|
164
|
-
page.page_templates[1].template.should eq 'blog_post'
|
165
|
-
page.page_templates[1].id.should eq 2
|
166
|
-
page.page_templates[1].sort.should eq 2
|
167
|
-
page.page_templates[1].tclass.should eq 'blog_post_class'
|
168
|
-
page.page_templates[1].element.should eq 'div'
|
169
|
-
end
|
170
|
-
|
171
|
-
it 'should update page templates sort' do
|
172
|
-
RubberRing::Page.save_or_update_templates({
|
173
|
-
controller: 'test',
|
174
|
-
action: 'test',
|
175
|
-
locale: 'en',
|
176
|
-
content: {
|
177
|
-
'0' => {
|
178
|
-
'key' => 'template_key',
|
179
|
-
'template' => 'article',
|
180
|
-
'index' => 2,
|
181
|
-
'sort' => 123,
|
182
|
-
'tclass' => 'a',
|
183
|
-
'element' => 'b'
|
184
|
-
}
|
185
|
-
}
|
186
|
-
})
|
187
|
-
|
188
|
-
RubberRing::Page.all.count.should eq 1
|
189
|
-
RubberRing::PageTemplate.all.count.should eq 2
|
190
|
-
|
191
|
-
page_template = RubberRing::PageTemplate.find(2)
|
192
|
-
page_template.sort.should eq 123
|
193
|
-
end
|
194
|
-
end
|
195
|
-
|
196
|
-
end
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe RubberRing::Page do
|
4
|
+
it 'should create new page with content' do
|
5
|
+
RubberRing::Page.save_or_update({
|
6
|
+
controller: 'test',
|
7
|
+
action: 'test',
|
8
|
+
locale: 'en',
|
9
|
+
content: { 'cms_key' => 'cms_value' }
|
10
|
+
})
|
11
|
+
|
12
|
+
RubberRing::Page.all.count.should eq 1
|
13
|
+
RubberRing::PageContent.all.count.should eq 1
|
14
|
+
|
15
|
+
page = RubberRing::Page.first
|
16
|
+
page.content['cms_key'].should eq 'cms_value'
|
17
|
+
page.content['key2'].should eq nil
|
18
|
+
page.locale.should eq 'en'
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'should update page content' do
|
22
|
+
RubberRing::Page.save_or_update({
|
23
|
+
controller: 'test',
|
24
|
+
action: 'test',
|
25
|
+
content: { 'cms_key' => 'cms_value' }
|
26
|
+
})
|
27
|
+
|
28
|
+
RubberRing::Page.save_or_update({
|
29
|
+
controller: 'test',
|
30
|
+
action: 'test',
|
31
|
+
content: { 'cms_key' => 'cms_value_new' }
|
32
|
+
})
|
33
|
+
|
34
|
+
RubberRing::Page.all.count.should eq 1
|
35
|
+
RubberRing::PageContent.all.count.should eq 1
|
36
|
+
|
37
|
+
# we need to reload page to fetch all page contents
|
38
|
+
page = RubberRing::Page.first
|
39
|
+
page.content['cms_key'].should eq 'cms_value_new'
|
40
|
+
end
|
41
|
+
|
42
|
+
it 'should add page content' do
|
43
|
+
RubberRing::Page.save_or_update({
|
44
|
+
controller: 'test',
|
45
|
+
action: 'test',
|
46
|
+
content: { 'cms_key' => 'cms_value' }
|
47
|
+
})
|
48
|
+
|
49
|
+
RubberRing::Page.save_or_update({
|
50
|
+
controller: 'test',
|
51
|
+
action: 'test',
|
52
|
+
content: { 'cms_key_new' => 'cms_value_new' }
|
53
|
+
})
|
54
|
+
|
55
|
+
RubberRing::Page.all.count.should eq 1
|
56
|
+
RubberRing::PageContent.all.count.should eq 2
|
57
|
+
|
58
|
+
# we need to reload page to fetch all page contents
|
59
|
+
page = RubberRing::Page.first
|
60
|
+
page.content['cms_key'].should eq 'cms_value'
|
61
|
+
page.content['cms_key_new'].should eq 'cms_value_new'
|
62
|
+
end
|
63
|
+
|
64
|
+
|
65
|
+
it 'should remove right page content' do
|
66
|
+
RubberRing::Page.save_or_update({
|
67
|
+
controller: 'test',
|
68
|
+
action: 'test',
|
69
|
+
content: { 'cms_key' => 'cms_value' }
|
70
|
+
})
|
71
|
+
|
72
|
+
RubberRing::Page.save_or_update({
|
73
|
+
controller: 'test',
|
74
|
+
action: 'test',
|
75
|
+
content: { 'cms_key_new' => 'cms_value_new' }
|
76
|
+
})
|
77
|
+
|
78
|
+
RubberRing::PageContent.all.count.should eq 2
|
79
|
+
|
80
|
+
RubberRing::Page.remove({
|
81
|
+
controller: 'test',
|
82
|
+
action: 'test',
|
83
|
+
content: {}
|
84
|
+
},
|
85
|
+
'cms_key'
|
86
|
+
)
|
87
|
+
|
88
|
+
RubberRing::Page.all.count.should eq 1
|
89
|
+
RubberRing::PageContent.all.count.should eq 1
|
90
|
+
|
91
|
+
page = RubberRing::Page.first
|
92
|
+
page.content['cms_key_new'].should eq 'cms_value_new'
|
93
|
+
end
|
94
|
+
|
95
|
+
describe 'grouping keys for duplicable content' do
|
96
|
+
before do
|
97
|
+
child1 = {
|
98
|
+
controller: 'test_controller',
|
99
|
+
action: 'test_action',
|
100
|
+
content: {
|
101
|
+
'child_key_0' => 'child_value_0'
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
child2 = {
|
106
|
+
controller: 'test_controller',
|
107
|
+
action: 'test_action',
|
108
|
+
content: {
|
109
|
+
'child_key_1' => 'child_value_1'
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
RubberRing::Page.save_or_update(child1)
|
114
|
+
RubberRing::Page.save_or_update(child2)
|
115
|
+
end
|
116
|
+
|
117
|
+
it 'should be in a group of two' do
|
118
|
+
page = RubberRing::Page.first
|
119
|
+
page.group_keys('child_key').should eq %w(child_key_0 child_key_1)
|
120
|
+
page.content['child_key_0'].should eq 'child_value_0'
|
121
|
+
page.content['child_key_1'].should eq 'child_value_1'
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
describe 'page templates' do
|
126
|
+
before do
|
127
|
+
RubberRing::Page.save_or_update_templates({
|
128
|
+
controller: 'test',
|
129
|
+
action: 'test',
|
130
|
+
locale: 'en',
|
131
|
+
content: {
|
132
|
+
'0' => {
|
133
|
+
'key' => 'template_key',
|
134
|
+
'index' => 1,
|
135
|
+
'template' => 'article',
|
136
|
+
'sort' => 1,
|
137
|
+
'tclass' => 'article_class',
|
138
|
+
'element' => 'article'
|
139
|
+
},
|
140
|
+
'1' => {
|
141
|
+
'key' => 'template_key',
|
142
|
+
'index' => 2,
|
143
|
+
'template' => 'blog_post',
|
144
|
+
'sort' => 2,
|
145
|
+
'tclass' => 'blog_post_class',
|
146
|
+
'element' => 'div'
|
147
|
+
}
|
148
|
+
}
|
149
|
+
})
|
150
|
+
end
|
151
|
+
|
152
|
+
it 'should create page templates' do
|
153
|
+
RubberRing::Page.all.count.should eq 1
|
154
|
+
RubberRing::PageContent.all.count.should eq 0
|
155
|
+
RubberRing::PageTemplate.all.count.should eq 2
|
156
|
+
|
157
|
+
page = RubberRing::Page.first
|
158
|
+
page.page_templates[0].template.should eq 'article'
|
159
|
+
page.page_templates[0].id.should eq 1
|
160
|
+
page.page_templates[0].sort.should eq 1
|
161
|
+
page.page_templates[0].tclass.should eq 'article_class'
|
162
|
+
page.page_templates[0].element.should eq 'article'
|
163
|
+
|
164
|
+
page.page_templates[1].template.should eq 'blog_post'
|
165
|
+
page.page_templates[1].id.should eq 2
|
166
|
+
page.page_templates[1].sort.should eq 2
|
167
|
+
page.page_templates[1].tclass.should eq 'blog_post_class'
|
168
|
+
page.page_templates[1].element.should eq 'div'
|
169
|
+
end
|
170
|
+
|
171
|
+
it 'should update page templates sort' do
|
172
|
+
RubberRing::Page.save_or_update_templates({
|
173
|
+
controller: 'test',
|
174
|
+
action: 'test',
|
175
|
+
locale: 'en',
|
176
|
+
content: {
|
177
|
+
'0' => {
|
178
|
+
'key' => 'template_key',
|
179
|
+
'template' => 'article',
|
180
|
+
'index' => 2,
|
181
|
+
'sort' => 123,
|
182
|
+
'tclass' => 'a',
|
183
|
+
'element' => 'b'
|
184
|
+
}
|
185
|
+
}
|
186
|
+
})
|
187
|
+
|
188
|
+
RubberRing::Page.all.count.should eq 1
|
189
|
+
RubberRing::PageTemplate.all.count.should eq 2
|
190
|
+
|
191
|
+
page_template = RubberRing::PageTemplate.find(2)
|
192
|
+
page_template.sort.should eq 123
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
end
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
data/test/dummy/README.rdoc
CHANGED
File without changes
|
data/test/dummy/Rakefile
CHANGED
File without changes
|
File without changes
|
File without changes
|
@@ -1,17 +1,22 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
-
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
-
*
|
11
|
-
*= require_self
|
12
|
-
*= require_tree .
|
13
|
-
*/
|
14
|
-
|
15
|
-
h1 {
|
16
|
-
color: red;
|
17
|
-
}
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
*= require_self
|
12
|
+
*= require_tree .
|
13
|
+
*/
|
14
|
+
|
15
|
+
h1 {
|
16
|
+
color: red;
|
17
|
+
}
|
18
|
+
|
19
|
+
body {
|
20
|
+
margin: 0;
|
21
|
+
padding: 0;
|
22
|
+
}
|
File without changes
|
@@ -1,15 +1,3 @@
|
|
1
1
|
class ExampleController < RubberRing::CmsController
|
2
|
-
|
3
|
-
caches_page :page2, :if => Proc.new { |c| c.request.params[:cache] == '1' }
|
4
|
-
|
5
|
-
def page
|
6
|
-
end
|
7
|
-
|
8
|
-
def page2
|
9
|
-
end
|
10
|
-
|
11
|
-
def form
|
12
|
-
flash[:message] = params[:value]
|
13
|
-
redirect_to root_path
|
14
|
-
end
|
2
|
+
after_filter :cache_page, :if => Proc.new { |c| c.request.params[:cache] == '1' }
|
15
3
|
end
|
File without changes
|
@@ -1,20 +1,20 @@
|
|
1
|
-
<h1>Templates #1</h1>
|
2
|
-
|
3
|
-
<% template(
|
4
|
-
[
|
5
|
-
{template: 'article', tclass: 't-article', element: 'article'},
|
6
|
-
{template: 'blog_post', tclass: 't-blog', element: 'div'}
|
7
|
-
],
|
8
|
-
{key: 'template_key_1', wrap_element: 'div', wrap_class: 'templates'}, @page)
|
9
|
-
%>
|
10
|
-
|
11
|
-
<h1>Templates #2</h1>
|
12
|
-
|
13
|
-
<% template(
|
14
|
-
[
|
15
|
-
{template: 'article', tclass: 't-article', element: 'article'}
|
16
|
-
],
|
17
|
-
{key: 'template_key_2', wrap_element: 'div', wrap_class: 'templates'}, @page)
|
18
|
-
%>
|
19
|
-
|
20
|
-
<%= link_to 'Second page', page2_path %>
|
1
|
+
<h1>Templates #1</h1>
|
2
|
+
|
3
|
+
<% template(
|
4
|
+
[
|
5
|
+
{template: 'article', tclass: 't-article', element: 'article'},
|
6
|
+
{template: 'blog_post', tclass: 't-blog', element: 'div'}
|
7
|
+
],
|
8
|
+
{key: 'template_key_1', wrap_element: 'div', wrap_class: 'templates'}, @page)
|
9
|
+
%>
|
10
|
+
|
11
|
+
<h1>Templates #2</h1>
|
12
|
+
|
13
|
+
<% template(
|
14
|
+
[
|
15
|
+
{template: 'article', tclass: 't-article', element: 'article'}
|
16
|
+
],
|
17
|
+
{key: 'template_key_2', wrap_element: 'div', wrap_class: 'templates'}, @page)
|
18
|
+
%>
|
19
|
+
|
20
|
+
<%= link_to 'Second page', page2_path %>
|
@@ -1,13 +1,13 @@
|
|
1
|
-
<%= editable_image({key: 'header_image', src: image_path('baws.jpg'), height: '360'}, @page) %>
|
2
|
-
|
3
|
-
<%= editable_field(:h1, {key: 'header'}, @page) do %>
|
4
|
-
rubber ring cms
|
5
|
-
<% end %>
|
6
|
-
|
7
|
-
<%= editable_field(:div, {key: 'first_content', class: 'multi-line'}, @page) do %>
|
8
|
-
editing page content right away
|
9
|
-
<% end %>
|
10
|
-
|
11
|
-
<%= editable_link({class: 'rubber_ring_attachment', key: 'software_architecture', href: 'http://www.education.gov.yk.ca/pdf/pdf-test.pdf'}, @page) do %>
|
12
|
-
Link to PDF
|
13
|
-
<% end %>
|
1
|
+
<%= editable_image({key: 'header_image', src: image_path('baws.jpg'), height: '360'}, @page) %>
|
2
|
+
|
3
|
+
<%= editable_field(:h1, {key: 'header'}, @page) do %>
|
4
|
+
rubber ring cms
|
5
|
+
<% end %>
|
6
|
+
|
7
|
+
<%= editable_field(:div, {key: 'first_content', class: 'multi-line'}, @page) do %>
|
8
|
+
editing page content right away
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<%= editable_link({class: 'rubber_ring_attachment', key: 'software_architecture', href: 'http://www.education.gov.yk.ca/pdf/pdf-test.pdf'}, @page) do %>
|
12
|
+
Link to PDF
|
13
|
+
<% end %>
|
File without changes
|
File without changes
|
@@ -1,7 +1,7 @@
|
|
1
|
-
<%= editable_field(:h2, {key: "#{key_prefix}_title"}, @page) do %>
|
2
|
-
Article Title
|
3
|
-
<% end %>
|
4
|
-
|
5
|
-
<%= editable_field(:p, {key: "#{key_prefix}_paragraph"}, @page) do %>
|
6
|
-
Article content
|
7
|
-
<% end %>
|
1
|
+
<%= editable_field(:h2, {key: "#{key_prefix}_title"}, @page) do %>
|
2
|
+
Article Title
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<%= editable_field(:p, {key: "#{key_prefix}_paragraph"}, @page) do %>
|
6
|
+
Article content
|
7
|
+
<% end %>
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= editable_field(:h2, {key: "#{key_prefix}_title"}, @page) do %>Article Title<% end %>
|
data/test/dummy/bin/bundle
CHANGED
File without changes
|
data/test/dummy/bin/rails
CHANGED
File without changes
|
data/test/dummy/bin/rake
CHANGED
File without changes
|
File without changes
|
data/test/dummy/config/boot.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,36 +1,36 @@
|
|
1
|
-
Dummy::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
-
|
4
|
-
# The test environment is used exclusively to run your application's
|
5
|
-
# test suite. You never need to work with it otherwise. Remember that
|
6
|
-
# your test database is "scratch space" for the test suite and is wiped
|
7
|
-
# and recreated between test runs. Don't rely on the data there!
|
8
|
-
config.cache_classes = false
|
9
|
-
|
10
|
-
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
-
# just for the purpose of running a single test. If you are using a tool that
|
12
|
-
# preloads Rails for running tests, you may have to set it to true.
|
13
|
-
config.eager_load = false
|
14
|
-
|
15
|
-
# Configure static asset server for tests with Cache-Control for performance.
|
16
|
-
config.serve_static_assets = true
|
17
|
-
config.static_cache_control = "public, max-age=3600"
|
18
|
-
|
19
|
-
# Show full error reports and disable caching.
|
20
|
-
config.consider_all_requests_local = true
|
21
|
-
config.action_controller.perform_caching = false
|
22
|
-
|
23
|
-
# Raise exceptions instead of rendering exception templates.
|
24
|
-
config.action_dispatch.show_exceptions = false
|
25
|
-
|
26
|
-
# Disable request forgery protection in test environment.
|
27
|
-
config.action_controller.allow_forgery_protection = false
|
28
|
-
|
29
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
30
|
-
# The :test delivery method accumulates sent emails in the
|
31
|
-
# ActionMailer::Base.deliveries array.
|
32
|
-
config.action_mailer.delivery_method = :test
|
33
|
-
|
34
|
-
# Print deprecation notices to the stderr.
|
35
|
-
config.active_support.deprecation = :stderr
|
36
|
-
end
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = false
|
9
|
+
|
10
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
+
# just for the purpose of running a single test. If you are using a tool that
|
12
|
+
# preloads Rails for running tests, you may have to set it to true.
|
13
|
+
config.eager_load = false
|
14
|
+
|
15
|
+
# Configure static asset server for tests with Cache-Control for performance.
|
16
|
+
config.serve_static_assets = true
|
17
|
+
config.static_cache_control = "public, max-age=3600"
|
18
|
+
|
19
|
+
# Show full error reports and disable caching.
|
20
|
+
config.consider_all_requests_local = true
|
21
|
+
config.action_controller.perform_caching = false
|
22
|
+
|
23
|
+
# Raise exceptions instead of rendering exception templates.
|
24
|
+
config.action_dispatch.show_exceptions = false
|
25
|
+
|
26
|
+
# Disable request forgery protection in test environment.
|
27
|
+
config.action_controller.allow_forgery_protection = false
|
28
|
+
|
29
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
30
|
+
# The :test delivery method accumulates sent emails in the
|
31
|
+
# ActionMailer::Base.deliveries array.
|
32
|
+
config.action_mailer.delivery_method = :test
|
33
|
+
|
34
|
+
# Print deprecation notices to the stderr.
|
35
|
+
config.active_support.deprecation = :stderr
|
36
|
+
end
|