optimacms_options 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (207) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +37 -0
  4. data/app/assets/javascripts/optimacms_options/application.js +13 -0
  5. data/app/assets/stylesheets/optimacms_options/application.css +15 -0
  6. data/app/controllers/optimacms_options/admin/options_controller.rb +161 -0
  7. data/app/helpers/optimacms_options/application_helper.rb +4 -0
  8. data/app/helpers/optimacms_options/filter_helper.rb +17 -0
  9. data/app/views/layouts/optimacms_options/application.html.erb +14 -0
  10. data/app/views/optimacms_options/admin/options/_form.html.haml +16 -0
  11. data/app/views/optimacms_options/admin/options/edit.html.haml +3 -0
  12. data/app/views/optimacms_options/admin/options/index.html.haml +41 -0
  13. data/app/views/optimacms_options/admin/options/new.html.haml +3 -0
  14. data/config/routes.rb +16 -0
  15. data/db/migrate/20160125141700_optimacms_options.rb +16 -0
  16. data/lib/optimacms/admin_menu/admin_menu.rb +22 -0
  17. data/lib/optimacms_options.rb +6 -0
  18. data/lib/optimacms_options/engine.rb +38 -0
  19. data/lib/optimacms_options/version.rb +3 -0
  20. data/lib/tasks/optimacms_options_tasks.rake +4 -0
  21. data/spec/dummy/README.rdoc +28 -0
  22. data/spec/dummy/Rakefile +6 -0
  23. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  24. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  25. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  26. data/spec/dummy/app/controllers/debug_controller.rb +38 -0
  27. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  28. data/spec/dummy/app/models/concerns/option_concern.rb +11 -0
  29. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  30. data/spec/dummy/bin/bundle +3 -0
  31. data/spec/dummy/bin/rails +4 -0
  32. data/spec/dummy/bin/rake +4 -0
  33. data/spec/dummy/bin/setup +29 -0
  34. data/spec/dummy/config.ru +4 -0
  35. data/spec/dummy/config/application.rb +36 -0
  36. data/spec/dummy/config/boot.rb +5 -0
  37. data/spec/dummy/config/database.yml +43 -0
  38. data/spec/dummy/config/environment.rb +5 -0
  39. data/spec/dummy/config/environments/development.rb +41 -0
  40. data/spec/dummy/config/environments/production.rb +79 -0
  41. data/spec/dummy/config/environments/test.rb +42 -0
  42. data/spec/dummy/config/initializers/assets.rb +11 -0
  43. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  44. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  45. data/spec/dummy/config/initializers/devise.rb +265 -0
  46. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  47. data/spec/dummy/config/initializers/inflections.rb +16 -0
  48. data/spec/dummy/config/initializers/kaminari_config.rb +10 -0
  49. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  50. data/spec/dummy/config/initializers/optimacms.rb +1 -0
  51. data/spec/dummy/config/initializers/redis.rb +1 -0
  52. data/spec/dummy/config/initializers/session_store.rb +3 -0
  53. data/spec/dummy/config/initializers/simple_form.rb +166 -0
  54. data/spec/dummy/config/initializers/simple_form_bootstrap.rb +136 -0
  55. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  56. data/spec/dummy/config/locales/devise.en.yml +62 -0
  57. data/spec/dummy/config/locales/en.yml +23 -0
  58. data/spec/dummy/config/routes.rb +18 -0
  59. data/spec/dummy/config/secrets.yml +25 -0
  60. data/spec/dummy/db/schema.rb +370 -0
  61. data/spec/dummy/lib/optimacms/admin_menu/admin_menu.rb +22 -0
  62. data/spec/dummy/log/development.log +25351 -0
  63. data/spec/dummy/public/404.html +67 -0
  64. data/spec/dummy/public/422.html +67 -0
  65. data/spec/dummy/public/500.html +66 -0
  66. data/spec/dummy/public/favicon.ico +0 -0
  67. data/spec/dummy/tmp/cache/assets/development/sass/0f12a102a4bba8b53f7db8d616f88ab567fc0720/noskin.css.scssc +0 -0
  68. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_alerts.scssc +0 -0
  69. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_background-variant.scssc +0 -0
  70. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_border-radius.scssc +0 -0
  71. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_buttons.scssc +0 -0
  72. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_center-block.scssc +0 -0
  73. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_clearfix.scssc +0 -0
  74. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_forms.scssc +0 -0
  75. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_gradients.scssc +0 -0
  76. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_grid-framework.scssc +0 -0
  77. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_grid.scssc +0 -0
  78. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_hide-text.scssc +0 -0
  79. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_image.scssc +0 -0
  80. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_labels.scssc +0 -0
  81. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_list-group.scssc +0 -0
  82. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_nav-divider.scssc +0 -0
  83. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_nav-vertical-align.scssc +0 -0
  84. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_opacity.scssc +0 -0
  85. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_pagination.scssc +0 -0
  86. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_panels.scssc +0 -0
  87. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_progress-bar.scssc +0 -0
  88. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_reset-filter.scssc +0 -0
  89. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_resize.scssc +0 -0
  90. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_responsive-visibility.scssc +0 -0
  91. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_size.scssc +0 -0
  92. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_tab-focus.scssc +0 -0
  93. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_table-row.scssc +0 -0
  94. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_text-emphasis.scssc +0 -0
  95. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_text-overflow.scssc +0 -0
  96. data/spec/dummy/tmp/cache/assets/development/sass/293d01383adf05713dc18bacb5a9a343378f4535/_vendor-prefixes.scssc +0 -0
  97. data/spec/dummy/tmp/cache/assets/development/sass/33f0f974eb769f0d4055060ebcabbf726b288716/admin.css.scssc +0 -0
  98. data/spec/dummy/tmp/cache/assets/development/sass/33f0f974eb769f0d4055060ebcabbf726b288716/admin_tpl.css.scssc +0 -0
  99. data/spec/dummy/tmp/cache/assets/development/sass/33f0f974eb769f0d4055060ebcabbf726b288716/bootstrap_and_overrides.css.scssc +0 -0
  100. data/spec/dummy/tmp/cache/assets/development/sass/33f0f974eb769f0d4055060ebcabbf726b288716/bootstrap_custom.css.scssc +0 -0
  101. data/spec/dummy/tmp/cache/assets/development/sass/33f0f974eb769f0d4055060ebcabbf726b288716/bootstrap_variables.css.scssc +0 -0
  102. data/spec/dummy/tmp/cache/assets/development/sass/33f0f974eb769f0d4055060ebcabbf726b288716/colors.css.scssc +0 -0
  103. data/spec/dummy/tmp/cache/assets/development/sass/33f0f974eb769f0d4055060ebcabbf726b288716/tpl.css.scssc +0 -0
  104. data/spec/dummy/tmp/cache/assets/development/sass/52b23612dd848efe2ce31660b0d0dcbe37548061/noskin.css.scssc +0 -0
  105. data/spec/dummy/tmp/cache/assets/development/sass/6c0ced6e44f3225624dc509e06df3341be8ba4b1/font-awesome.css.erbc +0 -0
  106. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_alerts.scssc +0 -0
  107. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_badges.scssc +0 -0
  108. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_breadcrumbs.scssc +0 -0
  109. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_button-groups.scssc +0 -0
  110. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_buttons.scssc +0 -0
  111. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_carousel.scssc +0 -0
  112. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_close.scssc +0 -0
  113. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_code.scssc +0 -0
  114. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_component-animations.scssc +0 -0
  115. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_dropdowns.scssc +0 -0
  116. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_forms.scssc +0 -0
  117. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_glyphicons.scssc +0 -0
  118. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_grid.scssc +0 -0
  119. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_input-groups.scssc +0 -0
  120. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_jumbotron.scssc +0 -0
  121. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_labels.scssc +0 -0
  122. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_list-group.scssc +0 -0
  123. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_media.scssc +0 -0
  124. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_mixins.scssc +0 -0
  125. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_modals.scssc +0 -0
  126. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_navbar.scssc +0 -0
  127. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_navs.scssc +0 -0
  128. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_normalize.scssc +0 -0
  129. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_pager.scssc +0 -0
  130. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_pagination.scssc +0 -0
  131. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_panels.scssc +0 -0
  132. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_popovers.scssc +0 -0
  133. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_print.scssc +0 -0
  134. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_progress-bars.scssc +0 -0
  135. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_responsive-embed.scssc +0 -0
  136. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_responsive-utilities.scssc +0 -0
  137. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_scaffolding.scssc +0 -0
  138. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_tables.scssc +0 -0
  139. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_thumbnails.scssc +0 -0
  140. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_tooltip.scssc +0 -0
  141. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_type.scssc +0 -0
  142. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_utilities.scssc +0 -0
  143. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_variables.scssc +0 -0
  144. data/spec/dummy/tmp/cache/assets/development/sass/96406c1d820ad99a0737a11d45b4ac20e9757a1e/_wells.scssc +0 -0
  145. data/spec/dummy/tmp/cache/assets/development/sass/fb3dad0782c644b76f2da8b4421b37fd8f2d4525/admin.css.scssc +0 -0
  146. data/spec/dummy/tmp/cache/assets/development/sass/fb3dad0782c644b76f2da8b4421b37fd8f2d4525/admin_tpl.css.scssc +0 -0
  147. data/spec/dummy/tmp/cache/assets/development/sass/fb3dad0782c644b76f2da8b4421b37fd8f2d4525/bootstrap_and_overrides.css.scssc +0 -0
  148. data/spec/dummy/tmp/cache/assets/development/sass/fb3dad0782c644b76f2da8b4421b37fd8f2d4525/bootstrap_custom.css.scssc +0 -0
  149. data/spec/dummy/tmp/cache/assets/development/sass/fb3dad0782c644b76f2da8b4421b37fd8f2d4525/bootstrap_variables.css.scssc +0 -0
  150. data/spec/dummy/tmp/cache/assets/development/sass/fb3dad0782c644b76f2da8b4421b37fd8f2d4525/colors.css.scssc +0 -0
  151. data/spec/dummy/tmp/cache/assets/development/sass/fb3dad0782c644b76f2da8b4421b37fd8f2d4525/tpl.css.scssc +0 -0
  152. data/spec/dummy/tmp/cache/assets/development/sprockets/0bf0600f6998e835549356c93ed88a44 +0 -0
  153. data/spec/dummy/tmp/cache/assets/development/sprockets/0ca733d61d616fcb5252b090f4ac46b2 +0 -0
  154. data/spec/dummy/tmp/cache/assets/development/sprockets/0e26c0deef0461318bea48023a51dad2 +0 -0
  155. data/spec/dummy/tmp/cache/assets/development/sprockets/153a6f84a946f4691146ab70fbb7468c +0 -0
  156. data/spec/dummy/tmp/cache/assets/development/sprockets/19017017a4b6618592356de2006c3ddc +0 -0
  157. data/spec/dummy/tmp/cache/assets/development/sprockets/28f6997fb7bde29ca790ef41c455167f +0 -0
  158. data/spec/dummy/tmp/cache/assets/development/sprockets/38143381b3424562ebae21c73cea3b09 +0 -0
  159. data/spec/dummy/tmp/cache/assets/development/sprockets/39e4dc69d3e009f933e32de8dc9b05bf +0 -0
  160. data/spec/dummy/tmp/cache/assets/development/sprockets/3c62e52b2b7812cd045e255b1f85cc7f +0 -0
  161. data/spec/dummy/tmp/cache/assets/development/sprockets/3c8c0e19b8ea320b3a18b69762d99773 +0 -0
  162. data/spec/dummy/tmp/cache/assets/development/sprockets/3ff3b20807100b014315d9e3ebbd3bbd +0 -0
  163. data/spec/dummy/tmp/cache/assets/development/sprockets/4ab0aecdac7c60de123d5a17dcba3751 +0 -0
  164. data/spec/dummy/tmp/cache/assets/development/sprockets/584227ac29a4981fa44f78cc0e91e6ab +0 -0
  165. data/spec/dummy/tmp/cache/assets/development/sprockets/5cfe8fa37eeec7d44b093550d0b3e14f +0 -0
  166. data/spec/dummy/tmp/cache/assets/development/sprockets/69c661f38eadf38f75ca9b2b83d71cb3 +0 -0
  167. data/spec/dummy/tmp/cache/assets/development/sprockets/6b82f713cf05c62df2b688e97cb162eb +0 -0
  168. data/spec/dummy/tmp/cache/assets/development/sprockets/7358083ee9425c6ccf3b5a266ff72f96 +0 -0
  169. data/spec/dummy/tmp/cache/assets/development/sprockets/73eaf8217025a9327591c3bdcdcc056e +0 -0
  170. data/spec/dummy/tmp/cache/assets/development/sprockets/7415648cb818482fe5f1ad10021d0586 +0 -0
  171. data/spec/dummy/tmp/cache/assets/development/sprockets/756f245b2a7516f484b40928b0e84452 +0 -0
  172. data/spec/dummy/tmp/cache/assets/development/sprockets/75f70b2a440425dc9bf19f6edb18fea7 +0 -0
  173. data/spec/dummy/tmp/cache/assets/development/sprockets/78fc4ca638e7834ef879b249ea5599d9 +0 -0
  174. data/spec/dummy/tmp/cache/assets/development/sprockets/80df25333a9293942f2f1a03d04d3662 +0 -0
  175. data/spec/dummy/tmp/cache/assets/development/sprockets/81e03d37c88eb087889e2ad9096c75d8 +0 -0
  176. data/spec/dummy/tmp/cache/assets/development/sprockets/86e9cfe4bb740cd9539f29aa7d6e77f3 +0 -0
  177. data/spec/dummy/tmp/cache/assets/development/sprockets/87b5d678a139c779af82f50975d19558 +0 -0
  178. data/spec/dummy/tmp/cache/assets/development/sprockets/8844c67dfba4a3ba3059a3bf8ecad189 +0 -0
  179. data/spec/dummy/tmp/cache/assets/development/sprockets/8ddf2da188373f0124d9ed387d7d1c40 +0 -0
  180. data/spec/dummy/tmp/cache/assets/development/sprockets/92b7eae87958c76aa1528f8e4e54bd51 +0 -0
  181. data/spec/dummy/tmp/cache/assets/development/sprockets/9520ce25409d2121e4f8836417bfdf0c +0 -0
  182. data/spec/dummy/tmp/cache/assets/development/sprockets/985159daf63d70b8e7f7c8f48360aee8 +0 -0
  183. data/spec/dummy/tmp/cache/assets/development/sprockets/99211371c628025a64c31560c4672db6 +0 -0
  184. data/spec/dummy/tmp/cache/assets/development/sprockets/9f0bebfda7d812e4f457431f1cce4595 +0 -0
  185. data/spec/dummy/tmp/cache/assets/development/sprockets/a1ad3be0833a3742d578f9837b1ce9ac +0 -0
  186. data/spec/dummy/tmp/cache/assets/development/sprockets/a29f779c454e6ba62650232bab4f79ec +0 -0
  187. data/spec/dummy/tmp/cache/assets/development/sprockets/a2f9988837a830f9477d9820acfe5ca5 +0 -0
  188. data/spec/dummy/tmp/cache/assets/development/sprockets/a5c4b558d2a51cb4220e19d7cc3ca337 +0 -0
  189. data/spec/dummy/tmp/cache/assets/development/sprockets/a7d105a6cfcd36d22ec2078561487f47 +0 -0
  190. data/spec/dummy/tmp/cache/assets/development/sprockets/abdf4874f88017012c208c93ac8ba414 +0 -0
  191. data/spec/dummy/tmp/cache/assets/development/sprockets/b160e0530bb9c2dd78e0d9442c24a08a +0 -0
  192. data/spec/dummy/tmp/cache/assets/development/sprockets/b8c05e88a3e38ff7b901e3c80d869b2f +0 -0
  193. data/spec/dummy/tmp/cache/assets/development/sprockets/c120acf80a2619bf8164e02e6f960764 +0 -0
  194. data/spec/dummy/tmp/cache/assets/development/sprockets/c24d77c1f7e73d8f31a63f95cdc569c9 +0 -0
  195. data/spec/dummy/tmp/cache/assets/development/sprockets/c726d2736d2c6c9279018d410300f893 +0 -0
  196. data/spec/dummy/tmp/cache/assets/development/sprockets/c78c6d66171101de8e064c83d0a62036 +0 -0
  197. data/spec/dummy/tmp/cache/assets/development/sprockets/c999ee7ff7abf6db93cf07d4bc777871 +0 -0
  198. data/spec/dummy/tmp/cache/assets/development/sprockets/cf36742cf19dff45417a76457df7e71b +0 -0
  199. data/spec/dummy/tmp/cache/assets/development/sprockets/d2482ba19c90b1649810826ac09ce9fc +0 -0
  200. data/spec/dummy/tmp/cache/assets/development/sprockets/e45815a37baece5f0ecd8903de564835 +0 -0
  201. data/spec/dummy/tmp/cache/assets/development/sprockets/e601c1145f5c414d64b60dd40683ec9d +0 -0
  202. data/spec/dummy/tmp/cache/assets/development/sprockets/ec4cb426a924f6d7cb5a564fc6075860 +0 -0
  203. data/spec/dummy/tmp/cache/assets/development/sprockets/f1995cbd97aba518d78c44d266cc4165 +0 -0
  204. data/spec/dummy/tmp/cache/assets/development/sprockets/fc012c29aa5b01fe548bebca6d7523a9 +0 -0
  205. data/spec/dummy/tmp/cache/assets/development/sprockets/fef4237dac77f36232df28412e9dcc13 +0 -0
  206. data/spec/dummy/tmp/pids/server.pid +1 -0
  207. metadata +477 -0
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,265 @@
1
+ # Use this hook to configure devise mailer, warden hooks and so forth.
2
+ # Many of these configuration options can be set straight in your model.
3
+ Devise.setup do |config|
4
+ config.scoped_views = true
5
+
6
+ config.secret_key = Rails.application.secrets.devise_secret_key
7
+
8
+ # Setup a pepper to generate the encrypted password.
9
+ config.pepper = '14f890567940ebd97c796ca1cb0969224bed880faee0d78e8b213f1b2e977d29e2c6e390cd50f3fb98d5561bdeb1722645df5fe4f7cedb630c7889c9c79e27e'
10
+
11
+ # ==> Mailer Configuration
12
+ # Configure the e-mail address which will be shown in Devise::Mailer,
13
+ # note that it will be overwritten if you use your own mailer class
14
+ # with default "from" parameter.
15
+ config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
16
+
17
+ # Configure the class responsible to send e-mails.
18
+ # config.mailer = 'Devise::Mailer'
19
+
20
+ # ==> ORM configuration
21
+ # Load and configure the ORM. Supports :active_record (default) and
22
+ # :mongoid (bson_ext recommended) by default. Other ORMs may be
23
+ # available as additional gems.
24
+ require 'devise/orm/active_record'
25
+
26
+ # ==> Configuration for any authentication mechanism
27
+ # Configure which keys are used when authenticating a user. The default is
28
+ # just :email. You can configure it to use [:username, :subdomain], so for
29
+ # authenticating a user, both parameters are required. Remember that those
30
+ # parameters are used only when authenticating and not when retrieving from
31
+ # session. If you need permissions, you should implement that in a before filter.
32
+ # You can also supply a hash where the value is a boolean determining whether
33
+ # or not authentication should be aborted when the value is not present.
34
+ # config.authentication_keys = [:email]
35
+
36
+ # Configure parameters from the request object used for authentication. Each entry
37
+ # given should be a request method and it will automatically be passed to the
38
+ # find_for_authentication method and considered in your model lookup. For instance,
39
+ # if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
40
+ # The same considerations mentioned for authentication_keys also apply to request_keys.
41
+ # config.request_keys = []
42
+
43
+ # Configure which authentication keys should be case-insensitive.
44
+ # These keys will be downcased upon creating or modifying a user and when used
45
+ # to authenticate or find a user. Default is :email.
46
+ config.case_insensitive_keys = [:email]
47
+
48
+ # Configure which authentication keys should have whitespace stripped.
49
+ # These keys will have whitespace before and after removed upon creating or
50
+ # modifying a user and when used to authenticate or find a user. Default is :email.
51
+ config.strip_whitespace_keys = [:email]
52
+
53
+ # Tell if authentication through request.params is enabled. True by default.
54
+ # It can be set to an array that will enable params authentication only for the
55
+ # given strategies, for example, `config.params_authenticatable = [:database]` will
56
+ # enable it only for database (email + password) authentication.
57
+ # config.params_authenticatable = true
58
+
59
+ # Tell if authentication through HTTP Auth is enabled. False by default.
60
+ # It can be set to an array that will enable http authentication only for the
61
+ # given strategies, for example, `config.http_authenticatable = [:database]` will
62
+ # enable it only for database authentication. The supported strategies are:
63
+ # :database = Support basic authentication with authentication key + password
64
+ # config.http_authenticatable = false
65
+
66
+ # If 401 status code should be returned for AJAX requests. True by default.
67
+ # config.http_authenticatable_on_xhr = true
68
+
69
+ # The realm used in Http Basic Authentication. 'Application' by default.
70
+ # config.http_authentication_realm = 'Application'
71
+
72
+ # It will change confirmation, password recovery and other workflows
73
+ # to behave the same regardless if the e-mail provided was right or wrong.
74
+ # Does not affect registerable.
75
+ # config.paranoid = true
76
+
77
+ # By default Devise will store the user in session. You can skip storage for
78
+ # particular strategies by setting this option.
79
+ # Notice that if you are skipping storage for all authentication paths, you
80
+ # may want to disable generating routes to Devise's sessions controller by
81
+ # passing skip: :sessions to `devise_for` in your config/routes.rb
82
+ config.skip_session_storage = [:http_auth]
83
+
84
+ # By default, Devise cleans up the CSRF token on authentication to
85
+ # avoid CSRF token fixation attacks. This means that, when using AJAX
86
+ # requests for sign in and sign up, you need to get a new CSRF token
87
+ # from the server. You can disable this option at your own risk.
88
+ # config.clean_up_csrf_token_on_authentication = true
89
+
90
+ # ==> Configuration for :database_authenticatable
91
+ # For bcrypt, this is the cost for hashing the password and defaults to 10. If
92
+ # using other encryptors, it sets how many times you want the password re-encrypted.
93
+ #
94
+ # Limiting the stretches to just one in testing will increase the performance of
95
+ # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
96
+ # a value less than 10 in other environments. Note that, for bcrypt (the default
97
+ # encryptor), the cost increases exponentially with the number of stretches (e.g.
98
+ # a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation).
99
+ config.stretches = Rails.env.test? ? 1 : 10
100
+
101
+ # Setup a pepper to generate the encrypted password.
102
+ # config.pepper = 'a10216c54c5f16257ba38852216ce84a0f92f1cde4b9c6ac16e858b7e3d58233f76919ee628328b4f83982c57463e803bf28d920d60baef0c0c6e573d9c4e1b2'
103
+
104
+ # Send a notification email when the user's password is changed
105
+ # config.send_password_change_notification = false
106
+
107
+ # ==> Configuration for :confirmable
108
+ # A period that the user is allowed to access the website even without
109
+ # confirming their account. For instance, if set to 2.days, the user will be
110
+ # able to access the website for two days without confirming their account,
111
+ # access will be blocked just in the third day. Default is 0.days, meaning
112
+ # the user cannot access the website without confirming their account.
113
+ # config.allow_unconfirmed_access_for = 2.days
114
+
115
+ # A period that the user is allowed to confirm their account before their
116
+ # token becomes invalid. For example, if set to 3.days, the user can confirm
117
+ # their account within 3 days after the mail was sent, but on the fourth day
118
+ # their account can't be confirmed with the token any more.
119
+ # Default is nil, meaning there is no restriction on how long a user can take
120
+ # before confirming their account.
121
+ # config.confirm_within = 3.days
122
+
123
+ # If true, requires any email changes to be confirmed (exactly the same way as
124
+ # initial account confirmation) to be applied. Requires additional unconfirmed_email
125
+ # db field (see migrations). Until confirmed, new email is stored in
126
+ # unconfirmed_email column, and copied to email column on successful confirmation.
127
+ config.reconfirmable = true
128
+
129
+ # Defines which key will be used when confirming an account
130
+ # config.confirmation_keys = [:email]
131
+
132
+ # ==> Configuration for :rememberable
133
+ # The time the user will be remembered without asking for credentials again.
134
+ # config.remember_for = 2.weeks
135
+
136
+ # Invalidates all the remember me tokens when the user signs out.
137
+ config.expire_all_remember_me_on_sign_out = true
138
+
139
+ # If true, extends the user's remember period when remembered via cookie.
140
+ # config.extend_remember_period = false
141
+
142
+ # Options to be passed to the created cookie. For instance, you can set
143
+ # secure: true in order to force SSL only cookies.
144
+ # config.rememberable_options = {}
145
+
146
+ # ==> Configuration for :validatable
147
+ # Range for password length.
148
+ config.password_length = 8..72
149
+
150
+ # Email regex used to validate email formats. It simply asserts that
151
+ # one (and only one) @ exists in the given string. This is mainly
152
+ # to give user feedback and not to assert the e-mail validity.
153
+ # config.email_regexp = /\A[^@]+@[^@]+\z/
154
+
155
+ # ==> Configuration for :timeoutable
156
+ # The time you want to timeout the user session without activity. After this
157
+ # time the user will be asked for credentials again. Default is 30 minutes.
158
+ # config.timeout_in = 30.minutes
159
+
160
+ # ==> Configuration for :lockable
161
+ # Defines which strategy will be used to lock an account.
162
+ # :failed_attempts = Locks an account after a number of failed attempts to sign in.
163
+ # :none = No lock strategy. You should handle locking by yourself.
164
+ # config.lock_strategy = :failed_attempts
165
+
166
+ # Defines which key will be used when locking and unlocking an account
167
+ # config.unlock_keys = [:email]
168
+
169
+ # Defines which strategy will be used to unlock an account.
170
+ # :email = Sends an unlock link to the user email
171
+ # :time = Re-enables login after a certain amount of time (see :unlock_in below)
172
+ # :both = Enables both strategies
173
+ # :none = No unlock strategy. You should handle unlocking by yourself.
174
+ # config.unlock_strategy = :both
175
+
176
+ # Number of authentication tries before locking an account if lock_strategy
177
+ # is failed attempts.
178
+ # config.maximum_attempts = 20
179
+
180
+ # Time interval to unlock the account if :time is enabled as unlock_strategy.
181
+ # config.unlock_in = 1.hour
182
+
183
+ # Warn on the last attempt before the account is locked.
184
+ # config.last_attempt_warning = true
185
+
186
+ # ==> Configuration for :recoverable
187
+ #
188
+ # Defines which key will be used when recovering the password for an account
189
+ # config.reset_password_keys = [:email]
190
+
191
+ # Time interval you can reset your password with a reset password key.
192
+ # Don't put a too small interval or your users won't have the time to
193
+ # change their passwords.
194
+ config.reset_password_within = 6.hours
195
+
196
+ # When set to false, does not sign a user in automatically after their password is
197
+ # reset. Defaults to true, so a user is signed in automatically after a reset.
198
+ # config.sign_in_after_reset_password = true
199
+
200
+ # ==> Configuration for :encryptable
201
+ # Allow you to use another encryption algorithm besides bcrypt (default). You can use
202
+ # :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
203
+ # :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
204
+ # and :restful_authentication_sha1 (then you should set stretches to 10, and copy
205
+ # REST_AUTH_SITE_KEY to pepper).
206
+ #
207
+ # Require the `devise-encryptable` gem when using anything other than bcrypt
208
+ # config.encryptor = :sha512
209
+
210
+ # ==> Scopes configuration
211
+ # Turn scoped views on. Before rendering "sessions/new", it will first check for
212
+ # "users/sessions/new". It's turned off by default because it's slower if you
213
+ # are using only default views.
214
+ # config.scoped_views = false
215
+
216
+ # Configure the default scope given to Warden. By default it's the first
217
+ # devise role declared in your routes (usually :user).
218
+ # config.default_scope = :user
219
+
220
+ # Set this configuration to false if you want /users/sign_out to sign out
221
+ # only the current scope. By default, Devise signs out all scopes.
222
+ # config.sign_out_all_scopes = true
223
+
224
+ # ==> Navigation configuration
225
+ # Lists the formats that should be treated as navigational. Formats like
226
+ # :html, should redirect to the sign in page when the user does not have
227
+ # access, but formats like :xml or :json, should return 401.
228
+ #
229
+ # If you have any extra navigational formats, like :iphone or :mobile, you
230
+ # should add them to the navigational formats lists.
231
+ #
232
+ # The "*/*" below is required to match Internet Explorer requests.
233
+ # config.navigational_formats = ['*/*', :html]
234
+
235
+ # The default HTTP method used to sign out a resource. Default is :delete.
236
+ config.sign_out_via = :delete
237
+
238
+ # ==> OmniAuth
239
+ # Add a new OmniAuth provider. Check the wiki for more information on setting
240
+ # up on your models and hooks.
241
+ # config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
242
+
243
+ # ==> Warden configuration
244
+ # If you want to use other strategies, that are not supported by Devise, or
245
+ # change the failure app, you can configure them inside the config.warden block.
246
+ #
247
+ # config.warden do |manager|
248
+ # manager.intercept_401 = false
249
+ # manager.default_strategies(scope: :user).unshift :some_external_strategy
250
+ # end
251
+
252
+ # ==> Mountable engine configurations
253
+ # When using Devise inside an engine, let's call it `MyEngine`, and this engine
254
+ # is mountable, there are some extra configurations to be taken into account.
255
+ # The following options are available, assuming the engine is mounted as:
256
+ #
257
+ # mount MyEngine, at: '/my_engine'
258
+ #
259
+ # The router that invoked `devise_for`, in the example above, would be:
260
+ # config.router_name = :my_engine
261
+ #
262
+ # When using OmniAuth, Devise cannot automatically set OmniAuth path,
263
+ # so you need to do it manually. For the users scope, it would be:
264
+ # config.omniauth_path_prefix = '/my_engine/users/auth'
265
+ end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,10 @@
1
+ Kaminari.configure do |config|
2
+ # config.default_per_page = 25
3
+ # config.max_per_page = nil
4
+ # config.window = 4
5
+ # config.outer_window = 0
6
+ # config.left = 0
7
+ # config.right = 0
8
+ #config.page_method_name = :pg
9
+ config.param_name = :pg
10
+ end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1 @@
1
+ Optimacms.files_dir_path = 'img'
@@ -0,0 +1 @@
1
+ #$redis = Redis.new(:host => Rails.configuration.gex_config[:redis_host], :port => 6379)
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,166 @@
1
+ # Use this setup block to configure all options available in SimpleForm.
2
+ SimpleForm.setup do |config|
3
+ # Wrappers are used by the form builder to generate a
4
+ # complete input. You can remove any component from the
5
+ # wrapper, change the order or even add your own to the
6
+ # stack. The options given below are used to wrap the
7
+ # whole input.
8
+ config.wrappers :default, class: :input,
9
+ hint_class: :field_with_hint, error_class: :field_with_errors do |b|
10
+ ## Extensions enabled by default
11
+ # Any of these extensions can be disabled for a
12
+ # given input by passing: `f.input EXTENSION_NAME => false`.
13
+ # You can make any of these extensions optional by
14
+ # renaming `b.use` to `b.optional`.
15
+
16
+ # Determines whether to use HTML5 (:email, :url, ...)
17
+ # and required attributes
18
+ b.use :html5
19
+
20
+ # Calculates placeholders automatically from I18n
21
+ # You can also pass a string as f.input placeholder: "Placeholder"
22
+ b.use :placeholder
23
+
24
+ ## Optional extensions
25
+ # They are disabled unless you pass `f.input EXTENSION_NAME => true`
26
+ # to the input. If so, they will retrieve the values from the model
27
+ # if any exists. If you want to enable any of those
28
+ # extensions by default, you can change `b.optional` to `b.use`.
29
+
30
+ # Calculates maxlength from length validations for string inputs
31
+ b.optional :maxlength
32
+
33
+ # Calculates pattern from format validations for string inputs
34
+ b.optional :pattern
35
+
36
+ # Calculates min and max from length validations for numeric inputs
37
+ b.optional :min_max
38
+
39
+ # Calculates readonly automatically from readonly attributes
40
+ b.optional :readonly
41
+
42
+ ## Inputs
43
+ b.use :label_input
44
+ b.use :hint, wrap_with: { tag: :span, class: :hint }
45
+ b.use :error, wrap_with: { tag: :span, class: :error }
46
+
47
+ ## full_messages_for
48
+ # If you want to display the full error message for the attribute, you can
49
+ # use the component :full_error, like:
50
+ #
51
+ # b.use :full_error, wrap_with: { tag: :span, class: :error }
52
+ end
53
+
54
+ # The default wrapper to be used by the FormBuilder.
55
+ config.default_wrapper = :default
56
+
57
+ # Define the way to render check boxes / radio buttons with labels.
58
+ # Defaults to :nested for bootstrap config.
59
+ # inline: input + label
60
+ # nested: label > input
61
+ config.boolean_style = :nested
62
+
63
+ # Default class for buttons
64
+ config.button_class = 'btn'
65
+
66
+ # Method used to tidy up errors. Specify any Rails Array method.
67
+ # :first lists the first message for each field.
68
+ # Use :to_sentence to list all errors for each field.
69
+ # config.error_method = :first
70
+
71
+ # Default tag used for error notification helper.
72
+ config.error_notification_tag = :div
73
+
74
+ # CSS class to add for error notification helper.
75
+ config.error_notification_class = 'error_notification'
76
+
77
+ # ID to add for error notification helper.
78
+ # config.error_notification_id = nil
79
+
80
+ # Series of attempts to detect a default label method for collection.
81
+ # config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
82
+
83
+ # Series of attempts to detect a default value method for collection.
84
+ # config.collection_value_methods = [ :id, :to_s ]
85
+
86
+ # You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
87
+ # config.collection_wrapper_tag = nil
88
+
89
+ # You can define the class to use on all collection wrappers. Defaulting to none.
90
+ # config.collection_wrapper_class = nil
91
+
92
+ # You can wrap each item in a collection of radio/check boxes with a tag,
93
+ # defaulting to :span. Please note that when using :boolean_style = :nested,
94
+ # SimpleForm will force this option to be a label.
95
+ # config.item_wrapper_tag = :span
96
+
97
+ # You can define a class to use in all item wrappers. Defaulting to none.
98
+ # config.item_wrapper_class = nil
99
+
100
+ # How the label text should be generated altogether with the required text.
101
+ # config.label_text = lambda { |label, required, explicit_label| "#{required} #{label}" }
102
+
103
+ # You can define the class to use on all labels. Default is nil.
104
+ # config.label_class = nil
105
+
106
+ # You can define the default class to be used on forms. Can be overriden
107
+ # with `html: { :class }`. Defaulting to none.
108
+ # config.default_form_class = nil
109
+
110
+ # You can define which elements should obtain additional classes
111
+ # config.generate_additional_classes_for = [:wrapper, :label, :input]
112
+
113
+ # Whether attributes are required by default (or not). Default is true.
114
+ # config.required_by_default = true
115
+
116
+ # Tell browsers whether to use the native HTML5 validations (novalidate form option).
117
+ # These validations are enabled in SimpleForm's internal config but disabled by default
118
+ # in this configuration, which is recommended due to some quirks from different browsers.
119
+ # To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations,
120
+ # change this configuration to true.
121
+ config.browser_validations = false
122
+
123
+ # Collection of methods to detect if a file type was given.
124
+ # config.file_methods = [ :mounted_as, :file?, :public_filename ]
125
+
126
+ # Custom mappings for input types. This should be a hash containing a regexp
127
+ # to match as key, and the input type that will be used when the field name
128
+ # matches the regexp as value.
129
+ # config.input_mappings = { /count/ => :integer }
130
+
131
+ # Custom wrappers for input types. This should be a hash containing an input
132
+ # type as key and the wrapper that will be used for all inputs with specified type.
133
+ # config.wrapper_mappings = { string: :prepend }
134
+
135
+ # Namespaces where SimpleForm should look for custom input classes that
136
+ # override default inputs.
137
+ # config.custom_inputs_namespaces << "CustomInputs"
138
+
139
+ # Default priority for time_zone inputs.
140
+ # config.time_zone_priority = nil
141
+
142
+ # Default priority for country inputs.
143
+ # config.country_priority = nil
144
+
145
+ # When false, do not use translations for labels.
146
+ # config.translate_labels = true
147
+
148
+ # Automatically discover new inputs in Rails' autoload path.
149
+ # config.inputs_discovery = true
150
+
151
+ # Cache SimpleForm inputs discovery
152
+ # config.cache_discovery = !Rails.env.development?
153
+
154
+ # Default class for inputs
155
+ # config.input_class = nil
156
+
157
+ # Define the default class of the input wrapper of the boolean input.
158
+ config.boolean_label_class = 'checkbox'
159
+
160
+ # Defines if the default input wrapper class should be included in radio
161
+ # collection wrappers.
162
+ # config.include_default_input_wrapper_class = true
163
+
164
+ # Defines which i18n scope will be used in Simple Form.
165
+ # config.i18n_scope = 'simple_form'
166
+ end