card 1.104.2 → 1.105.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -6
- data/VERSION +1 -1
- data/config/environments/development.rb +1 -1
- data/config/environments/test.rb +1 -0
- data/config/initializers/01_core_extensions/object.rb +10 -0
- data/config/initializers/01_core_extensions/string.rb +9 -0
- data/config/initializers/core_extensions.rb +1 -0
- data/db/migrate/{20160122153608_new_indeces.rb → 20160122153608_new_indices.rb} +2 -2
- data/db/migrate/{20200805200729_add_unique_pair_indeces.rb → 20200805200729_add_unique_pair_indices.rb} +1 -1
- data/db/migrate/20221031182227_remove_referee_key_requirement.rb +11 -0
- data/db/migrate_core_cards/20130920291703_update_stylesheets.rb +1 -9
- data/db/migrate_core_cards/20140307231621_user_data_to_cards.rb +1 -38
- data/db/migrate_core_cards/20161103154836_update_keys.rb +1 -1
- data/db/migrate_core_cards/20180905061537_migrate_layouts.rb +1 -1
- data/db/migrate_core_cards/20190125125150_add_script_rules_card.rb +1 -1
- data/db/migrate_core_cards/20190320091257_upgrade_recaptcha_to_v3.rb +1 -1
- data/db/migrate_core_cards/20190502130029_add_shark_and_help_desk_role.rb +2 -20
- data/db/migrate_core_cards/20190528131330_enabled_roles.rb +0 -3
- data/db/migrate_core_cards/20190625153616_pointer_overhaul.rb +0 -2
- data/db/migrate_core_cards/20190718140126_add_guides.rb +1 -1
- data/db/migrate_core_cards/20190822093633_move_help_text_to_code.rb +1 -1
- data/db/migrate_core_cards/20190829205148_remove_add_help.rb +1 -1
- data/db/migrate_core_cards/20190902193208_input_type.rb +1 -1
- data/db/migrate_core_cards/20190909104250_add_cardtype_input_types.rb +2 -2
- data/db/schema.rb +2 -2
- data/db/seeds.rb +14 -1
- data/db/version.txt +1 -1
- data/lib/card/auth/current.rb +4 -2
- data/lib/card/auth/permissions.rb +1 -1
- data/lib/card/auth/setup.rb +1 -1
- data/lib/card/auth/token.rb +1 -1
- data/lib/card/cache/persistent.rb +4 -1
- data/lib/card/codename.rb +2 -6
- data/lib/card/content/all.rb +2 -2
- data/lib/card/content/clean.rb +1 -1
- data/lib/card/content/parser.rb +0 -2
- data/lib/card/content.rb +1 -8
- data/lib/card/director/all.rb +67 -0
- data/lib/card/director/card_class.rb +158 -2
- data/lib/card/director/{act_direction.rb → class_methods.rb} +13 -3
- data/lib/card/director/phases.rb +7 -4
- data/lib/card/director/run.rb +51 -50
- data/lib/card/director/stages.rb +18 -16
- data/lib/card/director/store.rb +1 -1
- data/lib/card/director.rb +6 -7
- data/lib/card/env/location.rb +1 -1
- data/lib/card/env/serializable.rb +2 -0
- data/lib/card/env/serialization.rb +2 -3
- data/lib/card/env.rb +2 -2
- data/lib/card/error.rb +9 -5
- data/lib/card/format/error.rb +6 -12
- data/lib/card/format/nest.rb +1 -1
- data/lib/card/format/wrapper.rb +1 -1
- data/lib/card/format.rb +4 -0
- data/lib/card/model/save_helper/save_arguments.rb +0 -44
- data/lib/card/model/save_helper/save_helper_helper.rb +0 -37
- data/lib/card/model/save_helper.rb +0 -82
- data/lib/card/name/all.rb +1 -4
- data/lib/card/name/card_class.rb +0 -2
- data/lib/card/name/name_variants.rb +4 -0
- data/lib/card/name.rb +0 -5
- data/lib/card/query/abstract_query/query_helper.rb +3 -5
- data/lib/card/query/abstract_query/tie.rb +1 -1
- data/lib/card/query/abstract_query.rb +36 -17
- data/lib/card/query/card_class.rb +36 -0
- data/lib/card/query/card_query/custom.rb +12 -0
- data/lib/card/query/card_query/interpretation.rb +1 -0
- data/lib/card/query/card_query/normalization.rb +11 -3
- data/lib/card/query/card_query/reference_attributes.rb +3 -2
- data/lib/card/query/card_query/sorting.rb +5 -4
- data/lib/card/query/card_query.rb +1 -0
- data/lib/card/query/sql_statement/order.rb +12 -10
- data/lib/card/query/sql_statement/where.rb +2 -2
- data/lib/card/query.rb +5 -1
- data/lib/card/reference/all.rb +10 -10
- data/lib/card/set/advanced_api.rb +1 -1
- data/lib/card/set/event/all.rb +9 -1
- data/lib/card/set/event/delayed_event.rb +4 -2
- data/lib/card/set/event/options.rb +1 -1
- data/lib/card/set/event/skip_and_trigger.rb +34 -10
- data/lib/card/set/format/abstract_format/haml_views.rb +3 -3
- data/lib/card/set/format/abstract_format.rb +1 -1
- data/lib/card/set/format/haml_paths.rb +5 -21
- data/lib/card/set/inheritance.rb +4 -4
- data/lib/card/set/pattern/all.rb +1 -1
- data/lib/card/set/pattern/base.rb +1 -1
- data/lib/card/set/pattern/class_methods.rb +4 -4
- data/lib/card/set/trait.rb +1 -1
- data/lib/card/set/type.rb +0 -41
- data/lib/card/setting.rb +0 -1
- data/lib/card/subcards/all.rb +6 -8
- data/lib/card/subcards/args.rb +9 -9
- data/lib/card/view/cache/cache_action.rb +1 -1
- data/lib/card/view/options/visibility.rb +4 -0
- data/lib/card/view/options.rb +1 -0
- data/lib/card/view/permission.rb +12 -4
- data/lib/card/view.rb +4 -0
- data/lib/card.rb +18 -27
- data/lib/cardio/cli.rb +3 -1
- data/lib/cardio/command/application.rb +5 -0
- data/lib/cardio/{commands/command.rb → command/command_base.rb} +2 -2
- data/lib/cardio/{commands → command}/custom.rb +16 -13
- data/lib/cardio/{commands → command}/rake_command/parser.rb +3 -3
- data/lib/cardio/{commands → command}/rake_command.rb +4 -4
- data/lib/cardio/{commands → command}/rspec_command/parser.rb +2 -2
- data/lib/cardio/{commands → command}/rspec_command.rb +7 -9
- data/lib/cardio/command.rb +129 -0
- data/lib/cardio/commands.rb +17 -116
- data/lib/cardio/generators/deck_generator_loader.rb +1 -0
- data/lib/cardio/generators.rb +2 -2
- data/lib/cardio/migration.rb +3 -53
- data/lib/cardio/mod/class_methods.rb +26 -22
- data/lib/cardio/mod/dirs.rb +29 -22
- data/lib/cardio/mod/eat/edibles.rb +22 -15
- data/lib/cardio/mod/eat.rb +18 -14
- data/lib/cardio/mod/load_strategy/set_tmp_files.rb +1 -1
- data/lib/cardio/mod/load_strategy.rb +12 -2
- data/lib/cardio/mod/modfile_api.rb +18 -18
- data/lib/cardio/mod/{poop.rb → sow.rb} +10 -18
- data/lib/cardio/mod.rb +21 -30
- data/lib/cardio/railtie.rb +19 -56
- data/lib/cardio/schema.rb +2 -1
- data/lib/cardio/script_loader.rb +3 -1
- data/lib/cardio/seed.rb +101 -8
- data/lib/cardio/utils.rb +39 -1
- data/lib/generators/deck/deck_generator.rb +5 -2
- data/lib/generators/deck/templates/config/puma.rb +1 -1
- data/lib/generators/deck/templates/script/decko_rspec +1 -1
- data/lib/generators/deck/templates/simplecov.rb.erb +10 -8
- data/lib/generators/mod/USAGE +1 -1
- data/lib/generators/set/USAGE +2 -2
- data/mod/core/data/fixtures/real/card_actions.yml +78 -0
- data/{db/seed/new → mod/core/data/fixtures/real}/card_acts.yml +2 -2
- data/{db/seed/new → mod/core/data/fixtures/real}/card_changes.yml +0 -0
- data/mod/core/data/fixtures/real/card_references.yml +8 -0
- data/mod/core/data/fixtures/real/cards.yml +135 -0
- data/{db/seed/new → mod/core/data/fixtures/real}/schema_migrations.yml +0 -0
- data/{db/seed/new → mod/core/data/fixtures/real}/schema_migrations_core_cards.yml +0 -0
- data/{db/seed/new → mod/core/data/fixtures/real}/schema_migrations_deck.yml +0 -0
- data/{db/seed/new → mod/core/data/fixtures/real}/schema_migrations_deck_cards.yml +0 -0
- data/mod/core/data/real.yml +79 -0
- data/mod/core/data/test/cardtype.yml +38 -0
- data/mod/core/data/test/sample.yml +50 -0
- data/mod/core/data/test/user.yml +41 -0
- data/mod/core/data/test.yml +79 -28
- data/mod/core/lib/tasks/card/assets.rake +17 -0
- data/{lib → mod/core/lib}/tasks/card/create.rake +0 -0
- data/{lib → mod/core/lib}/tasks/card/migrate.rake +4 -0
- data/{lib → mod/core/lib}/tasks/card/mod.rake +4 -3
- data/mod/core/lib/tasks/card/seed.rake +58 -0
- data/mod/core/lib/tasks/card.rake +115 -0
- data/mod/core/locales/de.yml +4 -0
- data/mod/core/locales/en.yml +13 -0
- data/mod/core/set/all/admin.rb +14 -0
- data/mod/core/set/all/codename.rb +4 -0
- data/mod/core/set/all/content.rb +8 -4
- data/mod/core/set/all/{abort.rb → result.rb} +11 -15
- data/mod/core/set/all/states.rb +15 -1
- data/mod/core/set/all/trash.rb +25 -73
- data/mod/core/set/all/type.rb +2 -2
- data/mod/core/set/all/utils.rb +3 -87
- data/mod/core/set/right/autoname.rb +2 -0
- data/mod/core/set/self/admin/warning_alert.haml +3 -0
- data/mod/core/set/self/admin.rb +173 -0
- data/mod/core/set/type/cardtype.rb +2 -0
- data/mod/core/set_pattern/02_all_plus.rb +1 -1
- data/mod/core/set_pattern/05_rstar.rb +1 -1
- data/mod/core/set_pattern/06_rule.rb +1 -1
- data/mod/core/set_pattern/07_right.rb +1 -1
- data/mod/core/set_pattern/08_type_plus_right.rb +1 -1
- data/mod/core/spec/set/all/assign_attributes_spec.rb +3 -3
- data/mod/core/spec/set/all/autoname_spec.rb +25 -0
- data/mod/core/spec/set/all/codename_spec.rb +1 -1
- data/mod/core/spec/set/all/name_events_spec.rb +43 -66
- data/mod/core/spec/set/all/trash_spec.rb +149 -68
- data/mod/{admin → core}/spec/set/self/admin_spec.rb +25 -22
- data/mod/core/spec/set/self/trash_spec.rb +5 -0
- metadata +88 -251
- data/db/migrate_core_cards/20130411211600_delete_old_related_tab_cards.rb +0 -18
- data/db/migrate_core_cards/20130419215612_import_help_text.rb +0 -13
- data/db/migrate_core_cards/20130823192433_add_style_cards.rb +0 -100
- data/db/migrate_core_cards/20130910183318_move_styles_to_content.rb +0 -11
- data/db/migrate_core_cards/20130927191728_account_events.rb +0 -20
- data/db/migrate_core_cards/20131016172445_common_css_patch.rb +0 -9
- data/db/migrate_core_cards/20140110193325_reset_account_request_type.rb +0 -8
- data/db/migrate_core_cards/20140512155840_add_script_cards.rb +0 -86
- data/db/migrate_core_cards/20140629222005_add_email_cards.rb +0 -132
- data/db/migrate_core_cards/20140725180118_config_card_updates.rb +0 -9
- data/db/migrate_core_cards/20141111083921_delete_machine_output.rb +0 -7
- data/db/migrate_core_cards/20141115034214_config_descriptions_etc.rb +0 -14
- data/db/migrate_core_cards/20141119001955_make_symlinks_relative.rb +0 -15
- data/db/migrate_core_cards/20141120120605_fix_notification_html_message.rb +0 -10
- data/db/migrate_core_cards/20141216155251_add_more_following_cards.rb +0 -26
- data/db/migrate_core_cards/20141230204340_uri_codename.rb +0 -13
- data/db/migrate_core_cards/20150202143810_import_bootstrap_layout.rb +0 -76
- data/db/migrate_core_cards/20150317162412_bootstrap_themes.rb +0 -41
- data/db/migrate_core_cards/20150326205655_bootswatch_themes.rb +0 -36
- data/db/migrate_core_cards/20150331135745_new_card_menu.rb +0 -8
- data/db/migrate_core_cards/20150501010515_responsive_sidebar.rb +0 -11
- data/db/migrate_core_cards/20150508212032_menu_compatibility.rb +0 -24
- data/db/migrate_core_cards/20150528084659_add_session_cardtype.rb +0 -18
- data/db/migrate_core_cards/20150601133433_add_recent_setting_session_card.rb +0 -18
- data/db/migrate_core_cards/20150610171702_add_debugger_session_card.rb +0 -12
- data/db/migrate_core_cards/20150610180019_add_recaptcha_key_and_admin_info_cards.rb +0 -58
- data/db/migrate_core_cards/20150627205133_fix_script_bootstrap_card_type.rb +0 -7
- data/db/migrate_core_cards/20150702130543_remove_edit_toolbar_pinned.rb +0 -9
- data/db/migrate_core_cards/20150708224756_add_list_cards.rb +0 -29
- data/db/migrate_core_cards/20150903130006_attachment_upload_cards.rb +0 -15
- data/db/migrate_core_cards/20150910085603_remove_performance_log_card.rb +0 -10
- data/db/migrate_core_cards/20151120180631_add_token_expiration.rb +0 -7
- data/db/migrate_core_cards/20160801143221_change_bootstrap_card_type_to_scss.rb +0 -10
- data/db/migrate_core_cards/20160804112510_reorganize_scripts.rb +0 -27
- data/db/migrate_core_cards/20160908154210_add_trash_card.rb +0 -7
- data/db/migrate_core_cards/20161102202156_tweak_recaptcha_setting_cards.rb +0 -17
- data/db/migrate_core_cards/20170209132834_email_test_context.rb +0 -49
- data/db/migrate_core_cards/20170314175313_add_notification_event_card.rb +0 -20
- data/db/migrate_core_cards/20170515101262_add_advanced_edit_cards.rb +0 -20
- data/db/migrate_core_cards/20170608083819_add_full_width_layout_card.rb +0 -23
- data/db/migrate_core_cards/20170608200649_add_input_options_codename.rb +0 -8
- data/db/migrate_core_cards/20180423120222_add_mod_styles_card.rb +0 -20
- data/db/migrate_core_cards/20180508210903_add_json_type.rb +0 -10
- data/db/migrate_core_cards/20180515175726_add_codenames.rb +0 -8
- data/db/migrate_core_cards/20180712042655_head_rule.rb +0 -13
- data/db/migrate_core_cards/20181120200937_update_layout.rb +0 -7
- data/db/migrate_core_cards/20190204195039_add_rule_card.rb +0 -10
- data/db/migrate_core_cards/20190321085735_wagn_to_decko_logo.rb +0 -11
- data/db/migrate_core_cards/20190417142612_reorganize_scripts_2.rb +0 -17
- data/db/migrate_core_cards/20190424100531_update_credit_image.rb +0 -76
- data/db/migrate_core_cards/20190424101004_add_read_anyone_rules.rb +0 -13
- data/db/migrate_core_cards/20190503122739_update_pristine_data.rb +0 -18
- data/db/migrate_core_cards/20190605133556_tweak_config_cards.rb +0 -10
- data/db/migrate_core_cards/20190618110446_add_dropdown_divider.rb +0 -8
- data/db/migrate_core_cards/20190621143156_add_role_assign_permissions.rb +0 -9
- data/db/migrate_core_cards/20190710090209_homepage_tweaks.rb +0 -13
- data/db/migrate_core_cards/20190820155833_update_cardtype_type_structure.rb +0 -7
- data/db/migrate_core_cards/20190823220018_cleanup_for_decko_1_0.rb +0 -19
- data/db/migrate_core_cards/20190826132738_add_more_guides.rb +0 -7
- data/db/migrate_core_cards/20190829093961_cardtype_grouping.rb +0 -16
- data/db/migrate_core_cards/20190830131820_setting_settings_aside.rb +0 -17
- data/db/migrate_core_cards/20190902161223_add_style_media.rb +0 -7
- data/db/migrate_core_cards/20190918200115_ensure_description_card.rb +0 -13
- data/db/migrate_core_cards/20191008201046_fixture_fix.rb +0 -11
- data/db/migrate_core_cards/20191028135243_add_link_editor_to_tiny_mce_config.rb +0 -9
- data/db/migrate_core_cards/20191118145629_codename_fixes.rb +0 -5
- data/db/migrate_core_cards/20200821231558_add_nest_list_type.rb +0 -9
- data/db/migrate_core_cards/data/1.11_help_text.json +0 -410
- data/db/migrate_core_cards/data/1.12_stylesheets/classic_cards.scss +0 -104
- data/db/migrate_core_cards/data/1.12_stylesheets/common.scss +0 -228
- data/db/migrate_core_cards/data/1.12_stylesheets/right_sidebar.scss +0 -27
- data/db/migrate_core_cards/data/1.12_stylesheets/traditional.scss +0 -143
- data/db/migrate_core_cards/data/1.13_config_text.json +0 -32
- data/db/migrate_core_cards/data/1.14_config_descriptions_etc.json +0 -77
- data/db/migrate_core_cards/data/bootstrap_layout.json +0 -96
- data/db/migrate_core_cards/data/cards/Xaccount +0 -22
- data/db/migrate_core_cards/data/cards/Xaccount_setting-Xright-Xstructure +0 -12
- data/db/migrate_core_cards/data/cards/Xall-Xlayout +0 -1
- data/db/migrate_core_cards/data/cards/Xcredit +0 -2
- data/db/migrate_core_cards/data/cards/Xfooter +0 -3
- data/db/migrate_core_cards/data/cards/Xgetting_started +0 -31
- data/db/migrate_core_cards/data/cards/Xgetting_started-shark +0 -66
- data/db/migrate_core_cards/data/cards/Xgetting_started_link +0 -6
- data/db/migrate_core_cards/data/cards/Xheader +0 -19
- data/db/migrate_core_cards/data/cards/Xhome +0 -1
- data/db/migrate_core_cards/data/cards/Xlogo +0 -1
- data/db/migrate_core_cards/data/cards/Xmain_menu +0 -2
- data/db/migrate_core_cards/data/cards/Xrecaptcha_setting-Xself-Xstructure +0 -1
- data/db/migrate_core_cards/data/cards/Xsidebar +0 -7
- data/db/migrate_core_cards/data/cards/Xstructure-Xright-Xguide +0 -12
- data/db/migrate_core_cards/data/cards/Xtitle +0 -1
- data/db/migrate_core_cards/data/cards/administrator-dashboard +0 -23
- data/db/migrate_core_cards/data/cards/administrator-description +0 -1
- data/db/migrate_core_cards/data/cards/anyone_signed_in-dashboard +0 -0
- data/db/migrate_core_cards/data/cards/cardtype-Xtype-Xguide +0 -24
- data/db/migrate_core_cards/data/cards/cardtype-Xtype-Xstructure +0 -3
- data/db/migrate_core_cards/data/cards/default_layout +0 -6
- data/db/migrate_core_cards/data/cards/full_width_layout +0 -5
- data/db/migrate_core_cards/data/cards/help_desk-dashboard +0 -7
- data/db/migrate_core_cards/data/cards/help_desk-description +0 -1
- data/db/migrate_core_cards/data/cards/home +0 -2
- data/db/migrate_core_cards/data/cards/home-Xself-Xlayout +0 -1
- data/db/migrate_core_cards/data/cards/home-original +0 -22
- data/db/migrate_core_cards/data/cards/home_layout +0 -6
- data/db/migrate_core_cards/data/cards/left_sidebar_layout +0 -6
- data/db/migrate_core_cards/data/cards/menu +0 -1
- data/db/migrate_core_cards/data/cards/right_thin_sidebar_layout +0 -8
- data/db/migrate_core_cards/data/cards/role-Xtype-Xstructure +0 -2
- data/db/migrate_core_cards/data/cards/shark-dashboard +0 -19
- data/db/migrate_core_cards/data/cards/shark-description +0 -1
- data/db/migrate_core_cards/data/cards/shark_menu +0 -2
- data/db/migrate_core_cards/data/cards.yml +0 -138
- data/db/migrate_core_cards/data/decko_logo.svg +0 -1
- data/db/migrate_core_cards/data/mailer/follower_notification_email.html +0 -9
- data/db/migrate_core_cards/data/mailer/follower_notification_email.txt +0 -11
- data/db/migrate_core_cards/data/mailer/mail_config.json +0 -22
- data/db/migrate_core_cards/data/mailer/password_reset_email.html +0 -13
- data/db/migrate_core_cards/data/mailer/password_reset_email.txt +0 -11
- data/db/migrate_core_cards/data/mailer/signup_alert_email.html +0 -7
- data/db/migrate_core_cards/data/mailer/signup_alert_email.txt +0 -5
- data/db/migrate_core_cards/data/mailer/verification_email.html +0 -12
- data/db/migrate_core_cards/data/mailer/verification_email.txt +0 -9
- data/db/migrate_core_cards/data/skin_images.json +0 -91
- data/db/migrate_core_cards/data/themes/bootstrap_default/_bootswatch.scss +0 -0
- data/db/migrate_core_cards/data/themes/bootstrap_default/_variables.scss +0 -867
- data/db/migrate_core_cards/data/themes/cerulean/_bootswatch.scss +0 -125
- data/db/migrate_core_cards/data/themes/cerulean/_variables.scss +0 -861
- data/db/migrate_core_cards/data/themes/cosmo/_bootswatch.scss +0 -237
- data/db/migrate_core_cards/data/themes/cosmo/_variables.scss +0 -861
- data/db/migrate_core_cards/data/themes/cyborg/_bootswatch.scss +0 -210
- data/db/migrate_core_cards/data/themes/cyborg/_variables.scss +0 -861
- data/db/migrate_core_cards/data/themes/darkly/_bootswatch.scss +0 -330
- data/db/migrate_core_cards/data/themes/darkly/_variables.scss +0 -861
- data/db/migrate_core_cards/data/themes/flatly/_bootswatch.scss +0 -313
- data/db/migrate_core_cards/data/themes/flatly/_variables.scss +0 -861
- data/db/migrate_core_cards/data/themes/journal/_bootswatch.scss +0 -120
- data/db/migrate_core_cards/data/themes/journal/_variables.scss +0 -861
- data/db/migrate_core_cards/data/themes/lumen/_bootswatch.scss +0 -496
- data/db/migrate_core_cards/data/themes/lumen/_variables.scss +0 -861
- data/db/migrate_core_cards/data/themes/paper/_bootswatch.scss +0 -607
- data/db/migrate_core_cards/data/themes/paper/_variables.scss +0 -861
- data/db/migrate_core_cards/data/themes/readable/_bootswatch.scss +0 -174
- data/db/migrate_core_cards/data/themes/readable/_variables.scss +0 -861
- data/db/migrate_core_cards/data/themes/sandstone/_bootswatch.scss +0 -194
- data/db/migrate_core_cards/data/themes/sandstone/_variables.scss +0 -861
- data/db/migrate_core_cards/data/themes/simplex/_bootswatch.scss +0 -142
- data/db/migrate_core_cards/data/themes/simplex/_variables.scss +0 -861
- data/db/migrate_core_cards/data/themes/slate/_bootswatch.scss +0 -417
- data/db/migrate_core_cards/data/themes/slate/_variables.scss +0 -861
- data/db/migrate_core_cards/data/themes/spacelab/_bootswatch.scss +0 -137
- data/db/migrate_core_cards/data/themes/spacelab/_variables.scss +0 -861
- data/db/migrate_core_cards/data/themes/superhero/_bootswatch.scss +0 -332
- data/db/migrate_core_cards/data/themes/superhero/_variables.scss +0 -861
- data/db/migrate_core_cards/data/themes/united/_bootswatch.scss +0 -42
- data/db/migrate_core_cards/data/themes/united/_variables.scss +0 -861
- data/db/migrate_core_cards/data/themes/yeti/_bootswatch.scss +0 -437
- data/db/migrate_core_cards/data/themes/yeti/_variables.scss +0 -861
- data/db/seed/README.md +0 -2
- data/db/seed/new/card_actions.yml +0 -5913
- data/db/seed/new/card_references.yml +0 -6532
- data/db/seed/new/cards.yml +0 -14595
- data/db/seed/test/fixtures/card_actions.yml +0 -8153
- data/db/seed/test/fixtures/card_acts.yml +0 -1039
- data/db/seed/test/fixtures/card_changes.yml +0 -230
- data/db/seed/test/fixtures/card_references.yml +0 -8471
- data/db/seed/test/fixtures/cards.yml +0 -20171
- data/db/seed/test/fixtures/file1.txt +0 -1
- data/db/seed/test/fixtures/file2.txt +0 -1
- data/db/seed/test/fixtures/mao2.jpg +0 -0
- data/db/seed/test/fixtures/rails.gif +0 -0
- data/db/seed/test/fixtures/schema_migrations.yml +0 -67
- data/db/seed/test/fixtures/schema_migrations_core_cards.yml +0 -347
- data/db/seed/test/fixtures/schema_migrations_deck.yml +0 -1
- data/db/seed/test/fixtures/schema_migrations_deck_cards.yml +0 -5
- data/db/test_seed.rb +0 -322
- data/lib/card/content/truncate.rb +0 -67
- data/lib/card/director/card_methods.rb +0 -45
- data/lib/card/file_card_creator/abstract_file_card/migration_file.rb +0 -50
- data/lib/card/file_card_creator/abstract_file_card/ruby_file.rb +0 -30
- data/lib/card/file_card_creator/abstract_file_card/source_file.rb +0 -36
- data/lib/card/file_card_creator/abstract_file_card.rb +0 -44
- data/lib/card/file_card_creator/haml_card.rb +0 -42
- data/lib/card/file_card_creator/output_helper.rb +0 -53
- data/lib/card/file_card_creator/script_card.rb +0 -35
- data/lib/card/file_card_creator/style_card.rb +0 -25
- data/lib/card/file_card_creator.rb +0 -25
- data/lib/card/name/fields_and_traits.rb +0 -42
- data/lib/cardio/commands/application.rb +0 -10
- data/lib/cardio/migration/import/import_data/card_attributes.rb +0 -64
- data/lib/cardio/migration/import/import_data/card_content.rb +0 -30
- data/lib/cardio/migration/import/import_data.rb +0 -119
- data/lib/cardio/migration/import/merger.rb +0 -46
- data/lib/cardio/migration/import.rb +0 -125
- data/lib/tasks/card.rake +0 -65
- data/mod/admin/locales/de.yml +0 -4
- data/mod/admin/locales/en.yml +0 -4
- data/mod/admin/set/all/admin.rb +0 -16
- data/mod/admin/set/self/admin.rb +0 -144
- data/mod/admin/set/self/admin_info.rb +0 -40
- data/mod/admin/set/self/debugger.rb +0 -3
- data/mod/admin/spec/set/self/admin_info_spec.rb +0 -9
- data/mod/core/data/production.yml +0 -7
- data/mod/core/set/all/collection.rb +0 -53
- data/mod/core/spec/set/all/collection_spec.rb +0 -170
- data/mod/core/spec/set/all/utils_spec.rb +0 -5
- data/mod/standard/data/files/favicon/image-icon.png +0 -0
- data/mod/standard/data/files/favicon/image-large.png +0 -0
- data/mod/standard/data/files/favicon/image-medium.png +0 -0
- data/mod/standard/data/files/favicon/image-original.png +0 -0
- data/mod/standard/data/files/favicon/image-small.png +0 -0
- data/mod/standard/data/files/logo/image-original.svg +0 -1
data/mod/core/set/all/utils.rb
CHANGED
@@ -1,95 +1,11 @@
|
|
1
|
-
module ClassMethods
|
2
|
-
def merge_list attribs, opts={}
|
3
|
-
unmerged = []
|
4
|
-
attribs.each do |row|
|
5
|
-
if merge row["name"], row, opts
|
6
|
-
Rails.logger.info "merged #{row['name']}"
|
7
|
-
else
|
8
|
-
unmerged.push row
|
9
|
-
end
|
10
|
-
end
|
11
1
|
|
12
|
-
|
13
|
-
|
14
|
-
else
|
15
|
-
unmerged_json = JSON.pretty_generate unmerged
|
16
|
-
report_unmerged_json unmerged_json, opts[:output_file]
|
17
|
-
end
|
18
|
-
unmerged
|
19
|
-
end
|
20
|
-
|
21
|
-
def report_unmerged_json unmerged_json, output_file
|
22
|
-
if output_file
|
23
|
-
::File.open output_file, "w" do |f|
|
24
|
-
f.write unmerged_json
|
25
|
-
end
|
26
|
-
else
|
27
|
-
Rails.logger.info "failed to merge:\n\n#{unmerged_json}"
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
def merge name, attribs={}, opts={}
|
32
|
-
# puts "merging #{name}"
|
33
|
-
card = fetch name, new: {}
|
34
|
-
return unless mergeable? card, opts[:pristine]
|
35
|
-
|
36
|
-
resolve_file_attributes! attribs
|
37
|
-
card.safe_update! attribs
|
38
|
-
end
|
39
|
-
|
40
|
-
private
|
41
|
-
|
42
|
-
def resolve_file_attributes! attribs
|
43
|
-
%i[image file].each do |attach|
|
44
|
-
next unless attribs[attach].is_a?(String)
|
45
|
-
|
46
|
-
attribs[attach] = ::File.open(attribs[attach])
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
def mergeable? card, pristine_only
|
51
|
-
return true unless pristine_only
|
52
|
-
|
53
|
-
!card.pristine?
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
# separate name and other attributes
|
58
|
-
def safe_update! attribs
|
59
|
-
separate_name_update! attribs.delete("name") unless new?
|
60
|
-
update! attribs if attribs.present?
|
61
|
-
end
|
62
|
-
|
63
|
-
def separate_name_update! new_name
|
64
|
-
return if new_name.to_s == name.to_s
|
65
|
-
|
66
|
-
update! name: new_name
|
67
|
-
end
|
68
|
-
|
69
|
-
# rubocop:disable Style/GlobalVars
|
70
|
-
def measure desc
|
71
|
-
$times ||= {}
|
72
|
-
res = nil
|
73
|
-
t = Benchmark.measure do
|
74
|
-
res = yield
|
75
|
-
end
|
76
|
-
$times[desc] = $times.key?(desc) ? t + $times[desc] : t
|
77
|
-
puts "#{desc}: #{t}".red
|
78
|
-
res
|
79
|
-
end
|
80
|
-
# rubocop:enable Style/GlobalVars
|
81
|
-
|
82
|
-
def mod_root modname
|
83
|
-
if (spec = Gem::Specification.find_by_name "card-mod-#{modname}")
|
84
|
-
spec.full_gem_path
|
85
|
-
else
|
86
|
-
"#{Cardio.gem_root}/mod/#{modname}"
|
87
|
-
end
|
2
|
+
def mod_path modname
|
3
|
+
Cardio::Mod.dirs.path modname
|
88
4
|
end
|
89
5
|
|
90
6
|
delegate :t, to: ::I18n
|
91
7
|
|
92
8
|
format do
|
93
9
|
delegate :t, to: ::I18n
|
94
|
-
delegate :
|
10
|
+
delegate :mod_path, to: :card
|
95
11
|
end
|
@@ -0,0 +1,173 @@
|
|
1
|
+
basket[:tasks].merge!(
|
2
|
+
clear_cache: {
|
3
|
+
mod: :core,
|
4
|
+
execute_policy: -> { Card::Cache.reset_all }
|
5
|
+
},
|
6
|
+
regenerate_assets: {
|
7
|
+
mod: :core,
|
8
|
+
execute_policy: -> { Card::Assets.refresh force: true }
|
9
|
+
}
|
10
|
+
)
|
11
|
+
|
12
|
+
basket[:warnings] = [:no_email_delivery]
|
13
|
+
# For each warning in the basket (eg :my_warning), the core view
|
14
|
+
# will run a test by appending a question mark (eg #my_warning?).
|
15
|
+
# If it fails it will generate a message by appending message
|
16
|
+
# (eg #my_warning_message).
|
17
|
+
|
18
|
+
def no_email_delivery?
|
19
|
+
Card.config.action_mailer.perform_deliveries == false
|
20
|
+
end
|
21
|
+
|
22
|
+
event :admin_tasks, :initialize, on: :update do
|
23
|
+
return unless (task = Env.params[:task]&.to_sym) && (task_config = basket[:tasks][task])
|
24
|
+
raise Card::Error::PermissionDenied, self unless Auth.always_ok?
|
25
|
+
|
26
|
+
# when :repair_references then Card::Reference.repair_all
|
27
|
+
# when :repair_permissions then Card.repair_all_permissions
|
28
|
+
# # when :regenerate_scripts then Card::Assets.refresh_scripts
|
29
|
+
# when :clear_history
|
30
|
+
# not_allowed "clear history" unless irreversibles_tasks_allowed?
|
31
|
+
# Card::Action.delete_old
|
32
|
+
|
33
|
+
run_task_from_task_basket task, task_config
|
34
|
+
abort :success
|
35
|
+
end
|
36
|
+
|
37
|
+
def run_task_from_task_basket task, task_config
|
38
|
+
if !irreversibles_tasks_allowed? && task_config[:irreversible]
|
39
|
+
not_allowed t("#{task_config[:mod]}_task_#{task}_link_text")
|
40
|
+
else
|
41
|
+
task_config[:execute_policy]&.call
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
def not_allowed task
|
46
|
+
raise Card::Error::PermissionDenied,
|
47
|
+
"The admin task '#{task}' is disabled for security reasons.<br>"\
|
48
|
+
"You can enable it with the config option 'allow_irreversible_admin_tasks'"
|
49
|
+
end
|
50
|
+
|
51
|
+
def irreversibles_tasks_allowed?
|
52
|
+
Cardio.config.allow_irreversible_admin_tasks
|
53
|
+
end
|
54
|
+
|
55
|
+
format :html do
|
56
|
+
view :core, cache: :never do
|
57
|
+
table_content = basket[:tasks].map do |task, task_config|
|
58
|
+
task_row task, task_config[:mod]
|
59
|
+
end
|
60
|
+
table table_content, header: %w[Task Description]
|
61
|
+
end
|
62
|
+
|
63
|
+
def task_row task, mod
|
64
|
+
base = "#{mod}_task_#{task}"
|
65
|
+
[
|
66
|
+
link_to_card(:admin, t("#{base}_link_text"), path: { action: :update, task: task }),
|
67
|
+
t("#{base}_description")
|
68
|
+
]
|
69
|
+
end
|
70
|
+
|
71
|
+
view :warning do
|
72
|
+
warnings = basket[:warnings].map do |warning|
|
73
|
+
card.send("#{warning}?") ? send("#{warning}_message") : nil
|
74
|
+
end
|
75
|
+
warnings.compact!
|
76
|
+
warnings.empty? ? "" : warning_alert(warnings)
|
77
|
+
end
|
78
|
+
|
79
|
+
def warning_alert warnings
|
80
|
+
# 'ADMINISTRATOR WARNING'
|
81
|
+
alert(:warning, true) { haml :warning_alert, warnings: warnings }
|
82
|
+
end
|
83
|
+
|
84
|
+
def no_email_delivery_message
|
85
|
+
# "Email delivery is turned off."
|
86
|
+
# "Change settings in config/application.rb to send sign up notifications."
|
87
|
+
t :core_admin_email_off, path: "config/application.rb"
|
88
|
+
end
|
89
|
+
|
90
|
+
# def card_stats
|
91
|
+
# [
|
92
|
+
# { title: "cards",
|
93
|
+
# count: Card.where(trash: false) },
|
94
|
+
# { title: "actions",
|
95
|
+
# count: Card::Action },
|
96
|
+
# # link_text: "clear history",
|
97
|
+
# # task: "clear_history" },
|
98
|
+
# { title: "references",
|
99
|
+
# count: Card::Reference }
|
100
|
+
# # link_text: "repair all",
|
101
|
+
# # task: "repair_references" }
|
102
|
+
# ]
|
103
|
+
# end
|
104
|
+
|
105
|
+
# def cache_stats
|
106
|
+
# [
|
107
|
+
# { title: "style assets",
|
108
|
+
# link_text: "regenerate styles and scripts",
|
109
|
+
# task: "regenerate_assets" } # ,
|
110
|
+
# # { title: "script assets",
|
111
|
+
# # link_text: "regenerate scripts",
|
112
|
+
# # task: "regenerate_scripts" }
|
113
|
+
# ]
|
114
|
+
# # return stats unless Card.config.view_cache#
|
115
|
+
# # stats << { title: "view cache",
|
116
|
+
# # count: Card::View,
|
117
|
+
# # link_text: "clear view cache",
|
118
|
+
# # task: "clear_view_cache" }
|
119
|
+
# end
|
120
|
+
|
121
|
+
# def memory_stats
|
122
|
+
# oldmem = session[:memory]
|
123
|
+
# session[:memory] = newmem = card.profile_memory
|
124
|
+
# stats = [
|
125
|
+
# { title: "memory now",
|
126
|
+
# count: newmem, unit: "M",
|
127
|
+
# link_text: "clear cache", task: "clear_cache" }
|
128
|
+
# ]
|
129
|
+
# return stats unless oldmem
|
130
|
+
#
|
131
|
+
# stats << { title: "memory prev", count: oldmem, unit: "M" }
|
132
|
+
# stats << { title: "memory diff", count: newmem - oldmem, unit: "M" }
|
133
|
+
# stats
|
134
|
+
# end
|
135
|
+
#
|
136
|
+
# def stat_row args={}
|
137
|
+
# res = [(args[:title] || "")]
|
138
|
+
# res << "#{count(args[:count])}#{args[:unit]}"
|
139
|
+
# return res unless args[:task]
|
140
|
+
#
|
141
|
+
# res << link_to_card(:admin, (args[:link_text] || args[:task]),
|
142
|
+
# path: { action: :update, task: args[:task] })
|
143
|
+
# res
|
144
|
+
# end
|
145
|
+
#
|
146
|
+
# def count counter
|
147
|
+
# counter = counter.call if counter.is_a?(Proc)
|
148
|
+
# counter.respond_to?(:count) ? counter.count : counter
|
149
|
+
# end
|
150
|
+
|
151
|
+
# def asset_input_cache_count
|
152
|
+
# Card.where(right_id: AssetInputCacheID).count
|
153
|
+
# end
|
154
|
+
#
|
155
|
+
# def delete_sessions_link months
|
156
|
+
# link_to_card :admin, months, path: { action: :update, months: months,
|
157
|
+
# task: "delete_old_sessions" }
|
158
|
+
# end
|
159
|
+
end
|
160
|
+
|
161
|
+
# def current_memory_usage
|
162
|
+
# `ps -o rss= -p #{Process.pid}`.to_i
|
163
|
+
# end
|
164
|
+
#
|
165
|
+
# def profile_memory &block
|
166
|
+
# before = current_memory_usage
|
167
|
+
# if block_given?
|
168
|
+
# instance_eval(&block)
|
169
|
+
# else
|
170
|
+
# before = 0
|
171
|
+
# end
|
172
|
+
# (current_memory_usage - before) / 1024.to_i
|
173
|
+
# end
|
@@ -31,10 +31,10 @@ RSpec.describe Card::Set::All::AssignAttributes do
|
|
31
31
|
expect(card).to have_type(:cardtype).and have_codename :foo
|
32
32
|
end
|
33
33
|
|
34
|
-
it "assigns
|
35
|
-
card = Card.new name: "#name",
|
34
|
+
it "assigns fields" do
|
35
|
+
card = Card.new name: "#name", fields: { default: { content: "subcontent" } }
|
36
36
|
expect(card.subcards.first).to eq "name+*default"
|
37
|
-
subcard = card.
|
37
|
+
subcard = card.field :default
|
38
38
|
expect(subcard).to be_a(Card)
|
39
39
|
expect(subcard.name).to eq "#name+*default"
|
40
40
|
expect(subcard.content).to eq "subcontent"
|
@@ -0,0 +1,25 @@
|
|
1
|
+
RSpec.describe Card::Set::All::Autoname do
|
2
|
+
describe "event: set_autoname" do
|
3
|
+
before do
|
4
|
+
Card::Auth.as_bot { Card.create! name: "Book+*type+*autoname", content: "b1" }
|
5
|
+
end
|
6
|
+
|
7
|
+
it "handles cards without names" do
|
8
|
+
c = Card.create! type: "Book"
|
9
|
+
expect(c.name).to eq("b1")
|
10
|
+
end
|
11
|
+
|
12
|
+
it "increments again if name already exists" do
|
13
|
+
_b1 = Card.create! type: "Book"
|
14
|
+
b2 = Card.create! type: "Book"
|
15
|
+
expect(b2.name).to eq("b2")
|
16
|
+
end
|
17
|
+
|
18
|
+
it "handles trashed names" do
|
19
|
+
b1 = Card.create! type: "Book"
|
20
|
+
Card::Auth.as_bot { b1.delete }
|
21
|
+
b1 = Card.create! type: "Book"
|
22
|
+
expect(b1.name).to eq("b1")
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -1,19 +1,6 @@
|
|
1
1
|
RSpec.describe Card::Set::All::NameEvents do
|
2
2
|
include CardExpectations
|
3
3
|
|
4
|
-
def name_invariant_attributes card
|
5
|
-
descendant_ids = []
|
6
|
-
card.each_descendant { |d| descendant_ids << d.id }
|
7
|
-
{
|
8
|
-
content: card.db_content,
|
9
|
-
# updater_id: card.updater_id,
|
10
|
-
# revisions: card.actions.count,
|
11
|
-
referers: card.referers.map(&:name).sort,
|
12
|
-
referees: card.referees.map(&:name).sort,
|
13
|
-
descendants: descendant_ids.sort
|
14
|
-
}
|
15
|
-
end
|
16
|
-
|
17
4
|
def assert_rename card, new_name
|
18
5
|
card = card_to_rename card
|
19
6
|
attrs_before = name_invariant_attributes(card)
|
@@ -21,28 +8,36 @@ RSpec.describe Card::Set::All::NameEvents do
|
|
21
8
|
old_name = card.name
|
22
9
|
|
23
10
|
update! card.name, name: new_name
|
24
|
-
expect_action_added card, actions_count_before
|
25
|
-
expect_old_name_cleared old_name
|
26
|
-
expect_successful_rename card, attrs_before
|
27
|
-
end
|
28
11
|
|
29
|
-
|
30
|
-
|
12
|
+
expect(name_invariant_attributes(card)).to eq(attrs_before)
|
13
|
+
expect_successful_rename old_name, card, (actions_count_before + 1)
|
31
14
|
end
|
32
15
|
|
33
|
-
|
16
|
+
private
|
17
|
+
|
18
|
+
def expect_successful_rename old_name, card, num_actions
|
19
|
+
expect(card.actions.count).to eq(num_actions)
|
34
20
|
expect(Card.cache.read(old_name)).to eq(nil)
|
21
|
+
expect(card.name.card).to eq(card)
|
35
22
|
end
|
36
23
|
|
37
|
-
def
|
38
|
-
|
39
|
-
|
24
|
+
def name_invariant_attributes card
|
25
|
+
descendant_ids = []
|
26
|
+
card.each_descendant { |d| descendant_ids << d.id }
|
27
|
+
{
|
28
|
+
content: card.db_content,
|
29
|
+
# updater_id: card.updater_id,
|
30
|
+
# revisions: card.actions.count,
|
31
|
+
referers: card.referers.map(&:name).sort,
|
32
|
+
referees: card.referees.map(&:name).sort,
|
33
|
+
descendants: descendant_ids.sort
|
34
|
+
}
|
40
35
|
end
|
41
36
|
|
42
37
|
def card_to_rename card
|
43
38
|
return card unless card.is_a? String
|
44
39
|
|
45
|
-
Card[card]
|
40
|
+
Card[card]&.refresh || raise("Couldn't find card named #{card}")
|
46
41
|
end
|
47
42
|
|
48
43
|
it "renames simple card to its own child" do
|
@@ -107,8 +102,7 @@ RSpec.describe Card::Set::All::NameEvents do
|
|
107
102
|
end
|
108
103
|
|
109
104
|
it "fails if name is invalid" do
|
110
|
-
expect { update "T", name: "" }
|
111
|
-
.to raise_error(/Name can't be blank/)
|
105
|
+
expect { update "T", name: "" }.to raise_error(/Name can't be blank/)
|
112
106
|
end
|
113
107
|
|
114
108
|
example "simple to simple" do
|
@@ -154,7 +148,7 @@ RSpec.describe Card::Set::All::NameEvents do
|
|
154
148
|
end
|
155
149
|
|
156
150
|
context "with self references" do
|
157
|
-
example "renaming card with self link should
|
151
|
+
example "renaming card with self link should not hang" do
|
158
152
|
pre_content = Card["self_aware"].content
|
159
153
|
update "self aware", name: "buttah"
|
160
154
|
expect_card("Buttah").to have_content(pre_content)
|
@@ -232,45 +226,35 @@ RSpec.describe Card::Set::All::NameEvents do
|
|
232
226
|
end
|
233
227
|
|
234
228
|
describe "event: prepare_left_and_right" do
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
expect(Card["Peach"]).to be_a(Card)
|
242
|
-
end
|
229
|
+
it "creates left card, right card, and compound card for 2-part names" do
|
230
|
+
Card.create! name: "Peach+Pear", content: "juicy"
|
231
|
+
expect("Peach".card).to be_a(Card)
|
232
|
+
expect("Pear".card).to be_a(Card)
|
233
|
+
expect("Peach+Pear".card).to be_a(Card)
|
234
|
+
end
|
243
235
|
|
244
|
-
|
245
|
-
|
246
|
-
|
236
|
+
it "creates all cards for three-part names" do
|
237
|
+
sugar_milk_flour = Card.create! name: "Sugar+Milk+Flour", content: "tasty"
|
238
|
+
sugar_milk = "Sugar+Milk".card
|
239
|
+
expect(sugar_milk_flour.left_id).to eq(sugar_milk.id)
|
240
|
+
expect(sugar_milk_flour.right_id).to eq("Flour".card_id)
|
241
|
+
expect(sugar_milk.left_id).to eq("Sugar".card_id)
|
242
|
+
expect(sugar_milk.right_id).to eq("Milk".card_id)
|
247
243
|
end
|
248
244
|
end
|
249
245
|
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
@b1 = Card.create! name: "Book+*type+*autoname", content: "b1"
|
254
|
-
end
|
255
|
-
end
|
246
|
+
specify "event: rename_in_trash", as_bot: true do
|
247
|
+
a = "a".card
|
248
|
+
a.delete!
|
256
249
|
|
257
|
-
|
258
|
-
|
259
|
-
expect(c.name).to eq("b1")
|
260
|
-
end
|
250
|
+
b = "b".card
|
251
|
+
b.update! name: "A"
|
261
252
|
|
262
|
-
|
263
|
-
_b1 = Card.create! type: "Book"
|
264
|
-
b2 = Card.create! type: "Book"
|
265
|
-
expect(b2.name).to eq("b2")
|
266
|
-
end
|
253
|
+
trashed_a = Card.find a.id
|
267
254
|
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
b1 = Card.create! type: "Book"
|
272
|
-
expect(b1.name).to eq("b1")
|
273
|
-
end
|
255
|
+
expect(b.name).to eq("A")
|
256
|
+
expect(trashed_a.name).to eq("A*trash")
|
257
|
+
expect(trashed_a.key).to eq("a*trash")
|
274
258
|
end
|
275
259
|
|
276
260
|
describe "event: escape_name" do
|
@@ -291,11 +275,4 @@ RSpec.describe Card::Set::All::NameEvents do
|
|
291
275
|
.to raise_error(/wrong key/)
|
292
276
|
end
|
293
277
|
end
|
294
|
-
|
295
|
-
describe "reset_codename_cache" do
|
296
|
-
it "resets codename cache when codename is updated" do
|
297
|
-
card = Card.create! name: "Codename Haver", codename: :codename_haver
|
298
|
-
expect(Card::Codename.id(:codename_haver)).to eq(card.id)
|
299
|
-
end
|
300
|
-
end
|
301
278
|
end
|