static_blocks 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.md +88 -0
- data/Rakefile +33 -0
- data/app/assets/javascripts/static_blocks/application.js +17 -0
- data/app/assets/javascripts/static_blocks/static_blocks.js +2 -0
- data/app/assets/stylesheets/scaffold.css +56 -0
- data/app/assets/stylesheets/static_blocks/application.css +13 -0
- data/app/assets/stylesheets/static_blocks/static_blocks.css.scss +14 -0
- data/app/controllers/static_blocks/application_controller.rb +24 -0
- data/app/controllers/static_blocks/static_blocks_controller.rb +88 -0
- data/app/helpers/static_blocks/application_helper.rb +4 -0
- data/app/helpers/static_blocks/static_blocks_helper.rb +4 -0
- data/app/models/static_blocks/static_block.rb +16 -0
- data/app/views/layouts/static_blocks/application.html.erb +57 -0
- data/app/views/static_blocks/static_blocks/_form.html.erb +29 -0
- data/app/views/static_blocks/static_blocks/edit.html.erb +4 -0
- data/app/views/static_blocks/static_blocks/index.html.erb +45 -0
- data/app/views/static_blocks/static_blocks/new.html.erb +3 -0
- data/app/views/static_blocks/static_blocks/show.html.erb +23 -0
- data/config/routes.rb +4 -0
- data/db/migrate/20130611042319_create_static_blocks_static_blocks.rb +11 -0
- data/db/migrate/20130612034816_create_static_block_translations.rb +13 -0
- data/lib/generators/install_generator.rb +18 -0
- data/lib/static_blocks/engine.rb +36 -0
- data/lib/static_blocks/helpers.rb +17 -0
- data/lib/static_blocks/version.rb +3 -0
- data/lib/static_blocks.rb +6 -0
- data/lib/tasks/populate.rake +12 -0
- data/lib/tasks/static_blocks_tasks.rake +4 -0
- data/lib/templates/static_blocks_config_template.rb +6 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/javascripts/info.js +2 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/assets/stylesheets/info.css.scss +3 -0
- data/spec/dummy/app/controllers/application_controller.rb +19 -0
- data/spec/dummy/app/controllers/info_controller.rb +4 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/helpers/info_helper.rb +2 -0
- data/spec/dummy/app/views/info/index.html.erb +16 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config/application.rb +59 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/static_blocks.rb +6 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/locales/wk.yml +2 -0
- data/spec/dummy/config/routes.rb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20130611042521_create_static_blocks_static_blocks.static_blocks.rb +12 -0
- data/spec/dummy/db/migrate/20130612035223_create_static_block_translations.static_blocks.rb +14 -0
- data/spec/dummy/db/schema.rb +35 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +61872 -0
- data/spec/dummy/log/test.log +9254 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/tmp/cache/769/300/static_block%3A%3Afoo +1 -0
- data/spec/dummy/tmp/cache/assets/C03/2A0/sprockets%2F2c19695a93d05c448f53808347981544 +0 -0
- data/spec/dummy/tmp/cache/assets/C40/7B0/sprockets%2Ff01427a1a9625a41079717e522b48c21 +0 -0
- data/spec/dummy/tmp/cache/assets/C43/A80/sprockets%2F94596a352d4841586b435699f9838f1d +0 -0
- data/spec/dummy/tmp/cache/assets/C4F/B70/sprockets%2Fa7618b479c438355ec218b6a35081361 +0 -0
- data/spec/dummy/tmp/cache/assets/C52/CD0/sprockets%2F05f5bfd8319e875420216370307594be +0 -0
- data/spec/dummy/tmp/cache/assets/C57/300/sprockets%2F2615d11245c762e27f082087638cd8f7 +0 -0
- data/spec/dummy/tmp/cache/assets/C5E/080/sprockets%2F47c55992c35644316a8e0e2c8048b687 +0 -0
- data/spec/dummy/tmp/cache/assets/C71/290/sprockets%2F3e5152a8b0665a620e0c8639a0164c82 +0 -0
- data/spec/dummy/tmp/cache/assets/C7C/C50/sprockets%2Fb278044170d94414368b7ee7b4314e4a +0 -0
- data/spec/dummy/tmp/cache/assets/C80/DF0/sprockets%2F7c8023b375b62805ef332a557207dd96 +0 -0
- data/spec/dummy/tmp/cache/assets/C87/620/sprockets%2F3432446e738294254b2a8edee23c7809 +0 -0
- data/spec/dummy/tmp/cache/assets/C89/C20/sprockets%2F32dcb5437995ed21393476f6a1d51728 +0 -0
- data/spec/dummy/tmp/cache/assets/C90/600/sprockets%2Fd5d3d15976742040862cea796e828c73 +0 -0
- data/spec/dummy/tmp/cache/assets/CB4/CE0/sprockets%2F3299a2e34377c16f310e9289c0cf470e +0 -0
- data/spec/dummy/tmp/cache/assets/CBD/290/sprockets%2F7941ab3c9bc78f426e20c9095a659329 +0 -0
- data/spec/dummy/tmp/cache/assets/CBD/B40/sprockets%2F0a00f98a83686470ee2838ef1c3c8693 +0 -0
- data/spec/dummy/tmp/cache/assets/CBF/090/sprockets%2Fb4576076221ea1abb2ecd081025d3026 +0 -0
- data/spec/dummy/tmp/cache/assets/CC1/5A0/sprockets%2F880ce77a9b28981a952adc78253d1844 +0 -0
- data/spec/dummy/tmp/cache/assets/CC1/ED0/sprockets%2Fa14463bb037619fa57b714120bb5a0c3 +0 -0
- data/spec/dummy/tmp/cache/assets/CC6/C10/sprockets%2F6a82e2cb3e9964325cb937155e92679f +0 -0
- data/spec/dummy/tmp/cache/assets/CCF/850/sprockets%2F3e49a417d9f9c4087090ff7d9c939482 +0 -0
- data/spec/dummy/tmp/cache/assets/CD0/060/sprockets%2F2ea5643654580eb50727bb42fc190c1a +0 -0
- data/spec/dummy/tmp/cache/assets/CD0/C00/sprockets%2Ff581e133147c235d2f003a91f18c4b5d +0 -0
- data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/CDC/C80/sprockets%2F0221b31c67280890e929e5600ddf7fae +0 -0
- data/spec/dummy/tmp/cache/assets/CDF/250/sprockets%2F28111ed79a6721f4d8a870571d74e1ac +0 -0
- data/spec/dummy/tmp/cache/assets/CE0/A80/sprockets%2Fb14006f874599a0d9cd092b64c18cc90 +0 -0
- data/spec/dummy/tmp/cache/assets/CE3/F70/sprockets%2F26eef61af70b3b5416a8fd2928406944 +0 -0
- data/spec/dummy/tmp/cache/assets/CE7/C50/sprockets%2F9fa1970f509ab772a4535f7b0ee42378 +0 -0
- data/spec/dummy/tmp/cache/assets/CF3/A70/sprockets%2F0055fb67d9cf98a6916a16d758f7b632 +0 -0
- data/spec/dummy/tmp/cache/assets/CF5/810/sprockets%2F1e87820b7e288fa1d49739666e5c4ef0 +0 -0
- data/spec/dummy/tmp/cache/assets/CF9/720/sprockets%2F8b948daf6bef57f06c78b66966110458 +0 -0
- data/spec/dummy/tmp/cache/assets/CFA/870/sprockets%2F98e7068f7261e1abe3e9253c9b4779c8 +0 -0
- data/spec/dummy/tmp/cache/assets/CFD/450/sprockets%2F5a1c34baf6a0808107c88ab82a2824e2 +0 -0
- data/spec/dummy/tmp/cache/assets/CFD/9F0/sprockets%2F3327ac0f5086d72b0a712c328cb636fa +0 -0
- data/spec/dummy/tmp/cache/assets/D00/080/sprockets%2F8e09f98d6161aedd5169d33cf3699686 +0 -0
- data/spec/dummy/tmp/cache/assets/D07/100/sprockets%2F64ee117ce583fa61da15d35315a576d1 +0 -0
- data/spec/dummy/tmp/cache/assets/D0B/D70/sprockets%2F552e4c8c329a24dc0b0046eac37e5959 +0 -0
- data/spec/dummy/tmp/cache/assets/D0D/840/sprockets%2F50e9139381224f7c9baaf6caf404b394 +0 -0
- data/spec/dummy/tmp/cache/assets/D11/9D0/sprockets%2F0bd4e6571b02cf9b6b48316e7b72e791 +0 -0
- data/spec/dummy/tmp/cache/assets/D18/860/sprockets%2F540c2f958fef569f4a7539c070a6a2e1 +0 -0
- data/spec/dummy/tmp/cache/assets/D1A/DF0/sprockets%2F1e85f1a823c6ac486d80965fdc349e14 +0 -0
- data/spec/dummy/tmp/cache/assets/D1F/D80/sprockets%2F7438f09ddf022f97525c3eb448f65f3c +0 -0
- data/spec/dummy/tmp/cache/assets/D2B/CD0/sprockets%2F76f9b9eefb641d7657a46237287c8df1 +0 -0
- data/spec/dummy/tmp/cache/assets/D2F/730/sprockets%2Fcb562b326045b0e0c8ec50f5d82a92f1 +0 -0
- data/spec/dummy/tmp/cache/assets/D2F/950/sprockets%2F563c7c80a43c918ab182fbb055ca0d09 +0 -0
- data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/D34/970/sprockets%2F7085373a4d1111c33ca8b8986e0cacec +0 -0
- data/spec/dummy/tmp/cache/assets/D37/640/sprockets%2Faf7183c34069b6d8baf5041d26ff05c1 +0 -0
- data/spec/dummy/tmp/cache/assets/D38/CA0/sprockets%2Fb2f67c43ed95cdec381201a1591a5e73 +0 -0
- data/spec/dummy/tmp/cache/assets/D3E/630/sprockets%2Fcdb19b1bced9374f844f54376dc43103 +0 -0
- data/spec/dummy/tmp/cache/assets/D42/2F0/sprockets%2F77e311e8847d2d5c5254bc51cd2cf8e2 +0 -0
- data/spec/dummy/tmp/cache/assets/D44/4C0/sprockets%2F009e4d29a2d937679015a0ddceda89c7 +0 -0
- data/spec/dummy/tmp/cache/assets/D46/A90/sprockets%2Fe349870cbccfd6637c4739c04c45af34 +0 -0
- data/spec/dummy/tmp/cache/assets/D49/A90/sprockets%2Fc7da9c3c9df8e05520c74c53639a845c +0 -0
- data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/D50/470/sprockets%2F2bc1690c65d8ffbff84b58e810e63693 +0 -0
- data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/D5C/3F0/sprockets%2F10bb094cd44ab73b2e31c49618ee7b1b +0 -0
- data/spec/dummy/tmp/cache/assets/D5C/6C0/sprockets%2F1ad1dff23bbf7320d2d7fda364555105 +0 -0
- data/spec/dummy/tmp/cache/assets/D5C/820/sprockets%2F696c617f9a6df357683eaa0589d95afd +0 -0
- data/spec/dummy/tmp/cache/assets/D62/F80/sprockets%2F16a0314243f7d9efc8fbac12224c74fb +0 -0
- data/spec/dummy/tmp/cache/assets/D68/BA0/sprockets%2Ff8283b87e207eb7103ae2ac8df2084bb +0 -0
- data/spec/dummy/tmp/cache/assets/D6A/D90/sprockets%2Fd425f2ec9668522e6ab25db50e7a2d4b +0 -0
- data/spec/dummy/tmp/cache/assets/D6B/5F0/sprockets%2F5e5a089ff23e4b1b5e7071c0b66ff41d +0 -0
- data/spec/dummy/tmp/cache/assets/D6D/E40/sprockets%2F96988fa2bc8e98bcf908f897cd4f3582 +0 -0
- data/spec/dummy/tmp/cache/assets/D7A/BA0/sprockets%2F7fe8ec92b30b7e2f688c3a91157c5eb3 +0 -0
- data/spec/dummy/tmp/cache/assets/D7B/610/sprockets%2Fd93cd9e659b56810ef3ef1fc4052d93b +0 -0
- data/spec/dummy/tmp/cache/assets/D80/010/sprockets%2F441ea8159f4442e7dbf499d93faff51c +0 -0
- data/spec/dummy/tmp/cache/assets/D83/090/sprockets%2Fa40a252a6e2b0ff86dace14bc38230c4 +0 -0
- data/spec/dummy/tmp/cache/assets/D8B/660/sprockets%2F82f06d4bae338af323d10ca53c23e5de +0 -0
- data/spec/dummy/tmp/cache/assets/D8C/960/sprockets%2F8c261eb90a4ec2f023bde5d31f628a2a +0 -0
- data/spec/dummy/tmp/cache/assets/D96/D10/sprockets%2F7bd1f5ab50fa7984dc3d13841c800ebe +0 -0
- data/spec/dummy/tmp/cache/assets/D98/2B0/sprockets%2F5fc3f1cbdd2724729e1ec9538a3acd12 +0 -0
- data/spec/dummy/tmp/cache/assets/D99/370/sprockets%2Fc28be70a409478b91da2ead47ba493bd +0 -0
- data/spec/dummy/tmp/cache/assets/D9A/7C0/sprockets%2F96f90c2cec66ba0dfcb37b7412e2e912 +0 -0
- data/spec/dummy/tmp/cache/assets/D9A/DB0/sprockets%2Fdb4ec6a8fd5fd625823e014e790a00df +0 -0
- data/spec/dummy/tmp/cache/assets/DA0/EE0/sprockets%2F4ecacd17cd6b98f67eb104181a841f7d +0 -0
- data/spec/dummy/tmp/cache/assets/DA1/C30/sprockets%2F679ced082eeb1816e41b2e07c6bae69c +0 -0
- data/spec/dummy/tmp/cache/assets/DA1/F20/sprockets%2F7e3ba0288726eccaf28beab45d695a91 +0 -0
- data/spec/dummy/tmp/cache/assets/DA2/820/sprockets%2F9f81de74a49c9eaf25ad2de0d51c7801 +0 -0
- data/spec/dummy/tmp/cache/assets/DA9/720/sprockets%2F48daf0816368157bfaeecdc8d6a39f25 +0 -0
- data/spec/dummy/tmp/cache/assets/DC9/A10/sprockets%2F160de89fafbd05b8cc47310780cf4ace +0 -0
- data/spec/dummy/tmp/cache/assets/DCF/A40/sprockets%2F554e10f5ef3e3c90b2de3ae0f5c886bf +0 -0
- data/spec/dummy/tmp/cache/assets/DDA/FB0/sprockets%2F92b4d4f3bc269e36e67f43ed8eb0db5f +0 -0
- data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/DDF/B10/sprockets%2Fbfb4fe5872d9482cab1f83ee74a499bc +0 -0
- data/spec/dummy/tmp/cache/assets/DF5/F30/sprockets%2F2a719aa2678fbbc921b4dca98b21cdfb +0 -0
- data/spec/dummy/tmp/cache/assets/DFE/2A0/sprockets%2Fa874cd00fc9abeb66d68908bbf2ee22b +0 -0
- data/spec/dummy/tmp/cache/assets/E00/BC0/sprockets%2F5fb79fd146d829debfd0306daabe1d74 +0 -0
- data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/E29/330/sprockets%2F37aa8f7e3db4c960ac2bce349e5bc1ce +0 -0
- data/spec/dummy/tmp/cache/assets/E2A/1C0/sprockets%2Ffae6441e70ce48653dc6fdefcadc01d3 +0 -0
- data/spec/dummy/tmp/cache/assets/E3D/850/sprockets%2Fdf71e8b2fb6eeb586657c8b936afaaeb +0 -0
- data/spec/dummy/tmp/cache/assets/E58/B30/sprockets%2F9fe3bb87890ca35d6acfaa0ad1fd5eb3 +0 -0
- data/spec/dummy/tmp/cache/assets/E6A/D70/sprockets%2F3d7b9d065fb3bee3fbff2d58eeb4a89c +0 -0
- data/spec/dummy/tmp/cache/assets/E7E/730/sprockets%2Fabdedbedfdddeb4ae08e143d1026557a +0 -0
- data/spec/dummy/tmp/cache/assets/E8B/4D0/sprockets%2Fedb0cb7f93abec7e5f5bf1ade2490be6 +0 -0
- data/spec/dummy/tmp/cache/assets/EB3/7B0/sprockets%2F51dabbc2ed9b98e08dc4bf5aba5aad6d +0 -0
- data/spec/dummy/tmp/cache/sass/4f0ce0b83bd09d93536268da405600ef1b98018d/bootstrap.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/539156597b6c6280022503b5a967d95c6f1abc4c/static_blocks.css.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/956b3763d4c52184978e8e3b49a9eb5d80253bf7/bootstrap.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_accordion.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_alerts.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_breadcrumbs.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_button-groups.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_buttons.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_carousel.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_close.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_code.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_component-animations.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_dropdowns.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_forms.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_grid.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_hero-unit.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_labels-badges.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_layouts.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_media.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_mixins.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_modals.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_navbar.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_navs.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_pager.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_pagination.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_popovers.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_progress-bars.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_reset.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_scaffolding.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_sprites.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_tables.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_thumbnails.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_tooltip.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_type.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_utilities.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_variables.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/_wells.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/a65a94b6445e42c04c4572af485c41f8c586032f/bootstrap.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/c406acb89bd590cc76375f46baeadeb0ce5cba8e/info.css.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_accordion.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_alerts.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_breadcrumbs.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_button-groups.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_buttons.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_carousel.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_close.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_code.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_component-animations.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_dropdowns.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_forms.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_grid.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_hero-unit.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_labels-badges.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_layouts.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_media.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_mixins.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_modals.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_navbar.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_navs.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_pager.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_pagination.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_popovers.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_progress-bars.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_reset.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_scaffolding.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_sprites.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_tables.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_thumbnails.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_tooltip.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_type.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_utilities.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_variables.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/_wells.scssc +0 -0
- data/spec/dummy/tmp/cache/sass/cec3b0e976607689afac1fc85095e1fdcb40263a/bootstrap.scssc +0 -0
- data/spec/dummy/tmp/capybara/capybara-201306231456094410600944.html +73 -0
- data/spec/dummy/tmp/capybara/capybara-20130623151435523273444.html +73 -0
- data/spec/helpers/static_blocks_helper_spec.rb +13 -0
- data/spec/integration/static_blocks_spec.rb +68 -0
- data/spec/models/static_block_spec.rb +13 -0
- data/spec/spec_helper.rb +14 -0
- data/spec/support/capybara.rb +8 -0
- metadata +762 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format
|
4
|
+
# (all these examples are active by default):
|
5
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
+
# inflect.singular /^(ox)en/i, '\1'
|
8
|
+
# inflect.irregular 'person', 'people'
|
9
|
+
# inflect.uncountable %w( fish sheep )
|
10
|
+
# end
|
11
|
+
#
|
12
|
+
# These inflection rules are supported but not enabled by default:
|
13
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
14
|
+
# inflect.acronym 'RESTful'
|
15
|
+
# end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
Dummy::Application.config.secret_token = 'd60f7c256306ac82e59bc5b21f96ce3c005cab7a218ee908f239178671b2464a89a23919c6a1ef286b1a14d188afa8cf946769adff6936626c721bb793d103fd'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# Dummy::Application.config.session_store :active_record_store
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json]
|
9
|
+
end
|
10
|
+
|
11
|
+
# Disable root element in JSON by default.
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
13
|
+
self.include_root_in_json = false
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
Rails.application.routes.draw do
|
2
|
+
|
3
|
+
root to: redirect("/#{I18n.default_locale}/info/index")
|
4
|
+
mount StaticBlocks::Engine => "/static_blocks_admin"
|
5
|
+
|
6
|
+
scope ":locale", locale: /#{I18n.available_locales.join("|")}/ do
|
7
|
+
get "info/index"
|
8
|
+
end
|
9
|
+
|
10
|
+
match '*path', to: redirect("/#{I18n.default_locale}/%{path}"), constraints: lambda { |req| !req.path.starts_with? "/#{I18n.default_locale}/" }
|
11
|
+
match '', to: redirect("/#{I18n.default_locale}")
|
12
|
+
|
13
|
+
|
14
|
+
end
|
Binary file
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# This migration comes from static_blocks (originally 20130611042319)
|
2
|
+
class CreateStaticBlocksStaticBlocks < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
create_table :static_blocks_static_blocks do |t|
|
5
|
+
t.string :title
|
6
|
+
t.text :content
|
7
|
+
t.string :status
|
8
|
+
|
9
|
+
t.timestamps
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# This migration comes from static_blocks (originally 20130612034816)
|
2
|
+
class CreateStaticBlockTranslations < ActiveRecord::Migration
|
3
|
+
def up
|
4
|
+
StaticBlocks::StaticBlock.create_translation_table!({
|
5
|
+
content: :text
|
6
|
+
}, {
|
7
|
+
migrate_data: true
|
8
|
+
})
|
9
|
+
end
|
10
|
+
|
11
|
+
def down
|
12
|
+
StaticBlock.drop_translation_table! migrate_data: true
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 20130612035223) do
|
15
|
+
|
16
|
+
create_table "static_blocks_static_block_translations", :force => true do |t|
|
17
|
+
t.integer "static_blocks_static_block_id"
|
18
|
+
t.string "locale"
|
19
|
+
t.text "content"
|
20
|
+
t.datetime "created_at", :null => false
|
21
|
+
t.datetime "updated_at", :null => false
|
22
|
+
end
|
23
|
+
|
24
|
+
add_index "static_blocks_static_block_translations", ["locale"], :name => "index_static_blocks_static_block_translations_on_locale"
|
25
|
+
add_index "static_blocks_static_block_translations", ["static_blocks_static_block_id"], :name => "index_bc40576269460a507bac1fc29dc0b04705279cb3"
|
26
|
+
|
27
|
+
create_table "static_blocks_static_blocks", :force => true do |t|
|
28
|
+
t.string "title"
|
29
|
+
t.text "content"
|
30
|
+
t.string "status"
|
31
|
+
t.datetime "created_at", :null => false
|
32
|
+
t.datetime "updated_at", :null => false
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
Binary file
|