speedo 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/{README.rdoc → README.md} +21 -7
- data/app/assets/javascripts/speedo.js +1 -15
- data/app/assets/javascripts/{home.coffee → swim.js.coffee} +0 -0
- data/app/assets/stylesheets/{_style.scss → speedo.css.scss} +94 -54
- data/app/controllers/speedo/home_controller.rb +0 -2
- data/app/views/layouts/speedo/application.html.haml +66 -0
- data/app/views/speedo/home/{how.html.haml → examples.html.haml} +0 -0
- data/config/locales/{en.yml → speedo.en.yml} +0 -0
- data/config/routes.rb +2 -2
- data/lib/generators/speedo/install_generator.rb +71 -0
- data/{app/helpers → lib}/speedo/layout_helper.rb +2 -0
- data/lib/speedo/version.rb +1 -1
- data/lib/speedo.rb +1 -0
- data/test/dummy/app/views/layouts/application.haml +0 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/log/development.log +1989 -763
- data/test/dummy/tmp/cache/assets/{CD2/A30/sprockets%2F82bf9b41b2475c3630e1c241c2f386b3 → B8E/270/sprockets%2F0951202747b5369114595600245e94e3} +0 -0
- data/test/dummy/tmp/cache/assets/C80/9A0/sprockets%2Fc4c8afb992c9647067101a5f73834220 +0 -0
- data/test/dummy/tmp/cache/assets/C83/F40/sprockets%2F233e595e93017a708e365c91cf4d7141 +0 -0
- data/test/dummy/tmp/cache/assets/{D67/E00/sprockets%2Faf58442fa3b47f73c51e534a32de1fe1 → C86/240/sprockets%2Ff7381c00064f6c6e68684373052e3eb7} +0 -0
- data/test/dummy/tmp/cache/assets/C91/270/sprockets%2Fa81080c2365cef96e8613958450779ae +0 -0
- data/test/dummy/tmp/cache/assets/{D04/570/sprockets%2Fb977dd2e1b11efd95d1635b106311a48 → C98/F90/sprockets%2F2186f27c8f7bd8862a828025a389468e} +0 -0
- data/test/dummy/tmp/cache/assets/CAA/F50/sprockets%2F9d7030431368a08b218f3be649461bec +0 -0
- data/test/dummy/tmp/cache/assets/{E1C/290/sprockets%2Fb73d1b3a2d1e21efea1b01dd5dd8d79d → CAD/700/sprockets%2Fffa3de17437459bd5e20013907d56434} +0 -0
- data/test/dummy/tmp/cache/assets/{D5D/1B0/sprockets%2F6df1b3eb63813007efc0c624c4e1be70 → CB2/1E0/sprockets%2F9853573045d032b677d3c50618d2ebef} +0 -0
- data/test/dummy/tmp/cache/assets/{DB3/FA0/sprockets%2F58f5736fc67cabe1d1f87b9d6e1a864e → CB5/640/sprockets%2Fa31e56514257d4908aa8e3468be2549d} +0 -0
- data/test/dummy/tmp/cache/assets/CB7/040/sprockets%2F19ce27714a59854aa26b9924e5f03f70 +0 -0
- data/test/dummy/tmp/cache/assets/{D94/FD0/sprockets%2F41225e07b4e82f7c5bca58a6acbe6b34 → CB8/BB0/sprockets%2F679882b3375bf81b71e2ac09043916df} +0 -0
- data/test/dummy/tmp/cache/assets/{CE6/370/sprockets%2Ff2af9583b1651f2b85a55312652fc88e → CC1/700/sprockets%2Ff19206573736d72f27d56b194d78f5cb} +0 -0
- data/test/dummy/tmp/cache/assets/{D39/300/sprockets%2F208a3e8f241d173ac294a5675d64bbed → CC5/520/sprockets%2Fa21806c3972f255f771eb9f995ce2926} +0 -0
- data/test/dummy/tmp/cache/assets/{D44/F90/sprockets%2F08a167ea587d545985dbb299df0b2d0a → CC7/7D0/sprockets%2F668041387847ac89f47748aca2d7f72c} +0 -0
- data/test/dummy/tmp/cache/assets/{D6C/E60/sprockets%2F8d38aff5c20f91c2a106ffc422907e7b → CD4/300/sprockets%2F6179c173345a5a16d5361c52dda173fb} +0 -0
- data/test/dummy/tmp/cache/assets/{D07/570/sprockets%2Fdcf54a08e524f281b585442e47ceb102 → CD9/A80/sprockets%2F324563c14d1cbfeb633a79538e351d62} +0 -0
- data/test/dummy/tmp/cache/assets/{D6D/7E0/sprockets%2Ffb0ae6d7ff92dbd1b16353268f0464d4 → CDE/870/sprockets%2F8f32fb36777bf313269beb310d2b3845} +0 -0
- data/test/dummy/tmp/cache/assets/CDE/D20/sprockets%2F6d4c500c216f678957a03b598a3b4db4 +0 -0
- data/test/dummy/tmp/cache/assets/{D15/5F0/sprockets%2F57b1816da5eb950bb6583945a2c9dd63 → CDF/750/sprockets%2F9e8a21b320015e167d983dd01559ed9c} +0 -0
- data/test/dummy/tmp/cache/assets/{C86/790/sprockets%2F91e781f0651760fa67f67441d22f526a → CE1/AE0/sprockets%2Ff8b60d832cf00839cdb044333168c9d8} +0 -0
- data/test/dummy/tmp/cache/assets/{CEF/9F0/sprockets%2Fd4655b68b55de913f9df60e5726d2128 → CEA/760/sprockets%2F82da7b1f63aae8983258c71d8649033d} +0 -0
- data/test/dummy/tmp/cache/assets/{CF4/5F0/sprockets%2Ff3c268595dbff812347d6ed70474d809 → CEE/2B0/sprockets%2F3f55407cc8cd16792f51bf1d899931d2} +0 -0
- data/test/dummy/tmp/cache/assets/{CB6/AB0/sprockets%2Fbf1147aa08d0479c55c2491d6548697b → CEF/400/sprockets%2Fcd594eecd3e7408c7d395313687d2463} +0 -0
- data/test/dummy/tmp/cache/assets/CF3/AF0/sprockets%2F6053c515ec95970ef78a49649cd7bd51 +0 -0
- data/test/dummy/tmp/cache/assets/CF3/E90/sprockets%2F21f68e578e48d1c09254ff443fe27b76 +0 -0
- data/test/dummy/tmp/cache/assets/{CF3/100/sprockets%2Fc892faf01e9f78893b2ec023f8930917 → CFD/D90/sprockets%2F937c675c267611fd68990fd921dbe99b} +0 -0
- data/test/dummy/tmp/cache/assets/D05/950/sprockets%2Fb307e408a0c16da9b901ebb4339c4776 +0 -0
- data/test/dummy/tmp/cache/assets/D09/DA0/sprockets%2F9eb1a12aaa985288f181e323ba03659f +0 -0
- data/test/dummy/tmp/cache/assets/{DEF/C20/sprockets%2Fab241dc1f5aee3812dfd46ffb4bf1910 → D0A/D60/sprockets%2Fb50b3d16770a04f9a98d0e64c7054c5e} +0 -0
- data/test/dummy/tmp/cache/assets/{D64/000/sprockets%2F3eaa6b6f62e23fc95c100b67024ff6a5 → D0B/3D0/sprockets%2F947fa5bb7605aa40d92db40d114778a9} +0 -0
- data/test/dummy/tmp/cache/assets/{D4E/AA0/sprockets%2F56cf4d3668ca40d9767ef3923b90ccf3 → D15/A30/sprockets%2F057af7d40bf5d83937e8e850f2206c2d} +0 -0
- data/test/dummy/tmp/cache/assets/D17/DB0/sprockets%2F3df32921847cc9464e8a2b40f8ac529e +0 -0
- data/test/dummy/tmp/cache/assets/{D46/610/sprockets%2Fb9cd82e86bf9f23497ea1a82380f4d00 → D1A/4B0/sprockets%2Fd4c3afe0fa3a538059de86659906a097} +0 -0
- data/test/dummy/tmp/cache/assets/D1B/810/sprockets%2F7deff372b4cf087a782e14e32981185c +0 -0
- data/test/dummy/tmp/cache/assets/D1C/C80/sprockets%2Fe619764855deb0009096eea9b86dd16b +0 -0
- data/test/dummy/tmp/cache/assets/D1D/D50/sprockets%2F5b87bedce3ae871f14e41e2479290866 +0 -0
- data/test/dummy/tmp/cache/assets/D30/460/sprockets%2F62642bc2dea5472b855fb17ff50cb201 +0 -0
- data/test/dummy/tmp/cache/assets/D31/3E0/sprockets%2F29085d9b4110b340ea4ec3af84a4ed36 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D35/2D0/sprockets%2Fdda273d378107941fb93a50c2c2cb5c7 +0 -0
- data/test/dummy/tmp/cache/assets/{DC8/550/sprockets%2F94cb607caf211aafa576d8db3e0d583f → D36/6E0/sprockets%2F85a394ac292901b6cca0920c0ccef919} +0 -0
- data/test/dummy/tmp/cache/assets/{DC5/B10/sprockets%2F4e8d3beabb66a33753cdf2538b0dc70d → D38/A00/sprockets%2F917d34fee245d2091137fccc15e1a5f3} +0 -0
- data/test/dummy/tmp/cache/assets/D38/ED0/sprockets%2Ffe56f7213bc167608b1058d6dbfc1b15 +0 -0
- data/test/dummy/tmp/cache/assets/D39/8C0/sprockets%2Ff580082e7518211bfd46a19cbf5ca7f0 +0 -0
- data/test/dummy/tmp/cache/assets/{D6A/E70/sprockets%2F3d5d96c133daefa7261bf5183c1d727c → D3C/A40/sprockets%2F1f7254c250dd4b184cb8d8dba84d8910} +0 -0
- data/test/dummy/tmp/cache/assets/D3E/C60/sprockets%2F00590ed6c949dff2bd05188073da45db +0 -0
- data/test/dummy/tmp/cache/assets/{C55/A00/sprockets%2F64a4807c3605709b4a90f49218d0f657 → D42/950/sprockets%2Fee287fce48a6c64b84446ae670a0a183} +0 -0
- data/test/dummy/tmp/cache/assets/{CFC/9C0/sprockets%2Fcc2735935442c2435fa1da09a2ab17f3 → D43/0C0/sprockets%2F769d075ba224e2782c5831ff2acecb59} +0 -0
- data/test/dummy/tmp/cache/assets/{DDE/B60/sprockets%2Fee0b5f55e5438bf6ea38eb85c57c48af → D43/410/sprockets%2F064c4aeeb3b54c8b4cd89192ad690288} +0 -0
- data/test/dummy/tmp/cache/assets/{C95/800/sprockets%2F1e2c6a6ef746de4672d8479058663283 → D4B/F90/sprockets%2F97138049dfea606764f6c9aaaa6d0f67} +0 -0
- data/test/dummy/tmp/cache/assets/{CE7/7E0/sprockets%2F614ac05673f4071a775e97aae45a788d → D52/530/sprockets%2F07c42d71d71cd2bceee02092082f1a0b} +0 -0
- data/test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
- data/test/dummy/tmp/cache/assets/{D54/BE0/sprockets%2Fd69188ce1fa675cf95ac60199c94c82a → D5B/600/sprockets%2Fa264122db94e67deb1300e0df6bb4f42} +0 -0
- data/test/dummy/tmp/cache/assets/D5C/700/sprockets%2F3dd8c74d4b63349f395aab8f99397d6d +0 -0
- data/test/dummy/tmp/cache/assets/D5E/1A0/sprockets%2F5eb7cabf6eb51f04eab806c471430721 +0 -0
- data/test/dummy/tmp/cache/assets/{DEF/030/sprockets%2F829f9ef48f8cd4fbbf9191e67a2ce3e8 → D60/950/sprockets%2F691a01e30f215dcf4713e2bb7f5f3ab7} +0 -0
- data/test/dummy/tmp/cache/assets/{C9E/CB0/sprockets%2F851e8854f40e4f6c954924cbc8574955 → D63/D10/sprockets%2Fb2b9e015452ee18a60a5dc0dcf27c945} +0 -0
- data/test/dummy/tmp/cache/assets/{D7A/330/sprockets%2Fa1683ec0e94aebfa47c559940db6d677 → D65/8A0/sprockets%2F33d2d1ab7256c07e9113ea72f3f4e3fd} +0 -0
- data/test/dummy/tmp/cache/assets/D65/F70/sprockets%2F92e3ce031c054c5ed770e18a149fdca4 +0 -0
- data/test/dummy/tmp/cache/assets/D6D/E90/sprockets%2F784c31e05cd9fc57407a8d04e90fb2ac +0 -0
- data/test/dummy/tmp/cache/assets/{D21/650/sprockets%2Fb2cb6c556ff05f3999e4e2d747840a56 → D75/B90/sprockets%2F2e9f2ff42d94e6800c6fb506dcce9151} +0 -0
- data/test/dummy/tmp/cache/assets/{D16/F90/sprockets%2F9d50fa2529140487789bc8b2eb7c3e0e → D76/360/sprockets%2Fd6efeb4c8166287e31fd44261821feeb} +0 -0
- data/test/dummy/tmp/cache/assets/{D99/410/sprockets%2F0d41e90fb416d25b0690caf5f56ed8ea → D77/F30/sprockets%2F816cd5c7b2e06d96f4047674f77baaea} +0 -0
- data/test/dummy/tmp/cache/assets/D7C/BA0/sprockets%2F12de8842e34eebde6f73832c98c14fb6 +0 -0
- data/test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
- data/test/dummy/tmp/cache/assets/D89/230/sprockets%2Fab27bd3c9ce3d1d2e321ab3612378aa8 +0 -0
- data/test/dummy/tmp/cache/assets/{CA2/A50/sprockets%2F802a418e2ec671e229b6b0bc15282914 → D93/5D0/sprockets%2F273d73366ddccfb62e9317b0baad138a} +0 -0
- data/test/dummy/tmp/cache/assets/{DBB/910/sprockets%2F73b846ffea908d76e668197bea7fa4de → D93/CB0/sprockets%2F03e0090bae3d28e43b25fc5eee1d98e0} +0 -0
- data/test/dummy/tmp/cache/assets/D9B/0D0/sprockets%2Faafffac2ef19811602f7f4c3bb466724 +0 -0
- data/test/dummy/tmp/cache/assets/D9E/AE0/sprockets%2Fb94be8aa1da7ad9f63605a484119ba8f +0 -0
- data/test/dummy/tmp/cache/assets/{DA1/670/sprockets%2Fb71f32bbfb530e59ad7a177cf54a888b → D9F/0D0/sprockets%2Fea2be0ae9c33431e2ce1966f82f9c2e6} +0 -0
- data/test/dummy/tmp/cache/assets/{C8E/F50/sprockets%2Fd8870c8cd6268b552059e4165dd41395 → DA2/A50/sprockets%2F59debf5ccf81b21074c1b38633de9e5d} +0 -0
- data/test/dummy/tmp/cache/assets/{D74/B80/sprockets%2F53e914bce7197b5392ad7f285aeca3e3 → DA4/1B0/sprockets%2F95d2d83ffa48066cc64460dedbc36fc2} +0 -0
- data/test/dummy/tmp/cache/assets/{E0E/AA0/sprockets%2Fb4a3ce3ff273a9e3c67ef8791cfb6dd6 → DAB/310/sprockets%2Ffb5b767a7e5afc128b9ee65f170f3e72} +0 -0
- data/test/dummy/tmp/cache/assets/{CA1/670/sprockets%2F5078d436b1e840b24a45a0fd808e0370 → DBA/BA0/sprockets%2F8a56330cadc25c911fcb54aca64a4ce4} +0 -0
- data/test/dummy/tmp/cache/assets/{D36/850/sprockets%2F6f3211de66f1a692600d1eea5c37ff50 → DBB/250/sprockets%2F23c1fb62ad4022e3a6bd2cc97cad5f09} +0 -0
- data/test/dummy/tmp/cache/assets/{C66/D10/sprockets%2F2464fdef14068c5758619d407575745f → DC3/CC0/sprockets%2Fa04ece65c59a7a325cab61861da2be7e} +0 -0
- data/test/dummy/tmp/cache/assets/{C5D/720/sprockets%2F9fa57e616e980217a86a752645602a67 → DC8/110/sprockets%2F24bb12a4b9c4643beab3e6ee6407ee9e} +0 -0
- data/test/dummy/tmp/cache/assets/{D18/720/sprockets%2F3a0f8a5ca889201c9c5ecd4748f91328 → DC8/AA0/sprockets%2F3644dea421d58623cba81cece7a59ace} +0 -0
- data/test/dummy/tmp/cache/assets/{C99/860/sprockets%2F17c461a57e0176f6d2a42ac2d5601332 → DCA/450/sprockets%2F15bfbe1ec6a4268bc1d5ce58c74097ba} +0 -0
- data/test/dummy/tmp/cache/assets/DD0/6D0/sprockets%2Ffc5d205c6f6a673df40b5ccbf2c874d6 +0 -0
- data/test/dummy/tmp/cache/assets/{C7F/F30/sprockets%2F634e6d3c0a9b00971070936b1858d9f0 → DD0/800/sprockets%2F36b60d4cf94c1ceba67633ab079cd7ff} +0 -0
- data/test/dummy/tmp/cache/assets/{D9C/2D0/sprockets%2F04c0f7c86528653cbf3ce46f2ca0dd9a → DD1/7D0/sprockets%2Fdcafc3a581279539ff05ad731eff7b3a} +0 -0
- data/test/dummy/tmp/cache/assets/{C3E/DC0/sprockets%2F1403a9a2a343047662a08c94236e18d3 → DDF/3B0/sprockets%2F96b57d6f67dacec95955f6031cacf3fb} +0 -0
- data/test/dummy/tmp/cache/assets/DE0/B80/sprockets%2Fbdc0fde2b92c4534d336022cc20fabda +0 -0
- data/test/dummy/tmp/cache/assets/{E20/350/sprockets%2Fd8a3386671fbdadea2a5e5ba27a43eab → DE1/660/sprockets%2Fb958ceea23ea683a99dfe99e43d461ca} +0 -0
- data/test/dummy/tmp/cache/assets/DE9/520/sprockets%2Fe9f8259c99da2f355198dc4bcdebb69d +0 -0
- data/test/dummy/tmp/cache/assets/{D56/5B0/sprockets%2Ff9b967b41f1a607574688dbe5fd48d2e → DF7/860/sprockets%2F22dbdd2ea9b15af36dd6f3e2d4f57c32} +0 -0
- data/test/dummy/tmp/cache/assets/{CCD/3C0/sprockets%2F4813042234e4809bbba5f31fa53d613e → DFA/AF0/sprockets%2F2e179efae1f1bb4eecbf727b007ff065} +0 -0
- data/test/dummy/tmp/cache/assets/{D6D/900/sprockets%2F470cd1d4e43c64e9fa812a75e95ad11f → E00/380/sprockets%2F91fc40129beebf44dfd98bfbf82d2d02} +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/E1C/A60/sprockets%2Ff1c1a2b2f19abfd547ba4e13d8f3eb1d +0 -0
- data/test/dummy/tmp/cache/assets/E22/0E0/sprockets%2Fa8e76badc021448d58abbbc87aecc30e +0 -0
- data/test/dummy/tmp/cache/assets/{D50/140/sprockets%2Feacc6366c2e070f9a8b9676b9269eb81 → E2A/D30/sprockets%2F6a5bbbe96db4d016bfe861ddddc18b09} +0 -0
- data/test/dummy/tmp/cache/assets/E2D/E60/sprockets%2F2a6996ad8e0dfdd0fde983baa029a0fc +0 -0
- data/test/dummy/tmp/cache/assets/E30/6E0/sprockets%2Fb7dd3dc39a89e7f1eb8a0b12bcc4bf78 +0 -0
- data/test/dummy/tmp/cache/assets/E3C/3B0/sprockets%2Faacd7bf3ceb582159e99eb555baf9c9b +0 -0
- data/test/dummy/tmp/cache/assets/{CF6/250/sprockets%2F3f5b661c64b00a08d2a4405a04a478fb → E65/EC0/sprockets%2F1f5fb08e0ef4cc3ed763f56bb3fb9ffb} +0 -0
- data/test/dummy/tmp/cache/assets/E82/D20/sprockets%2Fcdce4acb88dcbeaba64a06a254a9e09f +0 -0
- metadata +272 -209
- data/app/assets/stylesheets/speedo.scss +0 -20
- data/app/views/layouts/speedo/application.haml +0 -19
- data/app/views/speedo/home/index.haml +0 -1
- data/app/views/speedo/shared/_footer.haml +0 -5
- data/app/views/speedo/shared/_header.haml +0 -8
- data/app/views/speedo/shared/_html_head.haml +0 -18
- data/app/views/speedo/shared/_nav_flash.haml +0 -19
- data/test/dummy/tmp/cache/assets/C58/AC0/sprockets%2Fb3fe8d12404f3909651c796f53704264 +0 -0
- data/test/dummy/tmp/cache/assets/CA4/550/sprockets%2F5b90b6195ec8acd0012526e32493a707 +0 -0
- data/test/dummy/tmp/cache/assets/D7B/AD0/sprockets%2F80f6555eabf8e7a66ef7bdd0309239d3 +0 -0
- data/test/dummy/tmp/cache/assets/D7C/250/sprockets%2Fb5bb46dee0118a0a88f099ed6ed85767 +0 -0
- data/test/dummy/tmp/cache/assets/D7D/7E0/sprockets%2Fe38072fc712ee2f8d944e6c62a88eb2f +0 -0
- data/test/dummy/tmp/cache/assets/D90/4F0/sprockets%2F4f2c511baacacdff3561bdc676214656 +0 -0
- data/test/dummy/tmp/cache/assets/DF2/CB0/sprockets%2F4500acae993e0fa07bd48dceee07e2b3 +0 -0
- data/test/dummy/tmp/pids/server.pid +0 -1
data/{README.rdoc → README.md}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
# Speedo
|
2
2
|
|
3
3
|
This is a layout gem intended as a backdrop for developing rails applications quickly. Its intention is to speed initial development, removing the need for (hopefully) any intensive front-end development until the app is functional (i.e. near completion). It provides the common tools CrankApps typically uses for front-end development.
|
4
4
|
|
@@ -8,19 +8,33 @@ There is a link in the footer ("How") to a page that contains many examples of t
|
|
8
8
|
|
9
9
|
This project uses MIT-LICENSE.
|
10
10
|
|
11
|
-
|
11
|
+
## Usage
|
12
12
|
|
13
13
|
In your Gemfile:
|
14
14
|
|
15
|
-
|
15
|
+
gem 'speedo'
|
16
16
|
|
17
|
-
|
18
|
-
|
17
|
+
Then run:
|
18
|
+
|
19
|
+
bundle install
|
20
|
+
rails generate speedo:install
|
21
|
+
|
22
|
+
This will generate:
|
23
|
+
* app/views/layouts/application.html.haml
|
24
|
+
* app/assets/stylesheets/speedo.css.scss
|
25
|
+
* app/assets/javascripts/swim.js.coffee
|
26
|
+
* config/locales/speedo.en.yml
|
27
|
+
|
28
|
+
It will also add Speedo to your application.css and application.js files.
|
29
|
+
|
30
|
+
## Inventory of plugins and gems:
|
31
|
+
|
32
|
+
### Gems
|
19
33
|
* Haml
|
20
34
|
* Haml-rails
|
21
35
|
* Bourbon
|
22
36
|
|
23
|
-
|
37
|
+
### jQuery Plugins
|
24
38
|
* jQuery-UI
|
25
39
|
* jQuery.autogrow
|
26
40
|
* jQuery.autoSuggest
|
@@ -32,7 +46,7 @@ In your Gemfile:
|
|
32
46
|
* jQuery.placeholder
|
33
47
|
* jQuery.uniform
|
34
48
|
|
35
|
-
|
49
|
+
### Other Plugins
|
36
50
|
* Modernizr
|
37
51
|
* Chosen
|
38
52
|
* Respond
|
@@ -1,17 +1,3 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// the compiled file.
|
9
|
-
//
|
10
|
-
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
11
|
-
// GO AFTER THE REQUIRES BELOW.
|
12
|
-
//
|
13
|
-
//= require jquery
|
14
|
-
//= require jquery_ujs
|
15
1
|
//= require jquery-ui
|
16
2
|
//= require chosen.jquery
|
17
3
|
//= require jquery.autoSuggest
|
@@ -22,4 +8,4 @@
|
|
22
8
|
//= require jquery.mousewheel-3.0.4.pack
|
23
9
|
//= require jquery.placeholder.min
|
24
10
|
//= require jquery.uniform
|
25
|
-
//=
|
11
|
+
//= require swim
|
File without changes
|
@@ -1,19 +1,53 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
/*
|
2
|
+
*= require normalize
|
3
|
+
*= require autoSuggest
|
4
|
+
*= require chosen
|
5
|
+
*= require gh-buttons
|
6
|
+
*= require jquery.dataTables
|
7
|
+
*= require jquery.fancybox-1.3.4
|
8
|
+
*= require jquery-ui-1.8.18.custom
|
9
|
+
*= require uniform.default
|
10
|
+
*/
|
11
|
+
|
12
|
+
@import "bourbon";
|
13
|
+
|
14
|
+
|
15
|
+
/* Set colors here */
|
16
|
+
$bg: #ddd; /* Background color (if not in web-app mode) */
|
17
|
+
$text: #333; /* Standard text color */
|
18
|
+
$link: #0090d5;
|
19
|
+
$visited: #17639b;
|
20
|
+
/* Pastels */
|
21
|
+
$bggreen: #e3fde4;
|
22
|
+
$bgblue: #bcf;
|
23
|
+
$bgyellow:#ffc;
|
24
|
+
$bgred: #f99;
|
25
|
+
/* Column background colors */
|
26
|
+
$maincolbg: #fff;
|
27
|
+
$leftcolbg: #f6f6f6;
|
28
|
+
$rightcolbg: #fafafa;
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
/* See the bottom half of this file for layout options */
|
33
|
+
|
34
|
+
|
6
35
|
|
7
36
|
/* Base Styles - Set HTML element styles here */
|
8
37
|
body {
|
9
|
-
|
38
|
+
color: $text;
|
39
|
+
background: $bg;
|
40
|
+
font-size:12px;
|
41
|
+
line-height:1.231;
|
10
42
|
}
|
11
43
|
a, a:visited, .link {
|
12
|
-
color:
|
44
|
+
color: $link;
|
13
45
|
text-decoration: none;
|
14
46
|
cursor:pointer;
|
15
47
|
}
|
16
|
-
a:hover, .link:hover {
|
48
|
+
a:hover, .link:hover {
|
49
|
+
color: $visited;
|
50
|
+
}
|
17
51
|
ul, ol {
|
18
52
|
margin: 0;
|
19
53
|
padding: 0;
|
@@ -21,23 +55,14 @@ ul, ol {
|
|
21
55
|
list-style: none;
|
22
56
|
}
|
23
57
|
}
|
24
|
-
h1,
|
25
|
-
margin:10px 0 0.5em;
|
58
|
+
h1,h3,h5 {
|
26
59
|
font-weight:normal;
|
27
60
|
font-weight:200;
|
28
61
|
}
|
29
|
-
|
30
|
-
|
31
|
-
h4,h5 {font-size:1.2em;}
|
32
|
-
h6 {font-size:1em;}
|
33
|
-
h2,h4,h6{font-weight:normal;}
|
34
|
-
footer {
|
35
|
-
position:relative;
|
36
|
-
margin:-1.8em 10px 0 0; // So it appears at the bottom of the right column
|
37
|
-
float: right;
|
38
|
-
font-size: 0.8em;
|
39
|
-
opacity:0.5;
|
62
|
+
h2,h4,h6{
|
63
|
+
font-weight:normal;
|
40
64
|
}
|
65
|
+
|
41
66
|
input:not(.button), textarea {
|
42
67
|
border:1px solid #999;
|
43
68
|
@include border-radius(3px);
|
@@ -51,6 +76,7 @@ input:not(.button), textarea {
|
|
51
76
|
|
52
77
|
|
53
78
|
|
79
|
+
|
54
80
|
/* Basic styles */
|
55
81
|
.no-js body {
|
56
82
|
margin-top:30px;
|
@@ -134,6 +160,37 @@ input:not(.button), textarea {
|
|
134
160
|
color:#900;
|
135
161
|
}
|
136
162
|
}
|
163
|
+
footer {
|
164
|
+
position:relative;
|
165
|
+
margin:-1.8em 10px 0 0; /* So it appears at the bottom of the right column and is not lost in web-app mode */
|
166
|
+
float: right;
|
167
|
+
font-size: 0.8em;
|
168
|
+
opacity:0.5;
|
169
|
+
}
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
/* Plugin fixes */
|
174
|
+
.dataTables_wrapper {
|
175
|
+
@include clearfix;
|
176
|
+
}
|
177
|
+
div.selector, div.uploader {
|
178
|
+
margin-left:-2px; /* Left aligns the uniform masks, but be careful if they're inline */
|
179
|
+
}
|
180
|
+
ul.as-selections {
|
181
|
+
border:1px solid #999;
|
182
|
+
@include border-radius(3px);
|
183
|
+
padding:5px;
|
184
|
+
@include box-shadow(inset 0 1px 1px rgba(0,0,0,0.2));
|
185
|
+
li.as-original input {
|
186
|
+
@include box-shadow(none);
|
187
|
+
color:#999; /* For the placeholder colour */
|
188
|
+
&:focus {color:inherit;}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
.button-group, .button {
|
192
|
+
vertical-align:top;
|
193
|
+
}
|
137
194
|
/* Fancybox Popups */
|
138
195
|
.popups {
|
139
196
|
display:none;
|
@@ -161,27 +218,6 @@ input:not(.button), textarea {
|
|
161
218
|
}
|
162
219
|
}
|
163
220
|
|
164
|
-
/* Plugin fixes */
|
165
|
-
.dataTables_wrapper {
|
166
|
-
@include clearfix;
|
167
|
-
}
|
168
|
-
div.selector, div.uploader {
|
169
|
-
margin-left:-2px;
|
170
|
-
}
|
171
|
-
ul.as-selections {
|
172
|
-
border:1px solid #999;
|
173
|
-
@include border-radius(3px);
|
174
|
-
padding:5px;
|
175
|
-
@include box-shadow(inset 0 1px 1px rgba(0,0,0,0.2));
|
176
|
-
li.as-original input {
|
177
|
-
@include box-shadow(none);
|
178
|
-
color:#999; /* For the placeholder colour */
|
179
|
-
&:focus {color:inherit;}
|
180
|
-
}
|
181
|
-
}
|
182
|
-
.button-group, .button {
|
183
|
-
vertical-align:top;
|
184
|
-
}
|
185
221
|
|
186
222
|
|
187
223
|
/* =============================================================================
|
@@ -209,7 +245,7 @@ ul.as-selections {
|
|
209
245
|
/* Contain floats: nicolasgallagher.com/micro-clearfix-hack/ */
|
210
246
|
.clearfix:before, .clearfix:after { content: ""; display: table; }
|
211
247
|
.clearfix:after { clear: both; }
|
212
|
-
.clearfix { zoom: 1; }
|
248
|
+
.clearfix { *zoom: 1; }
|
213
249
|
|
214
250
|
/* Float and clear */
|
215
251
|
.left { float: left; }
|
@@ -217,7 +253,7 @@ ul.as-selections {
|
|
217
253
|
.clear { clear: both; }
|
218
254
|
|
219
255
|
/* Inline-block */
|
220
|
-
.ib { display:inline-block; zoom:1; *display:inline; }
|
256
|
+
.ib { display:inline-block; *zoom:1; *display:inline; }
|
221
257
|
|
222
258
|
|
223
259
|
|
@@ -260,20 +296,24 @@ ul.as-selections {
|
|
260
296
|
|
261
297
|
|
262
298
|
|
263
|
-
/* Column Layout */
|
264
299
|
/*
|
300
|
+
Column Layout
|
301
|
+
=============
|
265
302
|
This layout is designed for mobile-first, so that the 'side' columns go below the main
|
266
303
|
content on narrower screen-widths.
|
267
|
-
|
268
|
-
|
269
|
-
|
304
|
+
|
305
|
+
IMPORTANT: Most of the styles that will be seen by the typical browser (i.e. the 960 design)
|
306
|
+
are in the @media queries below.
|
307
|
+
|
308
|
+
Set the column background colours using the variables (top of file) for consistent
|
309
|
+
column colouration.
|
270
310
|
*/
|
271
311
|
|
272
|
-
|
273
|
-
/*
|
274
|
-
|
275
|
-
|
276
|
-
|
312
|
+
#wrapper {
|
313
|
+
max-width: 964px; /* Set the width of the page here, +4px for colmask box-shadow */
|
314
|
+
padding:0 2px 4px; /* (for colmask box-shadow) */
|
315
|
+
margin: 0 auto;
|
316
|
+
}
|
277
317
|
|
278
318
|
/* Layout for mobile < 480px width screens (see below for media queries) */
|
279
319
|
.colmask {
|
@@ -472,4 +512,4 @@ $rightcolbg: #fafafa;
|
|
472
512
|
width:100%;
|
473
513
|
}
|
474
514
|
/* */
|
475
|
-
}
|
515
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
!!!
|
2
|
+
!= cc_html(:class => "no-js", :lang => 'en') do
|
3
|
+
%head
|
4
|
+
%meta{:charset => "utf-8"}
|
5
|
+
%meta{:content => "", :name => "author"}
|
6
|
+
%meta{:content => "", :name => "description"}
|
7
|
+
%meta{:content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}
|
8
|
+
%meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}
|
9
|
+
-#%link{:href => '#insert-web-fonts-here', :rel => 'stylesheet', :type => 'text/css'}
|
10
|
+
= csrf_meta_tags
|
11
|
+
|
12
|
+
%title
|
13
|
+
= t "app_name"
|
14
|
+
= yield :page_title
|
15
|
+
|
16
|
+
= javascript_include_tag 'modernizr.min.js'
|
17
|
+
= javascript_include_tag 'respond.js'
|
18
|
+
= stylesheet_link_tag :application
|
19
|
+
= javascript_include_tag :application
|
20
|
+
= yield :head
|
21
|
+
|
22
|
+
%body
|
23
|
+
%noscript#noscript_warning This site works best with JavaScript enabled. Some features may not be available
|
24
|
+
#wrapper
|
25
|
+
%header.branding.clearfix
|
26
|
+
= link_to image_tag('speedo/logo.png'), root_url, :class => 'logo'
|
27
|
+
|
28
|
+
.user
|
29
|
+
= link_to "current_user.name", "account_url", class: "user_name"
|
30
|
+
|
|
31
|
+
= link_to 'Logout', "destroy_user_session_url", class: "user_logout"
|
32
|
+
|
33
|
+
%nav.main_nav.clearfix
|
34
|
+
%form.right.search
|
35
|
+
%input{:type => "search", :name => "search[name]", :placeholder => "Search", :results => 5, :autosave => "site_search"}
|
36
|
+
|
37
|
+
= link_to "Home", root_url, {:class => "active home"}
|
38
|
+
= link_to "Section1", root_url
|
39
|
+
= link_to "Section2", root_url
|
40
|
+
= link_to "Section3", root_url
|
41
|
+
= link_to "Section4", root_url
|
42
|
+
|
43
|
+
|
44
|
+
- if flash[:success]
|
45
|
+
.flash.success= flash[:success]
|
46
|
+
- if flash[:notice]
|
47
|
+
.flash.notice= flash[:notice]
|
48
|
+
- if flash[:alert]
|
49
|
+
.flash.alert= flash[:alert]
|
50
|
+
- if flash[:error]
|
51
|
+
.flash.error= flash[:error]
|
52
|
+
.colmask{:class => @col_layout || @col_layout = "leftcol"}
|
53
|
+
-# options: leftcol, rightcol, threecol, onecol
|
54
|
+
.colmid
|
55
|
+
.colleft
|
56
|
+
.col1
|
57
|
+
= yield
|
58
|
+
.col2
|
59
|
+
= yield :left_col
|
60
|
+
.col3
|
61
|
+
= yield :right_col
|
62
|
+
%footer
|
63
|
+
Copyright ©
|
64
|
+
= Time.now.year
|
65
|
+
= link_to "CrankApps", "http://www.crankapps.com", :target => "_blank"
|
66
|
+
|
File without changes
|
File without changes
|
data/config/routes.rb
CHANGED
@@ -0,0 +1,71 @@
|
|
1
|
+
module Speedo
|
2
|
+
module Generators
|
3
|
+
class InstallGenerator < Rails::Generators::Base
|
4
|
+
source_root File.expand_path("../../../../", __FILE__)
|
5
|
+
|
6
|
+
desc "Installs Speedo files to get you going fast."
|
7
|
+
|
8
|
+
# app/views/layouts/application.html.haml
|
9
|
+
def layout
|
10
|
+
if yes? "Do you want to replace the application layout? [yN]"
|
11
|
+
template 'app/views/layouts/speedo/application.html.haml',
|
12
|
+
'app/views/layouts/application.html.haml'
|
13
|
+
remove_file 'app/views/layouts/application.html.erb'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
# app/assets/stylesheets/speedo.css.scss
|
18
|
+
def copy_stylesheet
|
19
|
+
template 'app/assets/stylesheets/speedo.css.scss',
|
20
|
+
'app/assets/stylesheets/speedo.css.scss'
|
21
|
+
end
|
22
|
+
|
23
|
+
def alter_application_css
|
24
|
+
if_file 'app/assets/stylesheets/application.css' do |path|
|
25
|
+
unless File.read(path).match /require speedo/
|
26
|
+
inject_into_file path, after: '*= require_self' do
|
27
|
+
"\n *= require speedo"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
# app/assets/javascripts/swim.js.coffee
|
34
|
+
def javascript
|
35
|
+
template 'app/assets/javascripts/swim.js.coffee',
|
36
|
+
'app/assets/javascripts/swim.js.coffee'
|
37
|
+
end
|
38
|
+
|
39
|
+
def alter_application_js
|
40
|
+
if_file 'app/assets/javascripts/application.js' do |path|
|
41
|
+
unless File.read(path).match /require speedo/
|
42
|
+
inject_into_file path, before: '//= require_tree .' do
|
43
|
+
"//= require speedo\n"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
# config/locales/speedo.en.yml
|
50
|
+
def locales
|
51
|
+
template 'config/locales/speedo.en.yml',
|
52
|
+
'config/locales/speedo.en.yml'
|
53
|
+
end
|
54
|
+
|
55
|
+
def routes
|
56
|
+
route 'mount Speedo::Engine => "/speedo"'
|
57
|
+
end
|
58
|
+
|
59
|
+
private
|
60
|
+
|
61
|
+
def if_file path
|
62
|
+
if File.exist? path
|
63
|
+
yield path
|
64
|
+
else
|
65
|
+
say "#{path} not found. Please manually require speedo."
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
data/lib/speedo/version.rb
CHANGED
data/lib/speedo.rb
CHANGED
@@ -5,7 +5,6 @@
|
|
5
5
|
%noscript#noscript_warning This site works best with JavaScript enabled. Some features may not be available
|
6
6
|
#wrapper
|
7
7
|
= render 'shared/header'
|
8
|
-
= render 'shared/nav_flash'
|
9
8
|
.colmask{:class => @col_layout || @col_layout = "leftcol"}
|
10
9
|
-# options: leftcol, rightcol, threecol, onecol
|
11
10
|
.colmid
|
Binary file
|