card 1.104.2 → 1.105.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (390) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -6
  3. data/VERSION +1 -1
  4. data/config/environments/development.rb +1 -1
  5. data/config/environments/test.rb +1 -0
  6. data/config/initializers/01_core_extensions/object.rb +10 -0
  7. data/config/initializers/01_core_extensions/string.rb +9 -0
  8. data/config/initializers/core_extensions.rb +1 -0
  9. data/db/migrate/{20160122153608_new_indeces.rb → 20160122153608_new_indices.rb} +2 -2
  10. data/db/migrate/{20200805200729_add_unique_pair_indeces.rb → 20200805200729_add_unique_pair_indices.rb} +1 -1
  11. data/db/migrate/20221031182227_remove_referee_key_requirement.rb +11 -0
  12. data/db/migrate_core_cards/20130920291703_update_stylesheets.rb +1 -9
  13. data/db/migrate_core_cards/20140307231621_user_data_to_cards.rb +1 -38
  14. data/db/migrate_core_cards/20161103154836_update_keys.rb +1 -1
  15. data/db/migrate_core_cards/20180905061537_migrate_layouts.rb +1 -1
  16. data/db/migrate_core_cards/20190125125150_add_script_rules_card.rb +1 -1
  17. data/db/migrate_core_cards/20190320091257_upgrade_recaptcha_to_v3.rb +1 -1
  18. data/db/migrate_core_cards/20190502130029_add_shark_and_help_desk_role.rb +2 -20
  19. data/db/migrate_core_cards/20190528131330_enabled_roles.rb +0 -3
  20. data/db/migrate_core_cards/20190625153616_pointer_overhaul.rb +0 -2
  21. data/db/migrate_core_cards/20190718140126_add_guides.rb +1 -1
  22. data/db/migrate_core_cards/20190822093633_move_help_text_to_code.rb +1 -1
  23. data/db/migrate_core_cards/20190829205148_remove_add_help.rb +1 -1
  24. data/db/migrate_core_cards/20190902193208_input_type.rb +1 -1
  25. data/db/migrate_core_cards/20190909104250_add_cardtype_input_types.rb +2 -2
  26. data/db/schema.rb +2 -2
  27. data/db/seeds.rb +14 -1
  28. data/db/version.txt +1 -1
  29. data/lib/card/auth/current.rb +4 -2
  30. data/lib/card/auth/permissions.rb +1 -1
  31. data/lib/card/auth/setup.rb +1 -1
  32. data/lib/card/auth/token.rb +1 -1
  33. data/lib/card/cache/persistent.rb +4 -1
  34. data/lib/card/codename.rb +2 -6
  35. data/lib/card/content/all.rb +2 -2
  36. data/lib/card/content/clean.rb +1 -1
  37. data/lib/card/content/parser.rb +0 -2
  38. data/lib/card/content.rb +1 -8
  39. data/lib/card/director/all.rb +67 -0
  40. data/lib/card/director/card_class.rb +158 -2
  41. data/lib/card/director/{act_direction.rb → class_methods.rb} +13 -3
  42. data/lib/card/director/phases.rb +7 -4
  43. data/lib/card/director/run.rb +51 -50
  44. data/lib/card/director/stages.rb +18 -16
  45. data/lib/card/director/store.rb +1 -1
  46. data/lib/card/director.rb +6 -7
  47. data/lib/card/env/location.rb +1 -1
  48. data/lib/card/env/serializable.rb +2 -0
  49. data/lib/card/env/serialization.rb +2 -3
  50. data/lib/card/env.rb +2 -2
  51. data/lib/card/error.rb +9 -5
  52. data/lib/card/format/error.rb +6 -12
  53. data/lib/card/format/nest.rb +1 -1
  54. data/lib/card/format/wrapper.rb +1 -1
  55. data/lib/card/format.rb +4 -0
  56. data/lib/card/model/save_helper/save_arguments.rb +0 -44
  57. data/lib/card/model/save_helper/save_helper_helper.rb +0 -37
  58. data/lib/card/model/save_helper.rb +0 -82
  59. data/lib/card/name/all.rb +1 -4
  60. data/lib/card/name/card_class.rb +0 -2
  61. data/lib/card/name/name_variants.rb +4 -0
  62. data/lib/card/name.rb +0 -5
  63. data/lib/card/query/abstract_query/query_helper.rb +3 -5
  64. data/lib/card/query/abstract_query/tie.rb +1 -1
  65. data/lib/card/query/abstract_query.rb +36 -17
  66. data/lib/card/query/card_class.rb +36 -0
  67. data/lib/card/query/card_query/custom.rb +12 -0
  68. data/lib/card/query/card_query/interpretation.rb +1 -0
  69. data/lib/card/query/card_query/normalization.rb +11 -3
  70. data/lib/card/query/card_query/reference_attributes.rb +3 -2
  71. data/lib/card/query/card_query/sorting.rb +5 -4
  72. data/lib/card/query/card_query.rb +1 -0
  73. data/lib/card/query/sql_statement/order.rb +12 -10
  74. data/lib/card/query/sql_statement/where.rb +2 -2
  75. data/lib/card/query.rb +5 -1
  76. data/lib/card/reference/all.rb +10 -10
  77. data/lib/card/set/advanced_api.rb +1 -1
  78. data/lib/card/set/event/all.rb +9 -1
  79. data/lib/card/set/event/delayed_event.rb +4 -2
  80. data/lib/card/set/event/options.rb +1 -1
  81. data/lib/card/set/event/skip_and_trigger.rb +34 -10
  82. data/lib/card/set/format/abstract_format/haml_views.rb +3 -3
  83. data/lib/card/set/format/abstract_format.rb +1 -1
  84. data/lib/card/set/format/haml_paths.rb +5 -21
  85. data/lib/card/set/inheritance.rb +4 -4
  86. data/lib/card/set/pattern/all.rb +1 -1
  87. data/lib/card/set/pattern/base.rb +1 -1
  88. data/lib/card/set/pattern/class_methods.rb +4 -4
  89. data/lib/card/set/trait.rb +1 -1
  90. data/lib/card/set/type.rb +0 -41
  91. data/lib/card/setting.rb +0 -1
  92. data/lib/card/subcards/all.rb +6 -8
  93. data/lib/card/subcards/args.rb +9 -9
  94. data/lib/card/view/cache/cache_action.rb +1 -1
  95. data/lib/card/view/options/visibility.rb +4 -0
  96. data/lib/card/view/options.rb +1 -0
  97. data/lib/card/view/permission.rb +12 -4
  98. data/lib/card/view.rb +4 -0
  99. data/lib/card.rb +18 -27
  100. data/lib/cardio/cli.rb +3 -1
  101. data/lib/cardio/command/application.rb +5 -0
  102. data/lib/cardio/{commands/command.rb → command/command_base.rb} +2 -2
  103. data/lib/cardio/{commands → command}/custom.rb +16 -13
  104. data/lib/cardio/{commands → command}/rake_command/parser.rb +3 -3
  105. data/lib/cardio/{commands → command}/rake_command.rb +4 -4
  106. data/lib/cardio/{commands → command}/rspec_command/parser.rb +2 -2
  107. data/lib/cardio/{commands → command}/rspec_command.rb +7 -9
  108. data/lib/cardio/command.rb +129 -0
  109. data/lib/cardio/commands.rb +17 -116
  110. data/lib/cardio/generators/deck_generator_loader.rb +1 -0
  111. data/lib/cardio/generators.rb +2 -2
  112. data/lib/cardio/migration.rb +3 -53
  113. data/lib/cardio/mod/class_methods.rb +26 -22
  114. data/lib/cardio/mod/dirs.rb +29 -22
  115. data/lib/cardio/mod/eat/edibles.rb +22 -15
  116. data/lib/cardio/mod/eat.rb +18 -14
  117. data/lib/cardio/mod/load_strategy/set_tmp_files.rb +1 -1
  118. data/lib/cardio/mod/load_strategy.rb +12 -2
  119. data/lib/cardio/mod/modfile_api.rb +18 -18
  120. data/lib/cardio/mod/{poop.rb → sow.rb} +10 -18
  121. data/lib/cardio/mod.rb +21 -30
  122. data/lib/cardio/railtie.rb +19 -56
  123. data/lib/cardio/schema.rb +2 -1
  124. data/lib/cardio/script_loader.rb +3 -1
  125. data/lib/cardio/seed.rb +101 -8
  126. data/lib/cardio/utils.rb +39 -1
  127. data/lib/generators/deck/deck_generator.rb +5 -2
  128. data/lib/generators/deck/templates/config/puma.rb +1 -1
  129. data/lib/generators/deck/templates/script/decko_rspec +1 -1
  130. data/lib/generators/deck/templates/simplecov.rb.erb +10 -8
  131. data/lib/generators/mod/USAGE +1 -1
  132. data/lib/generators/set/USAGE +2 -2
  133. data/mod/core/data/fixtures/real/card_actions.yml +78 -0
  134. data/{db/seed/new → mod/core/data/fixtures/real}/card_acts.yml +2 -2
  135. data/{db/seed/new → mod/core/data/fixtures/real}/card_changes.yml +0 -0
  136. data/mod/core/data/fixtures/real/card_references.yml +8 -0
  137. data/mod/core/data/fixtures/real/cards.yml +135 -0
  138. data/{db/seed/new → mod/core/data/fixtures/real}/schema_migrations.yml +0 -0
  139. data/{db/seed/new → mod/core/data/fixtures/real}/schema_migrations_core_cards.yml +0 -0
  140. data/{db/seed/new → mod/core/data/fixtures/real}/schema_migrations_deck.yml +0 -0
  141. data/{db/seed/new → mod/core/data/fixtures/real}/schema_migrations_deck_cards.yml +0 -0
  142. data/mod/core/data/real.yml +79 -0
  143. data/mod/core/data/test/cardtype.yml +38 -0
  144. data/mod/core/data/test/sample.yml +50 -0
  145. data/mod/core/data/test/user.yml +41 -0
  146. data/mod/core/data/test.yml +79 -28
  147. data/mod/core/lib/tasks/card/assets.rake +17 -0
  148. data/{lib → mod/core/lib}/tasks/card/create.rake +0 -0
  149. data/{lib → mod/core/lib}/tasks/card/migrate.rake +4 -0
  150. data/{lib → mod/core/lib}/tasks/card/mod.rake +4 -3
  151. data/mod/core/lib/tasks/card/seed.rake +58 -0
  152. data/mod/core/lib/tasks/card.rake +115 -0
  153. data/mod/core/locales/de.yml +4 -0
  154. data/mod/core/locales/en.yml +13 -0
  155. data/mod/core/set/all/admin.rb +14 -0
  156. data/mod/core/set/all/codename.rb +4 -0
  157. data/mod/core/set/all/content.rb +8 -4
  158. data/mod/core/set/all/{abort.rb → result.rb} +11 -15
  159. data/mod/core/set/all/states.rb +15 -1
  160. data/mod/core/set/all/trash.rb +25 -73
  161. data/mod/core/set/all/type.rb +2 -2
  162. data/mod/core/set/all/utils.rb +3 -87
  163. data/mod/core/set/right/autoname.rb +2 -0
  164. data/mod/core/set/self/admin/warning_alert.haml +3 -0
  165. data/mod/core/set/self/admin.rb +173 -0
  166. data/mod/core/set/type/cardtype.rb +2 -0
  167. data/mod/core/set_pattern/02_all_plus.rb +1 -1
  168. data/mod/core/set_pattern/05_rstar.rb +1 -1
  169. data/mod/core/set_pattern/06_rule.rb +1 -1
  170. data/mod/core/set_pattern/07_right.rb +1 -1
  171. data/mod/core/set_pattern/08_type_plus_right.rb +1 -1
  172. data/mod/core/spec/set/all/assign_attributes_spec.rb +3 -3
  173. data/mod/core/spec/set/all/autoname_spec.rb +25 -0
  174. data/mod/core/spec/set/all/codename_spec.rb +1 -1
  175. data/mod/core/spec/set/all/name_events_spec.rb +43 -66
  176. data/mod/core/spec/set/all/trash_spec.rb +149 -68
  177. data/mod/{admin → core}/spec/set/self/admin_spec.rb +25 -22
  178. data/mod/core/spec/set/self/trash_spec.rb +5 -0
  179. metadata +88 -251
  180. data/db/migrate_core_cards/20130411211600_delete_old_related_tab_cards.rb +0 -18
  181. data/db/migrate_core_cards/20130419215612_import_help_text.rb +0 -13
  182. data/db/migrate_core_cards/20130823192433_add_style_cards.rb +0 -100
  183. data/db/migrate_core_cards/20130910183318_move_styles_to_content.rb +0 -11
  184. data/db/migrate_core_cards/20130927191728_account_events.rb +0 -20
  185. data/db/migrate_core_cards/20131016172445_common_css_patch.rb +0 -9
  186. data/db/migrate_core_cards/20140110193325_reset_account_request_type.rb +0 -8
  187. data/db/migrate_core_cards/20140512155840_add_script_cards.rb +0 -86
  188. data/db/migrate_core_cards/20140629222005_add_email_cards.rb +0 -132
  189. data/db/migrate_core_cards/20140725180118_config_card_updates.rb +0 -9
  190. data/db/migrate_core_cards/20141111083921_delete_machine_output.rb +0 -7
  191. data/db/migrate_core_cards/20141115034214_config_descriptions_etc.rb +0 -14
  192. data/db/migrate_core_cards/20141119001955_make_symlinks_relative.rb +0 -15
  193. data/db/migrate_core_cards/20141120120605_fix_notification_html_message.rb +0 -10
  194. data/db/migrate_core_cards/20141216155251_add_more_following_cards.rb +0 -26
  195. data/db/migrate_core_cards/20141230204340_uri_codename.rb +0 -13
  196. data/db/migrate_core_cards/20150202143810_import_bootstrap_layout.rb +0 -76
  197. data/db/migrate_core_cards/20150317162412_bootstrap_themes.rb +0 -41
  198. data/db/migrate_core_cards/20150326205655_bootswatch_themes.rb +0 -36
  199. data/db/migrate_core_cards/20150331135745_new_card_menu.rb +0 -8
  200. data/db/migrate_core_cards/20150501010515_responsive_sidebar.rb +0 -11
  201. data/db/migrate_core_cards/20150508212032_menu_compatibility.rb +0 -24
  202. data/db/migrate_core_cards/20150528084659_add_session_cardtype.rb +0 -18
  203. data/db/migrate_core_cards/20150601133433_add_recent_setting_session_card.rb +0 -18
  204. data/db/migrate_core_cards/20150610171702_add_debugger_session_card.rb +0 -12
  205. data/db/migrate_core_cards/20150610180019_add_recaptcha_key_and_admin_info_cards.rb +0 -58
  206. data/db/migrate_core_cards/20150627205133_fix_script_bootstrap_card_type.rb +0 -7
  207. data/db/migrate_core_cards/20150702130543_remove_edit_toolbar_pinned.rb +0 -9
  208. data/db/migrate_core_cards/20150708224756_add_list_cards.rb +0 -29
  209. data/db/migrate_core_cards/20150903130006_attachment_upload_cards.rb +0 -15
  210. data/db/migrate_core_cards/20150910085603_remove_performance_log_card.rb +0 -10
  211. data/db/migrate_core_cards/20151120180631_add_token_expiration.rb +0 -7
  212. data/db/migrate_core_cards/20160801143221_change_bootstrap_card_type_to_scss.rb +0 -10
  213. data/db/migrate_core_cards/20160804112510_reorganize_scripts.rb +0 -27
  214. data/db/migrate_core_cards/20160908154210_add_trash_card.rb +0 -7
  215. data/db/migrate_core_cards/20161102202156_tweak_recaptcha_setting_cards.rb +0 -17
  216. data/db/migrate_core_cards/20170209132834_email_test_context.rb +0 -49
  217. data/db/migrate_core_cards/20170314175313_add_notification_event_card.rb +0 -20
  218. data/db/migrate_core_cards/20170515101262_add_advanced_edit_cards.rb +0 -20
  219. data/db/migrate_core_cards/20170608083819_add_full_width_layout_card.rb +0 -23
  220. data/db/migrate_core_cards/20170608200649_add_input_options_codename.rb +0 -8
  221. data/db/migrate_core_cards/20180423120222_add_mod_styles_card.rb +0 -20
  222. data/db/migrate_core_cards/20180508210903_add_json_type.rb +0 -10
  223. data/db/migrate_core_cards/20180515175726_add_codenames.rb +0 -8
  224. data/db/migrate_core_cards/20180712042655_head_rule.rb +0 -13
  225. data/db/migrate_core_cards/20181120200937_update_layout.rb +0 -7
  226. data/db/migrate_core_cards/20190204195039_add_rule_card.rb +0 -10
  227. data/db/migrate_core_cards/20190321085735_wagn_to_decko_logo.rb +0 -11
  228. data/db/migrate_core_cards/20190417142612_reorganize_scripts_2.rb +0 -17
  229. data/db/migrate_core_cards/20190424100531_update_credit_image.rb +0 -76
  230. data/db/migrate_core_cards/20190424101004_add_read_anyone_rules.rb +0 -13
  231. data/db/migrate_core_cards/20190503122739_update_pristine_data.rb +0 -18
  232. data/db/migrate_core_cards/20190605133556_tweak_config_cards.rb +0 -10
  233. data/db/migrate_core_cards/20190618110446_add_dropdown_divider.rb +0 -8
  234. data/db/migrate_core_cards/20190621143156_add_role_assign_permissions.rb +0 -9
  235. data/db/migrate_core_cards/20190710090209_homepage_tweaks.rb +0 -13
  236. data/db/migrate_core_cards/20190820155833_update_cardtype_type_structure.rb +0 -7
  237. data/db/migrate_core_cards/20190823220018_cleanup_for_decko_1_0.rb +0 -19
  238. data/db/migrate_core_cards/20190826132738_add_more_guides.rb +0 -7
  239. data/db/migrate_core_cards/20190829093961_cardtype_grouping.rb +0 -16
  240. data/db/migrate_core_cards/20190830131820_setting_settings_aside.rb +0 -17
  241. data/db/migrate_core_cards/20190902161223_add_style_media.rb +0 -7
  242. data/db/migrate_core_cards/20190918200115_ensure_description_card.rb +0 -13
  243. data/db/migrate_core_cards/20191008201046_fixture_fix.rb +0 -11
  244. data/db/migrate_core_cards/20191028135243_add_link_editor_to_tiny_mce_config.rb +0 -9
  245. data/db/migrate_core_cards/20191118145629_codename_fixes.rb +0 -5
  246. data/db/migrate_core_cards/20200821231558_add_nest_list_type.rb +0 -9
  247. data/db/migrate_core_cards/data/1.11_help_text.json +0 -410
  248. data/db/migrate_core_cards/data/1.12_stylesheets/classic_cards.scss +0 -104
  249. data/db/migrate_core_cards/data/1.12_stylesheets/common.scss +0 -228
  250. data/db/migrate_core_cards/data/1.12_stylesheets/right_sidebar.scss +0 -27
  251. data/db/migrate_core_cards/data/1.12_stylesheets/traditional.scss +0 -143
  252. data/db/migrate_core_cards/data/1.13_config_text.json +0 -32
  253. data/db/migrate_core_cards/data/1.14_config_descriptions_etc.json +0 -77
  254. data/db/migrate_core_cards/data/bootstrap_layout.json +0 -96
  255. data/db/migrate_core_cards/data/cards/Xaccount +0 -22
  256. data/db/migrate_core_cards/data/cards/Xaccount_setting-Xright-Xstructure +0 -12
  257. data/db/migrate_core_cards/data/cards/Xall-Xlayout +0 -1
  258. data/db/migrate_core_cards/data/cards/Xcredit +0 -2
  259. data/db/migrate_core_cards/data/cards/Xfooter +0 -3
  260. data/db/migrate_core_cards/data/cards/Xgetting_started +0 -31
  261. data/db/migrate_core_cards/data/cards/Xgetting_started-shark +0 -66
  262. data/db/migrate_core_cards/data/cards/Xgetting_started_link +0 -6
  263. data/db/migrate_core_cards/data/cards/Xheader +0 -19
  264. data/db/migrate_core_cards/data/cards/Xhome +0 -1
  265. data/db/migrate_core_cards/data/cards/Xlogo +0 -1
  266. data/db/migrate_core_cards/data/cards/Xmain_menu +0 -2
  267. data/db/migrate_core_cards/data/cards/Xrecaptcha_setting-Xself-Xstructure +0 -1
  268. data/db/migrate_core_cards/data/cards/Xsidebar +0 -7
  269. data/db/migrate_core_cards/data/cards/Xstructure-Xright-Xguide +0 -12
  270. data/db/migrate_core_cards/data/cards/Xtitle +0 -1
  271. data/db/migrate_core_cards/data/cards/administrator-dashboard +0 -23
  272. data/db/migrate_core_cards/data/cards/administrator-description +0 -1
  273. data/db/migrate_core_cards/data/cards/anyone_signed_in-dashboard +0 -0
  274. data/db/migrate_core_cards/data/cards/cardtype-Xtype-Xguide +0 -24
  275. data/db/migrate_core_cards/data/cards/cardtype-Xtype-Xstructure +0 -3
  276. data/db/migrate_core_cards/data/cards/default_layout +0 -6
  277. data/db/migrate_core_cards/data/cards/full_width_layout +0 -5
  278. data/db/migrate_core_cards/data/cards/help_desk-dashboard +0 -7
  279. data/db/migrate_core_cards/data/cards/help_desk-description +0 -1
  280. data/db/migrate_core_cards/data/cards/home +0 -2
  281. data/db/migrate_core_cards/data/cards/home-Xself-Xlayout +0 -1
  282. data/db/migrate_core_cards/data/cards/home-original +0 -22
  283. data/db/migrate_core_cards/data/cards/home_layout +0 -6
  284. data/db/migrate_core_cards/data/cards/left_sidebar_layout +0 -6
  285. data/db/migrate_core_cards/data/cards/menu +0 -1
  286. data/db/migrate_core_cards/data/cards/right_thin_sidebar_layout +0 -8
  287. data/db/migrate_core_cards/data/cards/role-Xtype-Xstructure +0 -2
  288. data/db/migrate_core_cards/data/cards/shark-dashboard +0 -19
  289. data/db/migrate_core_cards/data/cards/shark-description +0 -1
  290. data/db/migrate_core_cards/data/cards/shark_menu +0 -2
  291. data/db/migrate_core_cards/data/cards.yml +0 -138
  292. data/db/migrate_core_cards/data/decko_logo.svg +0 -1
  293. data/db/migrate_core_cards/data/mailer/follower_notification_email.html +0 -9
  294. data/db/migrate_core_cards/data/mailer/follower_notification_email.txt +0 -11
  295. data/db/migrate_core_cards/data/mailer/mail_config.json +0 -22
  296. data/db/migrate_core_cards/data/mailer/password_reset_email.html +0 -13
  297. data/db/migrate_core_cards/data/mailer/password_reset_email.txt +0 -11
  298. data/db/migrate_core_cards/data/mailer/signup_alert_email.html +0 -7
  299. data/db/migrate_core_cards/data/mailer/signup_alert_email.txt +0 -5
  300. data/db/migrate_core_cards/data/mailer/verification_email.html +0 -12
  301. data/db/migrate_core_cards/data/mailer/verification_email.txt +0 -9
  302. data/db/migrate_core_cards/data/skin_images.json +0 -91
  303. data/db/migrate_core_cards/data/themes/bootstrap_default/_bootswatch.scss +0 -0
  304. data/db/migrate_core_cards/data/themes/bootstrap_default/_variables.scss +0 -867
  305. data/db/migrate_core_cards/data/themes/cerulean/_bootswatch.scss +0 -125
  306. data/db/migrate_core_cards/data/themes/cerulean/_variables.scss +0 -861
  307. data/db/migrate_core_cards/data/themes/cosmo/_bootswatch.scss +0 -237
  308. data/db/migrate_core_cards/data/themes/cosmo/_variables.scss +0 -861
  309. data/db/migrate_core_cards/data/themes/cyborg/_bootswatch.scss +0 -210
  310. data/db/migrate_core_cards/data/themes/cyborg/_variables.scss +0 -861
  311. data/db/migrate_core_cards/data/themes/darkly/_bootswatch.scss +0 -330
  312. data/db/migrate_core_cards/data/themes/darkly/_variables.scss +0 -861
  313. data/db/migrate_core_cards/data/themes/flatly/_bootswatch.scss +0 -313
  314. data/db/migrate_core_cards/data/themes/flatly/_variables.scss +0 -861
  315. data/db/migrate_core_cards/data/themes/journal/_bootswatch.scss +0 -120
  316. data/db/migrate_core_cards/data/themes/journal/_variables.scss +0 -861
  317. data/db/migrate_core_cards/data/themes/lumen/_bootswatch.scss +0 -496
  318. data/db/migrate_core_cards/data/themes/lumen/_variables.scss +0 -861
  319. data/db/migrate_core_cards/data/themes/paper/_bootswatch.scss +0 -607
  320. data/db/migrate_core_cards/data/themes/paper/_variables.scss +0 -861
  321. data/db/migrate_core_cards/data/themes/readable/_bootswatch.scss +0 -174
  322. data/db/migrate_core_cards/data/themes/readable/_variables.scss +0 -861
  323. data/db/migrate_core_cards/data/themes/sandstone/_bootswatch.scss +0 -194
  324. data/db/migrate_core_cards/data/themes/sandstone/_variables.scss +0 -861
  325. data/db/migrate_core_cards/data/themes/simplex/_bootswatch.scss +0 -142
  326. data/db/migrate_core_cards/data/themes/simplex/_variables.scss +0 -861
  327. data/db/migrate_core_cards/data/themes/slate/_bootswatch.scss +0 -417
  328. data/db/migrate_core_cards/data/themes/slate/_variables.scss +0 -861
  329. data/db/migrate_core_cards/data/themes/spacelab/_bootswatch.scss +0 -137
  330. data/db/migrate_core_cards/data/themes/spacelab/_variables.scss +0 -861
  331. data/db/migrate_core_cards/data/themes/superhero/_bootswatch.scss +0 -332
  332. data/db/migrate_core_cards/data/themes/superhero/_variables.scss +0 -861
  333. data/db/migrate_core_cards/data/themes/united/_bootswatch.scss +0 -42
  334. data/db/migrate_core_cards/data/themes/united/_variables.scss +0 -861
  335. data/db/migrate_core_cards/data/themes/yeti/_bootswatch.scss +0 -437
  336. data/db/migrate_core_cards/data/themes/yeti/_variables.scss +0 -861
  337. data/db/seed/README.md +0 -2
  338. data/db/seed/new/card_actions.yml +0 -5913
  339. data/db/seed/new/card_references.yml +0 -6532
  340. data/db/seed/new/cards.yml +0 -14595
  341. data/db/seed/test/fixtures/card_actions.yml +0 -8153
  342. data/db/seed/test/fixtures/card_acts.yml +0 -1039
  343. data/db/seed/test/fixtures/card_changes.yml +0 -230
  344. data/db/seed/test/fixtures/card_references.yml +0 -8471
  345. data/db/seed/test/fixtures/cards.yml +0 -20171
  346. data/db/seed/test/fixtures/file1.txt +0 -1
  347. data/db/seed/test/fixtures/file2.txt +0 -1
  348. data/db/seed/test/fixtures/mao2.jpg +0 -0
  349. data/db/seed/test/fixtures/rails.gif +0 -0
  350. data/db/seed/test/fixtures/schema_migrations.yml +0 -67
  351. data/db/seed/test/fixtures/schema_migrations_core_cards.yml +0 -347
  352. data/db/seed/test/fixtures/schema_migrations_deck.yml +0 -1
  353. data/db/seed/test/fixtures/schema_migrations_deck_cards.yml +0 -5
  354. data/db/test_seed.rb +0 -322
  355. data/lib/card/content/truncate.rb +0 -67
  356. data/lib/card/director/card_methods.rb +0 -45
  357. data/lib/card/file_card_creator/abstract_file_card/migration_file.rb +0 -50
  358. data/lib/card/file_card_creator/abstract_file_card/ruby_file.rb +0 -30
  359. data/lib/card/file_card_creator/abstract_file_card/source_file.rb +0 -36
  360. data/lib/card/file_card_creator/abstract_file_card.rb +0 -44
  361. data/lib/card/file_card_creator/haml_card.rb +0 -42
  362. data/lib/card/file_card_creator/output_helper.rb +0 -53
  363. data/lib/card/file_card_creator/script_card.rb +0 -35
  364. data/lib/card/file_card_creator/style_card.rb +0 -25
  365. data/lib/card/file_card_creator.rb +0 -25
  366. data/lib/card/name/fields_and_traits.rb +0 -42
  367. data/lib/cardio/commands/application.rb +0 -10
  368. data/lib/cardio/migration/import/import_data/card_attributes.rb +0 -64
  369. data/lib/cardio/migration/import/import_data/card_content.rb +0 -30
  370. data/lib/cardio/migration/import/import_data.rb +0 -119
  371. data/lib/cardio/migration/import/merger.rb +0 -46
  372. data/lib/cardio/migration/import.rb +0 -125
  373. data/lib/tasks/card.rake +0 -65
  374. data/mod/admin/locales/de.yml +0 -4
  375. data/mod/admin/locales/en.yml +0 -4
  376. data/mod/admin/set/all/admin.rb +0 -16
  377. data/mod/admin/set/self/admin.rb +0 -144
  378. data/mod/admin/set/self/admin_info.rb +0 -40
  379. data/mod/admin/set/self/debugger.rb +0 -3
  380. data/mod/admin/spec/set/self/admin_info_spec.rb +0 -9
  381. data/mod/core/data/production.yml +0 -7
  382. data/mod/core/set/all/collection.rb +0 -53
  383. data/mod/core/spec/set/all/collection_spec.rb +0 -170
  384. data/mod/core/spec/set/all/utils_spec.rb +0 -5
  385. data/mod/standard/data/files/favicon/image-icon.png +0 -0
  386. data/mod/standard/data/files/favicon/image-large.png +0 -0
  387. data/mod/standard/data/files/favicon/image-medium.png +0 -0
  388. data/mod/standard/data/files/favicon/image-original.png +0 -0
  389. data/mod/standard/data/files/favicon/image-small.png +0 -0
  390. data/mod/standard/data/files/logo/image-original.svg +0 -1
data/lib/cardio/utils.rb CHANGED
@@ -2,8 +2,18 @@ module Cardio
2
2
  # Utilities that may need to be run even when mods are not loaded.
3
3
  module Utils
4
4
  class << self
5
+ def empty_trash
6
+ delete_trashed_files
7
+ Card.where(trash: true).in_batches.update_all(left_id: nil, right_id: nil)
8
+ Card.where(trash: true).in_batches.delete_all
9
+ Card::Action.delete_cardless
10
+ Card::Change.delete_actionless
11
+ Card::Act.delete_actionless
12
+ Card::Reference.clean
13
+ end
14
+
5
15
  def seed_test_db
6
- system "env RAILS_ENV=test bundle exec rake db:fixtures:load"
16
+ system "env RAILS_ENV=test bundle exec rake db:seed:replant"
7
17
  end
8
18
 
9
19
  # deletes tmp directory within files directory
@@ -20,6 +30,23 @@ module Cardio
20
30
 
21
31
  private
22
32
 
33
+ # deletes any file not associated with a real card.
34
+ def delete_trashed_files
35
+ dir = Cardio.paths["files"].existent.first
36
+ # TODO: handle cloud files
37
+ return unless dir
38
+
39
+ (all_trashed_card_ids & all_file_ids).each do |file_id|
40
+ delete_files_with_id dir, file_id
41
+ end
42
+ end
43
+
44
+ def delete_files_with_id dir, file_id
45
+ raise Card::Error, t(:core_exception_almost_deleted) if Card.exists?(file_id)
46
+
47
+ ::FileUtils.rm_rf "#{dir}/#{file_id}", secure: true
48
+ end
49
+
23
50
  def delete_tmp_files id=nil
24
51
  dir = [files_dir, "tmp", id.to_s].compact.join "/"
25
52
  FileUtils.rm_rf dir, secure: true
@@ -28,6 +55,17 @@ module Cardio
28
55
  def files_dir
29
56
  @files_dir ||= Cardio.paths["files"].existent.first
30
57
  end
58
+
59
+ def all_file_ids
60
+ dir = Card.paths["files"].existent.first
61
+ Dir.entries(dir)[2..-1].map(&:to_i)
62
+ end
63
+
64
+ def all_trashed_card_ids
65
+ trashed_card_sql = %( select id from cards where trash is true )
66
+ sql_results = Card.connection.select_all(trashed_card_sql)
67
+ sql_results.map(&:values).flatten.map(&:to_i)
68
+ end
31
69
  end
32
70
  end
33
71
  end
@@ -1,4 +1,5 @@
1
1
  require "rails/generators/app_base"
2
+ require "cardio/generators/deck_generator_loader"
2
3
 
3
4
  module Cardio
4
5
  module Generators
@@ -11,6 +12,8 @@ module Cardio
11
12
  include RailsOverrides
12
13
  include DeckHelper
13
14
 
15
+ extend ClassMethods
16
+
14
17
  source_root File.expand_path("templates", __dir__)
15
18
 
16
19
  # All but the first aliases should be considered deprecated
@@ -28,7 +31,7 @@ module Cardio
28
31
  type: :string, aliases: %w[-R -g --gem-path],
29
32
  default: "", group: :runtime,
30
33
  desc: "Path to local decko repository " \
31
- "(Default, use env DECKO_REPO_PATH)"
34
+ "(Can also set via DECKO_REPO_PATH)"
32
35
 
33
36
  class_option :database,
34
37
  type: :string, aliases: %w[-D -d], default: "mysql",
@@ -43,7 +46,7 @@ module Cardio
43
46
  public_task :create_root
44
47
 
45
48
  def self.banner
46
- "decko new #{arguments.map(&:usage).join(' ')} [options]"
49
+ "#{banner_command} new #{arguments.map(&:usage).join(' ')} [options]"
47
50
  end
48
51
 
49
52
  # Generator works its way through each public method below
@@ -5,7 +5,7 @@ threads min_threads_count, max_threads_count
5
5
 
6
6
  preload_app!
7
7
 
8
- rackup DefaultRackup
8
+ # rackup DefaultRackup
9
9
  port ENV["PORT"] || 3000
10
10
  environment ENV["RACK_ENV"] || "development"
11
11
 
@@ -4,5 +4,5 @@
4
4
  ENV["RAILS_ENV"] = "test"
5
5
  ENV["RAILS_ROOT"] = "."
6
6
  BUNDLE_GEMFILE = File.expand_path "../../Gemfile", __FILE__
7
- ARGV.insert 0, "rspec", "--no-simplecov", "--"
7
+ ARGV.insert 0, "rspec", "--"
8
8
  load File.expand_path("../decko", __FILE__)
@@ -1,5 +1,5 @@
1
1
 
2
- if ENV["<%= 'REPO_' if platypus? %>TMPSETS"] && ENV["COVERAGE"] != "false"
2
+ if (ENV["CARD_LOAD_STRATEGY"] == "tmp_files") && ENV["CARD_SIMPLECOV"] != "false"
3
3
  SimpleCov.start do
4
4
  def add_mod_groups dir_pattern
5
5
  Dir[dir_pattern].each do |path|
@@ -9,18 +9,20 @@ if ENV["<%= 'REPO_' if platypus? %>TMPSETS"] && ENV["COVERAGE"] != "false"
9
9
  end
10
10
  <% if platypus? %>
11
11
  root "<%= expanded_repo_path %>"
12
+ add_mod_groups "#{root}/{card/,}/mod/*"
13
+
14
+ add_group "Cardname", "cardname/lib"
15
+ add_group "Card", "card/lib"
16
+ add_group "Decko", "decko/lib"
17
+ add_group "Set Patterns", "tmp/set_pattern"
12
18
 
13
19
  add_filter "/generators/"
14
20
  add_filter "_spec_helper"
15
- add_filter "test_seed"
16
-
17
- add_group "Card", "card/"
18
- add_group "Cardname", "cardname"
19
- add_group "Decko", "decko"
20
-
21
- add_mod_groups "#{root}/{card/,}/mod/*"
22
21
  <% else %>
23
22
  add_mod_groups "mod/*"
23
+
24
+ add_filter "tmp/set/gem"
25
+ add_filter "tmp/set_pattern"
24
26
  <% end %>
25
27
  add_filter "/spec/"
26
28
  add_filter "/features/"
@@ -2,7 +2,7 @@ Description:
2
2
  Generates new mod
3
3
 
4
4
  Example:
5
- <%= banner_command %> generate card:mod clothing
5
+ <%= banner_command %> generate mod clothing
6
6
 
7
7
  This will create:
8
8
 
@@ -2,7 +2,7 @@ Description:
2
2
  Generates new set files in mods and matching specs.
3
3
 
4
4
  Examples:
5
- <%= banner_command %> generate card:set clothing type tshirt
5
+ <%= banner_command %> generate set clothing type tshirt
6
6
 
7
7
  This will create:
8
8
 
@@ -17,7 +17,7 @@ Examples:
17
17
  tshirt_spec.rb
18
18
 
19
19
 
20
- <%= banner_command %> generate card:set clothing type_plus_right basic about tshirt
20
+ <%= banner_command %> generate set clothing type_plus_right basic about tshirt
21
21
 
22
22
  This will create:
23
23
 
@@ -0,0 +1,78 @@
1
+ ---
2
+ card_actions_001:
3
+ id: 1
4
+ card_id: 1
5
+ card_act_id: 1
6
+ super_action_id:
7
+ action_type: 0
8
+ draft: false
9
+ card_actions_002:
10
+ id: 2
11
+ card_id: 2
12
+ card_act_id: 1
13
+ super_action_id:
14
+ action_type: 0
15
+ draft: false
16
+ card_actions_003:
17
+ id: 3
18
+ card_id: 3
19
+ card_act_id: 1
20
+ super_action_id:
21
+ action_type: 0
22
+ draft: false
23
+ card_actions_004:
24
+ id: 4
25
+ card_id: 4
26
+ card_act_id: 1
27
+ super_action_id:
28
+ action_type: 0
29
+ draft: false
30
+ card_actions_005:
31
+ id: 5
32
+ card_id: 5
33
+ card_act_id: 1
34
+ super_action_id:
35
+ action_type: 0
36
+ draft: false
37
+ card_actions_006:
38
+ id: 6
39
+ card_id: 6
40
+ card_act_id: 1
41
+ super_action_id:
42
+ action_type: 0
43
+ draft: false
44
+ card_actions_007:
45
+ id: 7
46
+ card_id: 7
47
+ card_act_id: 1
48
+ super_action_id:
49
+ action_type: 0
50
+ draft: false
51
+ card_actions_008:
52
+ id: 8
53
+ card_id: 8
54
+ card_act_id: 1
55
+ super_action_id:
56
+ action_type: 0
57
+ draft: false
58
+ card_actions_009:
59
+ id: 9
60
+ card_id: 9
61
+ card_act_id: 1
62
+ super_action_id:
63
+ action_type: 0
64
+ draft: false
65
+ card_actions_010:
66
+ id: 10
67
+ card_id: 10
68
+ card_act_id: 1
69
+ super_action_id:
70
+ action_type: 0
71
+ draft: false
72
+ card_actions_011:
73
+ id: 11
74
+ card_id: 11
75
+ card_act_id: 1
76
+ super_action_id:
77
+ action_type: 0
78
+ draft: false
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  card_acts_001:
3
- id: 101118
3
+ id: 104999
4
4
  card_id: 1
5
5
  actor_id: 1
6
- acted_at: 2021-11-29 18:32:36.000000000 Z
6
+ acted_at: 2022-04-01 14:38:11.000000000 Z
7
7
  ip_address:
@@ -0,0 +1,8 @@
1
+ ---
2
+ card_references_001:
3
+ id: 1
4
+ referer_id: 500
5
+ referee_key: decko_bot
6
+ referee_id: 1
7
+ ref_type: L
8
+ is_present: 1
@@ -0,0 +1,135 @@
1
+ ---
2
+ cards_001:
3
+ id: 1
4
+ name: Decko Bot
5
+ key: decko_bot
6
+ codename: wagn_bot
7
+ creator_id: 1
8
+ updater_id: 1
9
+ read_rule_class: "*all"
10
+ read_rule_id: 10
11
+ trash: false
12
+ type_id: 2
13
+ db_content: ""
14
+ cards_002:
15
+ id: 2
16
+ name: RichText
17
+ key: rich_text
18
+ codename: basic
19
+ creator_id: 1
20
+ updater_id: 1
21
+ read_rule_class: "*all"
22
+ read_rule_id: 10
23
+ trash: false
24
+ type_id: 3
25
+ db_content: ""
26
+ cards_003:
27
+ id: 3
28
+ name: Cardtype
29
+ key: cardtype
30
+ codename: cardtype
31
+ creator_id: 1
32
+ updater_id: 1
33
+ read_rule_class: "*all"
34
+ read_rule_id: 10
35
+ trash: false
36
+ type_id: 3
37
+ db_content: ""
38
+ cards_004:
39
+ id: 4
40
+ name: List
41
+ key: list
42
+ codename: list
43
+ creator_id: 1
44
+ updater_id: 1
45
+ read_rule_class: "*all"
46
+ read_rule_id: 10
47
+ trash: false
48
+ type_id: 3
49
+ db_content: ""
50
+ cards_005:
51
+ id: 5
52
+ name: Set
53
+ key: set
54
+ codename: set
55
+ creator_id: 1
56
+ updater_id: 1
57
+ read_rule_class: "*all"
58
+ read_rule_id: 10
59
+ trash: false
60
+ type_id: 2
61
+ db_content: ""
62
+ cards_006:
63
+ id: 6
64
+ name: Setting
65
+ key: setting
66
+ codename: setting
67
+ creator_id: 1
68
+ updater_id: 1
69
+ read_rule_class: "*all"
70
+ read_rule_id: 10
71
+ trash: false
72
+ type_id: 3
73
+ db_content: ""
74
+ cards_007:
75
+ id: 7
76
+ name: "*all"
77
+ key: "*all"
78
+ codename: all
79
+ creator_id: 1
80
+ updater_id: 1
81
+ read_rule_class: "*all"
82
+ read_rule_id: 10
83
+ trash: false
84
+ type_id: 5
85
+ db_content: "{}"
86
+ cards_008:
87
+ id: 8
88
+ name: "*default"
89
+ key: "*default"
90
+ codename: default
91
+ creator_id: 1
92
+ updater_id: 1
93
+ read_rule_class: "*all"
94
+ read_rule_id: 10
95
+ trash: false
96
+ type_id: 6
97
+ db_content: ""
98
+ cards_009:
99
+ id: 9
100
+ name: "*read"
101
+ key: "*read"
102
+ codename: read
103
+ creator_id: 1
104
+ updater_id: 1
105
+ read_rule_class: "*all"
106
+ read_rule_id: 10
107
+ trash: false
108
+ type_id: 6
109
+ db_content: ""
110
+
111
+ # *all+*read
112
+ cards_010:
113
+ id: 10
114
+ left_id: 7
115
+ right_id: 9
116
+ creator_id: 1
117
+ updater_id: 1
118
+ read_rule_class: "*all"
119
+ read_rule_id: 10
120
+ trash: false
121
+ type_id: 4
122
+ db_content: Decko Bot
123
+ # *all+*default
124
+ cards_011:
125
+ id: 11
126
+ left_id: 7
127
+ right_id: 8
128
+ creator_id: 1
129
+ updater_id: 1
130
+ read_rule_class: "*all"
131
+ read_rule_id: 10
132
+ trash: false
133
+ type_id: 2
134
+ db_content: ""
135
+
@@ -0,0 +1,79 @@
1
+ ---
2
+
3
+ - :name: description
4
+ :codename: description
5
+
6
+ - :name: "*admin"
7
+ :codename: admin
8
+
9
+ - :name: Cardtype
10
+ :type: :cardtype
11
+ :codename: cardtype
12
+ :fields:
13
+ :description: |-
14
+ <p>
15
+ Every card has a type, which shapes the kind of information it holds.
16
+ [[http://decko.org/card_types|more]]
17
+ </p>
18
+ - :name: Decko Bot
19
+ :codename: wagn_bot
20
+ :content: |-
21
+ <p>
22
+ This is the account that makes any automated updates &mdash; cards
23
+ created when someone signs up, link updates when renaming cards, etc.
24
+ </p>
25
+
26
+ - :name: Mod
27
+ :type: :cardtype
28
+ :codename: mod
29
+ - :name: Setting
30
+ :type: :cardtype
31
+ :codename: setting
32
+
33
+
34
+ - :name: "*version"
35
+ :codename: version
36
+ - :name: "*autoname"
37
+ :type: :setting
38
+ :codename: autoname
39
+
40
+ # user needed early because of references to UserID in preference cache
41
+ - :name: User
42
+ :type: :cardtype
43
+ :codename: user
44
+ :fields:
45
+ :description: |-
46
+ {{_l|name}} cards can support accounts, profile pages, and more.
47
+ [[http://decko.org/Users|more]]
48
+
49
+
50
+ # Set Pattern Cards
51
+
52
+ - :name: "*all"
53
+ :type: :set
54
+ :codename: all
55
+ :content: "{}"
56
+ - :name: "*all plus"
57
+ :type: :set
58
+ :codename: all_plus
59
+ :content: '{"compound":true}'
60
+ - :name: "*type"
61
+ :codename: type
62
+ - :name: "*star"
63
+ :type: :set
64
+ :codename: star
65
+ :content: '{"complete":"*"}'
66
+ - :name: "*rstar"
67
+ :type: :set
68
+ :codename: rstar
69
+ :content: '{"right":{"complete":"*"}}'
70
+ - :name: "*rule"
71
+ :type: :set
72
+ :codename: rule
73
+ - :name: "*type plus right"
74
+ :codename: type_plus_right
75
+ - :name: "*right"
76
+ :codename: right
77
+ - :name: "*self"
78
+ :codename: self
79
+
@@ -0,0 +1,38 @@
1
+ - :name: Cardtype A
2
+ :type: :cardtype
3
+ :codename: cardtype_a
4
+ - :name: Cardtype B
5
+ :type: :cardtype
6
+ :codename: cardtype_b
7
+ - :name: Cardtype C
8
+ :type: :cardtype
9
+ :codename: cardtype_c
10
+ - :name: Cardtype D
11
+ :type: :cardtype
12
+ :codename: cardtype_d
13
+ - :name: Cardtype E
14
+ :type: :cardtype
15
+ :codename: cardtype_e
16
+ - :name: Cardtype F
17
+ :type: :cardtype
18
+ :codename: cardtype_f
19
+
20
+ - :name: type-a-card
21
+ :type: :cardtype_a
22
+ :content: type_a_content
23
+ - :name: type-b-card
24
+ :type: :cardtype_b
25
+ :content: type_b_content
26
+ - :name: type-c-card
27
+ :type: :cardtype_c
28
+ :content: type_c_content
29
+ - :name: type-d-card
30
+ :type: :cardtype_d
31
+ :content: type_d_content
32
+ - :name: type-e-card
33
+ :type: :cardtype_e
34
+ :content: type_e_content
35
+ - :name: type-f-card
36
+ :type: :cardtype_f
37
+ :content: type_f_content
38
+
@@ -0,0 +1,50 @@
1
+ - :name: Sample Cardtype
2
+ :type: :cardtype
3
+ - :name: Sample CSS
4
+ :type: :css
5
+ - :name: Sample CoffeeScript
6
+ :type: :coffee_script
7
+ - :name: Sample Date
8
+ :type: :date
9
+ - :name: Sample Email template
10
+ :type: :email_template
11
+ - :name: Sample HTML
12
+ :type: :html
13
+ - :name: Sample JSON
14
+ :type: :json
15
+ - :name: Sample JavaScript
16
+ :type: :java_script
17
+ - :name: Sample Layout
18
+ :type: :layout_type
19
+ :content: "{{_main}}"
20
+ - :name: Sample Link list
21
+ :type: :link_list
22
+ - :name: Sample List
23
+ :type: :list
24
+ - :name: Sample Markdown
25
+ :type: :markdown
26
+ - :name: Sample Nest list
27
+ :type: :nest_list
28
+ - :name: Sample Notification template
29
+ :type: :notification_template
30
+ - :name: Sample Phrase
31
+ :type: :phrase
32
+ - :name: Sample PlainText
33
+ :type: :plain_text
34
+ - :name: Sample Pointer
35
+ :type: :pointer
36
+ - :name: Sample RichText
37
+ - :name: Sample Role
38
+ :type: :role
39
+ - :name: Sample SCSS
40
+ :type: :scss
41
+ - :name: Sample Search
42
+ :type: :search_type
43
+ - :name: Sample Skin
44
+ :type: :skin
45
+ - :name: Sample Toggle
46
+ :type: :toggle
47
+ - :name: Sample Twitter template
48
+ :type: :twitter_template
49
+ - :name: Sample URI
50
+ :type: :uri
@@ -0,0 +1,41 @@
1
+ ---
2
+ - :name: Joe Admin
3
+ :type: :user
4
+ :content: I'm number one
5
+ :conflict: :defer
6
+ :fields:
7
+ :account:
8
+ :fields:
9
+ :email: joe@admin.com
10
+ :password: joe_pass
11
+ - :name: Joe User
12
+ :type: :user
13
+ :content: I'm number two
14
+ :user: Joe Admin
15
+ :conflict: :defer
16
+ :fields:
17
+ :account:
18
+ :fields:
19
+ :email: joe@user.com
20
+ :password: joe_pass
21
+ - :name: Joe Camel
22
+ :type: :user
23
+ :content: Mr. Buttz
24
+ :conflict: :defer
25
+ :fields:
26
+ :account:
27
+ :fields:
28
+ :email: joe@camel.com
29
+ :password: joe_pass
30
+ - :name: No Count
31
+ :type: :user
32
+ :content: I got no account
33
+ - :name: Sample User
34
+ :type: :user
35
+ :conflict: :defer
36
+ :fields:
37
+ :account:
38
+ :fields:
39
+ :email: sample@user.com
40
+ :password: sample_pass
41
+