templet_rails 0.1.0 → 0.2.0

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 (276) hide show
  1. checksums.yaml +5 -5
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +334 -269
  4. data/Rakefile +21 -7
  5. data/app/assets/config/templet_rails_manifest.js +2 -0
  6. data/app/assets/javascripts/templet_rails/application.js +15 -0
  7. data/app/assets/stylesheets/templet_rails/application.css +15 -0
  8. data/app/controllers/templet/json_rendering_helpers.rb +12 -0
  9. data/app/controllers/templet/rendering_helpers.rb +53 -0
  10. data/app/controllers/templet/viewer_call_string.rb +144 -0
  11. data/app/controllers/templet/viewer_call_string_class.rb +65 -0
  12. data/app/controllers/templet/viewer_responders.rb +121 -0
  13. data/app/controllers/templet_rails/application_controller.rb +5 -0
  14. data/app/helpers/templet/constants.rb +54 -0
  15. data/app/helpers/templet/forms/bs_form.rb +73 -0
  16. data/app/helpers/templet/forms/bs_form_errors.rb +38 -0
  17. data/app/helpers/templet/forms/bs_form_field.rb +114 -0
  18. data/app/helpers/templet/forms/bs_form_group.rb +115 -0
  19. data/app/helpers/templet/layouts/html_rails.rb +36 -0
  20. data/app/helpers/templet/links.rb +28 -0
  21. data/app/helpers/templet/links/bs_btn_class.rb +61 -0
  22. data/app/helpers/templet/links/bs_link_set_base.rb +168 -0
  23. data/app/helpers/templet/links/bs_link_set_collection.rb +21 -0
  24. data/app/helpers/templet/links/bs_link_set_navigation.rb +62 -0
  25. data/app/helpers/templet/links/rest_link_procs.rb +163 -0
  26. data/app/helpers/templet/links/rest_link_procs_parent.rb +39 -0
  27. data/app/helpers/templet/links/rest_link_procs_sets.rb +30 -0
  28. data/app/helpers/templet/links/rest_link_text.rb +102 -0
  29. data/app/helpers/templet/links/rest_path.rb +90 -0
  30. data/app/helpers/templet/mixins.rb +9 -0
  31. data/app/helpers/templet/mixins/bs.rb +11 -0
  32. data/app/helpers/templet/mixins/bs/grid.rb +53 -0
  33. data/app/helpers/templet/mixins/bs/lists.rb +77 -0
  34. data/app/helpers/templet/mixins/field_procs.rb +140 -0
  35. data/app/helpers/templet/mixins/html_presenters.rb +82 -0
  36. data/app/helpers/templet/require_all.rb +45 -0
  37. data/app/helpers/templet/utils/html_search_form.rb +53 -0
  38. data/app/helpers/templet/utils/link_set_factory.rb +46 -0
  39. data/app/helpers/templet/utils/link_set_factory_wrapper.rb +53 -0
  40. data/app/helpers/templet/utils/list_model_parents.rb +27 -0
  41. data/app/helpers/templet/utils/navbar_form.rb +26 -0
  42. data/app/helpers/templet/utils/selected_wrapper.rb +40 -0
  43. data/app/helpers/templet/viewer.rb +11 -0
  44. data/app/helpers/templet/viewer/meta_model.rb +66 -0
  45. data/app/helpers/templet/viewer/meta_model_defaults.rb +56 -0
  46. data/app/helpers/templet/viewer/presenters.rb +44 -0
  47. data/app/helpers/templet/viewer/rest_actions.rb +24 -0
  48. data/app/helpers/templet/viewer_base.rb +111 -0
  49. data/app/helpers/templet/viewer_rest.rb +144 -0
  50. data/app/helpers/templet_helper.rb +10 -0
  51. data/app/helpers/templet_rails/application_helper.rb +4 -0
  52. data/app/jobs/templet_rails/application_job.rb +4 -0
  53. data/app/mailers/templet_rails/application_mailer.rb +6 -0
  54. data/app/models/templet_rails/application_record.rb +5 -0
  55. data/app/views/layouts/templet_rails/application.html.erb +16 -0
  56. data/config/routes.rb +2 -0
  57. data/lib/generators/templet/controller/controller_generator.rb +70 -68
  58. data/lib/generators/templet/core_install/USAGE +14 -0
  59. data/lib/generators/templet/core_install/core_install_generator.rb +77 -0
  60. data/lib/generators/templet/core_rspec/USAGE +5 -8
  61. data/lib/generators/templet/core_rspec/core_rspec_generator.rb +32 -47
  62. data/lib/generators/templet/destroy/USAGE +1 -1
  63. data/lib/generators/templet/destroy/destroy_generator.rb +87 -84
  64. data/lib/generators/templet/install/USAGE +16 -0
  65. data/lib/generators/templet/install/install_generator.rb +103 -0
  66. data/lib/generators/templet/routes/routes_generator.rb +43 -41
  67. data/lib/generators/templet/rspec/rspec_generator.rb +1 -0
  68. data/lib/generators/templet/scaffold/scaffold_generator.rb +66 -64
  69. data/lib/generators/templet/shared/core_helpers.rb +10 -0
  70. data/lib/generators/templet/shared/model_fields.rb +2 -2
  71. data/lib/generators/templet/templates/core/app/base_viewer.rb +1 -1
  72. data/lib/generators/templet/templates/core/app/{panel → layouts}/layout_base.rb +3 -3
  73. data/lib/generators/templet/templates/core/app/{panel → layouts}/layout_header.rb +3 -1
  74. data/lib/generators/templet/templates/core/app/{panel → layouts}/layout_header_sidebar.rb +2 -1
  75. data/lib/generators/templet/templates/core/app/{panel/nav.rb → layouts/navbar.rb} +2 -2
  76. data/lib/generators/templet/templates/core/app/layouts/navbar_args_option.rb +32 -0
  77. data/lib/generators/templet/templates/core/app/{link_sets/navbar.rb → layouts/navbar_links.rb} +2 -2
  78. data/lib/generators/templet/templates/core/app/{panel → layouts}/options_config.rb +3 -3
  79. data/lib/generators/templet/templates/core/app/layouts/panel/flash_messages.rb +35 -0
  80. data/lib/generators/templet/templates/core/app/layouts/panel/show_parents_option.rb +24 -0
  81. data/lib/generators/templet/templates/core/app/layouts/panel/sidebar_links_option.rb +26 -0
  82. data/lib/generators/templet/templates/core/spec/layouts/flash_messages_spec.rb +18 -0
  83. data/lib/generators/templet/templates/core/spec/layouts/navbar_spec.rb +19 -0
  84. data/lib/generators/templet/templates/core/spec/support/apis/api_helper.rb +2 -0
  85. data/lib/generators/templet/templates/core/spec/support/apis/shared_examples_a_json_controller.rb +1 -1
  86. data/lib/generators/templet/templates/core/spec/support/{viewer → shared}/partial_test_helpers.rb +0 -0
  87. data/lib/generators/templet/templates/core/templet/viewer_base.rb +3 -3
  88. data/lib/generators/templet/viewer/viewer_generator.rb +60 -58
  89. data/lib/tasks/templet_rails_tasks.rake +4 -0
  90. data/lib/templet_rails.rb +1 -1
  91. data/lib/templet_rails/engine.rb +5 -0
  92. data/lib/templet_rails/version.rb +1 -1
  93. data/spec/dummy/Rakefile +6 -0
  94. data/spec/dummy/app/assets/config/manifest.js +4 -0
  95. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  96. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  97. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  98. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  99. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  100. data/spec/dummy/app/controllers/answers_controller.rb +86 -0
  101. data/spec/dummy/app/controllers/application_controller.rb +2 -0
  102. data/spec/dummy/app/controllers/categories_controller.rb +80 -0
  103. data/spec/dummy/app/controllers/questions_controller.rb +86 -0
  104. data/spec/dummy/app/helpers/app.rb +4 -0
  105. data/spec/dummy/app/helpers/app/answer_viewer.rb +21 -0
  106. data/spec/dummy/app/helpers/app/base_viewer.rb +7 -0
  107. data/spec/dummy/app/helpers/app/category_viewer.rb +26 -0
  108. data/spec/dummy/app/helpers/app/layouts/layout_base.rb +40 -0
  109. data/spec/dummy/app/helpers/app/layouts/layout_header.rb +24 -0
  110. data/spec/dummy/app/helpers/app/layouts/layout_header_sidebar.rb +19 -0
  111. data/spec/dummy/app/helpers/app/layouts/navbar.rb +55 -0
  112. data/spec/dummy/app/helpers/app/layouts/navbar_args_option.rb +32 -0
  113. data/spec/dummy/app/helpers/app/layouts/navbar_links.rb +12 -0
  114. data/spec/dummy/app/helpers/app/layouts/options_config.rb +19 -0
  115. data/spec/dummy/app/helpers/app/layouts/panel/flash_messages.rb +35 -0
  116. data/spec/dummy/app/helpers/app/layouts/panel/show_parents_option.rb +24 -0
  117. data/spec/dummy/app/helpers/app/layouts/panel/sidebar_links_option.rb +26 -0
  118. data/spec/dummy/app/helpers/app/question_viewer.rb +26 -0
  119. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  120. data/spec/dummy/app/jobs/application_job.rb +2 -0
  121. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  122. data/spec/dummy/app/models/answer.rb +12 -0
  123. data/spec/dummy/app/models/application_record.rb +3 -0
  124. data/spec/dummy/app/models/category.rb +11 -0
  125. data/spec/dummy/app/models/question.rb +15 -0
  126. data/spec/dummy/app/views/layouts/application.html.erb +15 -0
  127. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  128. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  129. data/spec/dummy/bin/bundle +3 -0
  130. data/spec/dummy/bin/rails +4 -0
  131. data/spec/dummy/bin/rake +4 -0
  132. data/spec/dummy/bin/setup +36 -0
  133. data/spec/dummy/bin/update +31 -0
  134. data/spec/dummy/bin/yarn +11 -0
  135. data/spec/dummy/config.ru +5 -0
  136. data/spec/dummy/config/application.rb +30 -0
  137. data/spec/dummy/config/boot.rb +5 -0
  138. data/spec/dummy/config/cable.yml +10 -0
  139. data/spec/dummy/config/database.yml +25 -0
  140. data/spec/dummy/config/environment.rb +5 -0
  141. data/spec/dummy/config/environments/development.rb +61 -0
  142. data/spec/dummy/config/environments/production.rb +94 -0
  143. data/spec/dummy/config/environments/test.rb +46 -0
  144. data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
  145. data/spec/dummy/config/initializers/assets.rb +14 -0
  146. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  147. data/spec/dummy/config/initializers/content_security_policy.rb +25 -0
  148. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  149. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  150. data/spec/dummy/config/initializers/inflections.rb +16 -0
  151. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  152. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  153. data/spec/dummy/config/locales/en.yml +33 -0
  154. data/spec/dummy/config/puma.rb +34 -0
  155. data/spec/dummy/config/routes.rb +9 -0
  156. data/spec/dummy/config/spring.rb +6 -0
  157. data/spec/dummy/config/storage.yml +34 -0
  158. data/spec/dummy/db/development.sqlite3 +0 -0
  159. data/spec/dummy/db/migrate/20190709192619_create_categories.rb +9 -0
  160. data/spec/dummy/db/migrate/20190709192656_create_questions.rb +12 -0
  161. data/spec/dummy/db/migrate/20190709192737_create_answers.rb +13 -0
  162. data/spec/dummy/db/schema.rb +42 -0
  163. data/spec/dummy/db/test.sqlite3 +0 -0
  164. data/spec/dummy/log/development.log +64 -0
  165. data/spec/dummy/log/test.log +40792 -0
  166. data/spec/dummy/package.json +5 -0
  167. data/spec/dummy/public/404.html +67 -0
  168. data/spec/dummy/public/422.html +67 -0
  169. data/spec/dummy/public/500.html +66 -0
  170. data/{lib/generators/templet/templates/core/controllers/.keep → spec/dummy/public/apple-touch-icon-precomposed.png} +0 -0
  171. data/spec/dummy/public/apple-touch-icon.png +0 -0
  172. data/spec/dummy/public/favicon.ico +0 -0
  173. data/spec/dummy/spec/apis/answers_controller_spec.rb +17 -0
  174. data/spec/dummy/spec/apis/categories_controller_spec.rb +13 -0
  175. data/spec/dummy/spec/apis/questions_controller_spec.rb +15 -0
  176. data/spec/dummy/spec/helpers/app/answer_viewer_spec.rb +18 -0
  177. data/spec/dummy/spec/helpers/app/category_viewer_spec.rb +14 -0
  178. data/spec/dummy/spec/helpers/app/layouts/flash_messages_spec.rb +18 -0
  179. data/spec/dummy/spec/helpers/app/layouts/navbar_spec.rb +19 -0
  180. data/spec/dummy/spec/helpers/app/question_viewer_spec.rb +16 -0
  181. data/spec/dummy/spec/support/apis/api_helper.rb +15 -0
  182. data/spec/dummy/spec/support/apis/shared_examples_a_json_controller.rb +196 -0
  183. data/spec/dummy/spec/support/templet/partial_test_helpers.rb +32 -0
  184. data/spec/dummy/spec/support/templet/shared_examples_a_viewer.rb +105 -0
  185. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-6/-6-48LISBeQVJvpEXNgFstDrCriEFNmvje6XhidzlV4.cache +1 -0
  186. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-D/-DLE9y_1ICajcEaHcprHYBO8vjXpHySH_56FSb0SLOs.cache +0 -0
  187. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-Y/-YJ1ILDQvu3hOKkF0VR9K_z04e2-EVHglO0MAFS8gpQ.cache +1 -0
  188. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-_/-_7FgdEon9WttcnvoyQAysmonCHN7FxsrcuDa5OTUJQ.cache +1 -0
  189. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0u/0u-iWymOJvpggI1uY7Na3322xwcjNY7egB-czjV96m4.cache +2 -0
  190. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0x/0xArd189AygdGItqWO0_5BfinFQjLZjwyVsAGWqOgKg.cache +1 -0
  191. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2S/2SfjLWkOp2BGM0OzwsshKpnXI8rlJFOV6ZJsIszRn6k.cache +1 -0
  192. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3h/3hFAACevvXtDja9zz3rMK6gA1MD1I7_puWyRRkV7sLk.cache +2 -0
  193. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4o/4oNwzIrltWrfajciBz7JHd5RT5_XVv04L6NdaBGN794.cache +3 -0
  194. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7F/7F3o6QQqoI0bDk6-A5qMN8LCZQALddlu23KiRWBxtWk.cache +0 -0
  195. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Af/AfFBDeKpi4wSUc7rcjxfjPbEgV6GOGXTjeZhHrfDX48.cache +0 -0
  196. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Bf/BfD6ZVgFq-kWDMMVb2EE5ZAKgsgn1VUR9oVxD0hHVMI.cache +0 -0
  197. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Bo/Bogjbc_D5J-6_m5KEgeXt_GHc-IbUt1_FDWP4PHV0P8.cache +1 -0
  198. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DF/DF3HgsSD9LO1Bz8d3GJi_G6wBExmsnBJ6b1pvZEGE7w.cache +1 -0
  199. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DO/DO8Gqh32jK2GrO9uIlH7qvDkelVw0VM8CTSOUj6iUEo.cache +1 -0
  200. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/GC/GCNwk_ABiY0z51bz8iC8tqLLWKhQwxW4-JLNKv-SRe0.cache +1 -0
  201. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Gl/Gls_Zud1kxq7p08FGBfzalbaLMlLBl28bOYebh7Ljrg.cache +0 -0
  202. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Gm/GmHHk4YNC0G2V_5gQZp0U6mKFPxGSgL7fwWI3_fajrk.cache +1 -0
  203. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Gr/GreB3WHN8MyWMDFGNyqJJcxGblgo-5XepsEHvdJSQGI.cache +1 -0
  204. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache +2 -0
  205. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Hd/HdvsElcHSt7aKjG9jocgIQJEvBjBbeSZ8HntI1pc38o.cache +1 -0
  206. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Iv/IvR5RxSTQkxfGWSoy5S2s7wO5u5qwCJ5mNAhqNJtJDY.cache +0 -0
  207. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/JS/JSYyQZJzLNqpmVR--ZDUW6PY7_HflyFFHDAOLenxlP4.cache +1 -0
  208. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jx/JxJXzSistcpH4S_9CbGx_wyjVTaE77ZDDfOc4uTfvdM.cache +0 -0
  209. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/MH/MHCZUSVJq62YPmcVVkfjp2B5uH_nDL7snLl4yqvlSJY.cache +1 -0
  210. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/MY/MY5theanttko1gCnW9vKb0Z1GkJn8Ofk149HwOt0UAM.cache +0 -0
  211. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Mn/MnGg5XDll2jo-E_CTC1htiNc0hOY6z80_bwGCvpYTXk.cache +1 -0
  212. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Nt/NtYu5CjAvU5ZHxSOn6Q4LPukD3hBE-3vYe30d_uSBzM.cache +1 -0
  213. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Nu/NuIepb7qomZzBDAJMUROsshKo8TJxdmFR4yOe64W58w.cache +1 -0
  214. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/R7/R7ngeIqpdwSWkbjbxxzh6B-KczkWMcxYMIkj5inxrV8.cache +1 -0
  215. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/S9/S9MhILnM64qd2M9Z92TrNMtw7VUWZxf3H367OO8rlhs.cache +2 -0
  216. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SI/SIZUy2mtjUm_G1YIulRCovzgkCwV1eoR2NLiYcsR1Ws.cache +0 -0
  217. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Sl/SlECThrSAExfICiFGVi-zu240BVDaUldaRs4qcj354U.cache +0 -0
  218. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/St/St6dTA4niiCDLnnArKZV38uZNFf6MbEZ_jHGC-Upft0.cache +0 -0
  219. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/T6/T6p-BnPmMCmpJdaqrjWmLMsBW8SNJpSW6w-Azc3XGVk.cache +1 -0
  220. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Vs/VsZPCEai1GtOT-vHjxMS8kAP9ASG5i_2O_EP76uI7Qs.cache +0 -0
  221. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Vv/Vv6dack32HV3tIZ_6F4BF8Mrrnb7wZEG4VlEKumQ6L0.cache +2 -0
  222. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Wp/WpV6mJwJX9dwIFJGLoJoa-gXNe1-ZHusE9SwvnWysa8.cache +0 -0
  223. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Wy/Wya0wl0Q2nXYb5-bC5Fbo0sDZfKb3415AjtSjld7fQI.cache +1 -0
  224. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/b7/b7j7TIOE1nnqvMku0QePWFrwCkaKkNpxkiWST6PAplo.cache +1 -0
  225. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ck/ckDOh-FroVE8r1fwUNWmnRconIREuVdmkZEFkaP9KfU.cache +1 -0
  226. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eN/eNQPQP-9gB3xzxJBsG7soV6Ie0YZ3gxIS97PgYtZVT8.cache +0 -0
  227. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gb/gbUMPMF8S0OQVsFHyAjHpHVEg-3iZzTVIQZDmfq-ycE.cache +1 -0
  228. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/if/ifyb5SlIS8vkACz_6P0uTOGijMB4C5TyFWmrMq3DYIg.cache +2 -0
  229. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jg/jg-s5YLdnojCtHqzfDTsvcy6UHewDRl1X09qlGyvyag.cache +1 -0
  230. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ko/koPyQus8Oqrx18bnLj-5nJrKvFf6FDDQbv2qEa7Bl7M.cache +0 -0
  231. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lG/lGRRazgrFErFx1PkfDlca6r-0MGQR40i0tq0Wgm2FNU.cache +1 -0
  232. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lS/lStvx9Beg2l4s8L-QdTSKuc5_qQPQAZPnIcRI7JkpPE.cache +2 -0
  233. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lZ/lZIacHrJV5bDohEHsVOXDGIDrUH2h4YvwV9g-MWmh3k.cache +3 -0
  234. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lq/lqM4-wfprvp5FEBp1pSm88Jwx-Vb2oJab2rjLtUcIyM.cache +1 -0
  235. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +2 -0
  236. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +2 -0
  237. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ps/psGFyjvQcs8JpIV8BDeCqQfHaLYgIgSAi86n4RrFpFs.cache +1 -0
  238. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/r1/r1IIabhuPhgB3n8V3ZMRN0SqIsXJ8bH0ABTRzHTG1SU.cache +2 -0
  239. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vt/vtskp0QTt72oDQNM6mYZ8pCclh2HICHeYZ1QtDvC5xo.cache +1 -0
  240. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wi/win_v0ZNu-l7AoRx8w3ls1xcy0mUExLBVMCSr5oaJFc.cache +2 -0
  241. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yo/yoggubxI12fIM1o5TtxUialrUN-LWOfRaV_tqc1HAC4.cache +0 -0
  242. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zH/zHnHpZP25wEHaF3mI_M9RGH1zeCApf6mwhLB3Lku1zs.cache +3 -0
  243. data/spec/dummy/tmp/development_secret.txt +1 -0
  244. data/spec/factories/answers.rb +10 -0
  245. data/spec/factories/categories.rb +5 -0
  246. data/spec/factories/questions.rb +8 -0
  247. data/spec/helpers/templet/forms/bs_form_errors_spec.rb +18 -0
  248. data/spec/helpers/templet/forms/bs_form_spec.rb +58 -0
  249. data/spec/helpers/templet/layout/html_rails_spec.rb +64 -0
  250. data/spec/helpers/templet/links/bs_link_set_collection_spec.rb +79 -0
  251. data/spec/helpers/templet/links/rest_link_procs_params_spec.rb +68 -0
  252. data/spec/helpers/templet/links/rest_link_procs_parents_spec.rb +78 -0
  253. data/spec/helpers/templet/links/rest_link_procs_spec.rb +140 -0
  254. data/spec/models/answer_spec.rb +9 -0
  255. data/spec/models/category_spec.rb +9 -0
  256. data/spec/models/question_spec.rb +9 -0
  257. data/spec/rails_helper.rb +61 -0
  258. data/spec/spec_helper.rb +108 -0
  259. data/spec/support/templet/model_parent_helpers.rb +36 -0
  260. data/spec/support/templet/partial_test_helpers.rb +32 -0
  261. data/spec/support/templet/rest_link_procs_assignments.rb +43 -0
  262. data/spec/support/templet/rest_link_procs_helpers.rb +15 -0
  263. metadata +470 -38
  264. data/.gitignore +0 -8
  265. data/.travis.yml +0 -5
  266. data/Gemfile +0 -6
  267. data/LICENSE.txt +0 -21
  268. data/bin/console +0 -14
  269. data/bin/setup +0 -8
  270. data/lib/generators/templet/core/USAGE +0 -23
  271. data/lib/generators/templet/core/core_generator.rb +0 -128
  272. data/lib/generators/templet/templates/core/app/panel/flash_messages.rb +0 -33
  273. data/lib/generators/templet/templates/core/app/panel/nav_args_option.rb +0 -30
  274. data/lib/generators/templet/templates/core/app/panel/show_parents_option.rb +0 -22
  275. data/lib/generators/templet/templates/core/app/panel/sidebar_links_option.rb +0 -24
  276. data/templet_rails.gemspec +0 -36
@@ -0,0 +1,9 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe Question, type: :model do
4
+ let (:question) { create :question }
5
+
6
+ it 'sets name' do
7
+ expect(question.query).to eq 'Query text'
8
+ end
9
+ end
@@ -0,0 +1,61 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ require 'spec_helper'
3
+ ENV['RAILS_ENV'] ||= 'test'
4
+ require File.expand_path('../dummy/config/environment', __FILE__)
5
+ # Prevent database truncation if the environment is production
6
+ abort("The Rails environment is running in production mode!") if Rails.env.production?
7
+ require 'rspec/rails'
8
+ # Add additional requires below this line. Rails is not loaded until this point!
9
+
10
+ # Requires supporting ruby files with custom matchers and macros, etc, in
11
+ # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
12
+ # run as spec files by default. This means that files in spec/support that end
13
+ # in _spec.rb will both be required and run as specs, causing the specs to be
14
+ # run twice. It is recommended that you do not name files matching this glob to
15
+ # end with _spec.rb. You can configure this pattern with the --pattern
16
+ # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
17
+ #
18
+ # The following line is provided for convenience purposes. It has the downside
19
+ # of increasing the boot-up time by auto-requiring all files in the support
20
+ # directory. Alternatively, in the individual `*_spec.rb` files, manually
21
+ # require only the support files necessary.
22
+ #
23
+ # Dir[Rails.root.join('spec', 'support', '**', '*.rb')].each { |f| require f }
24
+
25
+ # Checks for pending migrations and applies them before tests are run.
26
+ # If you are not using ActiveRecord, you can remove these lines.
27
+ begin
28
+ ActiveRecord::Migration.maintain_test_schema!
29
+ rescue ActiveRecord::PendingMigrationError => e
30
+ puts e.to_s.strip
31
+ exit 1
32
+ end
33
+ RSpec.configure do |config|
34
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
35
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
36
+
37
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
38
+ # examples within a transaction, remove the following line or assign false
39
+ # instead of true.
40
+ config.use_transactional_fixtures = true
41
+
42
+ # RSpec Rails can automatically mix in different behaviours to your tests
43
+ # based on their file location, for example enabling you to call `get` and
44
+ # `post` in specs under `spec/controllers`.
45
+ #
46
+ # You can disable this behaviour by removing the line below, and instead
47
+ # explicitly tag your specs with their type, e.g.:
48
+ #
49
+ # RSpec.describe UsersController, :type => :controller do
50
+ # # ...
51
+ # end
52
+ #
53
+ # The different available types are documented in the features, such as in
54
+ # https://relishapp.com/rspec/rspec-rails/docs
55
+ config.infer_spec_type_from_file_location!
56
+
57
+ # Filter lines from Rails gems in backtraces.
58
+ config.filter_rails_from_backtrace!
59
+ # arbitrary gems may also be filtered via:
60
+ # config.filter_gems_from_backtrace("gem name")
61
+ end
@@ -0,0 +1,108 @@
1
+ # This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
4
+ # this file to always be loaded, without a need to explicitly require it in any
5
+ # files.
6
+ #
7
+ # Given that it is always loaded, you are encouraged to keep this file as
8
+ # light-weight as possible. Requiring heavyweight dependencies from this file
9
+ # will add to the boot time of your test suite on EVERY test run, even for an
10
+ # individual file that may not need all of that loaded. Instead, consider making
11
+ # a separate helper file that requires the additional dependencies and performs
12
+ # the additional setup, and require it from the spec files that actually need
13
+ # it.
14
+ #
15
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
16
+ RSpec.configure do |config|
17
+ # rspec-expectations config goes here. You can use an alternate
18
+ # assertion/expectation library such as wrong or the stdlib/minitest
19
+ # assertions if you prefer.
20
+ config.expect_with :rspec do |expectations|
21
+ # This option will default to `true` in RSpec 4. It makes the `description`
22
+ # and `failure_message` of custom matchers include text for helper methods
23
+ # defined using `chain`, e.g.:
24
+ # be_bigger_than(2).and_smaller_than(4).description
25
+ # # => "be bigger than 2 and smaller than 4"
26
+ # ...rather than:
27
+ # # => "be bigger than 2"
28
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
29
+ end
30
+
31
+ # rspec-mocks config goes here. You can use an alternate test double
32
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
33
+ config.mock_with :rspec do |mocks|
34
+ # Prevents you from mocking or stubbing a method that does not exist on
35
+ # a real object. This is generally recommended, and will default to
36
+ # `true` in RSpec 4.
37
+ mocks.verify_partial_doubles = true
38
+ end
39
+
40
+ # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
41
+ # have no way to turn it off -- the option exists only for backwards
42
+ # compatibility in RSpec 3). It causes shared context metadata to be
43
+ # inherited by the metadata hash of host groups and examples, rather than
44
+ # triggering implicit auto-inclusion in groups with matching metadata.
45
+ config.shared_context_metadata_behavior = :apply_to_host_groups
46
+
47
+ # The settings below are suggested to provide a good initial experience
48
+ # with RSpec, but feel free to customize to your heart's content.
49
+ =begin
50
+ # This allows you to limit a spec run to individual examples or groups
51
+ # you care about by tagging them with `:focus` metadata. When nothing
52
+ # is tagged with `:focus`, all examples get run. RSpec also provides
53
+ # aliases for `it`, `describe`, and `context` that include `:focus`
54
+ # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
55
+ config.filter_run_when_matching :focus
56
+
57
+ # Allows RSpec to persist some state between runs in order to support
58
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
59
+ # you configure your source control system to ignore this file.
60
+ config.example_status_persistence_file_path = "spec/examples.txt"
61
+
62
+ # Limits the available syntax to the non-monkey patched syntax that is
63
+ # recommended. For more details, see:
64
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
65
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
66
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
67
+ config.disable_monkey_patching!
68
+
69
+ # Many RSpec users commonly either run the entire suite or an individual
70
+ # file, and it's useful to allow more verbose output when running an
71
+ # individual spec file.
72
+ if config.files_to_run.one?
73
+ # Use the documentation formatter for detailed output,
74
+ # unless a formatter has already been configured
75
+ # (e.g. via a command-line flag).
76
+ config.default_formatter = "doc"
77
+ end
78
+
79
+ # Print the 10 slowest examples and example groups at the
80
+ # end of the spec run, to help surface which specs are running
81
+ # particularly slow.
82
+ config.profile_examples = 10
83
+
84
+ # Run specs in random order to surface order dependencies. If you find an
85
+ # order dependency and want to debug it, you can fix the order by providing
86
+ # the seed, which is printed after each run.
87
+ # --seed 1234
88
+ config.order = :random
89
+
90
+ # Seed global randomization in this process using the `--seed` CLI option.
91
+ # Setting this allows you to use `--seed` to deterministically reproduce
92
+ # test failures related to randomization by passing the same `--seed` value
93
+ # as the one that triggered the failure.
94
+ Kernel.srand config.seed
95
+ =end
96
+ end
97
+
98
+ require 'factory_bot'
99
+
100
+ Dir["./spec/support/**/*.rb"].each {|file| require file }
101
+ Dir["./spec/dummy/spec/support/**/*.rb"].each {|file| require file }
102
+
103
+ RSpec.configure do |config|
104
+ config.include FactoryBot::Syntax::Methods
105
+ end
106
+ FactoryBot.definition_file_paths = [File.expand_path('../factories', __FILE__)]
107
+ FactoryBot.find_definitions
108
+
@@ -0,0 +1,36 @@
1
+
2
+ module ModelParentHelpers
3
+ def self.included(base)
4
+ base.class_eval do
5
+ # TODO: change!
6
+ let(:scope) { nil }
7
+
8
+ # TODO: change!
9
+ let(:new_model) { build :answer }
10
+
11
+ # TODO: change!
12
+ let(:model) { create :answer }
13
+
14
+ # TODO: change!
15
+ let(:parent) { model.question }
16
+
17
+ # TODO: change!
18
+ let(:grand_parent) { parent.category }
19
+
20
+ # The following can be left alone
21
+
22
+ let(:model_plural) { model.model_name.plural }
23
+
24
+ let(:parent_plural) { parent.model_name.plural }
25
+
26
+ let(:grand_parent_singular) { grand_parent.model_name.singular }
27
+
28
+ let(:grand_parent_plural) { grand_parent.model_name.plural }
29
+ end
30
+ end
31
+
32
+ def path_re(prefix: '', suffix: '', parent: parent_plural, model: model_plural)
33
+ %r(^#{prefix}#{scope and '/' + scope}/#{parent}/\d+/#{model}#{suffix}$)
34
+ end
35
+ end
36
+
@@ -0,0 +1,32 @@
1
+
2
+ require "nokogiri"
3
+
4
+ module PartialTestHelpers
5
+ def renderer
6
+ Templet::Renderer.new helper
7
+ end
8
+
9
+ def partial_for(klass, *args)
10
+ klass.new(renderer, *args)
11
+ end
12
+ def partial(*args, **options)
13
+ partial_for(described_class, *args, **options)
14
+ end
15
+
16
+ def render_partial(*args, &block)
17
+ partial.(*args, &block)
18
+ end
19
+
20
+ def parse(html)
21
+ Nokogiri::HTML(html)
22
+ end
23
+
24
+ def parse_html(selector, single_return: true,
25
+ render_args: [],
26
+ html: render_partial(*render_args))
27
+ method = single_return ? :at_css : :css
28
+
29
+ parse(html).send(method, selector)
30
+ end
31
+ end
32
+
@@ -0,0 +1,43 @@
1
+
2
+ require 'active_support/concern'
3
+
4
+ module RestLinkProcsAssignments
5
+ extend ActiveSupport::Concern
6
+
7
+ included do
8
+ #let(:renderer) { Templet::Renderer.new(self) }
9
+ let :renderer do
10
+ Class.new do
11
+ def call(&block)
12
+ instance_eval &block
13
+ end
14
+
15
+ def link_to(*args)
16
+ args
17
+ end
18
+ end.new
19
+ end
20
+
21
+ let(:child) { build :answer }
22
+ let(:model) { child.question }
23
+ let(:parent) { model.category }
24
+
25
+ let(:model_singular) { model.model_name.singular.to_sym }
26
+ let(:model_plural) { model.model_name.plural.to_sym }
27
+
28
+ let(:parent_plural) { parent.model_name.plural.to_sym }
29
+ let(:parent_singular) { parent.model_name.singular.to_sym }
30
+
31
+ let (:single_path) { [ model ] }
32
+ let (:dual_path) { [ parent, model ] }
33
+
34
+ let(:param) { { q: 'jumper' } }
35
+
36
+ let(:default_param) { { token: 'book' } }
37
+
38
+ let(:param_options) { { default_params: default_param } }
39
+
40
+ let(:remote_options) { { remote: true } }
41
+ end
42
+ end
43
+
@@ -0,0 +1,15 @@
1
+
2
+ module RestLinkProcsHelpers
3
+ def link_procs(**options)
4
+ options.reverse_merge! verify_path: false
5
+
6
+ Templet::Links::RestLinkProcs.new(nil, **options)
7
+ end
8
+
9
+ def execute(link_proc, model, parent, **opts)
10
+ link = link_proc.(renderer, model, parent)
11
+
12
+ return link, link[1]
13
+ end
14
+ end
15
+
metadata CHANGED
@@ -1,66 +1,157 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: templet_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Rycyk
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-05 00:00:00.000000000 Z
11
+ date: 2019-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: 5.2.3
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: 5.2.3
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: jquery-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: factory_bot_rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 4.10.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
39
81
  - !ruby/object:Gem::Version
40
- version: '10.0'
41
- description: Contains generators for installing the the framework.
82
+ version: 4.10.0
83
+ description: Replaces Rails' view handling (ERB etc.) with an OO approach.
42
84
  email:
43
85
  - stephen.rycyk@googlemail.com
44
86
  executables: []
45
87
  extensions: []
46
88
  extra_rdoc_files: []
47
89
  files:
48
- - ".gitignore"
49
- - ".travis.yml"
50
- - Gemfile
51
- - LICENSE.txt
90
+ - MIT-LICENSE
52
91
  - README.md
53
92
  - Rakefile
54
- - bin/console
55
- - bin/setup
93
+ - app/assets/config/templet_rails_manifest.js
94
+ - app/assets/javascripts/templet_rails/application.js
95
+ - app/assets/stylesheets/templet_rails/application.css
96
+ - app/controllers/templet/json_rendering_helpers.rb
97
+ - app/controllers/templet/rendering_helpers.rb
98
+ - app/controllers/templet/viewer_call_string.rb
99
+ - app/controllers/templet/viewer_call_string_class.rb
100
+ - app/controllers/templet/viewer_responders.rb
101
+ - app/controllers/templet_rails/application_controller.rb
102
+ - app/helpers/templet/constants.rb
103
+ - app/helpers/templet/forms/bs_form.rb
104
+ - app/helpers/templet/forms/bs_form_errors.rb
105
+ - app/helpers/templet/forms/bs_form_field.rb
106
+ - app/helpers/templet/forms/bs_form_group.rb
107
+ - app/helpers/templet/layouts/html_rails.rb
108
+ - app/helpers/templet/links.rb
109
+ - app/helpers/templet/links/bs_btn_class.rb
110
+ - app/helpers/templet/links/bs_link_set_base.rb
111
+ - app/helpers/templet/links/bs_link_set_collection.rb
112
+ - app/helpers/templet/links/bs_link_set_navigation.rb
113
+ - app/helpers/templet/links/rest_link_procs.rb
114
+ - app/helpers/templet/links/rest_link_procs_parent.rb
115
+ - app/helpers/templet/links/rest_link_procs_sets.rb
116
+ - app/helpers/templet/links/rest_link_text.rb
117
+ - app/helpers/templet/links/rest_path.rb
118
+ - app/helpers/templet/mixins.rb
119
+ - app/helpers/templet/mixins/bs.rb
120
+ - app/helpers/templet/mixins/bs/grid.rb
121
+ - app/helpers/templet/mixins/bs/lists.rb
122
+ - app/helpers/templet/mixins/field_procs.rb
123
+ - app/helpers/templet/mixins/html_presenters.rb
124
+ - app/helpers/templet/require_all.rb
125
+ - app/helpers/templet/utils/html_search_form.rb
126
+ - app/helpers/templet/utils/link_set_factory.rb
127
+ - app/helpers/templet/utils/link_set_factory_wrapper.rb
128
+ - app/helpers/templet/utils/list_model_parents.rb
129
+ - app/helpers/templet/utils/navbar_form.rb
130
+ - app/helpers/templet/utils/selected_wrapper.rb
131
+ - app/helpers/templet/viewer.rb
132
+ - app/helpers/templet/viewer/meta_model.rb
133
+ - app/helpers/templet/viewer/meta_model_defaults.rb
134
+ - app/helpers/templet/viewer/presenters.rb
135
+ - app/helpers/templet/viewer/rest_actions.rb
136
+ - app/helpers/templet/viewer_base.rb
137
+ - app/helpers/templet/viewer_rest.rb
138
+ - app/helpers/templet_helper.rb
139
+ - app/helpers/templet_rails/application_helper.rb
140
+ - app/jobs/templet_rails/application_job.rb
141
+ - app/mailers/templet_rails/application_mailer.rb
142
+ - app/models/templet_rails/application_record.rb
143
+ - app/views/layouts/templet_rails/application.html.erb
144
+ - config/routes.rb
56
145
  - lib/generators/templet/controller/USAGE
57
146
  - lib/generators/templet/controller/controller_generator.rb
58
- - lib/generators/templet/core/USAGE
59
- - lib/generators/templet/core/core_generator.rb
147
+ - lib/generators/templet/core_install/USAGE
148
+ - lib/generators/templet/core_install/core_install_generator.rb
60
149
  - lib/generators/templet/core_rspec/USAGE
61
150
  - lib/generators/templet/core_rspec/core_rspec_generator.rb
62
151
  - lib/generators/templet/destroy/USAGE
63
152
  - lib/generators/templet/destroy/destroy_generator.rb
153
+ - lib/generators/templet/install/USAGE
154
+ - lib/generators/templet/install/install_generator.rb
64
155
  - lib/generators/templet/routes/USAGE
65
156
  - lib/generators/templet/routes/routes_generator.rb
66
157
  - lib/generators/templet/rspec/USAGE
@@ -78,17 +169,16 @@ files:
78
169
  - lib/generators/templet/shared/parent_option.rb
79
170
  - lib/generators/templet/templates/controller.rb.erb
80
171
  - lib/generators/templet/templates/core/app/base_viewer.rb
81
- - lib/generators/templet/templates/core/app/link_sets/navbar.rb
82
- - lib/generators/templet/templates/core/app/panel/flash_messages.rb
83
- - lib/generators/templet/templates/core/app/panel/layout_base.rb
84
- - lib/generators/templet/templates/core/app/panel/layout_header.rb
85
- - lib/generators/templet/templates/core/app/panel/layout_header_sidebar.rb
86
- - lib/generators/templet/templates/core/app/panel/nav.rb
87
- - lib/generators/templet/templates/core/app/panel/nav_args_option.rb
88
- - lib/generators/templet/templates/core/app/panel/options_config.rb
89
- - lib/generators/templet/templates/core/app/panel/show_parents_option.rb
90
- - lib/generators/templet/templates/core/app/panel/sidebar_links_option.rb
91
- - lib/generators/templet/templates/core/controllers/.keep
172
+ - lib/generators/templet/templates/core/app/layouts/layout_base.rb
173
+ - lib/generators/templet/templates/core/app/layouts/layout_header.rb
174
+ - lib/generators/templet/templates/core/app/layouts/layout_header_sidebar.rb
175
+ - lib/generators/templet/templates/core/app/layouts/navbar.rb
176
+ - lib/generators/templet/templates/core/app/layouts/navbar_args_option.rb
177
+ - lib/generators/templet/templates/core/app/layouts/navbar_links.rb
178
+ - lib/generators/templet/templates/core/app/layouts/options_config.rb
179
+ - lib/generators/templet/templates/core/app/layouts/panel/flash_messages.rb
180
+ - lib/generators/templet/templates/core/app/layouts/panel/show_parents_option.rb
181
+ - lib/generators/templet/templates/core/app/layouts/panel/sidebar_links_option.rb
92
182
  - lib/generators/templet/templates/core/controllers/json_rendering_helpers.rb
93
183
  - lib/generators/templet/templates/core/controllers/rendering_helpers.rb
94
184
  - lib/generators/templet/templates/core/controllers/viewer_call_string.rb
@@ -96,12 +186,14 @@ files:
96
186
  - lib/generators/templet/templates/core/controllers/viewer_responders.rb
97
187
  - lib/generators/templet/templates/core/helpers/app.rb
98
188
  - lib/generators/templet/templates/core/helpers/templet_helper.rb
189
+ - lib/generators/templet/templates/core/spec/layouts/flash_messages_spec.rb
190
+ - lib/generators/templet/templates/core/spec/layouts/navbar_spec.rb
99
191
  - lib/generators/templet/templates/core/spec/support/apis/api_helper.rb
100
192
  - lib/generators/templet/templates/core/spec/support/apis/shared_examples_a_json_controller.rb
101
193
  - lib/generators/templet/templates/core/spec/support/core/model_parent_helpers.rb
102
194
  - lib/generators/templet/templates/core/spec/support/core/rest_link_procs_assignments.rb
103
195
  - lib/generators/templet/templates/core/spec/support/core/rest_link_procs_helpers.rb
104
- - lib/generators/templet/templates/core/spec/support/viewer/partial_test_helpers.rb
196
+ - lib/generators/templet/templates/core/spec/support/shared/partial_test_helpers.rb
105
197
  - lib/generators/templet/templates/core/spec/support/viewer/shared_examples_a_viewer.rb
106
198
  - lib/generators/templet/templates/core/spec/templet/forms/bs_form_errors_spec.rb
107
199
  - lib/generators/templet/templates/core/spec/templet/forms/bs_form_spec.rb
@@ -148,10 +240,181 @@ files:
148
240
  - lib/generators/templet/templates/core/templet/viewer_rest.rb
149
241
  - lib/generators/templet/viewer/USAGE
150
242
  - lib/generators/templet/viewer/viewer_generator.rb
243
+ - lib/tasks/templet_rails_tasks.rake
151
244
  - lib/templet_rails.rb
245
+ - lib/templet_rails/engine.rb
152
246
  - lib/templet_rails/version.rb
153
- - templet_rails.gemspec
154
- homepage: http://github.com/srycyk/templet_rails.
247
+ - spec/dummy/Rakefile
248
+ - spec/dummy/app/assets/config/manifest.js
249
+ - spec/dummy/app/assets/javascripts/application.js
250
+ - spec/dummy/app/assets/javascripts/cable.js
251
+ - spec/dummy/app/assets/stylesheets/application.css
252
+ - spec/dummy/app/channels/application_cable/channel.rb
253
+ - spec/dummy/app/channels/application_cable/connection.rb
254
+ - spec/dummy/app/controllers/answers_controller.rb
255
+ - spec/dummy/app/controllers/application_controller.rb
256
+ - spec/dummy/app/controllers/categories_controller.rb
257
+ - spec/dummy/app/controllers/questions_controller.rb
258
+ - spec/dummy/app/helpers/app.rb
259
+ - spec/dummy/app/helpers/app/answer_viewer.rb
260
+ - spec/dummy/app/helpers/app/base_viewer.rb
261
+ - spec/dummy/app/helpers/app/category_viewer.rb
262
+ - spec/dummy/app/helpers/app/layouts/layout_base.rb
263
+ - spec/dummy/app/helpers/app/layouts/layout_header.rb
264
+ - spec/dummy/app/helpers/app/layouts/layout_header_sidebar.rb
265
+ - spec/dummy/app/helpers/app/layouts/navbar.rb
266
+ - spec/dummy/app/helpers/app/layouts/navbar_args_option.rb
267
+ - spec/dummy/app/helpers/app/layouts/navbar_links.rb
268
+ - spec/dummy/app/helpers/app/layouts/options_config.rb
269
+ - spec/dummy/app/helpers/app/layouts/panel/flash_messages.rb
270
+ - spec/dummy/app/helpers/app/layouts/panel/show_parents_option.rb
271
+ - spec/dummy/app/helpers/app/layouts/panel/sidebar_links_option.rb
272
+ - spec/dummy/app/helpers/app/question_viewer.rb
273
+ - spec/dummy/app/helpers/application_helper.rb
274
+ - spec/dummy/app/jobs/application_job.rb
275
+ - spec/dummy/app/mailers/application_mailer.rb
276
+ - spec/dummy/app/models/answer.rb
277
+ - spec/dummy/app/models/application_record.rb
278
+ - spec/dummy/app/models/category.rb
279
+ - spec/dummy/app/models/question.rb
280
+ - spec/dummy/app/views/layouts/application.html.erb
281
+ - spec/dummy/app/views/layouts/mailer.html.erb
282
+ - spec/dummy/app/views/layouts/mailer.text.erb
283
+ - spec/dummy/bin/bundle
284
+ - spec/dummy/bin/rails
285
+ - spec/dummy/bin/rake
286
+ - spec/dummy/bin/setup
287
+ - spec/dummy/bin/update
288
+ - spec/dummy/bin/yarn
289
+ - spec/dummy/config.ru
290
+ - spec/dummy/config/application.rb
291
+ - spec/dummy/config/boot.rb
292
+ - spec/dummy/config/cable.yml
293
+ - spec/dummy/config/database.yml
294
+ - spec/dummy/config/environment.rb
295
+ - spec/dummy/config/environments/development.rb
296
+ - spec/dummy/config/environments/production.rb
297
+ - spec/dummy/config/environments/test.rb
298
+ - spec/dummy/config/initializers/application_controller_renderer.rb
299
+ - spec/dummy/config/initializers/assets.rb
300
+ - spec/dummy/config/initializers/backtrace_silencers.rb
301
+ - spec/dummy/config/initializers/content_security_policy.rb
302
+ - spec/dummy/config/initializers/cookies_serializer.rb
303
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
304
+ - spec/dummy/config/initializers/inflections.rb
305
+ - spec/dummy/config/initializers/mime_types.rb
306
+ - spec/dummy/config/initializers/wrap_parameters.rb
307
+ - spec/dummy/config/locales/en.yml
308
+ - spec/dummy/config/puma.rb
309
+ - spec/dummy/config/routes.rb
310
+ - spec/dummy/config/spring.rb
311
+ - spec/dummy/config/storage.yml
312
+ - spec/dummy/db/development.sqlite3
313
+ - spec/dummy/db/migrate/20190709192619_create_categories.rb
314
+ - spec/dummy/db/migrate/20190709192656_create_questions.rb
315
+ - spec/dummy/db/migrate/20190709192737_create_answers.rb
316
+ - spec/dummy/db/schema.rb
317
+ - spec/dummy/db/test.sqlite3
318
+ - spec/dummy/log/development.log
319
+ - spec/dummy/log/test.log
320
+ - spec/dummy/package.json
321
+ - spec/dummy/public/404.html
322
+ - spec/dummy/public/422.html
323
+ - spec/dummy/public/500.html
324
+ - spec/dummy/public/apple-touch-icon-precomposed.png
325
+ - spec/dummy/public/apple-touch-icon.png
326
+ - spec/dummy/public/favicon.ico
327
+ - spec/dummy/spec/apis/answers_controller_spec.rb
328
+ - spec/dummy/spec/apis/categories_controller_spec.rb
329
+ - spec/dummy/spec/apis/questions_controller_spec.rb
330
+ - spec/dummy/spec/helpers/app/answer_viewer_spec.rb
331
+ - spec/dummy/spec/helpers/app/category_viewer_spec.rb
332
+ - spec/dummy/spec/helpers/app/layouts/flash_messages_spec.rb
333
+ - spec/dummy/spec/helpers/app/layouts/navbar_spec.rb
334
+ - spec/dummy/spec/helpers/app/question_viewer_spec.rb
335
+ - spec/dummy/spec/support/apis/api_helper.rb
336
+ - spec/dummy/spec/support/apis/shared_examples_a_json_controller.rb
337
+ - spec/dummy/spec/support/templet/partial_test_helpers.rb
338
+ - spec/dummy/spec/support/templet/shared_examples_a_viewer.rb
339
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/-6/-6-48LISBeQVJvpEXNgFstDrCriEFNmvje6XhidzlV4.cache
340
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/-D/-DLE9y_1ICajcEaHcprHYBO8vjXpHySH_56FSb0SLOs.cache
341
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/-Y/-YJ1ILDQvu3hOKkF0VR9K_z04e2-EVHglO0MAFS8gpQ.cache
342
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/-_/-_7FgdEon9WttcnvoyQAysmonCHN7FxsrcuDa5OTUJQ.cache
343
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/0u/0u-iWymOJvpggI1uY7Na3322xwcjNY7egB-czjV96m4.cache
344
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/0x/0xArd189AygdGItqWO0_5BfinFQjLZjwyVsAGWqOgKg.cache
345
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/2S/2SfjLWkOp2BGM0OzwsshKpnXI8rlJFOV6ZJsIszRn6k.cache
346
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/3h/3hFAACevvXtDja9zz3rMK6gA1MD1I7_puWyRRkV7sLk.cache
347
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/4o/4oNwzIrltWrfajciBz7JHd5RT5_XVv04L6NdaBGN794.cache
348
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/7F/7F3o6QQqoI0bDk6-A5qMN8LCZQALddlu23KiRWBxtWk.cache
349
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Af/AfFBDeKpi4wSUc7rcjxfjPbEgV6GOGXTjeZhHrfDX48.cache
350
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Bf/BfD6ZVgFq-kWDMMVb2EE5ZAKgsgn1VUR9oVxD0hHVMI.cache
351
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Bo/Bogjbc_D5J-6_m5KEgeXt_GHc-IbUt1_FDWP4PHV0P8.cache
352
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/DF/DF3HgsSD9LO1Bz8d3GJi_G6wBExmsnBJ6b1pvZEGE7w.cache
353
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/DO/DO8Gqh32jK2GrO9uIlH7qvDkelVw0VM8CTSOUj6iUEo.cache
354
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/GC/GCNwk_ABiY0z51bz8iC8tqLLWKhQwxW4-JLNKv-SRe0.cache
355
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Gl/Gls_Zud1kxq7p08FGBfzalbaLMlLBl28bOYebh7Ljrg.cache
356
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Gm/GmHHk4YNC0G2V_5gQZp0U6mKFPxGSgL7fwWI3_fajrk.cache
357
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Gr/GreB3WHN8MyWMDFGNyqJJcxGblgo-5XepsEHvdJSQGI.cache
358
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache
359
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Hd/HdvsElcHSt7aKjG9jocgIQJEvBjBbeSZ8HntI1pc38o.cache
360
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Iv/IvR5RxSTQkxfGWSoy5S2s7wO5u5qwCJ5mNAhqNJtJDY.cache
361
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/JS/JSYyQZJzLNqpmVR--ZDUW6PY7_HflyFFHDAOLenxlP4.cache
362
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Jx/JxJXzSistcpH4S_9CbGx_wyjVTaE77ZDDfOc4uTfvdM.cache
363
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/MH/MHCZUSVJq62YPmcVVkfjp2B5uH_nDL7snLl4yqvlSJY.cache
364
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/MY/MY5theanttko1gCnW9vKb0Z1GkJn8Ofk149HwOt0UAM.cache
365
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Mn/MnGg5XDll2jo-E_CTC1htiNc0hOY6z80_bwGCvpYTXk.cache
366
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Nt/NtYu5CjAvU5ZHxSOn6Q4LPukD3hBE-3vYe30d_uSBzM.cache
367
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Nu/NuIepb7qomZzBDAJMUROsshKo8TJxdmFR4yOe64W58w.cache
368
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/R7/R7ngeIqpdwSWkbjbxxzh6B-KczkWMcxYMIkj5inxrV8.cache
369
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/S9/S9MhILnM64qd2M9Z92TrNMtw7VUWZxf3H367OO8rlhs.cache
370
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/SI/SIZUy2mtjUm_G1YIulRCovzgkCwV1eoR2NLiYcsR1Ws.cache
371
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Sl/SlECThrSAExfICiFGVi-zu240BVDaUldaRs4qcj354U.cache
372
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/St/St6dTA4niiCDLnnArKZV38uZNFf6MbEZ_jHGC-Upft0.cache
373
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/T6/T6p-BnPmMCmpJdaqrjWmLMsBW8SNJpSW6w-Azc3XGVk.cache
374
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Vs/VsZPCEai1GtOT-vHjxMS8kAP9ASG5i_2O_EP76uI7Qs.cache
375
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Vv/Vv6dack32HV3tIZ_6F4BF8Mrrnb7wZEG4VlEKumQ6L0.cache
376
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wp/WpV6mJwJX9dwIFJGLoJoa-gXNe1-ZHusE9SwvnWysa8.cache
377
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wy/Wya0wl0Q2nXYb5-bC5Fbo0sDZfKb3415AjtSjld7fQI.cache
378
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/b7/b7j7TIOE1nnqvMku0QePWFrwCkaKkNpxkiWST6PAplo.cache
379
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/ck/ckDOh-FroVE8r1fwUNWmnRconIREuVdmkZEFkaP9KfU.cache
380
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/eN/eNQPQP-9gB3xzxJBsG7soV6Ie0YZ3gxIS97PgYtZVT8.cache
381
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/gb/gbUMPMF8S0OQVsFHyAjHpHVEg-3iZzTVIQZDmfq-ycE.cache
382
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/if/ifyb5SlIS8vkACz_6P0uTOGijMB4C5TyFWmrMq3DYIg.cache
383
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/jg/jg-s5YLdnojCtHqzfDTsvcy6UHewDRl1X09qlGyvyag.cache
384
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/ko/koPyQus8Oqrx18bnLj-5nJrKvFf6FDDQbv2qEa7Bl7M.cache
385
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/lG/lGRRazgrFErFx1PkfDlca6r-0MGQR40i0tq0Wgm2FNU.cache
386
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/lS/lStvx9Beg2l4s8L-QdTSKuc5_qQPQAZPnIcRI7JkpPE.cache
387
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/lZ/lZIacHrJV5bDohEHsVOXDGIDrUH2h4YvwV9g-MWmh3k.cache
388
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/lq/lqM4-wfprvp5FEBp1pSm88Jwx-Vb2oJab2rjLtUcIyM.cache
389
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache
390
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache
391
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/ps/psGFyjvQcs8JpIV8BDeCqQfHaLYgIgSAi86n4RrFpFs.cache
392
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/r1/r1IIabhuPhgB3n8V3ZMRN0SqIsXJ8bH0ABTRzHTG1SU.cache
393
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/vt/vtskp0QTt72oDQNM6mYZ8pCclh2HICHeYZ1QtDvC5xo.cache
394
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/wi/win_v0ZNu-l7AoRx8w3ls1xcy0mUExLBVMCSr5oaJFc.cache
395
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/yo/yoggubxI12fIM1o5TtxUialrUN-LWOfRaV_tqc1HAC4.cache
396
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/zH/zHnHpZP25wEHaF3mI_M9RGH1zeCApf6mwhLB3Lku1zs.cache
397
+ - spec/dummy/tmp/development_secret.txt
398
+ - spec/factories/answers.rb
399
+ - spec/factories/categories.rb
400
+ - spec/factories/questions.rb
401
+ - spec/helpers/templet/forms/bs_form_errors_spec.rb
402
+ - spec/helpers/templet/forms/bs_form_spec.rb
403
+ - spec/helpers/templet/layout/html_rails_spec.rb
404
+ - spec/helpers/templet/links/bs_link_set_collection_spec.rb
405
+ - spec/helpers/templet/links/rest_link_procs_params_spec.rb
406
+ - spec/helpers/templet/links/rest_link_procs_parents_spec.rb
407
+ - spec/helpers/templet/links/rest_link_procs_spec.rb
408
+ - spec/models/answer_spec.rb
409
+ - spec/models/category_spec.rb
410
+ - spec/models/question_spec.rb
411
+ - spec/rails_helper.rb
412
+ - spec/spec_helper.rb
413
+ - spec/support/templet/model_parent_helpers.rb
414
+ - spec/support/templet/partial_test_helpers.rb
415
+ - spec/support/templet/rest_link_procs_assignments.rb
416
+ - spec/support/templet/rest_link_procs_helpers.rb
417
+ homepage: http://github.com/srycyk/templet_rails
155
418
  licenses:
156
419
  - MIT
157
420
  metadata: {}
@@ -170,9 +433,178 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
433
  - !ruby/object:Gem::Version
171
434
  version: '0'
172
435
  requirements: []
173
- rubyforge_project:
174
- rubygems_version: 2.6.12
436
+ rubygems_version: 3.0.3
175
437
  signing_key:
176
438
  specification_version: 4
177
- summary: A framework for view rendering in Rails.
178
- test_files: []
439
+ summary: A framework for view rendering in Rails
440
+ test_files:
441
+ - spec/models/answer_spec.rb
442
+ - spec/models/question_spec.rb
443
+ - spec/models/category_spec.rb
444
+ - spec/factories/categories.rb
445
+ - spec/factories/answers.rb
446
+ - spec/factories/questions.rb
447
+ - spec/rails_helper.rb
448
+ - spec/support/templet/partial_test_helpers.rb
449
+ - spec/support/templet/rest_link_procs_helpers.rb
450
+ - spec/support/templet/rest_link_procs_assignments.rb
451
+ - spec/support/templet/model_parent_helpers.rb
452
+ - spec/spec_helper.rb
453
+ - spec/helpers/templet/links/bs_link_set_collection_spec.rb
454
+ - spec/helpers/templet/links/rest_link_procs_parents_spec.rb
455
+ - spec/helpers/templet/links/rest_link_procs_spec.rb
456
+ - spec/helpers/templet/links/rest_link_procs_params_spec.rb
457
+ - spec/helpers/templet/forms/bs_form_spec.rb
458
+ - spec/helpers/templet/forms/bs_form_errors_spec.rb
459
+ - spec/helpers/templet/layout/html_rails_spec.rb
460
+ - spec/dummy/config/application.rb
461
+ - spec/dummy/config/database.yml
462
+ - spec/dummy/config/locales/en.yml
463
+ - spec/dummy/config/initializers/wrap_parameters.rb
464
+ - spec/dummy/config/initializers/application_controller_renderer.rb
465
+ - spec/dummy/config/initializers/cookies_serializer.rb
466
+ - spec/dummy/config/initializers/mime_types.rb
467
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
468
+ - spec/dummy/config/initializers/inflections.rb
469
+ - spec/dummy/config/initializers/assets.rb
470
+ - spec/dummy/config/initializers/backtrace_silencers.rb
471
+ - spec/dummy/config/initializers/content_security_policy.rb
472
+ - spec/dummy/config/boot.rb
473
+ - spec/dummy/config/spring.rb
474
+ - spec/dummy/config/routes.rb
475
+ - spec/dummy/config/environment.rb
476
+ - spec/dummy/config/cable.yml
477
+ - spec/dummy/config/environments/development.rb
478
+ - spec/dummy/config/environments/production.rb
479
+ - spec/dummy/config/environments/test.rb
480
+ - spec/dummy/config/storage.yml
481
+ - spec/dummy/config/puma.rb
482
+ - spec/dummy/bin/yarn
483
+ - spec/dummy/bin/bundle
484
+ - spec/dummy/bin/rails
485
+ - spec/dummy/bin/rake
486
+ - spec/dummy/bin/update
487
+ - spec/dummy/bin/setup
488
+ - spec/dummy/log/development.log
489
+ - spec/dummy/log/test.log
490
+ - spec/dummy/spec/apis/questions_controller_spec.rb
491
+ - spec/dummy/spec/apis/answers_controller_spec.rb
492
+ - spec/dummy/spec/apis/categories_controller_spec.rb
493
+ - spec/dummy/spec/support/templet/partial_test_helpers.rb
494
+ - spec/dummy/spec/support/templet/shared_examples_a_viewer.rb
495
+ - spec/dummy/spec/support/apis/shared_examples_a_json_controller.rb
496
+ - spec/dummy/spec/support/apis/api_helper.rb
497
+ - spec/dummy/spec/helpers/app/question_viewer_spec.rb
498
+ - spec/dummy/spec/helpers/app/layouts/flash_messages_spec.rb
499
+ - spec/dummy/spec/helpers/app/layouts/navbar_spec.rb
500
+ - spec/dummy/spec/helpers/app/category_viewer_spec.rb
501
+ - spec/dummy/spec/helpers/app/answer_viewer_spec.rb
502
+ - spec/dummy/config.ru
503
+ - spec/dummy/package.json
504
+ - spec/dummy/public/500.html
505
+ - spec/dummy/public/apple-touch-icon.png
506
+ - spec/dummy/public/404.html
507
+ - spec/dummy/public/422.html
508
+ - spec/dummy/public/favicon.ico
509
+ - spec/dummy/public/apple-touch-icon-precomposed.png
510
+ - spec/dummy/app/jobs/application_job.rb
511
+ - spec/dummy/app/controllers/answers_controller.rb
512
+ - spec/dummy/app/controllers/application_controller.rb
513
+ - spec/dummy/app/controllers/categories_controller.rb
514
+ - spec/dummy/app/controllers/questions_controller.rb
515
+ - spec/dummy/app/channels/application_cable/channel.rb
516
+ - spec/dummy/app/channels/application_cable/connection.rb
517
+ - spec/dummy/app/models/question.rb
518
+ - spec/dummy/app/models/application_record.rb
519
+ - spec/dummy/app/models/category.rb
520
+ - spec/dummy/app/models/answer.rb
521
+ - spec/dummy/app/views/layouts/mailer.text.erb
522
+ - spec/dummy/app/views/layouts/mailer.html.erb
523
+ - spec/dummy/app/views/layouts/application.html.erb
524
+ - spec/dummy/app/mailers/application_mailer.rb
525
+ - spec/dummy/app/assets/config/manifest.js
526
+ - spec/dummy/app/assets/stylesheets/application.css
527
+ - spec/dummy/app/assets/javascripts/cable.js
528
+ - spec/dummy/app/assets/javascripts/application.js
529
+ - spec/dummy/app/helpers/application_helper.rb
530
+ - spec/dummy/app/helpers/app/question_viewer.rb
531
+ - spec/dummy/app/helpers/app/category_viewer.rb
532
+ - spec/dummy/app/helpers/app/layouts/layout_header_sidebar.rb
533
+ - spec/dummy/app/helpers/app/layouts/panel/flash_messages.rb
534
+ - spec/dummy/app/helpers/app/layouts/panel/show_parents_option.rb
535
+ - spec/dummy/app/helpers/app/layouts/panel/sidebar_links_option.rb
536
+ - spec/dummy/app/helpers/app/layouts/navbar_args_option.rb
537
+ - spec/dummy/app/helpers/app/layouts/navbar_links.rb
538
+ - spec/dummy/app/helpers/app/layouts/layout_base.rb
539
+ - spec/dummy/app/helpers/app/layouts/options_config.rb
540
+ - spec/dummy/app/helpers/app/layouts/layout_header.rb
541
+ - spec/dummy/app/helpers/app/layouts/navbar.rb
542
+ - spec/dummy/app/helpers/app/answer_viewer.rb
543
+ - spec/dummy/app/helpers/app/base_viewer.rb
544
+ - spec/dummy/app/helpers/app.rb
545
+ - spec/dummy/db/test.sqlite3
546
+ - spec/dummy/db/migrate/20190709192737_create_answers.rb
547
+ - spec/dummy/db/migrate/20190709192656_create_questions.rb
548
+ - spec/dummy/db/migrate/20190709192619_create_categories.rb
549
+ - spec/dummy/db/development.sqlite3
550
+ - spec/dummy/db/schema.rb
551
+ - spec/dummy/Rakefile
552
+ - spec/dummy/tmp/development_secret.txt
553
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache
554
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/r1/r1IIabhuPhgB3n8V3ZMRN0SqIsXJ8bH0ABTRzHTG1SU.cache
555
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/if/ifyb5SlIS8vkACz_6P0uTOGijMB4C5TyFWmrMq3DYIg.cache
556
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Vs/VsZPCEai1GtOT-vHjxMS8kAP9ASG5i_2O_EP76uI7Qs.cache
557
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/-6/-6-48LISBeQVJvpEXNgFstDrCriEFNmvje6XhidzlV4.cache
558
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/JS/JSYyQZJzLNqpmVR--ZDUW6PY7_HflyFFHDAOLenxlP4.cache
559
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/MH/MHCZUSVJq62YPmcVVkfjp2B5uH_nDL7snLl4yqvlSJY.cache
560
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/St/St6dTA4niiCDLnnArKZV38uZNFf6MbEZ_jHGC-Upft0.cache
561
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/-D/-DLE9y_1ICajcEaHcprHYBO8vjXpHySH_56FSb0SLOs.cache
562
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/0x/0xArd189AygdGItqWO0_5BfinFQjLZjwyVsAGWqOgKg.cache
563
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache
564
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/lG/lGRRazgrFErFx1PkfDlca6r-0MGQR40i0tq0Wgm2FNU.cache
565
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/lq/lqM4-wfprvp5FEBp1pSm88Jwx-Vb2oJab2rjLtUcIyM.cache
566
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Af/AfFBDeKpi4wSUc7rcjxfjPbEgV6GOGXTjeZhHrfDX48.cache
567
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/ps/psGFyjvQcs8JpIV8BDeCqQfHaLYgIgSAi86n4RrFpFs.cache
568
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/-Y/-YJ1ILDQvu3hOKkF0VR9K_z04e2-EVHglO0MAFS8gpQ.cache
569
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/ko/koPyQus8Oqrx18bnLj-5nJrKvFf6FDDQbv2qEa7Bl7M.cache
570
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Nt/NtYu5CjAvU5ZHxSOn6Q4LPukD3hBE-3vYe30d_uSBzM.cache
571
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/-_/-_7FgdEon9WttcnvoyQAysmonCHN7FxsrcuDa5OTUJQ.cache
572
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/jg/jg-s5YLdnojCtHqzfDTsvcy6UHewDRl1X09qlGyvyag.cache
573
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/2S/2SfjLWkOp2BGM0OzwsshKpnXI8rlJFOV6ZJsIszRn6k.cache
574
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/0u/0u-iWymOJvpggI1uY7Na3322xwcjNY7egB-czjV96m4.cache
575
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/lZ/lZIacHrJV5bDohEHsVOXDGIDrUH2h4YvwV9g-MWmh3k.cache
576
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/eN/eNQPQP-9gB3xzxJBsG7soV6Ie0YZ3gxIS97PgYtZVT8.cache
577
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/vt/vtskp0QTt72oDQNM6mYZ8pCclh2HICHeYZ1QtDvC5xo.cache
578
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/yo/yoggubxI12fIM1o5TtxUialrUN-LWOfRaV_tqc1HAC4.cache
579
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/R7/R7ngeIqpdwSWkbjbxxzh6B-KczkWMcxYMIkj5inxrV8.cache
580
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/T6/T6p-BnPmMCmpJdaqrjWmLMsBW8SNJpSW6w-Azc3XGVk.cache
581
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/b7/b7j7TIOE1nnqvMku0QePWFrwCkaKkNpxkiWST6PAplo.cache
582
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Vv/Vv6dack32HV3tIZ_6F4BF8Mrrnb7wZEG4VlEKumQ6L0.cache
583
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache
584
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/SI/SIZUy2mtjUm_G1YIulRCovzgkCwV1eoR2NLiYcsR1Ws.cache
585
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Sl/SlECThrSAExfICiFGVi-zu240BVDaUldaRs4qcj354U.cache
586
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/GC/GCNwk_ABiY0z51bz8iC8tqLLWKhQwxW4-JLNKv-SRe0.cache
587
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/DF/DF3HgsSD9LO1Bz8d3GJi_G6wBExmsnBJ6b1pvZEGE7w.cache
588
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/lS/lStvx9Beg2l4s8L-QdTSKuc5_qQPQAZPnIcRI7JkpPE.cache
589
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/zH/zHnHpZP25wEHaF3mI_M9RGH1zeCApf6mwhLB3Lku1zs.cache
590
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Hd/HdvsElcHSt7aKjG9jocgIQJEvBjBbeSZ8HntI1pc38o.cache
591
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Bf/BfD6ZVgFq-kWDMMVb2EE5ZAKgsgn1VUR9oVxD0hHVMI.cache
592
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/MY/MY5theanttko1gCnW9vKb0Z1GkJn8Ofk149HwOt0UAM.cache
593
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/7F/7F3o6QQqoI0bDk6-A5qMN8LCZQALddlu23KiRWBxtWk.cache
594
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/S9/S9MhILnM64qd2M9Z92TrNMtw7VUWZxf3H367OO8rlhs.cache
595
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/DO/DO8Gqh32jK2GrO9uIlH7qvDkelVw0VM8CTSOUj6iUEo.cache
596
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Bo/Bogjbc_D5J-6_m5KEgeXt_GHc-IbUt1_FDWP4PHV0P8.cache
597
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wp/WpV6mJwJX9dwIFJGLoJoa-gXNe1-ZHusE9SwvnWysa8.cache
598
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Mn/MnGg5XDll2jo-E_CTC1htiNc0hOY6z80_bwGCvpYTXk.cache
599
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/gb/gbUMPMF8S0OQVsFHyAjHpHVEg-3iZzTVIQZDmfq-ycE.cache
600
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/3h/3hFAACevvXtDja9zz3rMK6gA1MD1I7_puWyRRkV7sLk.cache
601
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wy/Wya0wl0Q2nXYb5-bC5Fbo0sDZfKb3415AjtSjld7fQI.cache
602
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/4o/4oNwzIrltWrfajciBz7JHd5RT5_XVv04L6NdaBGN794.cache
603
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/wi/win_v0ZNu-l7AoRx8w3ls1xcy0mUExLBVMCSr5oaJFc.cache
604
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Gr/GreB3WHN8MyWMDFGNyqJJcxGblgo-5XepsEHvdJSQGI.cache
605
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/ck/ckDOh-FroVE8r1fwUNWmnRconIREuVdmkZEFkaP9KfU.cache
606
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Iv/IvR5RxSTQkxfGWSoy5S2s7wO5u5qwCJ5mNAhqNJtJDY.cache
607
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Jx/JxJXzSistcpH4S_9CbGx_wyjVTaE77ZDDfOc4uTfvdM.cache
608
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Nu/NuIepb7qomZzBDAJMUROsshKo8TJxdmFR4yOe64W58w.cache
609
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Gm/GmHHk4YNC0G2V_5gQZp0U6mKFPxGSgL7fwWI3_fajrk.cache
610
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Gl/Gls_Zud1kxq7p08FGBfzalbaLMlLBl28bOYebh7Ljrg.cache