active_admin-state_machine 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +9 -0
  3. data/README.md +55 -7
  4. data/lib/active_admin/state_machine/dsl.rb +7 -2
  5. data/lib/active_admin/state_machine/version.rb +3 -1
  6. data/lib/active_admin/state_machine.rb +7 -0
  7. metadata +82 -414
  8. data/Rakefile +0 -17
  9. data/spec/dummy/README.rdoc +0 -261
  10. data/spec/dummy/Rakefile +0 -7
  11. data/spec/dummy/app/admin/admin_users.rb +0 -20
  12. data/spec/dummy/app/admin/categories.rb +0 -5
  13. data/spec/dummy/app/admin/dashboard.rb +0 -33
  14. data/spec/dummy/app/admin/posts.rb +0 -21
  15. data/spec/dummy/app/assets/javascripts/active_admin.js +0 -1
  16. data/spec/dummy/app/assets/javascripts/application.js +0 -15
  17. data/spec/dummy/app/assets/stylesheets/active_admin.css.scss +0 -29
  18. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
  19. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  20. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  21. data/spec/dummy/app/models/ability.rb +0 -12
  22. data/spec/dummy/app/models/admin_user.rb +0 -11
  23. data/spec/dummy/app/models/category.rb +0 -4
  24. data/spec/dummy/app/models/post.rb +0 -31
  25. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  26. data/spec/dummy/config/application.rb +0 -65
  27. data/spec/dummy/config/boot.rb +0 -10
  28. data/spec/dummy/config/database.sample.yml +0 -25
  29. data/spec/dummy/config/database.travis.yml +0 -4
  30. data/spec/dummy/config/environment.rb +0 -5
  31. data/spec/dummy/config/environments/development.rb +0 -38
  32. data/spec/dummy/config/environments/production.rb +0 -67
  33. data/spec/dummy/config/environments/test.rb +0 -37
  34. data/spec/dummy/config/initializers/active_admin.rb +0 -211
  35. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  36. data/spec/dummy/config/initializers/devise.rb +0 -253
  37. data/spec/dummy/config/initializers/inflections.rb +0 -15
  38. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  39. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  40. data/spec/dummy/config/initializers/session_store.rb +0 -8
  41. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  42. data/spec/dummy/config/locales/devise.en.yml +0 -59
  43. data/spec/dummy/config/locales/en.yml +0 -10
  44. data/spec/dummy/config/routes.rb +0 -61
  45. data/spec/dummy/config.ru +0 -4
  46. data/spec/dummy/db/development.sqlite3 +0 -0
  47. data/spec/dummy/db/migrate/20130817004304_devise_create_admin_users.rb +0 -52
  48. data/spec/dummy/db/migrate/20130817004306_create_admin_notes.rb +0 -17
  49. data/spec/dummy/db/migrate/20130817004307_move_admin_notes_to_comments.rb +0 -26
  50. data/spec/dummy/db/migrate/20130817005638_create_posts.rb +0 -11
  51. data/spec/dummy/db/migrate/20130829000200_create_categories.rb +0 -11
  52. data/spec/dummy/db/migrate/20131025231118_add_super_admin_to_admin_users.rb +0 -5
  53. data/spec/dummy/db/schema.rb +0 -65
  54. data/spec/dummy/db/seeds.rb +0 -1
  55. data/spec/dummy/db/test.sqlite3 +0 -0
  56. data/spec/dummy/log/development.log +0 -9140
  57. data/spec/dummy/log/test.log +0 -2969
  58. data/spec/dummy/public/404.html +0 -26
  59. data/spec/dummy/public/422.html +0 -26
  60. data/spec/dummy/public/500.html +0 -25
  61. data/spec/dummy/public/favicon.ico +0 -0
  62. data/spec/dummy/script/rails +0 -6
  63. data/spec/dummy/tmp/cache/assets/C6E/0F0/sprockets%2F930c17aa4002b266315478d747cec213 +0 -0
  64. data/spec/dummy/tmp/cache/assets/CA3/0F0/sprockets%2F6111c5f7d680071cae83281d5237bb52 +0 -0
  65. data/spec/dummy/tmp/cache/assets/CAE/C10/sprockets%2Fa28299b4afd821b21049164940fe6a29 +0 -0
  66. data/spec/dummy/tmp/cache/assets/CDB/040/sprockets%2Fc732474e67003a4eb840eb44c5ca9385 +0 -0
  67. data/spec/dummy/tmp/cache/assets/CE1/700/sprockets%2F9e9ac16860d51b9e1245e02a8bd98125 +0 -0
  68. data/spec/dummy/tmp/cache/assets/CE6/660/sprockets%2F90e738777deb87d405d03a2f251b547d +0 -0
  69. data/spec/dummy/tmp/cache/assets/CED/B50/sprockets%2F23b334e745d2ceb50b677668a367de99 +0 -0
  70. data/spec/dummy/tmp/cache/assets/CF3/0A0/sprockets%2F75abab8c479e90729ca78828102e5e78 +0 -0
  71. data/spec/dummy/tmp/cache/assets/CF6/EE0/sprockets%2F3f96414b8e9655fb831972cc81b6b95d +0 -0
  72. data/spec/dummy/tmp/cache/assets/D00/800/sprockets%2F5fe66f0484322d5cda7408c0cb030c36 +0 -0
  73. data/spec/dummy/tmp/cache/assets/D09/E60/sprockets%2Fd61ab529e52f740f6d26a7b3bc082914 +0 -0
  74. data/spec/dummy/tmp/cache/assets/D0B/400/sprockets%2Ff4f1a7e6cca869f56232e07440d0242e +0 -0
  75. data/spec/dummy/tmp/cache/assets/D0D/8D0/sprockets%2Fb048e1909af567b1e61c8f18dd3b4134 +0 -0
  76. data/spec/dummy/tmp/cache/assets/D0E/750/sprockets%2F535f852b14c3f64b6d4498e281ba6aa3 +0 -0
  77. data/spec/dummy/tmp/cache/assets/D1B/330/sprockets%2Fb7c84f061393bf7dac846cd173863c57 +0 -0
  78. data/spec/dummy/tmp/cache/assets/D20/AE0/sprockets%2F25d0f6af9dd375937908ad493464d3ce +0 -0
  79. data/spec/dummy/tmp/cache/assets/D2F/A20/sprockets%2F006e5a12b1bb0fc15555ad556589be6b +0 -0
  80. data/spec/dummy/tmp/cache/assets/D38/540/sprockets%2F86e1ad844bc9df4491a2a52b870421db +0 -0
  81. data/spec/dummy/tmp/cache/assets/D3E/AA0/sprockets%2F77115ed12f0f2812dd9284b1badf974e +0 -0
  82. data/spec/dummy/tmp/cache/assets/D45/B50/sprockets%2F3eb36e58b929a7cb215ec6cd90730f38 +0 -0
  83. data/spec/dummy/tmp/cache/assets/D45/BD0/sprockets%2F2def1531b613ed7a7dbfb87119f63667 +0 -0
  84. data/spec/dummy/tmp/cache/assets/D48/640/sprockets%2F9f4f18d910b678b1d0777e04cdaf6f24 +0 -0
  85. data/spec/dummy/tmp/cache/assets/D4C/C80/sprockets%2F298e59aa2551dcef562bdfd65908462d +0 -0
  86. data/spec/dummy/tmp/cache/assets/D59/D70/sprockets%2Fed9f0de1b65ae8d7ef89087c83728461 +0 -0
  87. data/spec/dummy/tmp/cache/assets/D63/930/sprockets%2F8877deb95181465893a12fc98feefea9 +0 -0
  88. data/spec/dummy/tmp/cache/assets/D67/9A0/sprockets%2F2b5fbe497968ed201d0ff0dca410d319 +0 -0
  89. data/spec/dummy/tmp/cache/assets/D78/560/sprockets%2Fdbe66652ccfa390de76149634dd82e1f +0 -0
  90. data/spec/dummy/tmp/cache/assets/D93/4C0/sprockets%2F857ecd2092cee11f740b3cf2e373ad2a +0 -0
  91. data/spec/dummy/tmp/cache/assets/D9A/FA0/sprockets%2Fe32c0ff23c6a4084195aafcff444fe63 +0 -0
  92. data/spec/dummy/tmp/cache/assets/DA3/450/sprockets%2Ff6563ad6efdc449e5219ea221c75fcc3 +0 -0
  93. data/spec/dummy/tmp/cache/assets/DA4/050/sprockets%2Fb09f488a4f238bf22bc82cef50a6f84d +0 -0
  94. data/spec/dummy/tmp/cache/assets/DD7/FE0/sprockets%2Ff00de35ea71cb4fc5fc5e96860f5ee55 +0 -0
  95. data/spec/dummy/tmp/cache/assets/DDE/420/sprockets%2Ffb8b186d5bf0307f86f65fc787d2adeb +0 -0
  96. data/spec/dummy/tmp/cache/assets/DE6/B50/sprockets%2Febd2b61aa5d1e7bd84e31523e1bc71ac +0 -0
  97. data/spec/dummy/tmp/cache/assets/DF0/870/sprockets%2F1e4ab2eb47da0bb42b6e37e38639cbae +0 -0
  98. data/spec/dummy/tmp/cache/assets/DFA/CD0/sprockets%2F6bb1e8a62edbd48cf00dc678d1f0f65a +0 -0
  99. data/spec/dummy/tmp/cache/assets/E32/990/sprockets%2F2f6fe5d3fae5b4dba7e7cc36ca68e415 +0 -0
  100. data/spec/dummy/tmp/cache/sass/021f0a44d22f3712e4de7c01de2d6b99f65f2482/_bourbon-deprecated-upcoming.scssc +0 -0
  101. data/spec/dummy/tmp/cache/sass/021f0a44d22f3712e4de7c01de2d6b99f65f2482/_bourbon.scssc +0 -0
  102. data/spec/dummy/tmp/cache/sass/0733f78978a3764d0f20e2bea650007fb2bf064b/_compact.scssc +0 -0
  103. data/spec/dummy/tmp/cache/sass/0733f78978a3764d0f20e2bea650007fb2bf064b/_flex-grid.scssc +0 -0
  104. data/spec/dummy/tmp/cache/sass/0733f78978a3764d0f20e2bea650007fb2bf064b/_grid-width.scssc +0 -0
  105. data/spec/dummy/tmp/cache/sass/0733f78978a3764d0f20e2bea650007fb2bf064b/_linear-gradient.scssc +0 -0
  106. data/spec/dummy/tmp/cache/sass/0733f78978a3764d0f20e2bea650007fb2bf064b/_modular-scale.scssc +0 -0
  107. data/spec/dummy/tmp/cache/sass/0733f78978a3764d0f20e2bea650007fb2bf064b/_px-to-em.scssc +0 -0
  108. data/spec/dummy/tmp/cache/sass/0733f78978a3764d0f20e2bea650007fb2bf064b/_radial-gradient.scssc +0 -0
  109. data/spec/dummy/tmp/cache/sass/0733f78978a3764d0f20e2bea650007fb2bf064b/_tint-shade.scssc +0 -0
  110. data/spec/dummy/tmp/cache/sass/0733f78978a3764d0f20e2bea650007fb2bf064b/_transition-property-name.scssc +0 -0
  111. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_batch_actions.css.scssc +0 -0
  112. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_blank_slates.scssc +0 -0
  113. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_breadcrumbs.scssc +0 -0
  114. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_buttons.scssc +0 -0
  115. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_columns.scssc +0 -0
  116. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_comments.css.scssc +0 -0
  117. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_date_picker.css.scssc +0 -0
  118. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_dropdown_menu.scssc +0 -0
  119. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_flash_messages.css.scssc +0 -0
  120. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_grid.scssc +0 -0
  121. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_index_list.scssc +0 -0
  122. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_links.scssc +0 -0
  123. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_pagination.scssc +0 -0
  124. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_panels.scssc +0 -0
  125. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_popovers.css.scssc +0 -0
  126. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_scopes.scssc +0 -0
  127. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_status_tags.scssc +0 -0
  128. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_table_tools.css.scssc +0 -0
  129. data/spec/dummy/tmp/cache/sass/2fd82df35090e4bb74fb9a41455f20a1e79db68a/_tables.css.scssc +0 -0
  130. data/spec/dummy/tmp/cache/sass/49a924645aad7b7327372ccd94e45cbdf78ae4ff/_all.css.scssc +0 -0
  131. data/spec/dummy/tmp/cache/sass/49a924645aad7b7327372ccd94e45cbdf78ae4ff/_buttons.css.scssc +0 -0
  132. data/spec/dummy/tmp/cache/sass/49a924645aad7b7327372ccd94e45cbdf78ae4ff/_gradients.css.scssc +0 -0
  133. data/spec/dummy/tmp/cache/sass/49a924645aad7b7327372ccd94e45cbdf78ae4ff/_icons.css.scssc +0 -0
  134. data/spec/dummy/tmp/cache/sass/49a924645aad7b7327372ccd94e45cbdf78ae4ff/_reset.css.scssc +0 -0
  135. data/spec/dummy/tmp/cache/sass/49a924645aad7b7327372ccd94e45cbdf78ae4ff/_rounded.css.scssc +0 -0
  136. data/spec/dummy/tmp/cache/sass/49a924645aad7b7327372ccd94e45cbdf78ae4ff/_sections.css.scssc +0 -0
  137. data/spec/dummy/tmp/cache/sass/49a924645aad7b7327372ccd94e45cbdf78ae4ff/_shadows.css.scssc +0 -0
  138. data/spec/dummy/tmp/cache/sass/49a924645aad7b7327372ccd94e45cbdf78ae4ff/_typography.scssc +0 -0
  139. data/spec/dummy/tmp/cache/sass/49a924645aad7b7327372ccd94e45cbdf78ae4ff/_utilities.scssc +0 -0
  140. data/spec/dummy/tmp/cache/sass/49a924645aad7b7327372ccd94e45cbdf78ae4ff/_variables.css.scssc +0 -0
  141. data/spec/dummy/tmp/cache/sass/97d1d5c145c2924a55e7b5d99d290112170b74f0/_footer.scssc +0 -0
  142. data/spec/dummy/tmp/cache/sass/97d1d5c145c2924a55e7b5d99d290112170b74f0/_main_structure.scssc +0 -0
  143. data/spec/dummy/tmp/cache/sass/97d1d5c145c2924a55e7b5d99d290112170b74f0/_title_bar.scssc +0 -0
  144. data/spec/dummy/tmp/cache/sass/a88ac2680a1680d7d2a5f8b0c7dc7f5e3131ade5/_button.scssc +0 -0
  145. data/spec/dummy/tmp/cache/sass/a88ac2680a1680d7d2a5f8b0c7dc7f5e3131ade5/_clearfix.scssc +0 -0
  146. data/spec/dummy/tmp/cache/sass/a88ac2680a1680d7d2a5f8b0c7dc7f5e3131ade5/_font-family.scssc +0 -0
  147. data/spec/dummy/tmp/cache/sass/a88ac2680a1680d7d2a5f8b0c7dc7f5e3131ade5/_hide-text.scssc +0 -0
  148. data/spec/dummy/tmp/cache/sass/a88ac2680a1680d7d2a5f8b0c7dc7f5e3131ade5/_html5-input-types.scssc +0 -0
  149. data/spec/dummy/tmp/cache/sass/a88ac2680a1680d7d2a5f8b0c7dc7f5e3131ade5/_position.scssc +0 -0
  150. data/spec/dummy/tmp/cache/sass/a88ac2680a1680d7d2a5f8b0c7dc7f5e3131ade5/_prefixer.scssc +0 -0
  151. data/spec/dummy/tmp/cache/sass/a88ac2680a1680d7d2a5f8b0c7dc7f5e3131ade5/_retina-image.scssc +0 -0
  152. data/spec/dummy/tmp/cache/sass/a88ac2680a1680d7d2a5f8b0c7dc7f5e3131ade5/_size.scssc +0 -0
  153. data/spec/dummy/tmp/cache/sass/a88ac2680a1680d7d2a5f8b0c7dc7f5e3131ade5/_timing-functions.scssc +0 -0
  154. data/spec/dummy/tmp/cache/sass/a88ac2680a1680d7d2a5f8b0c7dc7f5e3131ade5/_triangle.scssc +0 -0
  155. data/spec/dummy/tmp/cache/sass/c10713f51b89c2fd0ebe39519f07849be30ad7dc/_deprecated-webkit-gradient.scssc +0 -0
  156. data/spec/dummy/tmp/cache/sass/c10713f51b89c2fd0ebe39519f07849be30ad7dc/_gradient-positions-parser.scssc +0 -0
  157. data/spec/dummy/tmp/cache/sass/c10713f51b89c2fd0ebe39519f07849be30ad7dc/_linear-positions-parser.scssc +0 -0
  158. data/spec/dummy/tmp/cache/sass/c10713f51b89c2fd0ebe39519f07849be30ad7dc/_radial-arg-parser.scssc +0 -0
  159. data/spec/dummy/tmp/cache/sass/c10713f51b89c2fd0ebe39519f07849be30ad7dc/_radial-positions-parser.scssc +0 -0
  160. data/spec/dummy/tmp/cache/sass/c10713f51b89c2fd0ebe39519f07849be30ad7dc/_render-gradients.scssc +0 -0
  161. data/spec/dummy/tmp/cache/sass/c10713f51b89c2fd0ebe39519f07849be30ad7dc/_shape-size-stripper.scssc +0 -0
  162. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_animation.scssc +0 -0
  163. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_appearance.scssc +0 -0
  164. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_backface-visibility.scssc +0 -0
  165. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_background-image.scssc +0 -0
  166. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_background.scssc +0 -0
  167. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_border-image.scssc +0 -0
  168. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_border-radius.scssc +0 -0
  169. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_box-sizing.scssc +0 -0
  170. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_columns.scssc +0 -0
  171. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_flex-box.scssc +0 -0
  172. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_font-face.scssc +0 -0
  173. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_hidpi-media-query.scssc +0 -0
  174. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_image-rendering.scssc +0 -0
  175. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_inline-block.scssc +0 -0
  176. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_keyframes.scssc +0 -0
  177. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_linear-gradient.scssc +0 -0
  178. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_perspective.scssc +0 -0
  179. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_placeholder.scssc +0 -0
  180. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_radial-gradient.scssc +0 -0
  181. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_transform.scssc +0 -0
  182. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_transition.scssc +0 -0
  183. data/spec/dummy/tmp/cache/sass/c440ddc8eb3b4ee623e7dfe6ab824cc1e13dc16d/_user-select.scssc +0 -0
  184. data/spec/dummy/tmp/cache/sass/c7fb764b3bec96a92cf65b0d831789c5ca3c5ed7/active_admin.css.scssc +0 -0
  185. data/spec/dummy/tmp/cache/sass/cb0cbb3d3d7b7c51feca169c780bb955b45511b4/_dashboard.scssc +0 -0
  186. data/spec/dummy/tmp/cache/sass/cb0cbb3d3d7b7c51feca169c780bb955b45511b4/_logged_out.scssc +0 -0
  187. data/spec/dummy/tmp/cache/sass/eeb938f07a558025f0485a33a8e74dcc19262df9/_base.css.scssc +0 -0
  188. data/spec/dummy/tmp/cache/sass/eeb938f07a558025f0485a33a8e74dcc19262df9/_forms.css.scssc +0 -0
  189. data/spec/dummy/tmp/cache/sass/eeb938f07a558025f0485a33a8e74dcc19262df9/_header.css.scssc +0 -0
  190. data/spec/dummy/tmp/cache/sass/eeb938f07a558025f0485a33a8e74dcc19262df9/_mixins.css.scssc +0 -0
  191. data/spec/dummy/tmp/cache/sass/eeb938f07a558025f0485a33a8e74dcc19262df9/_typography.css.scssc +0 -0
  192. data/spec/dummy/tmp/cache/sass/eeb938f07a558025f0485a33a8e74dcc19262df9/print.css.scssc +0 -0
  193. data/spec/factories/admin_users.rb +0 -8
  194. data/spec/factories/categories.rb +0 -17
  195. data/spec/factories/posts.rb +0 -11
  196. data/spec/features/authorization_spec.rb +0 -23
  197. data/spec/features/custom_block_spec.rb +0 -25
  198. data/spec/features/js_confirmation_spec.rb +0 -51
  199. data/spec/spec_helper.rb +0 -54
  200. data/spec/support/post_helpers.rb +0 -22
@@ -1,7 +0,0 @@
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!
@@ -1,253 +0,0 @@
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.secret_key = '90f7a6fb644a98cb3a5231195727454b881befcad005721f0bb007b0b8d1a794b933eb89f19a9269e98e8a613541b82973318ac2781551cb4d1a01cee388c7c7'
5
- # ==> Mailer Configuration
6
- # Configure the e-mail address which will be shown in Devise::Mailer,
7
- # note that it will be overwritten if you use your own mailer class with default "from" parameter.
8
- config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
9
-
10
- # Configure the class responsible to send e-mails.
11
- # config.mailer = "Devise::Mailer"
12
-
13
- # ==> ORM configuration
14
- # Load and configure the ORM. Supports :active_record (default) and
15
- # :mongoid (bson_ext recommended) by default. Other ORMs may be
16
- # available as additional gems.
17
- require 'devise/orm/active_record'
18
-
19
- # ==> Configuration for any authentication mechanism
20
- # Configure which keys are used when authenticating a user. The default is
21
- # just :email. You can configure it to use [:username, :subdomain], so for
22
- # authenticating a user, both parameters are required. Remember that those
23
- # parameters are used only when authenticating and not when retrieving from
24
- # session. If you need permissions, you should implement that in a before filter.
25
- # You can also supply a hash where the value is a boolean determining whether
26
- # or not authentication should be aborted when the value is not present.
27
- # config.authentication_keys = [ :email ]
28
-
29
- # Configure parameters from the request object used for authentication. Each entry
30
- # given should be a request method and it will automatically be passed to the
31
- # find_for_authentication method and considered in your model lookup. For instance,
32
- # if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
33
- # The same considerations mentioned for authentication_keys also apply to request_keys.
34
- # config.request_keys = []
35
-
36
- # Configure which authentication keys should be case-insensitive.
37
- # These keys will be downcased upon creating or modifying a user and when used
38
- # to authenticate or find a user. Default is :email.
39
- config.case_insensitive_keys = [ :email ]
40
-
41
- # Configure which authentication keys should have whitespace stripped.
42
- # These keys will have whitespace before and after removed upon creating or
43
- # modifying a user and when used to authenticate or find a user. Default is :email.
44
- config.strip_whitespace_keys = [ :email ]
45
-
46
- # Tell if authentication through request.params is enabled. True by default.
47
- # It can be set to an array that will enable params authentication only for the
48
- # given strategies, for example, `config.params_authenticatable = [:database]` will
49
- # enable it only for database (email + password) authentication.
50
- # config.params_authenticatable = true
51
-
52
- # Tell if authentication through HTTP Auth is enabled. False by default.
53
- # It can be set to an array that will enable http authentication only for the
54
- # given strategies, for example, `config.http_authenticatable = [:token]` will
55
- # enable it only for token authentication. The supported strategies are:
56
- # :database = Support basic authentication with authentication key + password
57
- # :token = Support basic authentication with token authentication key
58
- # :token_options = Support token authentication with options as defined in
59
- # http://api.rubyonrails.org/classes/ActionController/HttpAuthentication/Token.html
60
- # config.http_authenticatable = false
61
-
62
- # If http headers should be returned for AJAX requests. True by default.
63
- # config.http_authenticatable_on_xhr = true
64
-
65
- # The realm used in Http Basic Authentication. "Application" by default.
66
- # config.http_authentication_realm = "Application"
67
-
68
- # It will change confirmation, password recovery and other workflows
69
- # to behave the same regardless if the e-mail provided was right or wrong.
70
- # Does not affect registerable.
71
- # config.paranoid = true
72
-
73
- # By default Devise will store the user in session. You can skip storage for
74
- # :http_auth and :token_auth by adding those symbols to the array below.
75
- # Notice that if you are skipping storage for all authentication paths, you
76
- # may want to disable generating routes to Devise's sessions controller by
77
- # passing :skip => :sessions to `devise_for` in your config/routes.rb
78
- config.skip_session_storage = [:http_auth]
79
-
80
- # By default, Devise cleans up the CSRF token on authentication to
81
- # avoid CSRF token fixation attacks. This means that, when using AJAX
82
- # requests for sign in and sign up, you need to get a new CSRF token
83
- # from the server. You can disable this option at your own risk.
84
- # config.clean_up_csrf_token_on_authentication = true
85
-
86
- # ==> Configuration for :database_authenticatable
87
- # For bcrypt, this is the cost for hashing the password and defaults to 10. If
88
- # using other encryptors, it sets how many times you want the password re-encrypted.
89
- #
90
- # Limiting the stretches to just one in testing will increase the performance of
91
- # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
92
- # a value less than 10 in other environments.
93
- config.stretches = Rails.env.test? ? 1 : 10
94
-
95
- # Setup a pepper to generate the encrypted password.
96
- # config.pepper = "2d9d8c21cb198f569399a5550cd5dda1bbcfb25865926070a6f31c42f0d8447f99f00c935ca1fca7ca0493a2060b4053f1990fcc3be195e5f7fabeb004f344b5"
97
-
98
- # ==> Configuration for :confirmable
99
- # A period that the user is allowed to access the website even without
100
- # confirming his account. For instance, if set to 2.days, the user will be
101
- # able to access the website for two days without confirming his account,
102
- # access will be blocked just in the third day. Default is 0.days, meaning
103
- # the user cannot access the website without confirming his account.
104
- # config.allow_unconfirmed_access_for = 2.days
105
-
106
- # A period that the user is allowed to confirm their account before their
107
- # token becomes invalid. For example, if set to 3.days, the user can confirm
108
- # their account within 3 days after the mail was sent, but on the fourth day
109
- # their account can't be confirmed with the token any more.
110
- # Default is nil, meaning there is no restriction on how long a user can take
111
- # before confirming their account.
112
- # config.confirm_within = 3.days
113
-
114
- # If true, requires any email changes to be confirmed (exactly the same way as
115
- # initial account confirmation) to be applied. Requires additional unconfirmed_email
116
- # db field (see migrations). Until confirmed new email is stored in
117
- # unconfirmed email column, and copied to email column on successful confirmation.
118
- config.reconfirmable = true
119
-
120
- # Defines which key will be used when confirming an account
121
- # config.confirmation_keys = [ :email ]
122
-
123
- # ==> Configuration for :rememberable
124
- # The time the user will be remembered without asking for credentials again.
125
- # config.remember_for = 2.weeks
126
-
127
- # If true, extends the user's remember period when remembered via cookie.
128
- # config.extend_remember_period = false
129
-
130
- # Options to be passed to the created cookie. For instance, you can set
131
- # :secure => true in order to force SSL only cookies.
132
- # config.rememberable_options = {}
133
-
134
- # ==> Configuration for :validatable
135
- # Range for password length. Default is 8..128.
136
- config.password_length = 8..128
137
-
138
- # Email regex used to validate email formats. It simply asserts that
139
- # one (and only one) @ exists in the given string. This is mainly
140
- # to give user feedback and not to assert the e-mail validity.
141
- # config.email_regexp = /\A[^@]+@[^@]+\z/
142
-
143
- # ==> Configuration for :timeoutable
144
- # The time you want to timeout the user session without activity. After this
145
- # time the user will be asked for credentials again. Default is 30 minutes.
146
- # config.timeout_in = 30.minutes
147
-
148
- # If true, expires auth token on session timeout.
149
- # config.expire_auth_token_on_timeout = false
150
-
151
- # ==> Configuration for :lockable
152
- # Defines which strategy will be used to lock an account.
153
- # :failed_attempts = Locks an account after a number of failed attempts to sign in.
154
- # :none = No lock strategy. You should handle locking by yourself.
155
- # config.lock_strategy = :failed_attempts
156
-
157
- # Defines which key will be used when locking and unlocking an account
158
- # config.unlock_keys = [ :email ]
159
-
160
- # Defines which strategy will be used to unlock an account.
161
- # :email = Sends an unlock link to the user email
162
- # :time = Re-enables login after a certain amount of time (see :unlock_in below)
163
- # :both = Enables both strategies
164
- # :none = No unlock strategy. You should handle unlocking by yourself.
165
- # config.unlock_strategy = :both
166
-
167
- # Number of authentication tries before locking an account if lock_strategy
168
- # is failed attempts.
169
- # config.maximum_attempts = 20
170
-
171
- # Time interval to unlock the account if :time is enabled as unlock_strategy.
172
- # config.unlock_in = 1.hour
173
-
174
- # ==> Configuration for :recoverable
175
- #
176
- # Defines which key will be used when recovering the password for an account
177
- # config.reset_password_keys = [ :email ]
178
-
179
- # Time interval you can reset your password with a reset password key.
180
- # Don't put a too small interval or your users won't have the time to
181
- # change their passwords.
182
- config.reset_password_within = 6.hours
183
-
184
- # ==> Configuration for :encryptable
185
- # Allow you to use another encryption algorithm besides bcrypt (default). You can use
186
- # :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
187
- # :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
188
- # and :restful_authentication_sha1 (then you should set stretches to 10, and copy
189
- # REST_AUTH_SITE_KEY to pepper).
190
- #
191
- # Require the `devise-encryptable` gem when using anything other than bcrypt
192
- # config.encryptor = :sha512
193
-
194
- # ==> Configuration for :token_authenticatable
195
- # Defines name of the authentication token params key
196
- # config.token_authentication_key = :auth_token
197
-
198
- # ==> Scopes configuration
199
- # Turn scoped views on. Before rendering "sessions/new", it will first check for
200
- # "users/sessions/new". It's turned off by default because it's slower if you
201
- # are using only default views.
202
- # config.scoped_views = false
203
-
204
- # Configure the default scope given to Warden. By default it's the first
205
- # devise role declared in your routes (usually :user).
206
- # config.default_scope = :user
207
-
208
- # Set this configuration to false if you want /users/sign_out to sign out
209
- # only the current scope. By default, Devise signs out all scopes.
210
- # config.sign_out_all_scopes = true
211
-
212
- # ==> Navigation configuration
213
- # Lists the formats that should be treated as navigational. Formats like
214
- # :html, should redirect to the sign in page when the user does not have
215
- # access, but formats like :xml or :json, should return 401.
216
- #
217
- # If you have any extra navigational formats, like :iphone or :mobile, you
218
- # should add them to the navigational formats lists.
219
- #
220
- # The "*/*" below is required to match Internet Explorer requests.
221
- # config.navigational_formats = ["*/*", :html]
222
-
223
- # The default HTTP method used to sign out a resource. Default is :delete.
224
- config.sign_out_via = :delete
225
-
226
- # ==> OmniAuth
227
- # Add a new OmniAuth provider. Check the wiki for more information on setting
228
- # up on your models and hooks.
229
- # config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
230
-
231
- # ==> Warden configuration
232
- # If you want to use other strategies, that are not supported by Devise, or
233
- # change the failure app, you can configure them inside the config.warden block.
234
- #
235
- # config.warden do |manager|
236
- # manager.intercept_401 = false
237
- # manager.default_strategies(:scope => :user).unshift :some_external_strategy
238
- # end
239
-
240
- # ==> Mountable engine configurations
241
- # When using Devise inside an engine, let's call it `MyEngine`, and this engine
242
- # is mountable, there are some extra configurations to be taken into account.
243
- # The following options are available, assuming the engine is mounted as:
244
- #
245
- # mount MyEngine, at: "/my_engine"
246
- #
247
- # The router that invoked `devise_for`, in the example above, would be:
248
- # config.router_name = :my_engine
249
- #
250
- # When using omniauth, Devise cannot automatically set Omniauth path,
251
- # so you need to do it manually. For the users scope, it would be:
252
- # config.omniauth_path_prefix = "/my_engine/users/auth"
253
- end
@@ -1,15 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
6
- # inflect.plural /^(ox)$/i, '\1en'
7
- # inflect.singular /^(ox)en/i, '\1'
8
- # inflect.irregular 'person', 'people'
9
- # inflect.uncountable %w( fish sheep )
10
- # end
11
- #
12
- # These inflection rules are supported but not enabled by default:
13
- # ActiveSupport::Inflector.inflections do |inflect|
14
- # inflect.acronym 'RESTful'
15
- # end
@@ -1,5 +0,0 @@
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
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = 'b4d434f4302cbecdfddd1412aeb90a60bd825668d5d204aa6b948ef76adedd2465a7ccac67a7d0251b6a78beb56520207337a12736dd971dcc0c91251a24cd95'
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
-
5
- # Use the database for sessions instead of the cookie-based default,
6
- # which shouldn't be used to store highly confidential information
7
- # (create the session table with "rails generate session_migration")
8
- # Dummy::Application.config.session_store :active_record_store
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
- #
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json]
9
- end
10
-
11
- # Disable root element in JSON by default.
12
- ActiveSupport.on_load(:active_record) do
13
- self.include_root_in_json = false
14
- end
@@ -1,59 +0,0 @@
1
- # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
-
3
- en:
4
- devise:
5
- confirmations:
6
- confirmed: "Your account was successfully confirmed. You are now signed in."
7
- send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes."
8
- send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes."
9
- failure:
10
- already_authenticated: "You are already signed in."
11
- inactive: "Your account was not activated yet."
12
- invalid: "Invalid email or password."
13
- invalid_token: "Invalid authentication token."
14
- locked: "Your account is locked."
15
- not_found_in_database: "Invalid email or password."
16
- timeout: "Your session expired, please sign in again to continue."
17
- unauthenticated: "You need to sign in or sign up before continuing."
18
- unconfirmed: "You have to confirm your account before continuing."
19
- mailer:
20
- confirmation_instructions:
21
- subject: "Confirmation instructions"
22
- reset_password_instructions:
23
- subject: "Reset password instructions"
24
- unlock_instructions:
25
- subject: "Unlock Instructions"
26
- omniauth_callbacks:
27
- failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
28
- success: "Successfully authenticated from %{kind} account."
29
- passwords:
30
- no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
31
- send_instructions: "You will receive an email with instructions about how to reset your password in a few minutes."
32
- send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
33
- updated: "Your password was changed successfully. You are now signed in."
34
- updated_not_active: "Your password was changed successfully."
35
- registrations:
36
- destroyed: "Bye! Your account was successfully cancelled. We hope to see you again soon."
37
- signed_up: "Welcome! You have signed up successfully."
38
- signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
39
- signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
40
- signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please open the link to activate your account."
41
- update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
42
- updated: "You updated your account successfully."
43
- sessions:
44
- signed_in: "Signed in successfully."
45
- signed_out: "Signed out successfully."
46
- unlocks:
47
- send_instructions: "You will receive an email with instructions about how to unlock your account in a few minutes."
48
- send_paranoid_instructions: "If your account exists, you will receive an email with instructions about how to unlock it in a few minutes."
49
- unlocked: "Your account has been unlocked successfully. Please sign in to continue."
50
- errors:
51
- messages:
52
- already_confirmed: "was already confirmed, please try signing in"
53
- confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
54
- expired: "has expired, please request a new one"
55
- not_found: "not found"
56
- not_locked: "was not locked"
57
- not_saved:
58
- one: "1 error prohibited this %{resource} from being saved:"
59
- other: "%{count} errors prohibited this %{resource} from being saved:"
@@ -1,10 +0,0 @@
1
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
-
4
- en:
5
- posts:
6
- publish:
7
- label: Publish Post
8
- confirm: Do you want to publish now?
9
- flash:
10
- success: Post successfully published
@@ -1,61 +0,0 @@
1
- Dummy::Application.routes.draw do
2
- devise_for :admin_users, ActiveAdmin::Devise.config
3
- ActiveAdmin.routes(self)
4
-
5
- # The priority is based upon order of creation:
6
- # first created -> highest priority.
7
-
8
- # Sample of regular route:
9
- # match 'products/:id' => 'catalog#view'
10
- # Keep in mind you can assign values other than :controller and :action
11
-
12
- # Sample of named route:
13
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
14
- # This route can be invoked with purchase_url(:id => product.id)
15
-
16
- # Sample resource route (maps HTTP verbs to controller actions automatically):
17
- # resources :products
18
-
19
- # Sample resource route with options:
20
- # resources :products do
21
- # member do
22
- # get 'short'
23
- # post 'toggle'
24
- # end
25
- #
26
- # collection do
27
- # get 'sold'
28
- # end
29
- # end
30
-
31
- # Sample resource route with sub-resources:
32
- # resources :products do
33
- # resources :comments, :sales
34
- # resource :seller
35
- # end
36
-
37
- # Sample resource route with more complex sub-resources
38
- # resources :products do
39
- # resources :comments
40
- # resources :sales do
41
- # get 'recent', :on => :collection
42
- # end
43
- # end
44
-
45
- # Sample resource route within a namespace:
46
- # namespace :admin do
47
- # # Directs /admin/products/* to Admin::ProductsController
48
- # # (app/controllers/admin/products_controller.rb)
49
- # resources :products
50
- # end
51
-
52
- # You can have the root of your site routed with "root"
53
- # just remember to delete public/index.html.
54
- # root :to => 'welcome#index'
55
-
56
- # See how all your routes lay out with "rake routes"
57
-
58
- # This is a legacy wild controller route that's not recommended for RESTful applications.
59
- # Note: This route will make all actions in every controller accessible via GET requests.
60
- # match ':controller(/:action(/:id))(.:format)'
61
- end