card 1.101.5 → 1.101.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/VERSION +1 -1
- data/config/locales/en.yml +1 -0
- data/db/migrate/20200805200729_add_unique_pair_indeces.rb +35 -1
- data/db/migrate_core_cards/20190829093961_cardtype_grouping.rb +7 -7
- data/db/test_seed.rb +2 -2
- data/lib/card/content/diff/result.rb +0 -125
- data/lib/card/content/diff/summary.rb +136 -0
- data/lib/card/mailer.rb +15 -12
- data/lib/card/query/act_query.rb +2 -2
- data/lib/card/query/action_query.rb +1 -1
- data/lib/card/query/card_query/conjunctions.rb +1 -1
- data/lib/card/query/card_query/reference_attributes.rb +1 -1
- data/lib/card/query/card_query/relational_attributes.rb +2 -2
- data/lib/card/set/advanced_api.rb +1 -2
- data/lib/card/set/event.rb +8 -4
- data/lib/cardio/mod.rb +1 -1
- data/mod/core/set/all/content.rb +0 -69
- data/mod/core/set/all/debug.rb +7 -10
- data/mod/core/set/all/initialize.rb +4 -0
- data/mod/core/set/all/trash.rb +4 -0
- data/mod/{admin → core}/set/self/trash.rb +0 -0
- data/mod/core/set/self/version.rb +0 -4
- data/mod/{admin → core}/spec/set/self/trash_spec.rb +0 -0
- data/tmpsets/set/mod001-admin/self/admin.rb +6 -3
- data/tmpsets/set/mod001-admin/self/admin_info.rb +3 -8
- data/tmpsets/set/mod002-core/all/abort.rb +8 -8
- data/tmpsets/set/mod002-core/all/assign_attributes.rb +12 -28
- data/tmpsets/set/mod002-core/all/autoname.rb +26 -0
- data/tmpsets/set/mod002-core/all/codename.rb +3 -2
- data/tmpsets/set/mod002-core/all/collection.rb +4 -6
- data/tmpsets/set/mod002-core/all/content.rb +55 -99
- data/tmpsets/set/mod002-core/all/contextual_content.rb +2 -4
- data/tmpsets/set/mod002-core/all/debug.rb +8 -10
- data/tmpsets/set/mod002-core/all/initialize.rb +13 -9
- data/tmpsets/set/mod002-core/all/name_events.rb +78 -58
- data/tmpsets/set/mod002-core/all/reference_events.rb +78 -0
- data/tmpsets/set/mod002-core/all/states.rb +4 -4
- data/tmpsets/set/mod002-core/all/subcards.rb +1 -101
- data/tmpsets/set/mod002-core/all/trash.rb +20 -14
- data/tmpsets/set/mod002-core/all/type.rb +11 -11
- data/tmpsets/set/mod002-core/all/utils.rb +4 -1
- data/tmpsets/set/mod002-core/right/autoname.rb +12 -0
- data/tmpsets/set/{mod003-settings → mod002-core}/self/autoname.rb +2 -2
- data/tmpsets/set/{mod001-admin → mod002-core}/self/trash.rb +5 -4
- data/tmpsets/set/mod002-core/self/version.rb +0 -4
- data/tmpsets/set/mod002-core/type/cardtype.rb +37 -0
- data/tmpsets/set/{mod005-card-mod-email → mod004-card-mod-email}/abstract/email_field.rb +1 -2
- data/tmpsets/set/{mod005-card-mod-email → mod004-card-mod-email}/abstract/test_context.rb +1 -0
- data/tmpsets/set/{mod005-card-mod-email → mod004-card-mod-email}/all/email_html.rb +0 -0
- data/tmpsets/set/{mod005-card-mod-email → mod004-card-mod-email}/all/email_text.rb +0 -1
- data/tmpsets/set/{mod005-card-mod-email → mod004-card-mod-email}/right/bcc.rb +0 -0
- data/tmpsets/set/{mod005-card-mod-email → mod004-card-mod-email}/right/cc.rb +0 -0
- data/tmpsets/set/{mod005-card-mod-email → mod004-card-mod-email}/right/from.rb +0 -0
- data/tmpsets/set/{mod005-card-mod-email → mod004-card-mod-email}/right/html_message.rb +1 -0
- data/tmpsets/set/{mod005-card-mod-email → mod004-card-mod-email}/right/subject.rb +0 -0
- data/tmpsets/set/{mod005-card-mod-email → mod004-card-mod-email}/right/text_message.rb +0 -0
- data/tmpsets/set/{mod005-card-mod-email → mod004-card-mod-email}/right/to.rb +0 -0
- data/tmpsets/set/{mod005-card-mod-email → mod004-card-mod-email}/type/email_template.rb +4 -3
- data/tmpsets/set/{mod005-card-mod-email → mod004-card-mod-email}/type/email_template/email_config.rb +3 -1
- data/tmpsets/set/{mod006-card-mod-collection → mod005-card-mod-collection}/abstract/items.rb +5 -1
- data/tmpsets/set/{mod006-card-mod-collection → mod005-card-mod-collection}/abstract/paging.rb +1 -0
- data/tmpsets/set/{mod006-card-mod-collection → mod005-card-mod-collection}/abstract/paging/paging_links.rb +1 -0
- data/tmpsets/set/{mod006-card-mod-collection → mod005-card-mod-collection}/abstract/paging/paging_views.rb +1 -0
- data/tmpsets/set/{mod006-card-mod-collection → mod005-card-mod-collection}/all/extended.rb +2 -1
- data/tmpsets/set/{mod006-card-mod-collection → mod005-card-mod-collection}/all/item.rb +7 -1
- data/tmpsets/set/{mod007-card-mod-content → mod006-card-mod-content}/abstract/code_file.rb +0 -1
- data/tmpsets/set/{mod007-card-mod-content → mod006-card-mod-content}/abstract/haml_file.rb +0 -1
- data/tmpsets/set/{mod007-card-mod-content → mod006-card-mod-content}/abstract/lock.rb +1 -0
- data/tmpsets/set/{mod007-card-mod-content → mod006-card-mod-content}/abstract/templated_nests.rb +0 -0
- data/tmpsets/set/{mod007-card-mod-content → mod006-card-mod-content}/abstract/vendor_code_file.rb +0 -0
- data/tmpsets/set/{mod007-card-mod-content → mod006-card-mod-content}/all/chunk.rb +8 -8
- data/tmpsets/set/{mod007-card-mod-content → mod006-card-mod-content}/all/templating.rb +1 -1
- data/tmpsets/set/{mod007-card-mod-content → mod006-card-mod-content}/right/default.rb +0 -0
- data/tmpsets/set/{mod007-card-mod-content → mod006-card-mod-content}/right/structure.rb +5 -1
- data/tmpsets/set/{mod007-card-mod-content → mod006-card-mod-content}/self/default.rb +0 -0
- data/tmpsets/set/{mod007-card-mod-content → mod006-card-mod-content}/self/structure.rb +0 -0
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/active_card.rb +1 -2
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/base.rb +3 -1
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/css.rb +0 -1
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/csv.rb +2 -1
- data/tmpsets/set/mod007-card-mod-format/all/demo.rb +45 -0
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/error.rb +12 -19
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/export.rb +2 -0
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/file.rb +0 -0
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/frame.rb +6 -10
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/haml.rb +0 -0
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/head.rb +5 -1
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/header.rb +0 -0
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/html_content.rb +2 -1
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/html_error.rb +25 -10
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/html_show.rb +0 -0
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/html_title.rb +0 -0
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/html_wrapper.rb +13 -8
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/js.rb +0 -1
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/json.rb +1 -2
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/links.rb +5 -4
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/menu.rb +1 -1
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/path.rb +1 -0
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/rich_html.rb +12 -0
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/rss.rb +3 -2
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/all/text.rb +0 -1
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/self/home.rb +0 -0
- data/tmpsets/set/mod007-card-mod-format/type/cardtype.rb +98 -0
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/type/html.rb +0 -0
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/type/json.rb +1 -1
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/type/number.rb +4 -2
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/type/phrase.rb +0 -0
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/type/plain_text.rb +0 -0
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/type/toggle.rb +2 -2
- data/tmpsets/set/{mod008-card-mod-format → mod007-card-mod-format}/type/uri.rb +0 -0
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/abstract/01_pointer.rb +0 -0
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/abstract/01_pointer/events.rb +0 -0
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/abstract/01_pointer/html_views.rb +1 -2
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/abstract/01_pointer/html_views/filter.rb +1 -0
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/abstract/01_pointer/options_api.rb +0 -0
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/abstract/01_pointer/other_views.rb +1 -0
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/abstract/code_pointer.rb +0 -0
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/abstract/id_pointer.rb +1 -1
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/all/supports_content_options.rb +0 -0
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/right/content_option_view.rb +0 -0
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/right/content_options.rb +0 -0
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/self/content_option_view.rb +0 -0
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/self/content_options.rb +0 -0
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/self/input_options.rb +1 -0
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/type/link_list.rb +0 -0
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/type/list.rb +0 -0
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/type/nest_list.rb +1 -1
- data/tmpsets/set/{mod009-card-mod-list → mod008-card-mod-list}/type/pointer.rb +0 -0
- data/tmpsets/set/{mod010-card-mod-permissions → mod009-card-mod-permissions}/abstract/permission.rb +3 -2
- data/tmpsets/set/{mod010-card-mod-permissions → mod009-card-mod-permissions}/all/permissions.rb +11 -7
- data/tmpsets/set/{mod010-card-mod-permissions → mod009-card-mod-permissions}/all/update_read_rules.rb +2 -3
- data/tmpsets/set/{mod010-card-mod-permissions → mod009-card-mod-permissions}/right/create.rb +0 -0
- data/tmpsets/set/{mod010-card-mod-permissions → mod009-card-mod-permissions}/right/delete.rb +0 -0
- data/tmpsets/set/{mod010-card-mod-permissions → mod009-card-mod-permissions}/right/read.rb +3 -5
- data/tmpsets/set/{mod010-card-mod-permissions → mod009-card-mod-permissions}/right/update.rb +0 -0
- data/tmpsets/set/{mod010-card-mod-permissions → mod009-card-mod-permissions}/self/create.rb +0 -0
- data/tmpsets/set/{mod010-card-mod-permissions → mod009-card-mod-permissions}/self/delete.rb +0 -0
- data/tmpsets/set/{mod010-card-mod-permissions → mod009-card-mod-permissions}/self/read.rb +0 -0
- data/tmpsets/set/{mod010-card-mod-permissions → mod009-card-mod-permissions}/self/update.rb +0 -0
- data/tmpsets/set/{mod011-card-mod-account → mod010-card-mod-account}/abstract/account_field.rb +5 -0
- data/tmpsets/set/{mod011-card-mod-account → mod010-card-mod-account}/abstract/accountable.rb +5 -1
- data/tmpsets/set/{mod011-card-mod-account → mod010-card-mod-account}/all/account.rb +16 -7
- data/tmpsets/set/{mod011-card-mod-account → mod010-card-mod-account}/right/account.rb +3 -8
- data/tmpsets/set/{mod011-card-mod-account → mod010-card-mod-account}/right/account/events.rb +2 -2
- data/tmpsets/set/{mod011-card-mod-account → mod010-card-mod-account}/right/account/views.rb +0 -0
- data/tmpsets/set/{mod011-card-mod-account → mod010-card-mod-account}/right/email.rb +5 -4
- data/tmpsets/set/{mod011-card-mod-account → mod010-card-mod-account}/right/password.rb +4 -3
- data/tmpsets/set/{mod011-card-mod-account → mod010-card-mod-account}/right/roles.rb +2 -2
- data/tmpsets/set/{mod011-card-mod-account → mod010-card-mod-account}/right/salt.rb +1 -1
- data/tmpsets/set/{mod011-card-mod-account → mod010-card-mod-account}/right/status.rb +1 -1
- data/tmpsets/set/{mod011-card-mod-account → mod010-card-mod-account}/self/signin.rb +37 -50
- data/tmpsets/set/{mod011-card-mod-account → mod010-card-mod-account}/type/role.rb +0 -0
- data/tmpsets/set/{mod011-card-mod-account → mod010-card-mod-account}/type/signup.rb +0 -0
- data/tmpsets/set/{mod011-card-mod-account → mod010-card-mod-account}/type/signup/views.rb +7 -2
- data/tmpsets/set/{mod011-card-mod-account → mod010-card-mod-account}/type/user.rb +1 -1
- data/tmpsets/set/{mod011-card-mod-account → mod010-card-mod-account}/type_plus_right/user/email.rb +0 -0
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/bridge.rb +3 -3
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/bridge/bridge_pills.rb +0 -0
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/bridge/follow_section.rb +0 -0
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/bridge/related_section.rb +2 -2
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/bridge/tab_views.rb +0 -0
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/bridge/tab_visibility.rb +10 -5
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/edit_content.rb +0 -0
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/edit_inline.rb +0 -0
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/edit_name.rb +18 -20
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/edit_type.rb +52 -33
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/editing.rb +0 -0
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/editor.rb +3 -5
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/form.rb +14 -11
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/form_buttons.rb +11 -2
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/form_elements.rb +1 -0
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/formgroup.rb +0 -0
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/new.rb +2 -2
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/overlay_guide.rb +0 -0
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/all/template_nest.rb +0 -0
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/right/input_type.rb +0 -0
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/self/input_type.rb +0 -0
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/type/list.rb +0 -0
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/type/plain_text.rb +0 -0
- data/tmpsets/set/{mod012-card-mod-edit → mod011-card-mod-edit}/type/pointer.rb +0 -0
- data/tmpsets/set/{mod013-card-mod-history → mod012-card-mod-history}/all/history.rb +2 -1
- data/tmpsets/set/{mod013-card-mod-history → mod012-card-mod-history}/all/history/act_listing.rb +9 -6
- data/tmpsets/set/{mod013-card-mod-history → mod012-card-mod-history}/all/history/actions.rb +8 -4
- data/tmpsets/set/{mod013-card-mod-history → mod012-card-mod-history}/all/history/acts.rb +0 -0
- data/tmpsets/set/{mod013-card-mod-history → mod012-card-mod-history}/all/history/events.rb +3 -3
- data/tmpsets/set/{mod013-card-mod-history → mod012-card-mod-history}/all/history/last.rb +0 -0
- data/tmpsets/set/{mod013-card-mod-history → mod012-card-mod-history}/all/history/revision.rb +0 -0
- data/tmpsets/set/{mod013-card-mod-history → mod012-card-mod-history}/all/history/selected.rb +3 -3
- data/tmpsets/set/{mod013-card-mod-history → mod012-card-mod-history}/all/history/views.rb +31 -0
- data/tmpsets/set/{mod013-card-mod-history → mod012-card-mod-history}/all/history_bridge.rb +31 -17
- data/tmpsets/set/{mod014-card-mod-carrierwave → mod013-card-mod-carrierwave}/abstract/attachment.rb +36 -13
- data/tmpsets/set/{mod014-card-mod-carrierwave → mod013-card-mod-carrierwave}/abstract/attachment/cloud.rb +5 -1
- data/tmpsets/set/{mod014-card-mod-carrierwave → mod013-card-mod-carrierwave}/abstract/attachment/coded.rb +7 -2
- data/tmpsets/set/{mod014-card-mod-carrierwave → mod013-card-mod-carrierwave}/abstract/attachment/local.rb +4 -1
- data/tmpsets/set/{mod014-card-mod-carrierwave → mod013-card-mod-carrierwave}/abstract/attachment/paths.rb +1 -0
- data/tmpsets/set/{mod014-card-mod-carrierwave → mod013-card-mod-carrierwave}/abstract/attachment/storage_type.rb +33 -32
- data/tmpsets/set/{mod014-card-mod-carrierwave → mod013-card-mod-carrierwave}/abstract/attachment/upload_cache.rb +4 -0
- data/tmpsets/set/{mod014-card-mod-carrierwave → mod013-card-mod-carrierwave}/abstract/attachment/web.rb +0 -0
- data/tmpsets/set/{mod014-card-mod-carrierwave → mod013-card-mod-carrierwave}/all/file_utils.rb +0 -0
- data/tmpsets/set/{mod014-card-mod-carrierwave → mod013-card-mod-carrierwave}/self/admin.rb +0 -0
- data/tmpsets/set/{mod014-card-mod-carrierwave → mod013-card-mod-carrierwave}/self/favicon.rb +1 -0
- data/tmpsets/set/{mod014-card-mod-carrierwave → mod013-card-mod-carrierwave}/self/new_file.rb +0 -0
- data/tmpsets/set/{mod014-card-mod-carrierwave → mod013-card-mod-carrierwave}/self/new_image.rb +0 -0
- data/tmpsets/set/{mod014-card-mod-carrierwave → mod013-card-mod-carrierwave}/type/file.rb +27 -10
- data/tmpsets/set/{mod014-card-mod-carrierwave → mod013-card-mod-carrierwave}/type/image.rb +7 -4
- data/tmpsets/set/{mod014-card-mod-carrierwave → mod013-card-mod-carrierwave}/type/image/html_views.rb +13 -3
- data/tmpsets/set/{mod015-card-mod-virtual → mod014-card-mod-virtual}/abstract/virtual_cache.rb +0 -0
- data/tmpsets/set/{mod016-card-mod-machines → mod015-card-mod-machines}/abstract/machine.rb +2 -2
- data/tmpsets/set/{mod016-card-mod-machines → mod015-card-mod-machines}/abstract/machine/output_cache.rb +0 -0
- data/tmpsets/set/{mod016-card-mod-machines → mod015-card-mod-machines}/abstract/machine/output_update.rb +7 -0
- data/tmpsets/set/{mod016-card-mod-machines → mod015-card-mod-machines}/abstract/machine_input.rb +1 -0
- data/tmpsets/set/{mod016-card-mod-machines → mod015-card-mod-machines}/all/reset_machines.rb +0 -0
- data/tmpsets/set/{mod016-card-mod-machines → mod015-card-mod-machines}/right/machine_cache.rb +0 -0
- data/tmpsets/set/{mod016-card-mod-machines → mod015-card-mod-machines}/right/machine_input.rb +0 -0
- data/tmpsets/set/{mod016-card-mod-machines → mod015-card-mod-machines}/right/machine_output.rb +0 -0
- data/tmpsets/set/{mod017-card-mod-script → mod016-card-mod-script}/abstract/script.rb +1 -1
- data/tmpsets/set/{mod017-card-mod-script → mod016-card-mod-script}/right/script.rb +0 -0
- data/tmpsets/set/{mod017-card-mod-script → mod016-card-mod-script}/self/01_script_libraries.rb +0 -0
- data/tmpsets/set/{mod017-card-mod-script → mod016-card-mod-script}/self/script.rb +0 -0
- data/tmpsets/set/{mod017-card-mod-script → mod016-card-mod-script}/self/script_decko.rb +0 -0
- data/tmpsets/set/{mod017-card-mod-script → mod016-card-mod-script}/self/script_editors.rb +0 -0
- data/tmpsets/set/{mod017-card-mod-script → mod016-card-mod-script}/self/script_html5shiv_printshiv.rb +0 -0
- data/tmpsets/set/{mod017-card-mod-script → mod016-card-mod-script}/self/script_jquery.rb +0 -0
- data/tmpsets/set/{mod017-card-mod-script → mod016-card-mod-script}/self/script_jquery_helper.rb +0 -0
- data/tmpsets/set/{mod017-card-mod-script → mod016-card-mod-script}/self/script_mods.rb +0 -0
- data/tmpsets/set/{mod017-card-mod-script → mod016-card-mod-script}/self/script_pointer_config.rb +0 -0
- data/tmpsets/set/{mod017-card-mod-script → mod016-card-mod-script}/type/coffee_script.rb +1 -1
- data/tmpsets/set/{mod017-card-mod-script → mod016-card-mod-script}/type/java_script.rb +0 -0
- data/tmpsets/set/{mod018-card-mod-ace_editor → mod017-card-mod-ace_editor}/all/ace_editor.rb +0 -1
- data/tmpsets/set/{mod018-card-mod-ace_editor → mod017-card-mod-ace_editor}/self/ace.rb +0 -0
- data/tmpsets/set/{mod018-card-mod-ace_editor → mod017-card-mod-ace_editor}/self/script_ace.rb +0 -0
- data/tmpsets/set/{mod018-card-mod-ace_editor → mod017-card-mod-ace_editor}/self/script_ace_config.rb +0 -0
- data/tmpsets/set/mod018-card-mod-alias/all/alias.rb +30 -0
- data/tmpsets/set/mod018-card-mod-alias/all_plus/alias.rb +31 -0
- data/tmpsets/set/mod018-card-mod-alias/type/alias.rb +42 -0
- data/tmpsets/set/mod019-card-mod-api_key/right/account.rb +18 -0
- data/tmpsets/set/mod019-card-mod-api_key/right/api_key.rb +103 -0
- data/tmpsets/set/{mod019-card-mod-style → mod020-card-mod-style}/abstract/skin_box.rb +2 -0
- data/tmpsets/set/{mod019-card-mod-style → mod020-card-mod-style}/right/style.rb +0 -0
- data/tmpsets/set/{mod019-card-mod-style → mod020-card-mod-style}/self/style.rb +0 -0
- data/tmpsets/set/{mod019-card-mod-style → mod020-card-mod-style}/self/style_bootstrap_compatible.rb +0 -0
- data/tmpsets/set/{mod019-card-mod-style → mod020-card-mod-style}/self/style_cards.rb +0 -0
- data/tmpsets/set/{mod019-card-mod-style → mod020-card-mod-style}/self/style_jquery_ui_smoothness.rb +0 -0
- data/tmpsets/set/{mod019-card-mod-style → mod020-card-mod-style}/self/style_libraries.rb +0 -0
- data/tmpsets/set/{mod019-card-mod-style → mod020-card-mod-style}/self/style_mods.rb +0 -0
- data/tmpsets/set/{mod019-card-mod-style → mod020-card-mod-style}/type/css.rb +5 -4
- data/tmpsets/set/{mod019-card-mod-style → mod020-card-mod-style}/type/scss.rb +1 -1
- data/tmpsets/set/{mod019-card-mod-style → mod020-card-mod-style}/type/skin.rb +0 -0
- data/tmpsets/set/{mod020-card-mod-bar_and_box → mod021-card-mod-bar_and_box}/abstract/media.rb +0 -0
- data/tmpsets/set/{mod020-card-mod-bar_and_box → mod021-card-mod-bar_and_box}/all/bar.rb +1 -1
- data/tmpsets/set/{mod020-card-mod-bar_and_box → mod021-card-mod-bar_and_box}/all/box.rb +0 -0
- data/tmpsets/set/{mod020-card-mod-bar_and_box → mod021-card-mod-bar_and_box}/self/style_media.rb +0 -0
- data/tmpsets/set/{mod020-card-mod-bar_and_box → mod021-card-mod-bar_and_box}/type/image.rb +1 -1
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/abstract/bootstrap_code_file.rb +0 -1
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/abstract/bootswatch_theme.rb +1 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/abstract/bootswatch_theme/html_views.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/abstract/bs_badge.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/all/bootstrap/accordion.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/all/bootstrap/dropdown.rb +13 -15
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/all/bootstrap/form.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/all/bootstrap/helper.rb +23 -12
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/all/bootstrap/icon.rb +16 -11
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/all/bootstrap/navbar.rb +8 -28
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/all/bootstrap/table.rb +9 -7
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/all/bootstrap/tabs.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/all/bootstrap/wrapper.rb +2 -3
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/all/rich_bootstrap.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/self/bootstrap_core.rb +7 -6
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/self/bootstrap_functions.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/self/font_awesome.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/self/material_icons.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/self/script_bootstrap.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/self/script_load_select2.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/self/script_select2.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/self/smartmenu_css.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/self/smartmenu_js.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/self/style_bootstrap_cards.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/self/style_bootstrap_colorpicker.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/self/style_select2.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/self/style_select2_bootstrap.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/type/bootswatch_skin.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/type/customized_bootswatch_skin.rb +11 -7
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/type/customized_bootswatch_skin/html_views.rb +0 -0
- data/tmpsets/set/{mod021-card-mod-bootstrap → mod022-card-mod-bootstrap}/type_plus_right/customized_bootswatch_skin/colors.rb +3 -2
- data/tmpsets/set/{mod022-card-mod-comment → mod023-card-mod-comment}/all/comment.rb +4 -1
- data/tmpsets/set/{mod022-card-mod-comment → mod023-card-mod-comment}/right/comment.rb +0 -0
- data/tmpsets/set/{mod022-card-mod-comment → mod023-card-mod-comment}/right/discussion.rb +0 -0
- data/tmpsets/set/{mod023-card-mod-date → mod024-card-mod-date}/all/calendar.rb +0 -0
- data/tmpsets/set/{mod023-card-mod-date → mod024-card-mod-date}/right/when_created.rb +1 -0
- data/tmpsets/set/{mod023-card-mod-date → mod024-card-mod-date}/right/when_last_edited.rb +1 -0
- data/tmpsets/set/{mod023-card-mod-date → mod024-card-mod-date}/self/datepicker.rb +1 -1
- data/tmpsets/set/{mod023-card-mod-date → mod024-card-mod-date}/self/now.rb +0 -1
- data/tmpsets/set/{mod023-card-mod-date → mod024-card-mod-date}/self/script_datepicker.rb +0 -0
- data/tmpsets/set/{mod023-card-mod-date → mod024-card-mod-date}/self/script_datepicker_config.rb +0 -0
- data/tmpsets/set/{mod023-card-mod-date → mod024-card-mod-date}/self/style_datepicker.rb +0 -0
- data/tmpsets/set/{mod023-card-mod-date → mod024-card-mod-date}/type/date.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/abstract/follow_option.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/all/follow.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/all/follow/follow_link.rb +3 -2
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/all/follow/follow_link_views.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/all/follow/followed_by.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/all/follow/follower_ids.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/all/follow/start_follow_link.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/all/follow/stop_follow_link.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/all/notify.rb +1 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/all/notify/base_views.rb +1 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/all/notify/html_views.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/right/account.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/right/follow.rb +1 -1
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/right/follow_fields.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/right/followers.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/right/following.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/self/always.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/self/created.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/self/edited.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/self/follow.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/self/follow_defaults.rb +5 -4
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/self/follow_fields.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/self/never.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/type/cardtype.rb +1 -1
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/type/notification_template.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/type/set.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/type/user.rb +0 -0
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/type_plus_right/user/follow.rb +3 -2
- data/tmpsets/set/{mod025-card-mod-follow → mod026-card-mod-follow}/type_plus_right/user/follow/follow_editor_helper.rb +0 -0
- data/tmpsets/set/{mod026-card-mod-google_analytics → mod027-card-mod-google_analytics}/all/google_analytics.rb +0 -0
- data/tmpsets/set/{mod027-card-mod-help → mod028-card-mod-help}/all/guide.rb +0 -0
- data/tmpsets/set/{mod027-card-mod-help → mod028-card-mod-help}/all/help.rb +0 -0
- data/tmpsets/set/{mod027-card-mod-help → mod028-card-mod-help}/right/guide.rb +0 -0
- data/tmpsets/set/{mod027-card-mod-help → mod028-card-mod-help}/right/help.rb +1 -1
- data/tmpsets/set/{mod027-card-mod-help → mod028-card-mod-help}/self/guide.rb +0 -0
- data/tmpsets/set/{mod027-card-mod-help → mod028-card-mod-help}/self/help.rb +0 -0
- data/tmpsets/set/{mod028-card-mod-integrate → mod029-card-mod-integrate}/all/observer.rb +0 -0
- data/tmpsets/set/{mod028-card-mod-integrate → mod029-card-mod-integrate}/self/on_create.rb +0 -0
- data/tmpsets/set/{mod028-card-mod-integrate → mod029-card-mod-integrate}/self/on_delete.rb +0 -0
- data/tmpsets/set/{mod028-card-mod-integrate → mod029-card-mod-integrate}/self/on_update.rb +0 -0
- data/tmpsets/set/{mod028-card-mod-integrate → mod029-card-mod-integrate}/self/thanks.rb +0 -0
- data/tmpsets/set/{mod029-card-mod-session → mod030-card-mod-session}/all/location_history.rb +0 -0
- data/tmpsets/set/{mod029-card-mod-session → mod030-card-mod-session}/type/session.rb +0 -0
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/abstract/account_dropdown.rb +2 -4
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/abstract/pointer/html_views.rb +0 -0
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/all/alert.rb +0 -0
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/all/layouts.rb +0 -0
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/all/modal.rb +1 -0
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/all/navbar_links.rb +0 -0
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/all/overlay.rb +7 -10
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/all/process_layout.rb +31 -29
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/all/tabs.rb +1 -0
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/right/enabled_roles.rb +0 -0
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/right/head.rb +0 -0
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/self/account_links.rb +6 -7
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/self/alerts.rb +0 -0
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/self/dropdown_divider.rb +0 -0
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/self/foot.rb +0 -1
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/self/head.rb +1 -1
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/self/layout.rb +0 -0
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/self/navbox.rb +0 -0
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/self/sidebar.rb +0 -0
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/type/html.rb +0 -0
- data/tmpsets/set/{mod030-card-mod-layout → mod031-card-mod-layout}/type/layout_type.rb +0 -0
- data/tmpsets/set/{mod031-card-mod-legacy → mod032-card-mod-legacy}/abstract/table_of_contents.rb +9 -6
- data/tmpsets/set/{mod031-card-mod-legacy → mod032-card-mod-legacy}/self/csv_structure.rb +0 -0
- data/tmpsets/set/{mod031-card-mod-legacy → mod032-card-mod-legacy}/self/default_html_view.rb +0 -0
- data/tmpsets/set/{mod031-card-mod-legacy → mod032-card-mod-legacy}/self/table_of_contents.rb +0 -0
- data/tmpsets/set/{mod031-card-mod-legacy → mod032-card-mod-legacy}/type/basic.rb +0 -0
- data/tmpsets/set/{mod032-card-mod-markdown → mod033-card-mod-markdown}/type/markdown.rb +0 -0
- data/tmpsets/set/{mod033-card-mod-prosemirror_editor → mod034-card-mod-prosemirror_editor}/all/prosemirror_editor.rb +0 -1
- data/tmpsets/set/{mod033-card-mod-prosemirror_editor → mod034-card-mod-prosemirror_editor}/self/script_prosemirror.rb +0 -0
- data/tmpsets/set/{mod033-card-mod-prosemirror_editor → mod034-card-mod-prosemirror_editor}/self/script_prosemirror_config.rb +0 -0
- data/tmpsets/set/{mod033-card-mod-prosemirror_editor → mod034-card-mod-prosemirror_editor}/self/style_prosemirror.rb +0 -0
- data/tmpsets/set/{mod034-card-mod-recaptcha → mod035-card-mod-recaptcha}/all/recaptcha.rb +6 -6
- data/tmpsets/set/{mod034-card-mod-recaptcha → mod035-card-mod-recaptcha}/self/admin_info.rb +6 -11
- data/tmpsets/set/{mod011-card-mod-account → mod035-card-mod-recaptcha}/self/captcha.rb +2 -2
- data/tmpsets/set/{mod034-card-mod-recaptcha → mod035-card-mod-recaptcha}/self/recaptcha_proxy.rb +0 -0
- data/tmpsets/set/{mod034-card-mod-recaptcha → mod035-card-mod-recaptcha}/self/recaptcha_secret_key.rb +0 -0
- data/tmpsets/set/{mod034-card-mod-recaptcha → mod035-card-mod-recaptcha}/self/recaptcha_settings.rb +9 -22
- data/tmpsets/set/{mod034-card-mod-recaptcha → mod035-card-mod-recaptcha}/self/recaptcha_site_key.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/abstract/00_filter_helper.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/abstract/02_search_params.rb +1 -3
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/abstract/03_filter.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/abstract/03_filter/filter_form.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/abstract/03_filter/form_helper.rb +1 -1
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/abstract/03_filter/query_construction.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/abstract/04_right_filter_form.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/abstract/05_search.rb +4 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/abstract/05_search/views.rb +3 -5
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/abstract/06_cql_search.rb +2 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/abstract/filterable.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/abstract/filterable_bar.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/right/children.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/right/created.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/right/edited.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/right/editors.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/right/follow.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/right/linked_to_by.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/right/links_to.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/right/mates.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/right/nested_by.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/right/nests.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/right/referred_to_by.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/right/refers_to.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/self/recent.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/self/search.rb +3 -1
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/type/cardtype.rb +0 -0
- data/tmpsets/set/{mod035-card-mod-search → mod036-card-mod-search}/type/search_type.rb +1 -0
- data/tmpsets/set/mod037-card-mod-rules/all/related_sets.rb +34 -0
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/right/self.rb +0 -0
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/right/type_plus_right.rb +0 -0
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/rstar/rule_user.rb +2 -3
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/rule/bar_view.rb +0 -0
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/rule/bridge_rules_editor.rb +0 -0
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/rule/editor.rb +1 -1
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/rule/html_views.rb +0 -0
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/rule/quick_editor.rb +0 -0
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/rule/rule_form.rb +2 -3
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/rule/rule_form/buttons.rb +1 -2
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/rule/rule_form/form_elements.rb +2 -2
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/rule/rule_form/rule_set_radio.rb +1 -0
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/rule/rule_form/set_selection.rb +0 -0
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/rule/rules.rb +5 -5
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/self/cardtype.rb +0 -0
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/self/recent_settings.rb +0 -0
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/self/script_rules.rb +0 -0
- data/tmpsets/set/mod037-card-mod-rules/type/cardtype.rb +14 -0
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/type/set.rb +1 -1
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/type/set/html_views.rb +0 -0
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/type/set/html_views/rule_lists.rb +0 -0
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/type/set/html_views/template.rb +0 -0
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/type/set/rules_filter.rb +0 -0
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/type/set/setting_lists.rb +1 -1
- data/tmpsets/set/{mod036-card-mod-rules → mod037-card-mod-rules}/type/setting.rb +5 -7
- data/tmpsets/set/{mod037-card-mod-tinymce_editor → mod038-card-mod-tinymce_editor}/all/reference_editor.rb +18 -6
- data/tmpsets/set/{mod037-card-mod-tinymce_editor → mod038-card-mod-tinymce_editor}/all/reference_editor/link_editor.rb +0 -0
- data/tmpsets/set/{mod037-card-mod-tinymce_editor → mod038-card-mod-tinymce_editor}/all/reference_editor/link_editor/link_parser.rb +0 -0
- data/tmpsets/set/{mod037-card-mod-tinymce_editor → mod038-card-mod-tinymce_editor}/all/reference_editor/nest_editor.rb +1 -2
- data/tmpsets/set/{mod037-card-mod-tinymce_editor → mod038-card-mod-tinymce_editor}/all/reference_editor/nest_image.rb +0 -2
- data/tmpsets/set/{mod037-card-mod-tinymce_editor → mod038-card-mod-tinymce_editor}/all/tinymce_editor.rb +0 -1
- data/tmpsets/set/{mod037-card-mod-tinymce_editor → mod038-card-mod-tinymce_editor}/self/script_tinymce.rb +0 -0
- data/tmpsets/set/{mod037-card-mod-tinymce_editor → mod038-card-mod-tinymce_editor}/self/script_tinymce_config.rb +0 -0
- data/tmpsets/set/{mod037-card-mod-tinymce_editor → mod038-card-mod-tinymce_editor}/self/tiny_mce.rb +2 -2
- data/tmpsets/set/{mod039-card-mod-monkey → mod040-card-mod-monkey}/all/event_viz.rb +3 -3
- data/tmpsets/set/{mod039-card-mod-monkey → mod040-card-mod-monkey}/all/view_viz.rb +2 -0
- data/tmpsets/set/{mod039-card-mod-monkey → mod040-card-mod-monkey}/right/debug.rb +2 -3
- data/tmpsets/set_pattern/100-all.rb +0 -1
- data/tmpsets/set_pattern/101-all_plus.rb +0 -1
- data/tmpsets/set_pattern/102-type.rb +0 -1
- data/tmpsets/set_pattern/103-star.rb +0 -1
- data/tmpsets/set_pattern/104-rstar.rb +0 -1
- data/tmpsets/set_pattern/105-rule.rb +1 -2
- data/tmpsets/set_pattern/106-right.rb +0 -1
- data/tmpsets/set_pattern/107-type_plus_right.rb +0 -1
- data/tmpsets/set_pattern/108-self.rb +0 -1
- metadata +410 -412
- data/mod/core/set/all/contextual_content.rb +0 -26
- data/tmpsets/set/mod002-core/all/actify.rb +0 -77
- data/tmpsets/set/mod002-core/all/cache.rb +0 -118
- data/tmpsets/set/mod002-core/all/event_conditions.rb +0 -181
- data/tmpsets/set/mod002-core/all/fetch.rb +0 -131
- data/tmpsets/set/mod002-core/all/fetch_helper.rb +0 -44
- data/tmpsets/set/mod002-core/all/i18n.rb +0 -20
- data/tmpsets/set/mod002-core/all/name.rb +0 -238
- data/tmpsets/set/mod002-core/all/pattern.rb +0 -63
- data/tmpsets/set/mod002-core/all/references.rb +0 -200
- data/tmpsets/set/mod002-core/all/rename.rb +0 -42
- data/tmpsets/set/mod002-core/all/rules.rb +0 -90
- data/tmpsets/set/mod003-settings/right/autoname.rb +0 -12
- data/tmpsets/set/mod004-standard/all/rich_html/html_views/info.rb +0 -93
- data/tmpsets/set/mod004-standard/type/cardtype.rb +0 -128
- data/tmpsets/set/mod011-card-mod-account/right/api_key.rb +0 -57
@@ -1,26 +0,0 @@
|
|
1
|
-
def context_card
|
2
|
-
@context_card || self
|
3
|
-
end
|
4
|
-
|
5
|
-
def with_context context_card
|
6
|
-
old_context = @context_card
|
7
|
-
@context_card = context_card if context_card
|
8
|
-
yield
|
9
|
-
ensure
|
10
|
-
@context_card = old_context
|
11
|
-
end
|
12
|
-
|
13
|
-
format do
|
14
|
-
def context_card
|
15
|
-
card.context_card
|
16
|
-
end
|
17
|
-
|
18
|
-
def with_context context_card, &block
|
19
|
-
card.with_context context_card, &block
|
20
|
-
end
|
21
|
-
|
22
|
-
def contextual_content context_card, options={}
|
23
|
-
view = options.delete(:view) || :core
|
24
|
-
with_context(context_card) { render! view, options }
|
25
|
-
end
|
26
|
-
end
|
@@ -1,77 +0,0 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; class All
|
3
|
-
# Set: All cards (Actify)
|
4
|
-
#
|
5
|
-
module Actify;
|
6
|
-
extend Card::Set
|
7
|
-
def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/core/set/all/actify.rb"; end
|
8
|
-
def act options={}, &block
|
9
|
-
if act_card
|
10
|
-
add_to_act options, &block
|
11
|
-
else
|
12
|
-
start_new_act &block
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
def act_card
|
17
|
-
Card::Director.act_card
|
18
|
-
end
|
19
|
-
|
20
|
-
def act_card?
|
21
|
-
self == act_card
|
22
|
-
end
|
23
|
-
|
24
|
-
module ClassMethods
|
25
|
-
def create! opts
|
26
|
-
card = Card.new opts
|
27
|
-
card.save!
|
28
|
-
card
|
29
|
-
end
|
30
|
-
|
31
|
-
def create opts
|
32
|
-
card = Card.new opts
|
33
|
-
card.save
|
34
|
-
card
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
def save! *args
|
39
|
-
as_subcard = args.first&.delete :as_subcard
|
40
|
-
act(as_subcard: as_subcard) { super }
|
41
|
-
end
|
42
|
-
|
43
|
-
def save(*)
|
44
|
-
act { super }
|
45
|
-
end
|
46
|
-
|
47
|
-
def valid?(*)
|
48
|
-
act(validating: true) { super }
|
49
|
-
end
|
50
|
-
|
51
|
-
def update *args
|
52
|
-
act { super }
|
53
|
-
end
|
54
|
-
|
55
|
-
def update! *args
|
56
|
-
act { super }
|
57
|
-
end
|
58
|
-
|
59
|
-
alias_method :update_attributes, :update
|
60
|
-
alias_method :update_attributes!, :update!
|
61
|
-
|
62
|
-
private
|
63
|
-
|
64
|
-
def start_new_act
|
65
|
-
self.director = nil
|
66
|
-
Director.run_act(self) do
|
67
|
-
run_callbacks(:act) { yield }
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
def add_to_act options={}
|
72
|
-
director.appoint self unless @director
|
73
|
-
director.head = true unless options[:validating] || options[:as_subcard]
|
74
|
-
yield
|
75
|
-
end
|
76
|
-
end;end;end;end;
|
77
|
-
# ~~ generated from /Users/ethan/dev/decko/gem/card/mod/core/set/all/actify.rb ~~
|
@@ -1,118 +0,0 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; class All
|
3
|
-
# Set: All cards (Cache)
|
4
|
-
#
|
5
|
-
module Cache;
|
6
|
-
extend Card::Set
|
7
|
-
def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/core/set/all/cache.rb"; end
|
8
|
-
module ClassMethods
|
9
|
-
def retrieve_from_cache cache_key, local_only=false
|
10
|
-
return unless cache
|
11
|
-
local_only ? cache.soft.read(cache_key) : cache.read(cache_key)
|
12
|
-
end
|
13
|
-
|
14
|
-
def retrieve_from_cache_by_id id, local_only=false
|
15
|
-
key = Card::Lexicon.name(id)&.key
|
16
|
-
return unless key.present?
|
17
|
-
|
18
|
-
retrieve_from_cache key, local_only if key
|
19
|
-
end
|
20
|
-
|
21
|
-
def retrieve_from_cache_by_key key, local_only=false
|
22
|
-
retrieve_from_cache key, local_only
|
23
|
-
end
|
24
|
-
|
25
|
-
def write_to_cache card, local_only=false
|
26
|
-
if local_only
|
27
|
-
write_to_soft_cache card
|
28
|
-
elsif cache
|
29
|
-
cache.write card.key, card
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
def write_to_soft_cache card
|
34
|
-
return unless cache
|
35
|
-
cache.soft.write card.key, card
|
36
|
-
end
|
37
|
-
|
38
|
-
def expire name
|
39
|
-
key = name.to_name.key
|
40
|
-
return unless (card = Card.cache.read key)
|
41
|
-
card.expire
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
def update_soft_cache
|
46
|
-
Card.write_to_soft_cache self
|
47
|
-
end
|
48
|
-
|
49
|
-
def expire_pieces
|
50
|
-
name.piece_names.each do |piece|
|
51
|
-
Card.expire piece
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
def expire cache_type=nil
|
56
|
-
return unless (cache_class = cache_class_from_type cache_type)
|
57
|
-
expire_views
|
58
|
-
expire_names cache_class
|
59
|
-
expire_id cache_class
|
60
|
-
end
|
61
|
-
|
62
|
-
def cache_class_from_type cache_type
|
63
|
-
cache_type ? Card.cache.send(cache_type) : Card.cache
|
64
|
-
end
|
65
|
-
|
66
|
-
def view_cache_clean?
|
67
|
-
!db_content_changed?
|
68
|
-
end
|
69
|
-
|
70
|
-
def view_cache_keys
|
71
|
-
@view_cache_keys ||= hard_read_view_cache_keys || []
|
72
|
-
end
|
73
|
-
|
74
|
-
def ensure_view_cache_key cache_key
|
75
|
-
return if view_cache_keys.include? cache_key
|
76
|
-
|
77
|
-
@view_cache_keys << cache_key
|
78
|
-
hard_write_view_cache_keys
|
79
|
-
end
|
80
|
-
|
81
|
-
def hard_read_view_cache_keys
|
82
|
-
Card.cache.hard&.read_attribute key, :view_cache_keys
|
83
|
-
end
|
84
|
-
|
85
|
-
def hard_write_view_cache_keys
|
86
|
-
# puts "WRITE VIEW CACHE KEYS (#{name}): #{view_cache_keys}"
|
87
|
-
Card.cache.hard&.write_attribute key, :view_cache_keys, view_cache_keys
|
88
|
-
end
|
89
|
-
|
90
|
-
def expire_views
|
91
|
-
# puts "EXPIRE VIEW CACHE (#{name}): #{view_cache_keys}"
|
92
|
-
return unless view_cache_keys.present?
|
93
|
-
Array.wrap(view_cache_keys).each do |view_cache_key|
|
94
|
-
Card::View.cache.delete view_cache_key
|
95
|
-
end
|
96
|
-
@view_cache_keys = []
|
97
|
-
hard_write_view_cache_keys
|
98
|
-
end
|
99
|
-
|
100
|
-
def expire_names cache
|
101
|
-
[name, name_before_act].uniq.each do |name_version|
|
102
|
-
expire_name name_version, cache
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
def expire_name name_version, cache
|
107
|
-
return unless name_version.present?
|
108
|
-
key_version = name_version.to_name.key
|
109
|
-
return unless key_version.present?
|
110
|
-
cache.delete key_version
|
111
|
-
end
|
112
|
-
|
113
|
-
def expire_id cache
|
114
|
-
return unless id.present?
|
115
|
-
cache.delete "~#{id}"
|
116
|
-
end
|
117
|
-
end;end;end;end;
|
118
|
-
# ~~ generated from /Users/ethan/dev/decko/gem/card/mod/core/set/all/cache.rb ~~
|
@@ -1,181 +0,0 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; class All
|
3
|
-
# Set: All cards (EventConditions)
|
4
|
-
#
|
5
|
-
module EventConditions;
|
6
|
-
extend Card::Set
|
7
|
-
def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/core/set/all/event_conditions.rb"; end
|
8
|
-
Card.action_specific_attributes +=
|
9
|
-
%i[skip_hash full_skip_hash trigger_hash full_trigger_hash]
|
10
|
-
|
11
|
-
def event_applies? event
|
12
|
-
return unless set_condition_applies? event.set_module, event.opts[:changing]
|
13
|
-
|
14
|
-
Card::Set::Event::CONDITIONS.all? do |key|
|
15
|
-
send "#{key}_condition_applies?", event, event.opts[key]
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
# force skipping this event for all cards in act
|
20
|
-
def skip_event! *events
|
21
|
-
@full_skip_hash = nil
|
22
|
-
events.each do |event|
|
23
|
-
act_skip_hash[event.to_s] = :force
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
# force skipping this event for this card only
|
28
|
-
def skip_event_in_action! *events
|
29
|
-
events.each do |event|
|
30
|
-
full_skip_hash[event.to_s] = :force
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
# force triggering this event (when it comes up) for all cards in act
|
35
|
-
def trigger_event! *events
|
36
|
-
@full_trigger_hash = nil
|
37
|
-
events.each do |event|
|
38
|
-
act_trigger_hash[event.to_s] = :force
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
# force triggering this event (when it comes up) for this card only
|
43
|
-
def trigger_event_in_action! *events
|
44
|
-
events.each do |event|
|
45
|
-
full_trigger_hash[event.to_s] = :force
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
# hash form of raw skip setting, eg { "my_event" => true }
|
50
|
-
def skip_hash
|
51
|
-
@skip_hash ||= hash_with_value skip, true
|
52
|
-
end
|
53
|
-
|
54
|
-
def trigger_hash
|
55
|
-
@trigger_hash ||= hash_with_value trigger, true
|
56
|
-
end
|
57
|
-
|
58
|
-
private
|
59
|
-
|
60
|
-
def set_condition_applies? set_module, old_sets
|
61
|
-
return true if set_module == Card
|
62
|
-
|
63
|
-
set_condition_card(old_sets).singleton_class.include? set_module
|
64
|
-
end
|
65
|
-
|
66
|
-
def on_condition_applies? _event, actions
|
67
|
-
actions = Array(actions).compact
|
68
|
-
actions.empty? ? true : actions.include?(action)
|
69
|
-
end
|
70
|
-
|
71
|
-
# if changing name/type, the old card has no-longer-applicable set modules, so we create
|
72
|
-
# a new card to determine whether events apply.
|
73
|
-
# (note: cached condition card would ideally be cleared after all
|
74
|
-
# conditions are reviewed)
|
75
|
-
# @param old_sets [True/False] whether to use the old_sets
|
76
|
-
def set_condition_card old_sets
|
77
|
-
return self if old_sets || no_current_action?
|
78
|
-
@set_condition_card ||=
|
79
|
-
updating_sets? ? set_condition_card_with_new_set_modules : self
|
80
|
-
end
|
81
|
-
|
82
|
-
# existing card is being changed in a way that alters its sets
|
83
|
-
def updating_sets?
|
84
|
-
action == :update && real? && (type_id_is_changing? || name_is_changing?)
|
85
|
-
end
|
86
|
-
|
87
|
-
# prevents locking in set_condition_card
|
88
|
-
def no_current_action?
|
89
|
-
return false if @current_action
|
90
|
-
|
91
|
-
@set_condition_card = nil
|
92
|
-
true
|
93
|
-
end
|
94
|
-
|
95
|
-
def set_condition_card_with_new_set_modules
|
96
|
-
cc = Card.find id
|
97
|
-
cc.name = name
|
98
|
-
cc.type_id = type_id
|
99
|
-
cc.include_set_modules
|
100
|
-
end
|
101
|
-
|
102
|
-
def changed_condition_applies? _event, db_columns
|
103
|
-
return true unless action == :update
|
104
|
-
db_columns = Array(db_columns).compact
|
105
|
-
return true if db_columns.empty?
|
106
|
-
db_columns.any? { |col| single_changed_condition_applies? col }
|
107
|
-
end
|
108
|
-
alias_method :changing_condition_applies?, :changed_condition_applies?
|
109
|
-
|
110
|
-
def when_condition_applies? _event, block
|
111
|
-
case block
|
112
|
-
when Proc then block.call(self)
|
113
|
-
when Symbol then send block
|
114
|
-
else true
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
|
-
# "applies always means event can run
|
119
|
-
# so if skip_condition_applies?, we do NOT skip
|
120
|
-
def skip_condition_applies? event, allowed
|
121
|
-
return true unless (val = full_skip_hash[event.name.to_s])
|
122
|
-
|
123
|
-
allowed ? val.blank? : (val != :force)
|
124
|
-
end
|
125
|
-
|
126
|
-
def trigger_condition_applies? event, required
|
127
|
-
return true unless required
|
128
|
-
|
129
|
-
full_trigger_hash[event.name.to_s].present?
|
130
|
-
end
|
131
|
-
|
132
|
-
def single_changed_condition_applies? db_column
|
133
|
-
return true unless db_column
|
134
|
-
send "#{db_column}_is_changing?"
|
135
|
-
end
|
136
|
-
|
137
|
-
def wrong_stage opts
|
138
|
-
return false if director.stage_ok? opts
|
139
|
-
if !stage
|
140
|
-
"phase method #{method} called outside of event phases"
|
141
|
-
else
|
142
|
-
"#{opts.inspect} method #{method} called in stage #{stage}"
|
143
|
-
end
|
144
|
-
end
|
145
|
-
|
146
|
-
def wrong_action actn
|
147
|
-
return false if on_condition_applies?(nil, actn)
|
148
|
-
"on: #{actn} method #{method} called on #{action}"
|
149
|
-
end
|
150
|
-
|
151
|
-
def full_skip_hash
|
152
|
-
@full_skip_hash ||= act_skip_hash.merge skip_in_action_hash
|
153
|
-
end
|
154
|
-
|
155
|
-
def act_skip_hash
|
156
|
-
(act_card || self).skip_hash
|
157
|
-
end
|
158
|
-
|
159
|
-
def skip_in_action_hash
|
160
|
-
hash_with_value skip_in_action, true
|
161
|
-
end
|
162
|
-
|
163
|
-
def full_trigger_hash
|
164
|
-
@full_trigger_hash ||= act_trigger_hash.merge trigger_in_action_hash
|
165
|
-
end
|
166
|
-
|
167
|
-
def trigger_in_action_hash
|
168
|
-
hash_with_value trigger_in_action, true
|
169
|
-
end
|
170
|
-
|
171
|
-
def act_trigger_hash
|
172
|
-
(act_card || self).trigger_hash
|
173
|
-
end
|
174
|
-
|
175
|
-
def hash_with_value array, value
|
176
|
-
Array.wrap(array).each_with_object({}) do |event, hash|
|
177
|
-
hash[event.to_s] = value
|
178
|
-
end
|
179
|
-
end
|
180
|
-
end;end;end;end;
|
181
|
-
# ~~ generated from /Users/ethan/dev/decko/gem/card/mod/core/set/all/event_conditions.rb ~~
|
@@ -1,131 +0,0 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; class All
|
3
|
-
# Set: All cards (Fetch)
|
4
|
-
#
|
5
|
-
# = Card#fetch
|
6
|
-
#
|
7
|
-
module Fetch;
|
8
|
-
extend Card::Set
|
9
|
-
def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/core/set/all/fetch.rb"; end
|
10
|
-
# A multipurpose retrieval operator that integrates caching, database lookups,
|
11
|
-
# and "virtual" card construction
|
12
|
-
module ClassMethods
|
13
|
-
# Look for cards in
|
14
|
-
# * cache
|
15
|
-
# * database
|
16
|
-
# * virtual cards
|
17
|
-
#
|
18
|
-
# @param args [Integer, String, Card::Name, Symbol, Array]
|
19
|
-
# one or more of the three unique identifiers
|
20
|
-
# 1. a numeric id (Integer)
|
21
|
-
# 2. a name/key (String or Card::Name)
|
22
|
-
# 3. a codename (Symbol)
|
23
|
-
# If you pass more then one mark or an array of marks they get joined with a '+'.
|
24
|
-
# The final argument can be a hash to set the following options
|
25
|
-
# :skip_virtual Real cards only
|
26
|
-
# :skip_modules Don't load Set modules
|
27
|
-
# :look_in_trash Return trashed card objects
|
28
|
-
# :local_only Use only local cache for lookup and storing
|
29
|
-
# new: { opts for Card#new } Return a new card when not found
|
30
|
-
# @return [Card]
|
31
|
-
def fetch *args
|
32
|
-
Card::Fetch.new(*args)&.retrieve_or_new
|
33
|
-
rescue ActiveModel::RangeError => _e
|
34
|
-
return Card.new name: "card id out of range: #{f.mark}"
|
35
|
-
end
|
36
|
-
|
37
|
-
# fetch only real (no virtual) cards
|
38
|
-
#
|
39
|
-
# @param mark - see #fetch
|
40
|
-
# @return [Card]
|
41
|
-
def [] *mark
|
42
|
-
fetch(*mark, skip_virtual: true)
|
43
|
-
end
|
44
|
-
|
45
|
-
# fetch real cards without set modules loaded. Should only be used for simple attributes
|
46
|
-
# @example
|
47
|
-
# quick_fetch "A", :self, :structure
|
48
|
-
#
|
49
|
-
# @param mark - see #fetch
|
50
|
-
# @return [Card]
|
51
|
-
def quick_fetch *mark
|
52
|
-
fetch(*mark, skip_virtual: true, skip_modules: true)
|
53
|
-
end
|
54
|
-
|
55
|
-
# @return [Card]
|
56
|
-
def fetch_from_cast cast
|
57
|
-
fetch_args = cast[:id] ? [cast[:id].to_i] : [cast[:name], { new: cast }]
|
58
|
-
fetch *fetch_args
|
59
|
-
end
|
60
|
-
|
61
|
-
#----------------------------------------------------------------------
|
62
|
-
# ATTRIBUTE FETCHING
|
63
|
-
# The following methods optimize fetching of specific attributes
|
64
|
-
|
65
|
-
def id cardish
|
66
|
-
case cardish
|
67
|
-
when Integer then cardish
|
68
|
-
when Card then cardish.id
|
69
|
-
when Symbol then Card::Codename.id cardish
|
70
|
-
else fetch_id cardish
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
# @param mark_parts - see #fetch
|
75
|
-
# @return [Integer]
|
76
|
-
def fetch_id *mark_parts
|
77
|
-
mark = Card::Fetch.new(*mark_parts)&.mark
|
78
|
-
mark.is_a?(Integer) ? mark : quick_fetch(mark.to_s)&.id
|
79
|
-
end
|
80
|
-
|
81
|
-
# @param mark - see #fetch
|
82
|
-
# @return [Card::Name]
|
83
|
-
def fetch_name *mark
|
84
|
-
if (card = quick_fetch(*mark))
|
85
|
-
card.name
|
86
|
-
elsif block_given?
|
87
|
-
yield.to_name
|
88
|
-
end
|
89
|
-
rescue ActiveModel::RangeError => _e
|
90
|
-
block_given? ? yield.to_name : nil
|
91
|
-
rescue Card::Error::CodenameNotFound => e
|
92
|
-
block_given? ? yield.to_name : raise(e)
|
93
|
-
end
|
94
|
-
|
95
|
-
# @param mark - see #fetch
|
96
|
-
# @return [Integer]
|
97
|
-
def fetch_type_id mark
|
98
|
-
quick_fetch(mark)&.type_id
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
#----------------------------------------------------------------------
|
103
|
-
# INSTANCE METHODS
|
104
|
-
# fetching from the context of a card
|
105
|
-
|
106
|
-
def fetch traits, opts={}
|
107
|
-
opts[:new][:supercard] = self if opts[:new]
|
108
|
-
Array.wrap(traits).inject(self) do |card, trait|
|
109
|
-
Card.fetch card.name.trait(trait), opts
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
def newish opts
|
114
|
-
reset_patterns
|
115
|
-
Card.with_normalized_new_args opts do |norm_opts|
|
116
|
-
handle_type norm_opts do
|
117
|
-
assign_attributes norm_opts
|
118
|
-
self.name = name # trigger superize_name
|
119
|
-
end
|
120
|
-
end
|
121
|
-
end
|
122
|
-
|
123
|
-
def refresh force=false
|
124
|
-
return self unless force || frozen? || readonly?
|
125
|
-
return unless id
|
126
|
-
fresh_card = self.class.find id
|
127
|
-
fresh_card.include_set_modules
|
128
|
-
fresh_card
|
129
|
-
end
|
130
|
-
end;end;end;end;
|
131
|
-
# ~~ generated from /Users/ethan/dev/decko/gem/card/mod/core/set/all/fetch.rb ~~
|