leather 0.2.22 → 0.2.23

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 (203) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -0
  3. data/app/assets/javascripts/leather.js +13 -0
  4. data/app/assets/javascripts/{leather.js.coffee → off_canvas.js.coffee} +0 -0
  5. data/app/assets/stylesheets/{leather/_devise.css.scss → _devise.css.scss} +0 -1
  6. data/app/assets/stylesheets/{leather/_off_canvas.css.scss → _off_canvas.css.scss} +0 -0
  7. data/app/assets/stylesheets/{leather/_variables.css.scss → _variables.css.scss} +0 -0
  8. data/app/assets/stylesheets/leather.css.scss +3 -3
  9. data/app/controllers/leather/application_controller.rb +9 -0
  10. data/app/helpers/leather/application_helper.rb +28 -0
  11. data/app/views/leather/application/_table.html.haml +23 -0
  12. data/{templates/views/pages → app/views/leather/application}/ui_kit.html.haml +18 -15
  13. data/app/views/leather/{_dropdown_nav_item.html.haml → bootstrap_components/_dropdown_nav_item.html.haml} +0 -0
  14. data/app/views/leather/{_modal.html.haml → bootstrap_components/_modal.html.haml} +0 -0
  15. data/app/views/leather/{_modal_body.html.haml → bootstrap_components/_modal_body.html.haml} +0 -0
  16. data/app/views/leather/{_modal_footer.html.haml → bootstrap_components/_modal_footer.html.haml} +0 -0
  17. data/app/views/leather/{_modal_header.html.haml → bootstrap_components/_modal_header.html.haml} +0 -0
  18. data/app/views/leather/{_nav_item.html.haml → bootstrap_components/_nav_item.html.haml} +0 -0
  19. data/app/views/leather/{_nav_list.html.haml → bootstrap_components/_nav_list.html.haml} +0 -0
  20. data/app/views/leather/{_navbar.html.haml → bootstrap_components/_navbar.html.haml} +0 -0
  21. data/config/routes.rb +3 -0
  22. data/lib/generators/leather/install/install_generator.rb +7 -3
  23. data/lib/leather.rb +2 -11
  24. data/lib/leather/{action_controller.rb → action_controller_extension.rb} +1 -1
  25. data/lib/leather/engine.rb +9 -0
  26. data/lib/leather/leather_helpers.rb +16 -8
  27. data/lib/leather/railtie.rb +1 -1
  28. data/lib/leather/version.rb +1 -1
  29. data/test/dummy/README.rdoc +28 -0
  30. data/test/dummy/Rakefile +6 -0
  31. data/test/dummy/app/assets/javascripts/application.js +16 -0
  32. data/test/dummy/app/assets/stylesheets/application.css.scss +3 -0
  33. data/{templates → test/dummy/app/assets/stylesheets}/bootstrap_variables.css.scss +0 -0
  34. data/test/dummy/app/controllers/application_controller.rb +5 -0
  35. data/test/dummy/app/helpers/application_helper.rb +2 -0
  36. data/test/dummy/app/models/user.rb +6 -0
  37. data/test/dummy/app/views/application/_navigation.html.haml +10 -0
  38. data/{templates → test/dummy/app}/views/devise/passwords/edit.html.erb +0 -0
  39. data/{templates → test/dummy/app}/views/devise/passwords/new.html.erb +0 -0
  40. data/{templates → test/dummy/app}/views/devise/registrations/new.html.erb +0 -0
  41. data/{templates → test/dummy/app}/views/devise/sessions/new.html.erb +0 -0
  42. data/{templates → test/dummy/app}/views/devise/shared/_links.html.erb +0 -0
  43. data/{templates → test/dummy/app}/views/devise/shared/_welcome.html.erb +1 -1
  44. data/test/dummy/app/views/layouts/application.html.erb +15 -0
  45. data/test/dummy/app/views/pages/home.html.haml +2 -0
  46. data/test/dummy/bin/bundle +3 -0
  47. data/test/dummy/bin/rails +4 -0
  48. data/test/dummy/bin/rake +4 -0
  49. data/test/dummy/config.ru +4 -0
  50. data/test/dummy/config/application.rb +23 -0
  51. data/test/dummy/config/boot.rb +5 -0
  52. data/test/dummy/config/database.yml +25 -0
  53. data/test/dummy/config/environment.rb +5 -0
  54. data/test/dummy/config/environments/development.rb +37 -0
  55. data/test/dummy/config/environments/production.rb +82 -0
  56. data/test/dummy/config/environments/test.rb +39 -0
  57. data/test/dummy/config/initializers/assets.rb +8 -0
  58. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  59. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  60. data/test/dummy/config/initializers/devise.rb +259 -0
  61. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  62. data/{templates → test/dummy/config/initializers}/high_voltage.rb +0 -0
  63. data/test/dummy/config/initializers/inflections.rb +16 -0
  64. data/test/dummy/config/initializers/mime_types.rb +4 -0
  65. data/test/dummy/config/initializers/session_store.rb +3 -0
  66. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  67. data/test/dummy/config/locales/devise.en.yml +60 -0
  68. data/test/dummy/config/locales/en.yml +23 -0
  69. data/test/dummy/config/routes.rb +4 -0
  70. data/test/dummy/config/secrets.yml +22 -0
  71. data/test/dummy/db/development.sqlite3 +0 -0
  72. data/test/dummy/db/migrate/20140814162425_devise_create_users.rb +42 -0
  73. data/test/dummy/db/schema.rb +34 -0
  74. data/test/dummy/log/development.log +11369 -0
  75. data/test/dummy/public/404.html +67 -0
  76. data/test/dummy/public/422.html +67 -0
  77. data/test/dummy/public/500.html +66 -0
  78. data/test/dummy/public/favicon.ico +0 -0
  79. data/test/dummy/test/fixtures/users.yml +11 -0
  80. data/test/dummy/test/models/user_test.rb +7 -0
  81. data/test/dummy/tmp/cache/assets/development/sass/1641d3150ac5429005b865a93b3a8f1f2fd752bc/application.css.scssc +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sass/1fe1d31e5c11da98ccb41fd2426b10e396cae9ef/application.css.scssc +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sass/1fe1d31e5c11da98ccb41fd2426b10e396cae9ef/bootstrap_variables.css.scssc +1701 -0
  84. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_alerts.scssc +0 -0
  85. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_badges.scssc +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_breadcrumbs.scssc +0 -0
  87. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_button-groups.scssc +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_buttons.scssc +0 -0
  89. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_carousel.scssc +0 -0
  90. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_close.scssc +0 -0
  91. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_code.scssc +0 -0
  92. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_component-animations.scssc +0 -0
  93. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_dropdowns.scssc +0 -0
  94. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_forms.scssc +0 -0
  95. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_glyphicons.scssc +0 -0
  96. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_grid.scssc +0 -0
  97. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_input-groups.scssc +0 -0
  98. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_jumbotron.scssc +0 -0
  99. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_labels.scssc +0 -0
  100. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_list-group.scssc +0 -0
  101. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_media.scssc +0 -0
  102. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_mixins.scssc +0 -0
  103. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_modals.scssc +0 -0
  104. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_navbar.scssc +0 -0
  105. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_navs.scssc +0 -0
  106. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_normalize.scssc +0 -0
  107. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_pager.scssc +0 -0
  108. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_pagination.scssc +0 -0
  109. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_panels.scssc +0 -0
  110. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_popovers.scssc +0 -0
  111. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_print.scssc +0 -0
  112. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_progress-bars.scssc +0 -0
  113. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_responsive-embed.scssc +0 -0
  114. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_responsive-utilities.scssc +0 -0
  115. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_scaffolding.scssc +0 -0
  116. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_tables.scssc +0 -0
  117. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_thumbnails.scssc +0 -0
  118. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_tooltip.scssc +0 -0
  119. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_type.scssc +0 -0
  120. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_utilities.scssc +0 -0
  121. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_variables.scssc +0 -0
  122. data/test/dummy/tmp/cache/assets/development/sass/7d709f89007018e9b896a11840fb57fe1faf39e8/_wells.scssc +0 -0
  123. data/test/dummy/tmp/cache/assets/development/sass/c6c02afe3e484db0157d0b969d3fd5d5c62e4d94/bootstrap.scssc +0 -0
  124. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_alerts.scssc +0 -0
  125. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_background-variant.scssc +0 -0
  126. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_border-radius.scssc +0 -0
  127. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_buttons.scssc +0 -0
  128. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_center-block.scssc +0 -0
  129. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_clearfix.scssc +0 -0
  130. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_forms.scssc +0 -0
  131. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_gradients.scssc +0 -0
  132. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_grid-framework.scssc +0 -0
  133. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_grid.scssc +0 -0
  134. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_hide-text.scssc +0 -0
  135. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_image.scssc +0 -0
  136. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_labels.scssc +0 -0
  137. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_list-group.scssc +0 -0
  138. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_nav-divider.scssc +0 -0
  139. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_nav-vertical-align.scssc +0 -0
  140. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_opacity.scssc +0 -0
  141. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_pagination.scssc +0 -0
  142. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_panels.scssc +0 -0
  143. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_progress-bar.scssc +0 -0
  144. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_reset-filter.scssc +0 -0
  145. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_resize.scssc +0 -0
  146. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_responsive-visibility.scssc +0 -0
  147. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_size.scssc +0 -0
  148. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_tab-focus.scssc +0 -0
  149. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_table-row.scssc +0 -0
  150. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_text-emphasis.scssc +0 -0
  151. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_text-overflow.scssc +0 -0
  152. data/test/dummy/tmp/cache/assets/development/sass/e936609740201ce4d037df2bc4e0d0583a9db099/_vendor-prefixes.scssc +0 -0
  153. data/test/dummy/tmp/cache/assets/development/sass/f79010467975f9f0c74079973e2e6ac43e352b55/_devise.css.scssc +0 -0
  154. data/test/dummy/tmp/cache/assets/development/sass/f79010467975f9f0c74079973e2e6ac43e352b55/_off_canvas.css.scssc +0 -0
  155. data/test/dummy/tmp/cache/assets/development/sass/f79010467975f9f0c74079973e2e6ac43e352b55/_variables.css.scssc +0 -0
  156. data/test/dummy/tmp/cache/assets/development/sass/f79010467975f9f0c74079973e2e6ac43e352b55/leather.css.scssc +0 -0
  157. data/test/dummy/tmp/cache/assets/development/sprockets/046291387bc2d2809757a336ec0fe4dd +0 -0
  158. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  159. data/test/dummy/tmp/cache/assets/development/sprockets/1aa37d6306939c6bd4d2d3dbd1a972b4 +0 -0
  160. data/test/dummy/tmp/cache/assets/development/sprockets/1c74f524ef1c9664c5e027ecfb2f534e +0 -0
  161. data/test/dummy/tmp/cache/assets/development/sprockets/1ecf6ce46912d5c0e24343940a72fce7 +0 -0
  162. data/test/dummy/tmp/cache/assets/development/sprockets/274c66f2ef77dedcb7dc72e5c80b654c +0 -0
  163. data/test/dummy/tmp/cache/assets/development/sprockets/2a614fefcf86c505c98bd491b8057fc0 +0 -0
  164. data/test/dummy/tmp/cache/assets/development/sprockets/2b143e009dd8e8cf9dce01e50a29ecc0 +0 -0
  165. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  166. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  167. data/test/dummy/tmp/cache/assets/development/sprockets/47420553469a85f5ed442ccb08588099 +0 -0
  168. data/test/dummy/tmp/cache/assets/development/sprockets/48cea382a3ed21081e139131c519e3e9 +0 -0
  169. data/test/dummy/tmp/cache/assets/development/sprockets/497b53ce078e6c220cb7d7fdc5ffd06d +0 -0
  170. data/test/dummy/tmp/cache/assets/development/sprockets/52e5cce67e5ce8d22cd7cf062f1396bf +0 -0
  171. data/test/dummy/tmp/cache/assets/development/sprockets/563354ac2bc7c194f7b61e1db43bb636 +0 -0
  172. data/test/dummy/tmp/cache/assets/development/sprockets/7379a30babe5f5562913dd7aaf455d0d +0 -0
  173. data/test/dummy/tmp/cache/assets/development/sprockets/7f63bbb4eb4a18d7b34c5a4d00574deb +0 -0
  174. data/test/dummy/tmp/cache/assets/development/sprockets/8ab512c9b33ac90e699b73469d71f061 +0 -0
  175. data/test/dummy/tmp/cache/assets/development/sprockets/93e73cad26dda36a65545f659023ed43 +0 -0
  176. data/test/dummy/tmp/cache/assets/development/sprockets/94e8a6b05d99d35f7b50a0670a388a3f +0 -0
  177. data/test/dummy/tmp/cache/assets/development/sprockets/a43f717bccf7814b0f5dd8b1e65f8bcf +0 -0
  178. data/test/dummy/tmp/cache/assets/development/sprockets/a4c1a1b7f7b3ef8eef5e91d15021acfc +0 -0
  179. data/test/dummy/tmp/cache/assets/development/sprockets/aa8b8b91fdc14339221eb215870567a4 +0 -0
  180. data/test/dummy/tmp/cache/assets/development/sprockets/ab4135af88f861c1cbff29b547bf4ea6 +0 -0
  181. data/test/dummy/tmp/cache/assets/development/sprockets/af8d23558ed6bffb1663e09f8173783c +0 -0
  182. data/test/dummy/tmp/cache/assets/development/sprockets/bcca522c6302f184f12fe0e8a7d7e71a +0 -0
  183. data/test/dummy/tmp/cache/assets/development/sprockets/c13fc73ceafa45876a901b3e775b83ae +0 -0
  184. data/test/dummy/tmp/cache/assets/development/sprockets/c8698346bbe3b8299a17e9922ef54b8d +0 -0
  185. data/test/dummy/tmp/cache/assets/development/sprockets/ce2bf14384e46d791ba077ef9af694bb +0 -0
  186. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  187. data/test/dummy/tmp/cache/assets/development/sprockets/d23d368477e7164786f1c4ea07ba217c +0 -0
  188. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  189. data/test/dummy/tmp/cache/assets/development/sprockets/d99551528f517a3d6c158eedd1afd880 +0 -0
  190. data/test/dummy/tmp/cache/assets/development/sprockets/e4169f8ade49b1355c22470d8c27338e +0 -0
  191. data/test/dummy/tmp/cache/assets/development/sprockets/ee270497fcf07e6ea24dde5f1de5bb3f +0 -0
  192. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  193. data/test/dummy/tmp/cache/assets/development/sprockets/f8cbf91fc43cafc23d7976c4634215d4 +0 -0
  194. data/test/dummy/tmp/cache/assets/development/sprockets/fb2054989d359cd4c8dc2d2c59e98333 +0 -0
  195. data/test/dummy/tmp/cache/assets/development/sprockets/fc0d528a667b47ff79c6a1159488c7f6 +0 -0
  196. data/test/dummy/tmp/pids/server.pid +1 -0
  197. data/test/integration/navigation_test.rb +10 -0
  198. data/test/leather_test.rb +7 -0
  199. data/test/test_helper.rb +15 -0
  200. metadata +387 -64
  201. data/app/helpers/navigation_helper.rb +0 -9
  202. data/templates/views/pages/_table.html.erb +0 -30
  203. data/templates/views/pages/home.html.haml +0 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8bb423299bf6486551b8c9c8dc228774fdd406f4
4
- data.tar.gz: 602bfc871ff7f938d6a37b5c0601a7682d1f9621
3
+ metadata.gz: f18cf91495cad3cc992f66a760b95775051ffeb1
4
+ data.tar.gz: 119962da6f96d96986785c1fd2502e89f307bb37
5
5
  SHA512:
6
- metadata.gz: f277bcf121a1950ef31f87f71328e8c1ac0b29d8ae27045f8c447af153dd0c8c2691619155811c2c7c45a96eaf71d2f049c1ce6bea5bb48cfb3fdcc3e7e13564
7
- data.tar.gz: 276c47a1af8273f6467a264b74c99a6f15f1d10ea7681b3a33563e0c450276ddd8e2d0a522c874ee23243e4fa9223f140a7cb114289261befaa688ffaedc9758
6
+ metadata.gz: dcad54ce669f7fa878af10424ed23cb1fd67efa917c98b13a4ff78c6fb83bba0623f9768dfa15adfdb5c6cb0dc91de31d06aa0565b322b53fff03e68795153ab
7
+ data.tar.gz: bb0c57da6f9e9cf4f1bd28905b9fde129943f03e1441a44849aaaa2a25bdfb010e904de8ddabc9e002cba6e8e3cbf60f3857721d7091befecc23ead1bbb13cec
data/Rakefile CHANGED
@@ -14,6 +14,8 @@ RDoc::Task.new(:rdoc) do |rdoc|
14
14
  rdoc.rdoc_files.include('lib/**/*.rb')
15
15
  end
16
16
 
17
+ APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
18
+ load 'rails/tasks/engine.rake'
17
19
 
18
20
 
19
21
 
@@ -0,0 +1,13 @@
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
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_directory .
@@ -1,3 +1,3 @@
1
- @import "leather/variables.css.scss";
2
- @import "leather/devise";
3
- @import "leather/off_canvas";
1
+ @import "variables.css.scss";
2
+ @import "devise";
3
+ @import "off_canvas";
@@ -0,0 +1,9 @@
1
+ module Leather
2
+ class ApplicationController < ::ApplicationController
3
+ layout 'application'
4
+
5
+ def ui_kit
6
+ set_tab :home
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,28 @@
1
+ module Leather
2
+ module ApplicationHelper
3
+ def method_missing method, *args, &block
4
+ puts "LOOKING FOR ROUTES #{method}"
5
+ if method.to_s.end_with?('_path') or method.to_s.end_with?('_url')
6
+ if main_app.respond_to?(method)
7
+ main_app.send(method, *args)
8
+ else
9
+ super
10
+ end
11
+ else
12
+ super
13
+ end
14
+ end
15
+
16
+ def respond_to?(method)
17
+ if method.to_s.end_with?('_path') or method.to_s.end_with?('_url')
18
+ if main_app.respond_to?(method)
19
+ true
20
+ else
21
+ super
22
+ end
23
+ else
24
+ super
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,23 @@
1
+ %table{class: "table #{table_class}"}
2
+ %thead
3
+ %tr
4
+ %th #
5
+ %th First Name
6
+ %th Last Name
7
+ %th Username
8
+ %tbody
9
+ %tr
10
+ %td 1
11
+ %td Mark
12
+ %td Otto
13
+ %td @mdo
14
+ %tr
15
+ %td 2
16
+ %td Jacob
17
+ %td Thornton
18
+ %td @fat
19
+ %tr
20
+ %td 3
21
+ %td Larry
22
+ %td the Bird
23
+ %td @twitter
@@ -1,4 +1,11 @@
1
- = navbar "Brand", root_url, container_mode: :with, class: "navbar-default navbar-static-top" do
1
+ .jumbotron
2
+ .container
3
+ %h1 Hello, world!
4
+ %p This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.
5
+ %p
6
+ %a.btn.btn-primary.btn-lg{role: "button"} Learn more
7
+
8
+ = navbar "Brand", "#", container_mode: :with, class: "navbar-default navbar-static-top" do
2
9
  = nav_list do
3
10
  = nav_item 'Link', '#'
4
11
  = nav_item 'Link', '#'
@@ -21,7 +28,7 @@
21
28
  %li.divider
22
29
  = nav_item 'Separated link', '#'
23
30
 
24
- = navbar "Brand", root_url, container_mode: :with, class: "navbar-inverse navbar-static-top" do
31
+ = navbar "Brand", "#", container_mode: :with, class: "navbar-inverse navbar-static-top" do
25
32
  = nav_list do
26
33
  = nav_item 'Link', '#'
27
34
  = nav_item 'Link', '#'
@@ -44,23 +51,19 @@
44
51
  %li.divider
45
52
  = nav_item 'Separated link', '#'
46
53
 
47
- .jumbotron
48
- .container
49
- %h1 Hello, world!
50
- %p This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.
51
- %p
52
- %a.btn.btn-primary.btn-lg{role: "button"} Learn more
53
54
  .container
55
+ %h1.page-header Breadcrumbs
54
56
  %ol.breadcrumb
55
57
  %li
56
58
  %a{href: "#"} Home
57
59
  %li
58
60
  %a{href: "#"} Library
59
61
  %li.active Data
62
+
60
63
  .container
61
64
  %h1.page-header Off-Canvas Menus
62
- = link_to "Left", "#", data: { toggle: "off-canvas", side: "left"}, class: "btn btn-primary"
63
- = link_to "Right", "#", data: { toggle: "off-canvas", side: "right"}, class: "btn btn-primary"
65
+ = link_to "Left", "#", data: { toggle: "off-canvas", side: "left"}, class: "btn btn-primary", style: "z-index: 9005;"
66
+ = link_to "Right", "#", data: { toggle: "off-canvas", side: "right"}, class: "btn btn-primary", style: "z-index: 9005;"
64
67
 
65
68
  .off-canvas.off-canvas-left
66
69
  TEST
@@ -135,15 +138,15 @@
135
138
  %button.btn.btn-link{type: "button"} Link
136
139
  %h1.page-header Tables
137
140
  %h3 Basic Table
138
- = render 'pages/table', table_class: ""
141
+ = render 'table', table_class: ""
139
142
  %h3 Striped Table
140
- = render 'pages/table', table_class: "table-striped"
143
+ = render 'table', table_class: "table-striped"
141
144
  %h3 Bordered Table
142
- = render 'pages/table', table_class: "table-bordered"
145
+ = render 'table', table_class: "table-bordered"
143
146
  %h3 Hover Rows
144
- = render 'pages/table', table_class: "table-hover"
147
+ = render 'table', table_class: "table-hover"
145
148
  %h3 Condensed Table
146
- = render 'pages/table', table_class: "table-condensed"
149
+ = render 'table', table_class: "table-condensed"
147
150
  %h1.page-header Forms
148
151
  %form{role: "form"}
149
152
  .form-group
data/config/routes.rb ADDED
@@ -0,0 +1,3 @@
1
+ Leather::Engine.routes.draw do
2
+ get :ui_kit, to: "application#ui_kit", as: :ui_kit
3
+ end
@@ -2,15 +2,19 @@ module Leather
2
2
  class InstallGenerator < Rails::Generators::Base
3
3
  source_root File.expand_path('../../../../../templates/', __FILE__)
4
4
 
5
- def copy_views
5
+ def mount
6
+ route "mount Leather::Engine => '/'"
7
+ end
8
+
9
+ def copy_devise_views
6
10
  directory("views/devise", Rails.root.join("app", "views", "devise"))
7
11
  end
8
12
 
9
- def copy_ui_kit
13
+ def copy_pages
10
14
  directory("views/pages", Rails.root.join("app", "views", "pages"))
11
15
  end
12
16
 
13
- def copy_ui_kit_styles
17
+ def copy_bootstrap_variables
14
18
  copy_file("bootstrap_variables.css.scss", Rails.root.join("app", "assets", "stylesheets", "bootstrap_variables.css.scss"))
15
19
  end
16
20
 
data/lib/leather.rb CHANGED
@@ -1,16 +1,7 @@
1
- require 'devise'
2
- require 'bootstrap-sass'
3
- require 'high_voltage'
4
- require 'haml-rails'
5
- require 'leather/action_controller'
1
+ require 'leather/engine'
2
+ require 'leather/action_controller_extension'
6
3
  require 'leather/railtie'
7
4
 
8
5
  module Leather
9
6
  autoload :LeatherHelpers, "leather/leather_helpers"
10
-
11
- class Engine < ::Rails::Engine
12
- initializer "leather.helpers" do
13
- ActionView::Base.send :include, Leather::LeatherHelpers
14
- end
15
- end
16
7
  end
@@ -1,5 +1,5 @@
1
1
  module Leather
2
- module ActionController
2
+ module ActionControllerExtension
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  included do
@@ -0,0 +1,9 @@
1
+ module Leather
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace Leather
4
+
5
+ initializer "leather.helpers" do
6
+ ActionView::Base.send :include, Leather::LeatherHelpers
7
+ end
8
+ end
9
+ end
@@ -1,28 +1,36 @@
1
1
  module Leather
2
2
  module LeatherHelpers
3
+ def active_class(href, options)
4
+ if (options[:nav_id].present? && current_tab?(options[:nav_id][0], options[:nav_id][1])) || current_page?(href)
5
+ 'active'
6
+ else
7
+ ''
8
+ end
9
+ end
10
+
3
11
  def modal_toggle(text, id = 'modal', html_options = {})
4
12
  link_to text, "##{id}", data: { toggle: "modal" }, class: html_options[:class]
5
13
  end
6
14
 
7
15
  def modal(id = 'modal', html_options = {}, &block)
8
- render partial: 'leather/modal', locals: { id: id, block: capture(&block), html_options: html_options }
16
+ render partial: 'leather/bootstrap_components/modal', locals: { id: id, block: capture(&block), html_options: html_options }
9
17
  end
10
18
 
11
19
  def modal_header(title = '', &block)
12
- render partial: 'leather/modal_header', locals: { title: title }
20
+ render partial: 'leather/bootstrap_components/modal_header', locals: { title: title }
13
21
  end
14
22
 
15
23
  def modal_body(&block)
16
- render partial: 'leather/modal_body', locals: { block: capture(&block) }
24
+ render partial: 'leather/bootstrap_components/modal_body', locals: { block: capture(&block) }
17
25
  end
18
26
 
19
27
  def modal_footer(&block)
20
- render partial: 'leather/modal_footer', locals: { block: capture(&block) }
28
+ render partial: 'leather/bootstrap_components/modal_footer', locals: { block: capture(&block) }
21
29
  end
22
30
 
23
31
  def navbar(title, brand_link, html_options = {}, &block)
24
32
  html_options = { class: "navbar-default" }.merge(html_options)
25
- render partial: 'leather/navbar', locals: { title: title, brand_link: brand_link, block: capture(&block), html_options: html_options }
33
+ render partial: 'leather/bootstrap_components/navbar', locals: { title: title, brand_link: brand_link, block: capture(&block), html_options: html_options }
26
34
  end
27
35
 
28
36
  def navbar_with_container(html_options = {}, &block)
@@ -36,15 +44,15 @@ module Leather
36
44
  end
37
45
 
38
46
  def nav_list(html_options = {}, &block)
39
- render partial: 'leather/nav_list', locals: { block: capture(&block), html_options: html_options }
47
+ render partial: 'leather/bootstrap_components/nav_list', locals: { block: capture(&block), html_options: html_options }
40
48
  end
41
49
 
42
50
  def nav_item(text, href, options = {})
43
- render partial: 'leather/nav_item', locals: { text: text, href: href, options: options }
51
+ render partial: 'leather/bootstrap_components/nav_item', locals: { text: text, href: href, options: options }
44
52
  end
45
53
 
46
54
  def dropdown_nav_item(text, href, options = {}, &block)
47
- render partial: 'leather/dropdown_nav_item', locals: { block: capture(&block), text: text, href: href, options: options }
55
+ render partial: 'leather/bootstrap_components/dropdown_nav_item', locals: { block: capture(&block), text: text, href: href, options: options }
48
56
  end
49
57
  end
50
58
  end
@@ -8,5 +8,5 @@ module Leather
8
8
  end
9
9
 
10
10
  ActiveSupport.on_load(:action_controller) do
11
- include Leather::ActionController
11
+ include Leather::ActionControllerExtension
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module Leather
2
- VERSION = "0.2.22"
2
+ VERSION = "0.2.23"
3
3
  end
@@ -0,0 +1,28 @@
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ Rails.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
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require 'jquery'
14
+ //= require 'jquery_ujs'
15
+ //= require 'leather'
16
+ //= require_tree .
@@ -0,0 +1,3 @@
1
+ @import "bootstrap_variables";
2
+ @import "bootstrap";
3
+ @import "leather";
@@ -0,0 +1,5 @@
1
+ class ApplicationController < ActionController::Base
2
+ # Prevent CSRF attacks by raising an exception.
3
+ # For APIs, you may want to use :null_session instead.
4
+ protect_from_forgery with: :exception
5
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,6 @@
1
+ class User < ActiveRecord::Base
2
+ # Include default devise modules. Others available are:
3
+ # :confirmable, :lockable, :timeoutable and :omniauthable
4
+ devise :database_authenticatable, :registerable,
5
+ :recoverable, :rememberable, :trackable, :validatable
6
+ end
@@ -0,0 +1,10 @@
1
+ = navbar "Main App", page_path("home"), container_mode: :with, class: "navbar-default navbar-static-top" do
2
+ = nav_list do
3
+ = nav_item 'Home', page_path("home")
4
+ = nav_item 'UI Kit', leather.ui_kit_path
5
+ = nav_list class: 'navbar-right' do
6
+ - if user_signed_in?
7
+ = nav_item 'Sign Out', destroy_user_session_path, method: :delete
8
+ - else
9
+ = nav_item 'Sign In', new_user_session_path
10
+ = nav_item 'Sign Up', new_user_registration_path