rails-bootstrap-engine 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +35 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +40 -0
  5. data/app/assets/font/FontAwesome.ttf +0 -0
  6. data/app/assets/font/fontawesome-webfont.eot +0 -0
  7. data/app/assets/font/fontawesome-webfont.svg +525 -0
  8. data/app/assets/font/fontawesome-webfont.ttf +0 -0
  9. data/app/assets/font/fontawesome-webfont.woff +0 -0
  10. data/app/assets/font/glyphicons-regular-0.eot +0 -0
  11. data/app/assets/font/glyphicons-regular.eot +0 -0
  12. data/app/assets/font/glyphicons-regular.svg +435 -0
  13. data/app/assets/font/glyphicons-regular.ttf +0 -0
  14. data/app/assets/font/glyphicons-regular.woff +0 -0
  15. data/app/assets/font/glyphiconshalflings-regular-0.eot +0 -0
  16. data/app/assets/font/glyphiconshalflings-regular.eot +0 -0
  17. data/app/assets/font/glyphiconshalflings-regular.svg +175 -0
  18. data/app/assets/font/glyphiconshalflings-regular.ttf +0 -0
  19. data/app/assets/font/glyphiconshalflings-regular.woff +0 -0
  20. data/app/assets/images/apple-touch-icon-114x114-precomposed.png +0 -0
  21. data/app/assets/images/apple-touch-icon-144x144-precomposed.png +0 -0
  22. data/app/assets/images/apple-touch-icon-57x57-precomposed.png +0 -0
  23. data/app/assets/images/apple-touch-icon-72x72-precomposed.png +0 -0
  24. data/app/assets/images/apple-touch-icon-precomposed.png +0 -0
  25. data/app/assets/images/devise.png +0 -0
  26. data/app/assets/javascripts/behaviors.js +23 -0
  27. data/app/assets/javascripts/bootstrap.js +2159 -0
  28. data/app/assets/javascripts/plugins/holder.js +342 -0
  29. data/app/assets/javascripts/plugins/jquery.autosize.js +181 -0
  30. data/app/assets/javascripts/plugins/jquery.toggle.buttons.js +289 -0
  31. data/app/assets/javascripts/rails-bootstrap-engine.js +17 -0
  32. data/app/assets/stylesheets/bootstrap-plugins/bootstrap-jumbotrons.css +95 -0
  33. data/app/assets/stylesheets/bootstrap-plugins/bootstrap-toggle-buttons.css +155 -0
  34. data/app/assets/stylesheets/bootstrap-responsive.css +1092 -0
  35. data/app/assets/stylesheets/bootstrap.css +6044 -0
  36. data/app/assets/stylesheets/devise.css +3 -0
  37. data/app/assets/stylesheets/font-awesome-more-ie7.css +288 -0
  38. data/app/assets/stylesheets/font-awesome-more.css +853 -0
  39. data/app/assets/stylesheets/glyphicons-pro.css +2382 -0
  40. data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-background.css +147 -0
  41. data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-color.css +28 -0
  42. data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-navigation.css +27 -0
  43. data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-overrides.css +4 -0
  44. data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-table.css +29 -0
  45. data/app/assets/stylesheets/orangeweb-bootstrap-toolkit/bootstrap-toolkit-typography.css +30 -0
  46. data/app/assets/stylesheets/rails-bootstrap-engine.css +20 -0
  47. data/app/helpers/bootstrap_alert_helper.rb +64 -0
  48. data/app/helpers/bootstrap_badge_helper.rb +145 -0
  49. data/app/helpers/bootstrap_breadcrumbs_helper.rb +97 -0
  50. data/app/helpers/bootstrap_button_helper.rb +121 -0
  51. data/app/helpers/bootstrap_engine_helper.rb +66 -0
  52. data/app/helpers/bootstrap_form_helpers.rb +55 -0
  53. data/app/helpers/bootstrap_grid_helper.rb +119 -0
  54. data/app/helpers/bootstrap_icon_helper.rb +51 -0
  55. data/app/helpers/bootstrap_label_helper.rb +116 -0
  56. data/app/helpers/bootstrap_link_helper.rb +81 -0
  57. data/app/helpers/bootstrap_nav_helper.rb +90 -0
  58. data/app/helpers/bootstrap_popover_helper.rb +52 -0
  59. data/app/helpers/bootstrap_progressbar_helper.rb +62 -0
  60. data/app/helpers/bootstrap_searchbar_helper.rb +70 -0
  61. data/app/helpers/bootstrap_text_helper.rb +128 -0
  62. data/app/views/devise/confirmations/new.html.erb +16 -0
  63. data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  64. data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  65. data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  66. data/app/views/devise/passwords/edit.html.erb +19 -0
  67. data/app/views/devise/passwords/new.html.erb +15 -0
  68. data/app/views/devise/registrations/edit.html.erb +79 -0
  69. data/app/views/devise/registrations/new.html.erb +7 -0
  70. data/app/views/devise/sessions/new.html.erb +14 -0
  71. data/app/views/devise/shared/_links.erb +25 -0
  72. data/app/views/devise/unlocks/new.html.erb +16 -0
  73. data/app/views/layouts/application.html.erb +96 -0
  74. data/app/views/layouts/devise.html.erb +180 -0
  75. data/config/initializers/simple_form.rb +142 -0
  76. data/config/initializers/simple_form_bootstrap.rb +45 -0
  77. data/config/initializers/will_paginate.rb +28 -0
  78. data/config/locales/pt-BR.yml +217 -0
  79. data/config/locales/simple_form.en.yml +26 -0
  80. data/config/locales/will_paginate.pt-br.yml +5 -0
  81. data/config/routes.rb +2 -0
  82. data/lib/generators/bootstrap_engine/devise/install/install_generator.rb +47 -0
  83. data/lib/generators/bootstrap_engine/devise/install/templates/devise.html.erb +180 -0
  84. data/lib/rails-bootstrap-engine.rb +4 -0
  85. data/lib/rails-bootstrap-engine/engine.rb +4 -0
  86. data/lib/rails-bootstrap-engine/version.rb +3 -0
  87. data/lib/tasks/rails-bootstrap-engine_tasks.rake +4 -0
  88. data/lib/templates/erb/scaffold/_form.html.erb +13 -0
  89. data/test/dummy/README.rdoc +261 -0
  90. data/test/dummy/Rakefile +7 -0
  91. data/test/dummy/app/assets/javascripts/application.js +16 -0
  92. data/test/dummy/app/assets/javascripts/test.js +2 -0
  93. data/test/dummy/app/assets/stylesheets/application.css +14 -0
  94. data/test/dummy/app/assets/stylesheets/test.css +4 -0
  95. data/test/dummy/app/controllers/application_controller.rb +7 -0
  96. data/test/dummy/app/controllers/test_controller.rb +4 -0
  97. data/test/dummy/app/helpers/application_helper.rb +2 -0
  98. data/test/dummy/app/helpers/test_helper.rb +2 -0
  99. data/test/dummy/app/models/user.rb +11 -0
  100. data/test/dummy/app/views/layouts/application.html.erb +90 -0
  101. data/test/dummy/app/views/layouts/devise.html.erb +180 -0
  102. data/test/dummy/app/views/test/index.html.erb +2 -0
  103. data/test/dummy/config.ru +4 -0
  104. data/test/dummy/config/application.rb +62 -0
  105. data/test/dummy/config/boot.rb +10 -0
  106. data/test/dummy/config/database.yml +25 -0
  107. data/test/dummy/config/environment.rb +5 -0
  108. data/test/dummy/config/environments/development.rb +37 -0
  109. data/test/dummy/config/environments/production.rb +67 -0
  110. data/test/dummy/config/environments/test.rb +37 -0
  111. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  112. data/test/dummy/config/initializers/devise.rb +240 -0
  113. data/test/dummy/config/initializers/inflections.rb +15 -0
  114. data/test/dummy/config/initializers/mime_types.rb +5 -0
  115. data/test/dummy/config/initializers/secret_token.rb +7 -0
  116. data/test/dummy/config/initializers/session_store.rb +8 -0
  117. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  118. data/test/dummy/config/locales/devise.en.yml +60 -0
  119. data/test/dummy/config/locales/en.yml +5 -0
  120. data/test/dummy/config/routes.rb +61 -0
  121. data/test/dummy/db/development.sqlite3 +0 -0
  122. data/test/dummy/db/migrate/20130128020557_devise_create_users.rb +46 -0
  123. data/test/dummy/db/schema.rb +34 -0
  124. data/test/dummy/log/development.log +42375 -0
  125. data/test/dummy/public/404.html +26 -0
  126. data/test/dummy/public/422.html +26 -0
  127. data/test/dummy/public/500.html +25 -0
  128. data/test/dummy/public/favicon.ico +0 -0
  129. data/test/dummy/script/rails +6 -0
  130. data/test/dummy/test/fixtures/users.yml +11 -0
  131. data/test/dummy/test/functional/test_controller_test.rb +9 -0
  132. data/test/dummy/test/unit/helpers/test_helper_test.rb +4 -0
  133. data/test/dummy/test/unit/user_test.rb +7 -0
  134. data/test/dummy/tmp/cache/assets/C3E/300/sprockets%2F2e344c0677be6b7212b140861750a434 +0 -0
  135. data/test/dummy/tmp/cache/assets/C51/500/sprockets%2F54522a51515e196c0ea74c652393948d +0 -0
  136. data/test/dummy/tmp/cache/assets/C63/420/sprockets%2F5daa64d9601a1dd14726112003d08364 +0 -0
  137. data/test/dummy/tmp/cache/assets/C79/BC0/sprockets%2F4285c677a500a056b055c187bd551e66 +0 -0
  138. data/test/dummy/tmp/cache/assets/C7F/310/sprockets%2F90949831299d2c1b73a43a1442bed906 +0 -0
  139. data/test/dummy/tmp/cache/assets/C82/E50/sprockets%2F183827018621a62ba5ff81fd772276c5 +0 -0
  140. data/test/dummy/tmp/cache/assets/C89/360/sprockets%2Fbcd93c6868260f0834225e8c57034b59 +0 -0
  141. data/test/dummy/tmp/cache/assets/C9F/670/sprockets%2Fa5133a772163e7f1321877bca922d31a +0 -0
  142. data/test/dummy/tmp/cache/assets/CA4/C80/sprockets%2F1d8eb08550b4245a12704ccb9f068274 +0 -0
  143. data/test/dummy/tmp/cache/assets/CB1/E50/sprockets%2F28c397f922d0af81b393fbf206056462 +0 -0
  144. data/test/dummy/tmp/cache/assets/CC9/FB0/sprockets%2F19690891f5b6cc724835fb913fe779e0 +0 -0
  145. data/test/dummy/tmp/cache/assets/CD4/D10/sprockets%2F6143a55e947c5d1d36b647ba5222d31c +0 -0
  146. data/test/dummy/tmp/cache/assets/CD6/D30/sprockets%2F2237e207a9f1ae1e983e15a0f1b99132 +0 -0
  147. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  148. data/test/dummy/tmp/cache/assets/CD9/1E0/sprockets%2F293460f7bea2aea456231b769212f36f +0 -0
  149. data/test/dummy/tmp/cache/assets/CDD/A30/sprockets%2Fcd69a2143c13a93e76db54ed63422908 +0 -0
  150. data/test/dummy/tmp/cache/assets/CDE/4F0/sprockets%2F8ee5b8c8107426b362b54e84be04063e +0 -0
  151. data/test/dummy/tmp/cache/assets/CDE/930/sprockets%2Fc8ab20177199ce39d3c2570d7111e59c +0 -0
  152. data/test/dummy/tmp/cache/assets/CDE/CF0/sprockets%2F7bf6411e56a335b96e439a238b4da462 +0 -0
  153. data/test/dummy/tmp/cache/assets/CE0/7A0/sprockets%2F021578f8253d2eedd55bd063684dd334 +0 -0
  154. data/test/dummy/tmp/cache/assets/CE3/050/sprockets%2Fce67f45bf13e27654e882270b21463ec +0 -0
  155. data/test/dummy/tmp/cache/assets/CEA/A80/sprockets%2F4a745d213d993e1185d55e26c68deb74 +0 -0
  156. data/test/dummy/tmp/cache/assets/CEF/500/sprockets%2F0d17117bfaf665390bbb203530ce01d2 +0 -0
  157. data/test/dummy/tmp/cache/assets/CF1/C60/sprockets%2Fb888b526e547356dbf4f16835d8a2f34 +0 -0
  158. data/test/dummy/tmp/cache/assets/CF7/A10/sprockets%2F2e3a5af78ce42be8252314603b6c00b1 +0 -0
  159. data/test/dummy/tmp/cache/assets/CF9/2A0/sprockets%2F99d62669bd0b471738e99e43ae564ef1 +0 -0
  160. data/test/dummy/tmp/cache/assets/D04/8E0/sprockets%2F33617ca614d80c0cfe33277e05a5f35d +0 -0
  161. data/test/dummy/tmp/cache/assets/D0E/2B0/sprockets%2F859557e033595cf5b9eb2e73330bba0a +0 -0
  162. data/test/dummy/tmp/cache/assets/D15/9D0/sprockets%2F270af34895cfd4b388c9aad55e043464 +0 -0
  163. data/test/dummy/tmp/cache/assets/D15/D20/sprockets%2F952bcc41195db55c99be6c93f40b7513 +0 -0
  164. data/test/dummy/tmp/cache/assets/D16/860/sprockets%2Fb45890d98668c132fee5cae4b15320d9 +0 -0
  165. data/test/dummy/tmp/cache/assets/D19/EF0/sprockets%2F895b6d0967c1205395e5b9a6bd56a4dc +0 -0
  166. data/test/dummy/tmp/cache/assets/D1A/C00/sprockets%2F9599a6464c5dac7fd6093f1a46fb0444 +0 -0
  167. data/test/dummy/tmp/cache/assets/D25/5A0/sprockets%2Fbf2f92c27945d0f2897f94e546346cda +0 -0
  168. data/test/dummy/tmp/cache/assets/D2B/E00/sprockets%2Febafd146d810419e351347cae0001ed8 +0 -0
  169. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  170. data/test/dummy/tmp/cache/assets/D3A/F20/sprockets%2F04a7fb58c68be319d3f3b5c7f14200d6 +0 -0
  171. data/test/dummy/tmp/cache/assets/D3B/440/sprockets%2F9d61f7f02a3a5dab16a07f463d95563c +0 -0
  172. data/test/dummy/tmp/cache/assets/D3D/C40/sprockets%2F427a390419acfd9b1dbf265e6e6f3430 +0 -0
  173. data/test/dummy/tmp/cache/assets/D3E/210/sprockets%2F6ad484a0d5fd94a6970ca33e2cc15297 +0 -0
  174. data/test/dummy/tmp/cache/assets/D3E/300/sprockets%2F66271e5e0e2a7aa2937ba5d8e4a2962f +0 -0
  175. data/test/dummy/tmp/cache/assets/D3F/CB0/sprockets%2Fc58312cf90fc5e15d416de5bd74e9411 +0 -0
  176. data/test/dummy/tmp/cache/assets/D42/9F0/sprockets%2F956410b8172fa4592bc3cbf5f71a6f5f +0 -0
  177. data/test/dummy/tmp/cache/assets/D43/B00/sprockets%2Ff724bee040039676a1aae696a8f06e7f +0 -0
  178. data/test/dummy/tmp/cache/assets/D45/930/sprockets%2F9593e26322d3ac909618faa6fc8cf50b +0 -0
  179. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  180. data/test/dummy/tmp/cache/assets/D52/8C0/sprockets%2F24944cec626a1b59d98e9b46b7cd91e6 +0 -0
  181. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  182. data/test/dummy/tmp/cache/assets/D61/1C0/sprockets%2Fa159272faca84b51889c6ab0ca11c3d6 +0 -0
  183. data/test/dummy/tmp/cache/assets/D63/EA0/sprockets%2Ffc8a31fb16444bc623a7afd34b27f065 +0 -0
  184. data/test/dummy/tmp/cache/assets/D65/600/sprockets%2Fdaa0e3c217673cb0ebb89d97438a1b80 +0 -0
  185. data/test/dummy/tmp/cache/assets/D66/B00/sprockets%2Fa9c44b4284c7b601c36ba69562accfb4 +0 -0
  186. data/test/dummy/tmp/cache/assets/D68/7C0/sprockets%2F1866195f0d2b5f990a3a2131acdffdb7 +0 -0
  187. data/test/dummy/tmp/cache/assets/D6A/940/sprockets%2Ff12f9168fe02cef00d215dc87d5e7c11 +0 -0
  188. data/test/dummy/tmp/cache/assets/D70/530/sprockets%2Faa6133344adde2f6796dd06c2378f9ca +0 -0
  189. data/test/dummy/tmp/cache/assets/D71/D40/sprockets%2Fdf25d07e57783faca718d3355e12caf5 +0 -0
  190. data/test/dummy/tmp/cache/assets/D86/090/sprockets%2Faad76d1c0cd8f8a86962f721f999b09f +0 -0
  191. data/test/dummy/tmp/cache/assets/D8A/770/sprockets%2Fad6b282a5df70217f707adde40a0a17d +0 -0
  192. data/test/dummy/tmp/cache/assets/D90/440/sprockets%2F7fa7e142c264fa45fe720aa47b5b0dd2 +0 -0
  193. data/test/dummy/tmp/cache/assets/D97/250/sprockets%2F45bb8c0384f075aecc8dc2e5670ef0a2 +0 -0
  194. data/test/dummy/tmp/cache/assets/D9C/C10/sprockets%2F462dea729a9984d242ab7b6ace1fc0b6 +0 -0
  195. data/test/dummy/tmp/cache/assets/DA6/D40/sprockets%2Fa6d2c6c99e2fa333eb87ee7560ae941b +0 -0
  196. data/test/dummy/tmp/cache/assets/DAA/D20/sprockets%2F1df903901857cf4ceb8bee9d1ec42d68 +0 -0
  197. data/test/dummy/tmp/cache/assets/DAC/770/sprockets%2F473547f2b9f6b2bc6d0fa06f79af57fd +0 -0
  198. data/test/dummy/tmp/cache/assets/DB8/D70/sprockets%2F2aae8f796d8b8290c88e66fffb09c14e +0 -0
  199. data/test/dummy/tmp/cache/assets/DBC/2C0/sprockets%2Fb7023d141154daa082e2fceeaaf99ea4 +0 -0
  200. data/test/dummy/tmp/cache/assets/DC6/3A0/sprockets%2F692eb3cc77b2eeba07ab6c36295a6bd1 +0 -0
  201. data/test/dummy/tmp/cache/assets/DC7/F30/sprockets%2F6c6f0bca21e5a0e8f4b54d3de3f3a478 +0 -0
  202. data/test/dummy/tmp/cache/assets/DCA/AC0/sprockets%2F409ab48cd1b8b124e8f6e0b5cb3ff35f +0 -0
  203. data/test/dummy/tmp/cache/assets/DCD/210/sprockets%2Fff66c21af8a114cfaa477375cfbe6e51 +0 -0
  204. data/test/dummy/tmp/cache/assets/DCF/360/sprockets%2F60babcedd5e76636d61b5849d3cc7c0d +0 -0
  205. data/test/dummy/tmp/cache/assets/DDA/5A0/sprockets%2Feffe9d8758c34ac5b08d5ab37107e6de +0 -0
  206. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  207. data/test/dummy/tmp/cache/assets/DDC/A10/sprockets%2Faac7e62fb8f54520e0fd8fdace647877 +0 -0
  208. data/test/dummy/tmp/cache/assets/DDF/9F0/sprockets%2Fe4c64d625c9988fc2ecc7fb0c6196bdc +0 -0
  209. data/test/dummy/tmp/cache/assets/DFB/510/sprockets%2Fbaa9a5abc4aeafa76fa6076c476b5099 +0 -0
  210. data/test/dummy/tmp/cache/assets/DFE/1E0/sprockets%2Fafc6a7ac607cdccf69b2f41c81462c9d +0 -0
  211. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  212. data/test/dummy/tmp/cache/assets/E20/550/sprockets%2Fe1b1ce6c37d22bb088bb09c6eddfa51d +0 -0
  213. data/test/dummy/tmp/cache/assets/E7B/7F0/sprockets%2Fb5adae1ffa3fd56d153fea3a52aaff23 +0 -0
  214. data/test/integration/navigation_test.rb +10 -0
  215. data/test/rails-bootstrap-engine_test.rb +7 -0
  216. data/test/test_helper.rb +15 -0
  217. metadata +423 -0
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env rake
2
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
3
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
+
5
+ require File.expand_path('../config/application', __FILE__)
6
+
7
+ Dummy::Application.load_tasks
@@ -0,0 +1,16 @@
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
+ //= require rails-bootstrap-engine
16
+ //= require_tree .
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,14 @@
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 rails-bootstrap-engine
13
+ *= require_tree .
14
+ */
@@ -0,0 +1,4 @@
1
+ /*
2
+ Place all the styles related to the matching controller here.
3
+ They will automatically be included in application.css.
4
+ */
@@ -0,0 +1,7 @@
1
+ class ApplicationController < ActionController::Base
2
+
3
+ protect_from_forgery
4
+
5
+ before_filter :authenticate_user!
6
+
7
+ end
@@ -0,0 +1,4 @@
1
+ class TestController < ApplicationController
2
+ def index
3
+ end
4
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,2 @@
1
+ module TestHelper
2
+ end
@@ -0,0 +1,11 @@
1
+ class User < ActiveRecord::Base
2
+ # Include default devise modules. Others available are:
3
+ # :token_authenticatable, :confirmable,
4
+ # :lockable, :timeoutable and :omniauthable, :validatable
5
+ devise :database_authenticatable, :registerable,
6
+ :recoverable, :rememberable, :trackable
7
+
8
+ # Setup accessible (or protected) attributes for your model
9
+ attr_accessible :email, :password, :password_confirmation, :remember_me
10
+ # attr_accessible :title, :body
11
+ end
@@ -0,0 +1,90 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title><%= content_for?(:title) ? yield(:title) : "Dummy" %></title>
8
+ <%= csrf_meta_tags %>
9
+
10
+ <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
11
+ <!--[if lt IE 9]>
12
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js" type="text/javascript"></script>
13
+ <![endif]-->
14
+
15
+ <%= stylesheet_link_tag "application", :media => "all" %>
16
+
17
+ <!-- For third-generation iPad with high-resolution Retina display: -->
18
+ <!-- Size should be 144 x 144 pixels -->
19
+ <%= favicon_link_tag 'images/apple-touch-icon-144x144-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '144x144' %>
20
+
21
+ <!-- For iPhone with high-resolution Retina display: -->
22
+ <!-- Size should be 114 x 114 pixels -->
23
+ <%= favicon_link_tag 'images/apple-touch-icon-114x114-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '114x114' %>
24
+
25
+ <!-- For first- and second-generation iPad: -->
26
+ <!-- Size should be 72 x 72 pixels -->
27
+ <%= favicon_link_tag 'images/apple-touch-icon-72x72-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '72x72' %>
28
+
29
+ <!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
30
+ <!-- Size should be 57 x 57 pixels -->
31
+ <%= favicon_link_tag 'images/apple-touch-icon-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png' %>
32
+
33
+ <!-- For all other devices -->
34
+ <!-- Size should be 32 x 32 pixels -->
35
+ <%= favicon_link_tag 'favicon.ico', :rel => 'shortcut icon' %>
36
+ </head>
37
+ <body>
38
+
39
+ <div class="navbar navbar-fixed-top">
40
+ <div class="navbar-inner">
41
+ <div class="container">
42
+ <a class="btn btn-navbar" data-target=".nav-collapse" data-toggle="collapse">
43
+ <span class="icon-bar"></span>
44
+ <span class="icon-bar"></span>
45
+ <span class="icon-bar"></span>
46
+ </a>
47
+ <a class="brand" href="#">Dummy</a>
48
+ <div class="container nav-collapse">
49
+ <ul class="nav">
50
+ <li><%= link_to "Link1", "/path1" %></li>
51
+ <li><%= link_to "Link2", "/path2" %></li>
52
+ <li><%= link_to "Link3", "/path3" %></li>
53
+ </ul>
54
+ </div><!--/.nav-collapse -->
55
+ </div>
56
+ </div>
57
+ </div>
58
+
59
+ <div class="container">
60
+ <div class="row">
61
+ <div class="span9">
62
+ <%= bootstrap_flash %>
63
+ <%= yield %>
64
+ </div>
65
+ <div class="span3">
66
+ <div class="well sidebar-nav">
67
+ <h3>Sidebar</h3>
68
+ <ul class="nav nav-list">
69
+ <li class="nav-header">Sidebar</li>
70
+ <li><%= link_to "Link1", "/path1" %></li>
71
+ <li><%= link_to "Link2", "/path2" %></li>
72
+ <li><%= link_to "Link3", "/path3" %></li>
73
+ </ul>
74
+ </div><!--/.well -->
75
+ </div><!--/span-->
76
+ </div><!--/row-->
77
+
78
+ <footer>
79
+ <p>&copy; Company 2012</p>
80
+ </footer>
81
+
82
+ </div> <!-- /container -->
83
+
84
+ <!-- Javascripts
85
+ ================================================== -->
86
+ <!-- Placed at the end of the document so the pages load faster -->
87
+ <%= javascript_include_tag "application" %>
88
+
89
+ </body>
90
+ </html>
@@ -0,0 +1,180 @@
1
+ <!DOCTYPE html>
2
+ <html lang="pt-br">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title><%= yield(:header_title) %></title>
8
+
9
+ <%= csrf_meta_tags %>
10
+
11
+ <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
12
+ <!--[if lt IE 9]>
13
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js" type="text/javascript"></script>
14
+ <![endif]-->
15
+
16
+ <%= stylesheet_link_tag "application", :media => "all" %>
17
+
18
+ <%= javascript_include_tag 'https://www.google.com/jsapi' %>
19
+
20
+ <!-- For third-generation iPad with high-resolution Retina display: -->
21
+ <!-- Size should be 144 x 144 pixels -->
22
+ <%= favicon_link_tag 'apple-touch-icon-144x144-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '144x144' %>
23
+
24
+ <!-- For iPhone with high-resolution Retina display: -->
25
+ <!-- Size should be 114 x 114 pixels -->
26
+ <%= favicon_link_tag 'apple-touch-icon-114x114-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '114x114' %>
27
+
28
+ <!-- For first- and second-generation iPad: -->
29
+ <!-- Size should be 72 x 72 pixels -->
30
+ <%= favicon_link_tag 'apple-touch-icon-72x72-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '72x72' %>
31
+
32
+ <!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
33
+ <!-- Size should be 57 x 57 pixels -->
34
+ <%= favicon_link_tag 'apple-touch-icon-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png' %>
35
+
36
+ <!-- For all other devices -->
37
+ <!-- Size should be 32 x 32 pixels -->
38
+ <%= favicon_link_tag 'favicon.ico', :rel => 'shortcut icon' %>
39
+ </head>
40
+ <body id="devise">
41
+
42
+ <div class="navbar navbar-top">
43
+ <div class="navbar-inner">
44
+ <div class="container">
45
+ <a class="btn btn-navbar" data-target=".nav-collapse" data-toggle="collapse">
46
+ <span class="icon-bar"></span>
47
+ <span class="icon-bar"></span>
48
+ <span class="icon-bar"></span>
49
+ </a>
50
+ <a class="brand" href="#"><%= application_brand %></a>
51
+ <div class="container nav-collapse">
52
+ <ul class="nav">
53
+ <li><%= link_to "Link1", "/path1" %></li>
54
+ <li><%= link_to "Link2", "/path2" %></li>
55
+ <li><%= link_to "Link3", "/path3" %></li>
56
+ </ul>
57
+ </div><!--/.nav-collapse -->
58
+ </div>
59
+ </div>
60
+ </div>
61
+
62
+ <div class="container">
63
+
64
+ <div class="row-fluid">
65
+
66
+ <div class="span8">
67
+
68
+ <% if content_for?(:hero) then %>
69
+ <%= content_tag :div, :class => "hero-unit" do %>
70
+ <%= yield(:hero) %>
71
+ <% end %>
72
+ <% end %>
73
+
74
+ <% if content_for?(:page_header) then %>
75
+ <%= content_tag :div, :class => "page-header" do %>
76
+ <%= yield(:page_header) %>
77
+ <% end %>
78
+ <% end %>
79
+
80
+ <%= yield %>
81
+
82
+ </div>
83
+ <div class="span4">
84
+
85
+ <% unless user_signed_in? then %>
86
+
87
+ <%- if controller_name == 'sessions' %>
88
+ <div id="login-bar" class="well sidebar-nav">
89
+ <h3>Entrar</h3>
90
+ <%= simple_form_for( resource, :as => resource_name, :url => session_path(resource_name) ) do |f| %>
91
+ <div class="row-fluid">
92
+ <div class="span12">
93
+ <%= f.input :email, :required => false, :autofocus => true, :label => "Email", :placeholder => "Email de Acesso", :input_html => {:class => "span12"} %>
94
+ <%= f.input :password, :required => false, :label => "Senha", :placeholder => "Digite sua Senha", :input_html => {:class => "span12"} %>
95
+ </div>
96
+ </div>
97
+ <div class="row-fluid">
98
+ <div class="span4"><%= f.button :submit, "Entrar", :class => "btn btn-primary span12" %></div>
99
+ <div class="span8"><%= link_to "Esqueceu a senha?", new_password_path(resource_name), :class => "btn btn-warning span12" %></div>
100
+ </div>
101
+ <% end %>
102
+ <hr />
103
+ <div class="row-fluid">
104
+ <div class="span12">
105
+ <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
106
+ <%= link_to "Cadastre-se", new_registration_path(resource_name), :class => "btn btn-success btn-block" %>
107
+ <% end -%>
108
+ </div>
109
+ </div>
110
+ </div><!-- #login-bar -->
111
+ <% end %>
112
+
113
+
114
+ <%- if controller_name == 'registrations' %>
115
+ <div id="register-bar" class="well sidebar-nav">
116
+ <h3>Cadastre-se</h3>
117
+ <%= simple_form_for( resource, :as => resource_name, :url => registration_path(resource_name) ) do |f| %>
118
+ <div class="row-fluid">
119
+ <div class="span12">
120
+ <%= f.input :email, :required => false, :autofocus => true, :label => "Email", :placeholder => "Email de Acesso", :input_html => {:class => "span12"} %>
121
+ <%= f.input :password, :required => false, :label => "Senha", :placeholder => "Digite sua Senha", :input_html => {:class => "span12"} %>
122
+ <%= f.input :password_confirmation, :required => false, :label => "Confirme a Senha", :placeholder => "Digite sua Senha", :input_html => {:class => "span12"} %>
123
+ </div>
124
+ </div>
125
+ <div class="row-fluid">
126
+ <div class="span12"><%= f.button :submit, "Criar minha Conta", :class => "btn btn-primary span12" %></div>
127
+ </div>
128
+ <% end %>
129
+ <hr />
130
+ <div class="row-fluid">
131
+ <div class="span12">
132
+ <h4>Já tem uma conta? Então <small><%= link_to "Entre...", new_session_path(resource_name), :class => "btn btn-success" %></small></h4>
133
+ </div>
134
+ </div>
135
+ </div><!-- #login-bar -->
136
+ <% end %>
137
+
138
+ <% end %>
139
+
140
+
141
+ <div class="well sidebar-nav">
142
+ <ul class="nav nav-list">
143
+ <li class="nav-header">Acesso ao Sistema</li>
144
+ <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
145
+ <li><%= link_to "Cadastre-se", new_registration_path(resource_name) %></li>
146
+ <% end -%>
147
+ <%- if controller_name != 'sessions' %>
148
+ <li><%= link_to "Entrar", new_session_path(resource_name) %></li>
149
+ <% end -%>
150
+ <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
151
+ <li><%= link_to "Instruções de confirmação", new_confirmation_path(resource_name) %></li>
152
+ <% end -%>
153
+ <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
154
+ <li><%= link_to "Desbloquear minha Conta", new_unlock_path(resource_name) %></li>
155
+ <% end -%>
156
+ <% if user_signed_in? then %>
157
+ <li><a href="<%= edit_user_registration_path %>">Minha Conta</a></li>
158
+ <% end %>
159
+ </ul>
160
+ </div><!--/.well -->
161
+
162
+
163
+
164
+ </div><!--/span-->
165
+
166
+ </div><!--/row-->
167
+
168
+ <footer>
169
+ <%= copyright_info %>
170
+ </footer>
171
+
172
+ </div> <!-- /container -->
173
+
174
+ <!-- Javascripts
175
+ ================================================== -->
176
+ <!-- Placed at the end of the document so the pages load faster -->
177
+ <%= javascript_include_tag "application" %>
178
+
179
+ </body>
180
+ </html>
@@ -0,0 +1,2 @@
1
+ <h1>Test#index</h1>
2
+ <p>Find me in app/views/test/index.html.erb</p>
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
@@ -0,0 +1,62 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ Bundler.require
6
+ require "rails-bootstrap-engine"
7
+
8
+ module Dummy
9
+ class Application < Rails::Application
10
+ # Settings in config/environments/* take precedence over those specified here.
11
+ # Application configuration should go into files in config/initializers
12
+ # -- all .rb files in that directory are automatically loaded.
13
+
14
+ # Custom directories with classes and modules you want to be autoloadable.
15
+ # config.autoload_paths += %W(#{config.root}/extras)
16
+
17
+ # Only load the plugins named here, in the order given (default is alphabetical).
18
+ # :all can be used as a placeholder for all plugins not explicitly named.
19
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
20
+
21
+ # Activate observers that should always be running.
22
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
23
+
24
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
25
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
26
+ config.time_zone = 'Brasilia'
27
+
28
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
29
+ config.i18n.load_path += Dir[Rails.root.join('config/locales/**/*.yml').to_s]
30
+ config.i18n.available_locales = :"pt-BR"
31
+ config.i18n.default_locale = :"pt-BR"
32
+
33
+ # Configure the default encoding used in templates for Ruby 1.9.
34
+ config.encoding = "utf-8"
35
+
36
+ # Configure sensitive parameters which will be filtered from the log file.
37
+ config.filter_parameters += [:password]
38
+
39
+ config.railties_order = [RailsBootstrapEngine::Engine, :main_app, :all]
40
+
41
+ # Enable escaping HTML in JSON.
42
+ config.active_support.escape_html_entities_in_json = true
43
+
44
+ # Use SQL instead of Active Record's schema dumper when creating the database.
45
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
46
+ # like if you have constraints or database-specific column types
47
+ # config.active_record.schema_format = :sql
48
+
49
+ # Enforce whitelist mode for mass assignment.
50
+ # This will create an empty whitelist of attributes available for mass-assignment for all models
51
+ # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
52
+ # parameters by using an attr_accessible or attr_protected declaration.
53
+ config.active_record.whitelist_attributes = true
54
+
55
+ # Enable the asset pipeline
56
+ config.assets.enabled = true
57
+
58
+ # Version of your assets, change this if you want to expire all your assets
59
+ config.assets.version = '1.0'
60
+ end
61
+ end
62
+
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)