card 1.18.6 → 1.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +3 -0
- data/README_Developers.rdoc +9 -9
- data/VERSION +1 -1
- data/card.gemspec +28 -31
- data/config/i18n-tasks.yml +126 -0
- data/config/initializers/01_core_extensions/hash.rb +4 -4
- data/config/initializers/01_core_extensions/module.rb +9 -0
- data/config/initializers/01_core_extensions/object.rb +5 -1
- data/config/initializers/02_extensions/kaminari.rb +1 -1
- data/config/initializers/inflections.rb +4 -4
- data/config/initializers/internationalization.rb +44 -0
- data/config/initializers/mime_types.rb +2 -2
- data/config/initializers/recaptcha.rb +10 -5
- data/config/initializers/uuid_state_file.rb +2 -2
- data/config/locales/de.yml +552 -0
- data/config/locales/en.yml +70 -0
- data/config/simplecov_helper.rb +70 -0
- data/db/migrate/20110511221913_require_earlier_migrations.rb +2 -2
- data/db/migrate/20120105203350_require_1_8_migrations.rb +1 -1
- data/db/migrate/20121111025347_require_1_10_migrations.rb +1 -1
- data/db/migrate/20121118115000_update_link_type.rb +7 -7
- data/db/migrate/20140822073704_create_new_revision_tables.rb +5 -5
- data/db/migrate/20141001105348_move_revisions_to_actions.rb +8 -8
- data/db/migrate/20141121172918_rename_card_migration_table.rb +2 -2
- data/db/migrate/20141216053032_better_index_names.rb +13 -13
- data/db/migrate/20160122153608_new_indeces.rb +5 -5
- data/db/migrate_core_cards/20120611203506_rails_inflection_updates.rb +5 -5
- data/db/migrate_core_cards/20130411191151_renaming_for_menu.rb +11 -11
- data/db/migrate_core_cards/20130411211600_delete_old_related_tab_cards.rb +7 -7
- data/db/migrate_core_cards/20130419215612_import_help_text.rb +4 -4
- data/db/migrate_core_cards/20130823192433_add_style_cards.rb +15 -15
- data/db/migrate_core_cards/20130910183318_move_styles_to_content.rb +3 -3
- data/db/migrate_core_cards/20130920214038_jsonize_tinymce.rb +2 -2
- data/db/migrate_core_cards/20130920291703_update_stylesheets.rb +4 -4
- data/db/migrate_core_cards/20130927191728_account_events.rb +6 -6
- data/db/migrate_core_cards/20131016172445_common_css_patch.rb +3 -3
- data/db/migrate_core_cards/20140110193325_reset_account_request_type.rb +1 -1
- data/db/migrate_core_cards/20140307231621_user_data_to_cards.rb +13 -13
- data/db/migrate_core_cards/20140317035504_account_requests_to_signups.rb +5 -5
- data/db/migrate_core_cards/20140512155840_add_script_cards.rb +13 -13
- data/db/migrate_core_cards/20140629222005_add_email_cards.rb +22 -22
- data/db/migrate_core_cards/20140725180118_config_card_updates.rb +3 -3
- data/db/migrate_core_cards/20141111083921_delete_machine_output.rb +2 -2
- data/db/migrate_core_cards/20141115034214_config_descriptions_etc.rb +4 -4
- data/db/migrate_core_cards/20141119001955_make_symlinks_relative.rb +2 -2
- data/db/migrate_core_cards/20141120120605_fix_notification_html_message.rb +3 -3
- data/db/migrate_core_cards/20141204061304_watchers_to_following.rb +3 -3
- data/db/migrate_core_cards/20141208132416_partial_reference_type.rb +1 -1
- data/db/migrate_core_cards/20141216155251_add_more_following_cards.rb +14 -14
- data/db/migrate_core_cards/20141230204340_uri_codename.rb +2 -2
- data/db/migrate_core_cards/20150202143810_import_bootstrap_layout.rb +21 -21
- data/db/migrate_core_cards/20150220134731_following_to_follow_rule.rb +4 -4
- data/db/migrate_core_cards/20150317162412_bootstrap_themes.rb +9 -9
- data/db/migrate_core_cards/20150326205655_bootswatch_themes.rb +9 -9
- data/db/migrate_core_cards/20150331135745_new_card_menu.rb +1 -1
- data/db/migrate_core_cards/20150429090551_search_card_context.rb +6 -6
- data/db/migrate_core_cards/20150501010515_responsive_sidebar.rb +3 -3
- data/db/migrate_core_cards/20150508212032_menu_compatibility.rb +2 -2
- data/db/migrate_core_cards/20150510031118_fix_skin_images.rb +2 -2
- data/db/migrate_core_cards/20150528084659_add_session_cardtype.rb +9 -6
- data/db/migrate_core_cards/20150601133433_add_recent_setting_session_card.rb +7 -7
- data/db/migrate_core_cards/20150605115802_add_performance_log_card.rb +2 -2
- data/db/migrate_core_cards/20150610171702_add_debugger_session_card.rb +5 -5
- data/db/migrate_core_cards/20150610180019_add_recaptcha_key_and_admin_info_cards.rb +10 -10
- data/db/migrate_core_cards/20150627205133_fix_script_bootstrap_card_type.rb +1 -1
- data/db/migrate_core_cards/20150702130543_remove_edit_toolbar_pinned.rb +1 -1
- data/db/migrate_core_cards/20150708224756_add_list_cards.rb +11 -11
- data/db/migrate_core_cards/20150724123438_update_file_and_image_cards.rb +78 -49
- data/db/migrate_core_cards/20150807205221_create_references_for_search_cards.rb +1 -1
- data/db/migrate_core_cards/20150824135418_update_file_history.rb +3 -3
- data/db/migrate_core_cards/20150903130006_attachment_upload_cards.rb +6 -6
- data/db/migrate_core_cards/20150910085603_remove_performance_log_card.rb +1 -1
- data/db/migrate_core_cards/20151120180631_add_token_expiration.rb +1 -1
- data/db/migrate_core_cards/20160801143221_change_bootstrap_card_type_to_scss.rb +9 -0
- data/db/migrate_core_cards/20160801175002_add_machine_cache_card.rb +7 -0
- data/db/migrate_core_cards/20160804112510_reorganize_scripts.rb +26 -0
- data/db/migrate_core_cards/20160811115836_rename_stats_to_admin.rb +8 -0
- data/db/migrate_core_cards/data/skin_images.json +16 -16
- data/db/schema.rb +15 -9
- data/db/seed/new/card_actions.yml +802 -650
- data/db/seed/new/card_acts.yml +208 -184
- data/db/seed/new/card_changes.yml +5195 -4709
- data/db/seed/new/card_references.yml +628 -677
- data/db/seed/new/cards.yml +3964 -3615
- data/db/seed/test/fixtures/card_actions.yml +1884 -1732
- data/db/seed/test/fixtures/card_acts.yml +466 -544
- data/db/seed/test/fixtures/card_changes.yml +8435 -7998
- data/db/seed/test/fixtures/card_references.yml +1057 -1092
- data/db/seed/test/fixtures/cards.yml +6007 -5656
- data/db/seed/test/seed.rb +99 -103
- data/db/version_core_cards.txt +1 -1
- data/lib/active_record/connection_adapters_ext.rb +52 -0
- data/lib/active_support/callbacks_ext.rb +9 -0
- data/lib/card.rb +25 -25
- data/lib/card/auth.rb +20 -215
- data/lib/card/auth/current.rb +130 -0
- data/lib/card/auth/permissions.rb +60 -0
- data/lib/card/auth/proxy.rb +58 -0
- data/lib/card/auth/setup.rb +38 -0
- data/lib/card/cache.rb +108 -68
- data/lib/card/cache/persistent.rb +118 -78
- data/lib/card/cache/prepopulate.rb +26 -0
- data/lib/card/cache/temporary.rb +54 -35
- data/lib/card/cache/view_cache.rb +103 -0
- data/lib/card/codename.rb +50 -31
- data/lib/card/content.rb +65 -153
- data/lib/card/content/chunk.rb +28 -10
- data/lib/card/content/clean.rb +84 -0
- data/lib/card/content/diff.rb +71 -0
- data/lib/card/content/diff/lcs.rb +94 -0
- data/lib/card/content/diff/processor.rb +161 -0
- data/lib/card/content/diff/result.rb +145 -0
- data/lib/card/content/parser.rb +78 -50
- data/lib/card/content/truncate.rb +62 -0
- data/lib/card/director_register.rb +29 -6
- data/lib/card/env.rb +49 -66
- data/lib/card/env/location.rb +44 -0
- data/lib/card/env/location_history.rb +52 -0
- data/lib/card/env/success.rb +144 -0
- data/lib/card/error.rb +95 -0
- data/lib/card/format.rb +54 -152
- data/lib/card/format/content.rb +57 -0
- data/lib/card/format/error.rb +27 -0
- data/lib/card/format/names.rb +47 -0
- data/lib/card/format/nest.rb +47 -141
- data/lib/card/format/nest/fetch.rb +52 -0
- data/lib/card/format/nest/main.rb +36 -0
- data/lib/card/format/nest/subformat.rb +32 -0
- data/lib/card/format/nest/view.rb +74 -0
- data/lib/card/format/registration.rb +69 -0
- data/lib/card/format/render.rb +43 -68
- data/lib/card/mailer.rb +2 -2
- data/lib/card/migration.rb +8 -8
- data/lib/card/migration/core.rb +10 -0
- data/lib/card/migration/import.rb +105 -0
- data/lib/card/migration/import/import_data.rb +135 -0
- data/lib/card/mod/dirs.rb +72 -0
- data/lib/card/mod/loader.rb +176 -0
- data/lib/card/model/save_helper.rb +61 -0
- data/lib/card/name.rb +13 -10
- data/lib/card/name/view_name.rb +48 -0
- data/lib/card/query.rb +30 -26
- data/lib/card/query/attributes.rb +4 -4
- data/lib/card/query/conjunctions.rb +1 -1
- data/lib/card/query/interpretation.rb +4 -3
- data/lib/card/query/join.rb +6 -6
- data/lib/card/query/reference.rb +7 -7
- data/lib/card/query/relational_attributes.rb +9 -9
- data/lib/card/query/sorting.rb +13 -13
- data/lib/card/query/sql_statement.rb +17 -17
- data/lib/card/query/value.rb +7 -7
- data/lib/card/reference.rb +7 -7
- data/lib/card/set.rb +5 -2
- data/lib/card/set/advanced_api.rb +44 -0
- data/lib/card/set/basket.rb +52 -0
- data/lib/card/set/event.rb +73 -42
- data/lib/card/set/format.rb +4 -17
- data/lib/card/set/helpers.rb +4 -78
- data/lib/card/set/inheritance.rb +57 -0
- data/lib/card/set/loader.rb +26 -26
- data/lib/card/set_pattern.rb +162 -149
- data/lib/card/stage.rb +23 -14
- data/lib/card/stage_director.rb +81 -32
- data/lib/card/subcards.rb +78 -70
- data/lib/card/subdirector_array.rb +3 -4
- data/lib/card/tasks/card.rake +57 -0
- data/lib/card/version.rb +1 -1
- data/lib/cardio.rb +34 -77
- data/lib/cardio/schema.rb +41 -0
- data/lib/generators/card.rb +4 -4
- data/lib/generators/card/format/USAGE +3 -3
- data/lib/generators/card/format/format_generator.rb +10 -10
- data/lib/generators/card/migration/migration_generator.rb +7 -7
- data/lib/generators/card/set/USAGE +6 -6
- data/lib/generators/card/set/set_generator.rb +10 -10
- data/mod/Modfile +18 -0
- data/mod/account/set/all/account.rb +65 -0
- data/mod/account/set/right/account.rb +189 -0
- data/mod/account/set/right/email.rb +54 -0
- data/mod/account/set/right/password.rb +47 -0
- data/mod/account/set/right/salt.rb +5 -0
- data/mod/account/set/right/status.rb +9 -0
- data/mod/account/set/right/token.rb +50 -0
- data/mod/account/set/self/account_links.rb +65 -0
- data/mod/account/set/self/signin.rb +158 -0
- data/mod/account/set/type/signup.rb +168 -0
- data/mod/account/set/type/user.rb +81 -0
- data/mod/account/spec/set/all/account_spec.rb +138 -0
- data/mod/account/spec/set/right/account_spec.rb +187 -0
- data/mod/account/spec/set/right/email_spec.rb +53 -0
- data/mod/account/spec/set/right/password_spec.rb +41 -0
- data/mod/account/spec/set/right/salt_spec.rb +6 -0
- data/mod/{05_standard → account}/spec/set/right/status_spec.rb +0 -0
- data/mod/account/spec/set/right/token_spec.rb +23 -0
- data/mod/account/spec/set/self/account_links_spec.rb +10 -0
- data/mod/account/spec/set/self/signin_spec.rb +69 -0
- data/mod/account/spec/set/type/signup_spec.rb +242 -0
- data/mod/{05_standard → account}/spec/set/type/user_spec.rb +0 -0
- data/mod/ace_editor/db/migrate_cards/20160804112538_add_ace_cards.rb +30 -0
- data/mod/{03_machines → ace_editor}/lib/javascript/script_ace.js +0 -0
- data/mod/ace_editor/lib/javascript/script_ace_config.js.coffee +71 -0
- data/mod/ace_editor/set/abstract/ace_editor.rb +11 -0
- data/mod/ace_editor/set/self/script_ace.rb +3 -0
- data/mod/ace_editor/set/self/script_ace_config.rb +5 -0
- data/mod/admin/set/self/admin.rb +106 -0
- data/mod/admin/set/self/admin_info.rb +103 -0
- data/mod/admin/set/self/version.rb +8 -0
- data/mod/admin/spec/set/self/admin_spec.rb +50 -0
- data/mod/admin/spec/set/self/version_spec.rb +7 -0
- data/mod/basic_formats/format/css_format.rb +8 -0
- data/mod/basic_formats/format/csv_format.rb +8 -0
- data/mod/basic_formats/format/file_format.rb +7 -0
- data/mod/basic_formats/format/js_format.rb +8 -0
- data/mod/basic_formats/format/json_format.rb +8 -0
- data/mod/basic_formats/format/rss_format.rb +12 -0
- data/mod/basic_formats/format/xml_format.rb +8 -0
- data/mod/basic_formats/set/all/all_css.rb +38 -0
- data/mod/basic_formats/set/all/all_csv.rb +49 -0
- data/mod/{02_basic_types → basic_formats}/set/all/all_js.rb +0 -0
- data/mod/basic_formats/set/all/base.rb +148 -0
- data/mod/basic_formats/set/all/file.rb +9 -0
- data/mod/basic_formats/set/all/json.rb +69 -0
- data/mod/basic_formats/set/all/rss.rb +70 -0
- data/mod/{02_basic_types → basic_formats}/set/all/text.rb +0 -0
- data/mod/basic_formats/set/self/01_head/javascript.rb +73 -0
- data/mod/basic_formats/set/self/head.rb +94 -0
- data/mod/basic_types/set/type/html.rb +19 -0
- data/mod/basic_types/set/type/plain_text.rb +12 -0
- data/mod/basic_types/spec/set/all/all_css_spec.rb +10 -0
- data/mod/basic_types/spec/set/all/all_csv_spec.rb +11 -0
- data/mod/basic_types/spec/set/all/base_spec.rb +89 -0
- data/mod/{02_basic_types → basic_types}/spec/set/all/file_spec.rb +0 -0
- data/mod/basic_types/spec/set/all/json_spec.rb +34 -0
- data/mod/basic_types/spec/set/all/rss_spec.rb +22 -0
- data/mod/{02_basic_types → basic_types}/spec/set/all/text_spec.rb +0 -0
- data/mod/basic_types/spec/set/type/plain_text_spec.rb +12 -0
- data/mod/basic_types/spec/set/type/pointer_spec.rb +217 -0
- data/mod/{06_bootstrap → bootstrap}/file/cerulean_skin_image/image-icon.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/cerulean_skin_image/image-large.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/cerulean_skin_image/image-medium.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/cerulean_skin_image/image-original.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/cerulean_skin_image/image-small.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/cosmo_skin_image/image-icon.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/cosmo_skin_image/image-large.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/cosmo_skin_image/image-medium.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/cosmo_skin_image/image-original.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/cosmo_skin_image/image-small.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/cyborg_skin_image/image-icon.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/cyborg_skin_image/image-large.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/cyborg_skin_image/image-medium.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/cyborg_skin_image/image-original.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/cyborg_skin_image/image-small.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/darkly_skin_image/image-icon.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/darkly_skin_image/image-large.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/darkly_skin_image/image-medium.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/darkly_skin_image/image-original.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/darkly_skin_image/image-small.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/flatly_skin_image/image-icon.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/flatly_skin_image/image-large.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/flatly_skin_image/image-medium.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/flatly_skin_image/image-original.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/flatly_skin_image/image-small.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/journal_skin_image/image-icon.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/journal_skin_image/image-large.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/journal_skin_image/image-medium.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/journal_skin_image/image-original.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/journal_skin_image/image-small.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/lumen_skin_image/image-icon.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/lumen_skin_image/image-large.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/lumen_skin_image/image-medium.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/lumen_skin_image/image-original.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/lumen_skin_image/image-small.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/paper_skin_image/image-icon.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/paper_skin_image/image-large.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/paper_skin_image/image-medium.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/paper_skin_image/image-original.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/paper_skin_image/image-small.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/readable_skin_image/image-icon.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/readable_skin_image/image-large.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/readable_skin_image/image-medium.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/readable_skin_image/image-original.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/readable_skin_image/image-small.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/sandstone_skin_image/image-icon.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/sandstone_skin_image/image-large.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/sandstone_skin_image/image-medium.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/sandstone_skin_image/image-original.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/sandstone_skin_image/image-small.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/simplex_skin_image/image-icon.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/simplex_skin_image/image-large.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/simplex_skin_image/image-medium.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/simplex_skin_image/image-original.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/simplex_skin_image/image-small.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/slate_skin_image/image-icon.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/slate_skin_image/image-large.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/slate_skin_image/image-medium.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/slate_skin_image/image-original.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/slate_skin_image/image-small.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/spacelab_skin_image/image-icon.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/spacelab_skin_image/image-large.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/spacelab_skin_image/image-medium.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/spacelab_skin_image/image-original.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/spacelab_skin_image/image-small.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/superhero_skin_image/image-icon.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/superhero_skin_image/image-large.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/superhero_skin_image/image-medium.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/superhero_skin_image/image-original.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/superhero_skin_image/image-small.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/united_skin_image/image-icon.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/united_skin_image/image-large.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/united_skin_image/image-medium.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/united_skin_image/image-original.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/united_skin_image/image-small.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/yeti_skin_image/image-icon.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/yeti_skin_image/image-large.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/yeti_skin_image/image-medium.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/yeti_skin_image/image-original.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/file/yeti_skin_image/image-small.png +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/javascript/bootstrap.js +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/javascript/bootstrap.min.js +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/javascript/bootstrap_modal_wagn.js +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/javascript/smartmenu.js +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_alerts.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_badges.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_breadcrumbs.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_button-groups.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_buttons.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_carousel.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_close.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_code.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_component-animations.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_dropdowns.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_forms.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_glyphicons.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_grid.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_input-groups.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_jumbotron.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_labels.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_list-group.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_media.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_mixins.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_modals.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_navbar.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_navs.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_normalize.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_pager.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_pagination.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_panels.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_popovers.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_print.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_progress-bars.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_responsive-embed.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_responsive-utilities.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_scaffolding.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_tables.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_theme.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_thumbnails.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_tooltip.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_type.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_utilities.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_variables.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/_wells.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_alerts.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_background-variant.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_border-radius.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_buttons.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_center-block.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_clearfix.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_forms.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_gradients.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_grid-framework.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_grid.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_hide-text.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_image.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_labels.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_list-group.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_nav-divider.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_opacity.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_pagination.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_panels.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_progress-bar.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_reset-filter.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_resize.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_responsive-visibility.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_size.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_tab-focus.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_table-row.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_text-emphasis.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_text-overflow.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/bootstrap_cards.scss +0 -0
- data/mod/{06_bootstrap → bootstrap}/lib/stylesheets/smartmenu.css +0 -0
- data/mod/bootstrap/set/all/bootstrap/form.rb +35 -0
- data/mod/bootstrap/set/all/bootstrap/helper.rb +229 -0
- data/mod/bootstrap/set/all/bootstrap/table.rb +61 -0
- data/mod/bootstrap/set/all/bootstrap/tabs.rb +81 -0
- data/mod/bootstrap/set/all/bootstrap/wrapper.rb +11 -0
- data/mod/bootstrap/set/all/rich_bootstrap.rb +6 -0
- data/mod/{06_bootstrap → bootstrap}/set/self/bootstrap_cards.rb +0 -0
- data/mod/bootstrap/set/self/bootstrap_js.rb +5 -0
- data/mod/bootstrap/set/self/bootswatch_shared.rb +40 -0
- data/mod/bootstrap/set/self/script_mods.rb +1 -0
- data/mod/bootstrap/set/self/smartmenu_css.rb +5 -0
- data/mod/bootstrap/set/self/smartmenu_js.rb +5 -0
- data/mod/bootstrap/spec/set/all/bootstrap/form_spec.rb +15 -0
- data/mod/carrierwave/lib/carrier_wave/cardmount.rb +113 -0
- data/mod/carrierwave/lib/carrier_wave/file_card_uploader.rb +152 -0
- data/mod/carrierwave/lib/carrier_wave/image_card_uploader.rb +54 -0
- data/mod/carrierwave/set/abstract/attachment.rb +275 -0
- data/mod/carrierwave/set/type/file.rb +148 -0
- data/mod/carrierwave/set/type/image.rb +89 -0
- data/mod/core/chunk/include.rb +129 -0
- data/mod/core/chunk/link.rb +96 -0
- data/mod/core/chunk/literal.rb +27 -0
- data/mod/core/chunk/query_reference.rb +83 -0
- data/mod/{01_core → core}/chunk/reference.rb +0 -0
- data/mod/core/chunk/uri.rb +144 -0
- data/mod/core/format/data_format.rb +6 -0
- data/mod/core/format/html_format.rb +78 -0
- data/mod/core/format/text_format.rb +11 -0
- data/mod/{01_core → core}/layout/blank.html +0 -0
- data/mod/{01_core → core}/layout/default.html +0 -0
- data/mod/{01_core → core}/layout/modal.html +0 -0
- data/mod/{01_core → core}/layout/noside.html +0 -0
- data/mod/{01_core → core}/layout/pre.html +0 -0
- data/mod/{01_core → core}/layout/simple.html +0 -0
- data/mod/core/set/abstract/code_file.rb +72 -0
- data/mod/core/set/all/actify.rb +94 -0
- data/mod/{01_core → core}/set/all/active_card.rb +0 -0
- data/mod/core/set/all/collection.rb +306 -0
- data/mod/core/set/all/content.rb +62 -0
- data/mod/core/set/all/erb.rb +11 -0
- data/mod/core/set/all/event.rb +55 -0
- data/mod/core/set/all/export.rb +42 -0
- data/mod/core/set/all/fetch.rb +328 -0
- data/mod/{01_core → core}/set/all/haml.rb +0 -0
- data/mod/core/set/all/initialize.rb +35 -0
- data/mod/{01_core → core}/set/all/location_history.rb +0 -0
- data/mod/core/set/all/name.rb +275 -0
- data/mod/core/set/all/name_validations.rb +58 -0
- data/mod/core/set/all/pattern.rb +60 -0
- data/mod/core/set/all/permissions.rb +302 -0
- data/mod/core/set/all/phases.rb +16 -0
- data/mod/core/set/all/references.rb +180 -0
- data/mod/core/set/all/rules.rb +304 -0
- data/mod/core/set/all/stages.rb +24 -0
- data/mod/core/set/all/states.rb +24 -0
- data/mod/core/set/all/subcards.rb +78 -0
- data/mod/core/set/all/templating.rb +71 -0
- data/mod/core/set/all/tracked_attributes.rb +147 -0
- data/mod/core/set/all/trash.rb +56 -0
- data/mod/core/set/all/type.rb +53 -0
- data/mod/core/set/all/utils.rb +129 -0
- data/mod/core/set/all/view_cache.rb +9 -0
- data/mod/core/set_pattern/01_all.rb +11 -0
- data/mod/core/set_pattern/02_all_plus.rb +13 -0
- data/mod/{01_core → core}/set_pattern/03_type.rb +0 -0
- data/mod/core/set_pattern/04_star.rb +15 -0
- data/mod/core/set_pattern/05_rstar.rb +17 -0
- data/mod/{01_core → core}/set_pattern/06_right.rb +0 -0
- data/mod/core/set_pattern/07_type_plus_right.rb +26 -0
- data/mod/{01_core → core}/set_pattern/08_self.rb +0 -0
- data/mod/core/spec/chunk/literal_spec.rb +13 -0
- data/mod/core/spec/chunk/uri_spec.rb +297 -0
- data/mod/core/spec/format/data_format_spec.rb +5 -0
- data/mod/core/spec/format/html_format_spec.rb +153 -0
- data/mod/core/spec/format/text_format_spec.rb +5 -0
- data/mod/core/spec/set/all/actify_spec.rb +139 -0
- data/mod/{01_core → core}/spec/set/all/active_card_spec.rb +0 -0
- data/mod/{01_core → core}/spec/set/all/attribute_tracking_spec.rb +0 -0
- data/mod/core/spec/set/all/collection_spec.rb +162 -0
- data/mod/core/spec/set/all/content_spec.rb +15 -0
- data/mod/core/spec/set/all/export_spec.rb +135 -0
- data/mod/core/spec/set/all/fetch_spec.rb +285 -0
- data/mod/core/spec/set/all/initialize_spec.rb +88 -0
- data/mod/core/spec/set/all/name_spec.rb +60 -0
- data/mod/core/spec/set/all/pattern_spec.rb +94 -0
- data/mod/core/spec/set/all/permissions_spec.rb +536 -0
- data/mod/{01_core → core}/spec/set/all/phases_spec.rb +0 -0
- data/mod/core/spec/set/all/references_spec.rb +9 -0
- data/mod/core/spec/set/all/rules2_spec.rb +247 -0
- data/mod/core/spec/set/all/rules_spec.rb +137 -0
- data/mod/{01_core → core}/spec/set/all/states_spec.rb +0 -0
- data/mod/core/spec/set/all/templating_spec.rb +119 -0
- data/mod/core/spec/set/all/tracked_attributes_spec.rb +314 -0
- data/mod/core/spec/set/all/trash_spec.rb +81 -0
- data/mod/core/spec/set/all/type_spec.rb +51 -0
- data/mod/{01_core → core}/spec/set/all/utils_spec.rb +0 -0
- data/mod/developer/db/migrate_cards/20160812112513_add_developer_cards.rb +11 -0
- data/mod/developer/set/all/event_viz.rb +52 -0
- data/mod/developer/set/all/view_viz.rb +23 -0
- data/mod/developer/set/right/debug.rb +89 -0
- data/mod/{05_standard → developer}/spec/set/all/event_viz_spec.rb +0 -0
- data/mod/developer/spec/set/right/debug_spec.rb +12 -0
- data/mod/email/format/email_html_format.rb +12 -0
- data/mod/email/format/email_text_format.rb +15 -0
- data/mod/email/lib/card/follow_option.rb +89 -0
- data/mod/email/set/all/email_html.rb +4 -0
- data/mod/email/set/all/email_text.rb +5 -0
- data/mod/email/set/all/follow.rb +246 -0
- data/mod/email/set/all/notify.rb +264 -0
- data/mod/{05_email → email}/set/all/observer.rb +0 -0
- data/mod/email/set/right/bcc.rb +40 -0
- data/mod/{05_email → email}/set/right/cc.rb +0 -0
- data/mod/email/set/right/follow.rb +99 -0
- data/mod/{05_email → email}/set/right/follow_fields.rb +0 -0
- data/mod/email/set/right/followers.rb +34 -0
- data/mod/email/set/right/following.rb +58 -0
- data/mod/{05_email → email}/set/right/from.rb +0 -0
- data/mod/{05_email → email}/set/right/html_message.rb +0 -0
- data/mod/{05_email → email}/set/right/to.rb +0 -0
- data/mod/email/set/self/always.rb +13 -0
- data/mod/email/set/self/created.rb +19 -0
- data/mod/email/set/self/edited.rb +20 -0
- data/mod/{05_email → email}/set/self/follow.rb +0 -0
- data/mod/email/set/self/follow_defaults.rb +68 -0
- data/mod/email/set/self/never.rb +13 -0
- data/mod/email/set/type/email_template.rb +126 -0
- data/mod/email/set/type_plus_right/user/follow.rb +177 -0
- data/mod/email/spec/set/all/follow_spec.rb +134 -0
- data/mod/email/spec/set/all/notify_spec.rb +396 -0
- data/mod/email/spec/set/all/observer_spec.rb +98 -0
- data/mod/email/spec/set/right/followers_spec.rb +121 -0
- data/mod/{05_email → email}/spec/set/right/following_spec.rb +0 -0
- data/mod/email/spec/set/self/follow_defaults_spec.rb +18 -0
- data/mod/history/lib/card/act.rb +116 -0
- data/mod/history/lib/card/action.rb +178 -0
- data/mod/history/lib/card/action/admin.rb +30 -0
- data/mod/history/lib/card/action/differ.rb +53 -0
- data/mod/history/lib/card/change.rb +68 -0
- data/mod/history/set/all/actions.rb +53 -0
- data/mod/history/set/all/content_history.rb +161 -0
- data/mod/history/set/all/history.rb +400 -0
- data/mod/machines/lib/card/machine.rb +261 -0
- data/mod/machines/lib/card/machine_input.rb +80 -0
- data/mod/{03_machines → machines}/lib/javascript/jquery-ui.js +0 -0
- data/mod/{03_machines → machines}/lib/javascript/jquery.autosize.js +0 -0
- data/mod/{03_machines → machines}/lib/javascript/jquery.fileupload.js +0 -0
- data/mod/{03_machines → machines}/lib/javascript/jquery.iframe-transport.js +0 -0
- data/mod/{03_machines → machines}/lib/javascript/jquery.ui.autocomplete.html.js +0 -0
- data/mod/{03_machines → machines}/lib/javascript/jquery_ujs.js +0 -0
- data/mod/{03_machines → machines}/lib/javascript/jquerymobile.js +0 -0
- data/mod/{03_machines → machines}/lib/javascript/script_card_menu.js.coffee +0 -0
- data/mod/{03_machines → machines}/lib/javascript/script_html5shiv_printshiv.js +0 -0
- data/mod/{03_machines → machines}/lib/javascript/script_jquery.js +0 -0
- data/mod/{03_machines → machines}/lib/javascript/theme-textmate.js +0 -0
- data/mod/machines/lib/javascript/wagn.js.coffee +387 -0
- data/mod/machines/lib/javascript/wagn_editor.js.coffee +33 -0
- data/mod/machines/lib/javascript/wagn_layout.js.coffee +61 -0
- data/mod/machines/lib/javascript/wagn_mod.js.coffee +237 -0
- data/mod/machines/lib/javascript/wagn_navbox.js.coffee +72 -0
- data/mod/machines/lib/javascript/wagn_upload.js.coffee +57 -0
- data/mod/{03_machines → machines}/lib/stylesheets/style_bootstrap_compatible.css +0 -0
- data/mod/machines/lib/stylesheets/style_cards.scss +934 -0
- data/mod/{03_machines → machines}/lib/stylesheets/style_jquery_ui_smoothness.css +0 -0
- data/mod/machines/set/abstract/script.rb +42 -0
- data/mod/machines/set/all/reset_machines.rb +12 -0
- data/mod/machines/set/right/machine_cache.rb +11 -0
- data/mod/{03_machines → machines}/set/right/machine_input.rb +0 -0
- data/mod/{03_machines → machines}/set/right/machine_output.rb +0 -0
- data/mod/{03_machines → machines}/set/self/script_card_menu.rb +0 -0
- data/mod/{03_machines → machines}/set/self/script_html5shiv_printshiv.rb +0 -0
- data/mod/{03_machines → machines}/set/self/script_jquery.rb +0 -0
- data/mod/{03_machines → machines}/set/self/script_jquery_helper.rb +0 -0
- data/mod/machines/set/self/script_slot.rb +7 -0
- data/mod/{03_machines → machines}/set/self/style_bootstrap_compatible.rb +0 -0
- data/mod/{03_machines → machines}/set/self/style_cards.rb +0 -0
- data/mod/{03_machines → machines}/set/self/style_jquery_ui_smoothness.rb +0 -0
- data/mod/machines/set/type/coffee_script.rb +40 -0
- data/mod/machines/set/type/css.rb +60 -0
- data/mod/machines/set/type/java_script.rb +29 -0
- data/mod/machines/set/type/scss.rb +14 -0
- data/mod/machines/set/type/skin.rb +6 -0
- data/mod/machines/spec/lib/shared_machine_examples.rb +181 -0
- data/mod/machines/spec/lib/shared_machine_input_examples.rb +69 -0
- data/mod/{03_machines → machines}/spec/set/right/machine_output_spec.rb +0 -0
- data/mod/{03_machines → machines}/spec/set/self/style_jquery_ui_smoothness_spec.rb +0 -0
- data/mod/machines/spec/set/type/coffeescript_spec.rb +41 -0
- data/mod/machines/spec/set/type/css_spec.rb +40 -0
- data/mod/machines/spec/set/type/javascript_spec.rb +44 -0
- data/mod/machines/spec/set/type/scss_spec.rb +62 -0
- data/mod/machines/spec/set/type/skin_spec.rb +84 -0
- data/mod/pointer/db/migrate_cards/20160804112340_add_pointer_cards.rb +9 -0
- data/mod/pointer/lib/javascript/script_pointer_config.js.coffee +41 -0
- data/mod/pointer/set/abstract/01_pointer.rb +186 -0
- data/mod/pointer/set/abstract/01_pointer/edit.rb +217 -0
- data/mod/pointer/set/abstract/code_pointer.rb +9 -0
- data/mod/pointer/set/self/script_editors.rb +1 -0
- data/mod/pointer/set/self/script_mods.rb +1 -0
- data/mod/pointer/set/self/script_pointer_config.rb +3 -0
- data/mod/pointer/set/type/pointer.rb +1 -0
- data/mod/prosemirror_editor/db/migrate_cards/20160804112547_add_prosemirror_cards.rb +27 -0
- data/mod/prosemirror_editor/lib/javascript/script_prosemirror.js +12403 -0
- data/mod/prosemirror_editor/lib/javascript/script_prosemirror_config.js.coffee +31 -0
- data/mod/prosemirror_editor/set/abstract/prosemirror_editor.rb +7 -0
- data/mod/prosemirror_editor/set/self/script_prosemirror.rb +3 -0
- data/mod/prosemirror_editor/set/self/script_prosemirror_config.rb +6 -0
- data/mod/settings/lib/card/setting.rb +82 -0
- data/mod/settings/set/abstract/permission.rb +112 -0
- data/mod/{04_settings → settings}/set/right/add_help.rb +0 -0
- data/mod/settings/set/right/comment.rb +1 -0
- data/mod/settings/set/right/create.rb +1 -0
- data/mod/{04_settings → settings}/set/right/default.rb +0 -0
- data/mod/settings/set/right/delete.rb +1 -0
- data/mod/{04_settings → settings}/set/right/help.rb +0 -0
- data/mod/{04_settings → settings}/set/right/read.rb +0 -0
- data/mod/settings/set/right/script.rb +9 -0
- data/mod/{04_settings → settings}/set/right/structure.rb +0 -0
- data/mod/settings/set/right/style.rb +10 -0
- data/mod/settings/set/right/update.rb +1 -0
- data/mod/settings/set/self/accountable.rb +3 -0
- data/mod/{04_settings → settings}/set/self/add_help.rb +0 -0
- data/mod/{04_settings → settings}/set/self/autoname.rb +0 -0
- data/mod/{04_settings → settings}/set/self/captcha.rb +0 -0
- data/mod/{04_settings → settings}/set/self/create.rb +0 -0
- data/mod/{04_settings → settings}/set/self/default.rb +0 -0
- data/mod/{04_settings → settings}/set/self/default_html_view.rb +0 -0
- data/mod/{04_settings → settings}/set/self/delete.rb +0 -0
- data/mod/{04_settings → settings}/set/self/follow_fields.rb +0 -0
- data/mod/{04_settings → settings}/set/self/help.rb +0 -0
- data/mod/settings/set/self/input.rb +4 -0
- data/mod/{04_settings → settings}/set/self/layout.rb +0 -0
- data/mod/{04_settings → settings}/set/self/on_create.rb +0 -0
- data/mod/{04_settings → settings}/set/self/on_delete.rb +0 -0
- data/mod/{04_settings → settings}/set/self/on_update.rb +0 -0
- data/mod/settings/set/self/options.rb +4 -0
- data/mod/settings/set/self/options_label.rb +4 -0
- data/mod/{04_settings → settings}/set/self/read.rb +0 -0
- data/mod/{04_settings → settings}/set/self/recent_settings.rb +0 -0
- data/mod/{04_settings → settings}/set/self/script.rb +0 -0
- data/mod/{04_settings → settings}/set/self/structure.rb +0 -0
- data/mod/{04_settings → settings}/set/self/style.rb +0 -0
- data/mod/{04_settings → settings}/set/self/table_of_contents.rb +0 -0
- data/mod/{04_settings → settings}/set/self/thanks.rb +0 -0
- data/mod/{04_settings → settings}/set/self/update.rb +0 -0
- data/mod/settings/set/type/setting.rb +104 -0
- data/mod/{04_settings → settings}/spec/set/right/add_help_spec.rb +0 -0
- data/mod/settings/spec/set/right/comment_spec.rb +41 -0
- data/mod/settings/spec/set/right/create_spec.rb +10 -0
- data/mod/{04_settings → settings}/spec/set/right/default_spec.rb +0 -0
- data/mod/{04_settings → settings}/spec/set/right/delete_spec.rb +0 -0
- data/mod/{04_settings → settings}/spec/set/right/help_spec.rb +0 -0
- data/mod/{04_settings → settings}/spec/set/right/read_spec.rb +0 -0
- data/mod/settings/spec/set/right/script_spec.rb +35 -0
- data/mod/settings/spec/set/right/structure_spec.rb +25 -0
- data/mod/settings/spec/set/right/style_spec.rb +34 -0
- data/mod/{04_settings → settings}/spec/set/right/update_spec.rb +0 -0
- data/mod/settings/spec/set/type/setting_spec.rb +10 -0
- data/mod/solid_cache/db/migrate_cards/20160806112710_add_solid_cache_cards.rb +10 -0
- data/mod/solid_cache/set/abstract/solid_cache.rb +99 -0
- data/mod/solid_cache/set/all/solid_cache.rb +14 -0
- data/mod/solid_cache/set/right/solid_cache.rb +32 -0
- data/mod/solid_cache/spec/set/abstract/solid_cache_spec.rb +98 -0
- data/mod/{05_standard → standard}/file/credit/icon-image.png +0 -0
- data/mod/{05_standard → standard}/file/credit/large-image.png +0 -0
- data/mod/{05_standard → standard}/file/credit/medium-image.png +0 -0
- data/mod/{05_standard → standard}/file/credit/original-image.png +0 -0
- data/mod/{05_standard → standard}/file/credit/small-image.png +0 -0
- data/mod/{05_standard → standard}/file/credit_image/image-icon.png +0 -0
- data/mod/{05_standard → standard}/file/credit_image/image-large.png +0 -0
- data/mod/{05_standard → standard}/file/credit_image/image-medium.png +0 -0
- data/mod/{05_standard → standard}/file/credit_image/image-original.png +0 -0
- data/mod/{05_standard → standard}/file/credit_image/image-small.png +0 -0
- data/mod/standard/file/favicon/image-icon.png +0 -0
- data/mod/standard/file/favicon/image-large.png +0 -0
- data/mod/standard/file/favicon/image-medium.png +0 -0
- data/mod/standard/file/favicon/image-original.png +0 -0
- data/mod/standard/file/favicon/image-small.png +0 -0
- data/mod/{05_standard → standard}/file/logo/image-icon.png +0 -0
- data/mod/{05_standard → standard}/file/logo/image-large.png +0 -0
- data/mod/{05_standard → standard}/file/logo/image-medium.png +0 -0
- data/mod/{05_standard → standard}/file/logo/image-original.png +0 -0
- data/mod/{05_standard → standard}/file/logo/image-small.png +0 -0
- data/mod/standard/set/all/comment.rb +60 -0
- data/mod/standard/set/all/error.rb +222 -0
- data/mod/standard/set/all/links.rb +158 -0
- data/mod/standard/set/all/list_changes.rb +46 -0
- data/mod/standard/set/all/rich_html/content.rb +254 -0
- data/mod/standard/set/all/rich_html/editing.rb +240 -0
- data/mod/standard/set/all/rich_html/form.rb +291 -0
- data/mod/standard/set/all/rich_html/header.rb +71 -0
- data/mod/standard/set/all/rich_html/menu.rb +147 -0
- data/mod/standard/set/all/rich_html/modal.rb +51 -0
- data/mod/standard/set/all/rich_html/toolbar.rb +305 -0
- data/mod/standard/set/all/rich_html/wrapper.rb +184 -0
- data/mod/{05_standard → standard}/set/right/discussion.rb +0 -0
- data/mod/standard/set/right/when_created.rb +7 -0
- data/mod/standard/set/right/when_last_edited.rb +7 -0
- data/mod/{05_standard → standard}/set/rstar/rules.rb +0 -0
- data/mod/standard/set/rstar/rules_editor.rb +364 -0
- data/mod/standard/set/self/alerts.rb +5 -0
- data/mod/{05_standard → standard}/set/self/codenames.rb +0 -0
- data/mod/standard/set/self/foot.rb +8 -0
- data/mod/standard/set/self/navbox.rb +29 -0
- data/mod/standard/set/self/now.rb +7 -0
- data/mod/standard/set/self/recent.rb +27 -0
- data/mod/standard/set/self/search.rb +64 -0
- data/mod/standard/set/type/basic.rb +52 -0
- data/mod/standard/set/type/cardtype.rb +74 -0
- data/mod/standard/set/type/date.rb +8 -0
- data/mod/standard/set/type/layout_type.rb +10 -0
- data/mod/standard/set/type/list.rb +113 -0
- data/mod/standard/set/type/listed_by.rb +78 -0
- data/mod/standard/set/type/number.rb +18 -0
- data/mod/standard/set/type/phrase.rb +3 -0
- data/mod/standard/set/type/search_type.rb +332 -0
- data/mod/standard/set/type/session.rb +35 -0
- data/mod/standard/set/type/set.rb +364 -0
- data/mod/standard/set/type/toggle.rb +12 -0
- data/mod/{05_standard → standard}/set/type/uri.rb +0 -0
- data/mod/standard/spec/chunk/include_spec.rb +203 -0
- data/mod/standard/spec/chunk/link_spec.rb +98 -0
- data/mod/standard/spec/chunk/query_reference_spec.rb +49 -0
- data/mod/standard/spec/format/css_format_spec.rb +5 -0
- data/mod/standard/spec/format/csv_format_spec.rb +5 -0
- data/mod/standard/spec/format/email_html_format_spec.rb +5 -0
- data/mod/standard/spec/format/file_format_spec.rb +5 -0
- data/mod/standard/spec/format/js_format_spec.rb +5 -0
- data/mod/standard/spec/format/json_format_spec.rb +5 -0
- data/mod/standard/spec/format/rss_format_spec.rb +5 -0
- data/mod/standard/spec/format/xml_format_spec.rb +5 -0
- data/mod/{05_standard → standard}/spec/set/all/comment_spec.rb +0 -0
- data/mod/standard/spec/set/all/email_html_spec.rb +15 -0
- data/mod/standard/spec/set/all/error_spec.rb +9 -0
- data/mod/standard/spec/set/all/history_spec.rb +218 -0
- data/mod/standard/spec/set/all/links_spec.rb +15 -0
- data/mod/standard/spec/set/all/rich_html/editing_spec.rb +61 -0
- data/mod/standard/spec/set/all/rich_html/form_spec.rb +47 -0
- data/mod/standard/spec/set/all/rich_html/wrapper_spec.rb +37 -0
- data/mod/standard/spec/set/right/when_created_spec.rb +7 -0
- data/mod/standard/spec/set/right/when_last_edited_spec.rb +7 -0
- data/mod/standard/spec/set/rstar/rules_spec.rb +27 -0
- data/mod/{05_standard → standard}/spec/set/self/alerts_spec.rb +0 -0
- data/mod/{05_standard → standard}/spec/set/self/foot_spec.rb +0 -0
- data/mod/standard/spec/set/self/head_spec.rb +16 -0
- data/mod/standard/spec/set/self/navbox_spec.rb +8 -0
- data/mod/standard/spec/set/self/now_spec.rb +7 -0
- data/mod/{05_standard → standard}/spec/set/self/recent_spec.rb +0 -0
- data/mod/{05_standard → standard}/spec/set/self/search_spec.rb +0 -0
- data/mod/{05_standard → standard}/spec/set/type/basic_spec.rb +0 -0
- data/mod/standard/spec/set/type/cardtype_spec.rb +18 -0
- data/mod/standard/spec/set/type/date_spec.rb +7 -0
- data/mod/standard/spec/set/type/email_template_spec.rb +212 -0
- data/mod/standard/spec/set/type/file_spec.rb +99 -0
- data/mod/standard/spec/set/type/html_spec.rb +28 -0
- data/mod/standard/spec/set/type/image_spec.rb +135 -0
- data/mod/standard/spec/set/type/layout_type_spec.rb +7 -0
- data/mod/standard/spec/set/type/list_spec.rb +140 -0
- data/mod/standard/spec/set/type/listed_by_spec.rb +158 -0
- data/mod/standard/spec/set/type/number_spec.rb +7 -0
- data/mod/standard/spec/set/type/phrase_spec.rb +7 -0
- data/mod/standard/spec/set/type/search_type_spec.rb +67 -0
- data/mod/standard/spec/set/type/set_spec.rb +26 -0
- data/mod/standard/spec/set/type/toggle_spec.rb +13 -0
- data/mod/standard/spec/set/type/uri_spec.rb +54 -0
- data/mod/tinymce_editor/db/migrate_cards/20160804112560_add_tinymce_cards.rb +40 -0
- data/mod/{03_machines → tinymce_editor}/lib/javascript/script_tinymce.js +0 -0
- data/mod/tinymce_editor/lib/javascript/script_tinymce_config.js.coffee +35 -0
- data/mod/tinymce_editor/set/abstract/tinymce_editor.rb +6 -0
- data/mod/tinymce_editor/set/self/script_tinymce.rb +3 -0
- data/mod/tinymce_editor/set/self/script_tinymce_config.rb +5 -0
- data/spec/card_spec_helper.rb +137 -0
- data/spec/config/initializers/core_extensions_spec.rb +3 -3
- data/spec/lib/card/action_spec.rb +6 -6
- data/spec/lib/card/auth_spec.rb +18 -18
- data/spec/lib/card/cache_spec.rb +46 -46
- data/spec/lib/card/chunk_spec.rb +9 -8
- data/spec/lib/card/codename_spec.rb +4 -4
- data/spec/lib/card/content_spec.rb +115 -115
- data/spec/lib/card/diff_spec.rb +68 -68
- data/spec/lib/card/format/nest_spec.rb +11 -0
- data/spec/lib/card/format_spec.rb +28 -28
- data/spec/lib/card/i18n_spec.rb +40 -0
- data/spec/lib/card/loader/Modfile +2 -0
- data/spec/lib/card/loader/mod_dirs.rb +8 -0
- data/spec/lib/card/loader_spec.rb +3 -3
- data/spec/lib/card/migration/import_spec.rb +72 -0
- data/spec/lib/card/name_spec.rb +147 -147
- data/spec/lib/card/query_spec.rb +282 -280
- data/spec/lib/card/reference_spec.rb +124 -124
- data/spec/lib/card/set/trait_spec.rb +38 -22
- data/spec/lib/card/set_pattern_spec.rb +30 -32
- data/spec/lib/card/set_spec.rb +4 -3
- data/spec/lib/card/stage_director_spec.rb +145 -75
- data/spec/lib/card/subcards_spec.rb +72 -68
- data/spec/lib/card/success_spec.rb +55 -55
- data/spec/lib/card/view_cache_spec.rb +5 -5
- data/spec/mailers/mailer_spec.rb +1 -1
- data/spec/models/card/cardtype_spec.rb +62 -62
- data/spec/models/card/create_spec.rb +44 -44
- data/spec/models/card/trash_spec.rb +86 -86
- data/spec/models/card/type_transition_spec.rb +28 -28
- data/spec/models/card/validation_spec.rb +11 -11
- data/spec/models/card_spec.rb +69 -69
- data/spec/spec_helper.rb +59 -23
- data/tmpsets/set/mod001-core/abstract/code_file.rb +79 -0
- data/tmpsets/set/mod001-core/all/actify.rb +100 -0
- data/tmpsets/set/mod001-core/all/active_card.rb +42 -0
- data/tmpsets/set/mod001-core/all/collection.rb +313 -0
- data/tmpsets/set/mod001-core/all/content.rb +69 -0
- data/tmpsets/set/mod001-core/all/erb.rb +18 -0
- data/tmpsets/set/mod001-core/all/event.rb +62 -0
- data/tmpsets/set/mod001-core/all/export.rb +49 -0
- data/tmpsets/set/mod001-core/all/fetch.rb +335 -0
- data/tmpsets/set/mod001-core/all/haml.rb +14 -0
- data/tmpsets/set/mod001-core/all/initialize.rb +42 -0
- data/tmpsets/set/mod001-core/all/location_history.rb +15 -0
- data/tmpsets/set/mod001-core/all/name.rb +282 -0
- data/tmpsets/set/mod001-core/all/name_validations.rb +65 -0
- data/tmpsets/set/mod001-core/all/pattern.rb +67 -0
- data/tmpsets/set/mod001-core/all/permissions.rb +309 -0
- data/tmpsets/set/mod001-core/all/phases.rb +23 -0
- data/tmpsets/set/mod001-core/all/references.rb +187 -0
- data/tmpsets/set/mod001-core/all/rules.rb +311 -0
- data/tmpsets/set/mod001-core/all/stages.rb +31 -0
- data/tmpsets/set/mod001-core/all/states.rb +31 -0
- data/tmpsets/set/mod001-core/all/subcards.rb +85 -0
- data/tmpsets/set/mod001-core/all/templating.rb +78 -0
- data/tmpsets/set/mod001-core/all/tracked_attributes.rb +154 -0
- data/tmpsets/set/mod001-core/all/trash.rb +63 -0
- data/tmpsets/set/mod001-core/all/type.rb +60 -0
- data/tmpsets/set/mod001-core/all/utils.rb +132 -0
- data/tmpsets/set/mod001-core/all/view_cache.rb +16 -0
- data/tmpsets/set/mod002-history/all/actions.rb +60 -0
- data/tmpsets/set/mod002-history/all/content_history.rb +168 -0
- data/tmpsets/set/mod002-history/all/history.rb +407 -0
- data/tmpsets/set/mod003-basic_formats/all/all_css.rb +45 -0
- data/tmpsets/set/mod003-basic_formats/all/all_csv.rb +56 -0
- data/tmpsets/set/mod003-basic_formats/all/all_js.rb +13 -0
- data/tmpsets/set/mod003-basic_formats/all/base.rb +155 -0
- data/tmpsets/set/mod003-basic_formats/all/file.rb +16 -0
- data/tmpsets/set/mod003-basic_formats/all/json.rb +76 -0
- data/tmpsets/set/mod003-basic_formats/all/rss.rb +77 -0
- data/tmpsets/set/mod003-basic_formats/all/text.rb +13 -0
- data/tmpsets/set/mod003-basic_formats/self/01_head/javascript.rb +79 -0
- data/tmpsets/set/mod003-basic_formats/self/head.rb +101 -0
- data/tmpsets/set/mod004-pointer/abstract/01_pointer.rb +193 -0
- data/tmpsets/set/mod004-pointer/abstract/01_pointer/edit.rb +224 -0
- data/tmpsets/set/mod004-pointer/abstract/code_pointer.rb +16 -0
- data/tmpsets/set/mod004-pointer/self/script_editors.rb +8 -0
- data/tmpsets/set/mod004-pointer/self/script_mods.rb +8 -0
- data/tmpsets/set/mod004-pointer/self/script_pointer_config.rb +10 -0
- data/tmpsets/set/mod004-pointer/type/pointer.rb +8 -0
- data/tmpsets/set/mod005-ace_editor/abstract/ace_editor.rb +18 -0
- data/tmpsets/set/mod005-ace_editor/self/script_ace.rb +10 -0
- data/tmpsets/set/mod005-ace_editor/self/script_ace_config.rb +12 -0
- data/tmpsets/set/mod006-prosemirror_editor/abstract/prosemirror_editor.rb +14 -0
- data/tmpsets/set/mod006-prosemirror_editor/self/script_prosemirror.rb +10 -0
- data/tmpsets/set/mod006-prosemirror_editor/self/script_prosemirror_config.rb +13 -0
- data/tmpsets/set/mod008-solid_cache/abstract/solid_cache.rb +106 -0
- data/tmpsets/set/mod008-solid_cache/all/solid_cache.rb +21 -0
- data/tmpsets/set/mod008-solid_cache/right/solid_cache.rb +39 -0
- data/tmpsets/set/mod009-basic_types/type/html.rb +26 -0
- data/tmpsets/set/mod009-basic_types/type/plain_text.rb +19 -0
- data/tmpsets/set/mod010-machines/abstract/script.rb +49 -0
- data/tmpsets/set/mod010-machines/all/reset_machines.rb +19 -0
- data/tmpsets/set/mod010-machines/right/machine_cache.rb +18 -0
- data/tmpsets/set/mod010-machines/right/machine_input.rb +10 -0
- data/tmpsets/set/mod010-machines/right/machine_output.rb +39 -0
- data/tmpsets/set/mod010-machines/self/script_card_menu.rb +8 -0
- data/tmpsets/set/mod010-machines/self/script_html5shiv_printshiv.rb +8 -0
- data/tmpsets/set/mod010-machines/self/script_jquery.rb +8 -0
- data/tmpsets/set/mod010-machines/self/script_jquery_helper.rb +16 -0
- data/tmpsets/set/mod010-machines/self/script_slot.rb +14 -0
- data/tmpsets/set/mod010-machines/self/style_bootstrap_compatible.rb +8 -0
- data/tmpsets/set/mod010-machines/self/style_cards.rb +8 -0
- data/tmpsets/set/mod010-machines/self/style_jquery_ui_smoothness.rb +8 -0
- data/tmpsets/set/mod010-machines/type/coffee_script.rb +47 -0
- data/tmpsets/set/mod010-machines/type/css.rb +67 -0
- data/tmpsets/set/mod010-machines/type/java_script.rb +36 -0
- data/tmpsets/set/mod010-machines/type/scss.rb +21 -0
- data/tmpsets/set/mod010-machines/type/skin.rb +13 -0
- data/tmpsets/set/mod011-settings/abstract/permission.rb +119 -0
- data/tmpsets/set/mod011-settings/right/add_help.rb +18 -0
- data/tmpsets/set/mod011-settings/right/comment.rb +8 -0
- data/tmpsets/set/mod011-settings/right/create.rb +8 -0
- data/tmpsets/set/mod011-settings/right/default.rb +14 -0
- data/tmpsets/set/mod011-settings/right/delete.rb +8 -0
- data/tmpsets/set/mod011-settings/right/help.rb +10 -0
- data/tmpsets/set/mod011-settings/right/read.rb +10 -0
- data/tmpsets/set/mod011-settings/right/script.rb +16 -0
- data/tmpsets/set/mod011-settings/right/structure.rb +68 -0
- data/tmpsets/set/mod011-settings/right/style.rb +17 -0
- data/tmpsets/set/mod011-settings/right/update.rb +8 -0
- data/tmpsets/set/mod011-settings/self/accountable.rb +10 -0
- data/tmpsets/set/mod011-settings/self/add_help.rb +9 -0
- data/tmpsets/set/mod011-settings/self/autoname.rb +9 -0
- data/tmpsets/set/mod011-settings/self/captcha.rb +9 -0
- data/tmpsets/set/mod011-settings/self/create.rb +9 -0
- data/tmpsets/set/mod011-settings/self/default.rb +9 -0
- data/tmpsets/set/mod011-settings/self/default_html_view.rb +9 -0
- data/tmpsets/set/mod011-settings/self/delete.rb +9 -0
- data/tmpsets/set/mod011-settings/self/follow_fields.rb +9 -0
- data/tmpsets/set/mod011-settings/self/help.rb +9 -0
- data/tmpsets/set/mod011-settings/self/input.rb +11 -0
- data/tmpsets/set/mod011-settings/self/layout.rb +9 -0
- data/tmpsets/set/mod011-settings/self/on_create.rb +9 -0
- data/tmpsets/set/mod011-settings/self/on_delete.rb +9 -0
- data/tmpsets/set/mod011-settings/self/on_update.rb +9 -0
- data/tmpsets/set/mod011-settings/self/options.rb +11 -0
- data/tmpsets/set/mod011-settings/self/options_label.rb +11 -0
- data/tmpsets/set/mod011-settings/self/read.rb +9 -0
- data/tmpsets/set/mod011-settings/self/recent_settings.rb +10 -0
- data/tmpsets/set/mod011-settings/self/script.rb +9 -0
- data/tmpsets/set/mod011-settings/self/structure.rb +9 -0
- data/tmpsets/set/mod011-settings/self/style.rb +9 -0
- data/tmpsets/set/mod011-settings/self/table_of_contents.rb +9 -0
- data/tmpsets/set/mod011-settings/self/thanks.rb +9 -0
- data/tmpsets/set/mod011-settings/self/update.rb +9 -0
- data/tmpsets/set/mod011-settings/type/setting.rb +111 -0
- data/tmpsets/set/mod012-email/all/email_html.rb +11 -0
- data/tmpsets/set/mod012-email/all/email_text.rb +12 -0
- data/tmpsets/set/mod012-email/all/follow.rb +253 -0
- data/tmpsets/set/mod012-email/all/notify.rb +271 -0
- data/tmpsets/set/mod012-email/all/observer.rb +33 -0
- data/tmpsets/set/mod012-email/right/bcc.rb +47 -0
- data/tmpsets/set/mod012-email/right/cc.rb +10 -0
- data/tmpsets/set/mod012-email/right/follow.rb +106 -0
- data/tmpsets/set/mod012-email/right/follow_fields.rb +10 -0
- data/tmpsets/set/mod012-email/right/followers.rb +41 -0
- data/tmpsets/set/mod012-email/right/following.rb +65 -0
- data/tmpsets/set/mod012-email/right/from.rb +10 -0
- data/tmpsets/set/mod012-email/right/html_message.rb +10 -0
- data/tmpsets/set/mod012-email/right/to.rb +10 -0
- data/tmpsets/set/mod012-email/self/always.rb +20 -0
- data/tmpsets/set/mod012-email/self/created.rb +26 -0
- data/tmpsets/set/mod012-email/self/edited.rb +27 -0
- data/tmpsets/set/mod012-email/self/follow.rb +9 -0
- data/tmpsets/set/mod012-email/self/follow_defaults.rb +75 -0
- data/tmpsets/set/mod012-email/self/never.rb +20 -0
- data/tmpsets/set/mod012-email/type/email_template.rb +133 -0
- data/tmpsets/set/mod012-email/type_plus_right/user/follow.rb +184 -0
- data/tmpsets/set/mod013-carrierwave/abstract/attachment.rb +282 -0
- data/tmpsets/set/mod013-carrierwave/type/file.rb +155 -0
- data/tmpsets/set/mod013-carrierwave/type/image.rb +96 -0
- data/tmpsets/set/mod014-admin/self/admin.rb +113 -0
- data/tmpsets/set/mod014-admin/self/admin_info.rb +110 -0
- data/tmpsets/set/mod014-admin/self/version.rb +15 -0
- data/tmpsets/set/mod015-developer/all/event_viz.rb +59 -0
- data/tmpsets/set/mod015-developer/all/view_viz.rb +30 -0
- data/tmpsets/set/mod015-developer/right/debug.rb +96 -0
- data/tmpsets/set/mod016-standard/all/comment.rb +67 -0
- data/tmpsets/set/mod016-standard/all/error.rb +229 -0
- data/tmpsets/set/mod016-standard/all/links.rb +165 -0
- data/tmpsets/set/mod016-standard/all/list_changes.rb +53 -0
- data/tmpsets/set/mod016-standard/all/rich_html/content.rb +261 -0
- data/tmpsets/set/mod016-standard/all/rich_html/editing.rb +247 -0
- data/tmpsets/set/mod016-standard/all/rich_html/form.rb +298 -0
- data/tmpsets/set/mod016-standard/all/rich_html/header.rb +78 -0
- data/tmpsets/set/mod016-standard/all/rich_html/menu.rb +154 -0
- data/tmpsets/set/mod016-standard/all/rich_html/modal.rb +58 -0
- data/tmpsets/set/mod016-standard/all/rich_html/toolbar.rb +312 -0
- data/tmpsets/set/mod016-standard/all/rich_html/wrapper.rb +191 -0
- data/tmpsets/set/mod016-standard/right/discussion.rb +10 -0
- data/tmpsets/set/mod016-standard/right/when_created.rb +14 -0
- data/tmpsets/set/mod016-standard/right/when_last_edited.rb +14 -0
- data/tmpsets/set/mod016-standard/rstar/rules.rb +107 -0
- data/tmpsets/set/mod016-standard/rstar/rules_editor.rb +371 -0
- data/tmpsets/set/mod016-standard/self/alerts.rb +12 -0
- data/tmpsets/set/mod016-standard/self/codenames.rb +7 -0
- data/tmpsets/set/mod016-standard/self/foot.rb +15 -0
- data/tmpsets/set/mod016-standard/self/navbox.rb +36 -0
- data/tmpsets/set/mod016-standard/self/now.rb +14 -0
- data/tmpsets/set/mod016-standard/self/recent.rb +34 -0
- data/tmpsets/set/mod016-standard/self/search.rb +71 -0
- data/tmpsets/set/mod016-standard/type/basic.rb +59 -0
- data/tmpsets/set/mod016-standard/type/cardtype.rb +81 -0
- data/tmpsets/set/mod016-standard/type/date.rb +15 -0
- data/tmpsets/set/mod016-standard/type/layout_type.rb +17 -0
- data/tmpsets/set/mod016-standard/type/list.rb +120 -0
- data/tmpsets/set/mod016-standard/type/listed_by.rb +85 -0
- data/tmpsets/set/mod016-standard/type/number.rb +25 -0
- data/tmpsets/set/mod016-standard/type/phrase.rb +10 -0
- data/tmpsets/set/mod016-standard/type/search_type.rb +339 -0
- data/tmpsets/set/mod016-standard/type/session.rb +42 -0
- data/tmpsets/set/mod016-standard/type/set.rb +371 -0
- data/tmpsets/set/mod016-standard/type/toggle.rb +19 -0
- data/tmpsets/set/mod016-standard/type/uri.rb +18 -0
- data/tmpsets/set/mod017-account/all/account.rb +72 -0
- data/tmpsets/set/mod017-account/right/account.rb +196 -0
- data/tmpsets/set/mod017-account/right/email.rb +61 -0
- data/tmpsets/set/mod017-account/right/password.rb +54 -0
- data/tmpsets/set/mod017-account/right/salt.rb +12 -0
- data/tmpsets/set/mod017-account/right/status.rb +16 -0
- data/tmpsets/set/mod017-account/right/token.rb +57 -0
- data/tmpsets/set/mod017-account/self/account_links.rb +72 -0
- data/tmpsets/set/mod017-account/self/signin.rb +165 -0
- data/tmpsets/set/mod017-account/type/signup.rb +175 -0
- data/tmpsets/set/mod017-account/type/user.rb +88 -0
- data/tmpsets/set/mod018-bootstrap/all/bootstrap/form.rb +42 -0
- data/tmpsets/set/mod018-bootstrap/all/bootstrap/helper.rb +236 -0
- data/tmpsets/set/mod018-bootstrap/all/bootstrap/table.rb +68 -0
- data/tmpsets/set/mod018-bootstrap/all/bootstrap/tabs.rb +88 -0
- data/tmpsets/set/mod018-bootstrap/all/bootstrap/wrapper.rb +18 -0
- data/tmpsets/set/mod018-bootstrap/all/rich_bootstrap.rb +13 -0
- data/tmpsets/set/mod018-bootstrap/self/bootstrap_cards.rb +8 -0
- data/tmpsets/set/mod018-bootstrap/self/bootstrap_js.rb +12 -0
- data/tmpsets/set/mod018-bootstrap/self/bootswatch_shared.rb +47 -0
- data/tmpsets/set/mod018-bootstrap/self/script_mods.rb +7 -0
- data/tmpsets/set/mod018-bootstrap/self/smartmenu_css.rb +12 -0
- data/tmpsets/set/mod018-bootstrap/self/smartmenu_js.rb +12 -0
- data/tmpsets/set_pattern/100-all.rb +8 -8
- data/tmpsets/set_pattern/101-all_plus.rb +7 -7
- data/tmpsets/set_pattern/102-type.rb +5 -5
- data/tmpsets/set_pattern/103-star.rb +7 -7
- data/tmpsets/set_pattern/104-rstar.rb +7 -7
- data/tmpsets/set_pattern/105-right.rb +5 -5
- data/tmpsets/set_pattern/106-type_plus_right.rb +6 -6
- data/tmpsets/set_pattern/107-self.rb +4 -4
- metadata +855 -735
- data/.yardoc/checksums +0 -268
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/db/migrate_core_cards/20141208162106_add_ace_script.rb +0 -9
- data/lib/card/active_record_ext.rb +0 -75
- data/lib/card/active_record_helper.rb +0 -53
- data/lib/card/core_migration.rb +0 -6
- data/lib/card/diff.rb +0 -69
- data/lib/card/diff/lcs.rb +0 -247
- data/lib/card/diff/result.rb +0 -131
- data/lib/card/exceptions.rb +0 -42
- data/lib/card/loader.rb +0 -181
- data/lib/card/location.rb +0 -36
- data/lib/card/simplecov_helper.rb +0 -70
- data/lib/card/spec_helper.rb +0 -147
- data/lib/card/success.rb +0 -142
- data/lib/card/view_cache.rb +0 -94
- data/lib/card/view_name.rb +0 -46
- data/mod/01_core/chunk/include.rb +0 -131
- data/mod/01_core/chunk/link.rb +0 -96
- data/mod/01_core/chunk/literal.rb +0 -27
- data/mod/01_core/chunk/query_reference.rb +0 -83
- data/mod/01_core/chunk/uri.rb +0 -128
- data/mod/01_core/format/data_format.rb +0 -2
- data/mod/01_core/format/html_format.rb +0 -77
- data/mod/01_core/format/text_format.rb +0 -10
- data/mod/01_core/set/all/actify.rb +0 -107
- data/mod/01_core/set/all/collection.rb +0 -303
- data/mod/01_core/set/all/content.rb +0 -62
- data/mod/01_core/set/all/erb.rb +0 -11
- data/mod/01_core/set/all/event.rb +0 -74
- data/mod/01_core/set/all/fetch.rb +0 -339
- data/mod/01_core/set/all/initialize.rb +0 -35
- data/mod/01_core/set/all/name.rb +0 -275
- data/mod/01_core/set/all/name_validations.rb +0 -56
- data/mod/01_core/set/all/pattern.rb +0 -56
- data/mod/01_core/set/all/permissions.rb +0 -301
- data/mod/01_core/set/all/phases.rb +0 -16
- data/mod/01_core/set/all/references.rb +0 -180
- data/mod/01_core/set/all/rules.rb +0 -305
- data/mod/01_core/set/all/stages.rb +0 -24
- data/mod/01_core/set/all/states.rb +0 -24
- data/mod/01_core/set/all/subcards.rb +0 -64
- data/mod/01_core/set/all/templating.rb +0 -69
- data/mod/01_core/set/all/tracked_attributes.rb +0 -147
- data/mod/01_core/set/all/trash.rb +0 -56
- data/mod/01_core/set/all/type.rb +0 -53
- data/mod/01_core/set/all/utils.rb +0 -180
- data/mod/01_core/set/all/view_cache.rb +0 -9
- data/mod/01_core/set_pattern/01_all.rb +0 -11
- data/mod/01_core/set_pattern/02_all_plus.rb +0 -13
- data/mod/01_core/set_pattern/04_star.rb +0 -15
- data/mod/01_core/set_pattern/05_rstar.rb +0 -17
- data/mod/01_core/set_pattern/07_type_plus_right.rb +0 -26
- data/mod/01_core/spec/chunk/literal_spec.rb +0 -13
- data/mod/01_core/spec/chunk/uri_spec.rb +0 -293
- data/mod/01_core/spec/format/data_format_spec.rb +0 -5
- data/mod/01_core/spec/format/html_format_spec.rb +0 -154
- data/mod/01_core/spec/format/text_format_spec.rb +0 -5
- data/mod/01_core/spec/set/all/collection_spec.rb +0 -162
- data/mod/01_core/spec/set/all/content_spec.rb +0 -15
- data/mod/01_core/spec/set/all/fetch_spec.rb +0 -279
- data/mod/01_core/spec/set/all/initialize_spec.rb +0 -88
- data/mod/01_core/spec/set/all/name_spec.rb +0 -60
- data/mod/01_core/spec/set/all/pattern_spec.rb +0 -78
- data/mod/01_core/spec/set/all/permissions_spec.rb +0 -538
- data/mod/01_core/spec/set/all/references_spec.rb +0 -9
- data/mod/01_core/spec/set/all/rules2_spec.rb +0 -238
- data/mod/01_core/spec/set/all/rules_spec.rb +0 -137
- data/mod/01_core/spec/set/all/templating_spec.rb +0 -119
- data/mod/01_core/spec/set/all/tracked_attributes_spec.rb +0 -313
- data/mod/01_core/spec/set/all/trash_spec.rb +0 -81
- data/mod/01_core/spec/set/all/type_spec.rb +0 -51
- data/mod/01_history/lib/card/act.rb +0 -88
- data/mod/01_history/lib/card/action.rb +0 -193
- data/mod/01_history/lib/card/change.rb +0 -41
- data/mod/01_history/set/all/actions.rb +0 -54
- data/mod/01_history/set/all/content_history.rb +0 -161
- data/mod/01_history/set/all/history.rb +0 -400
- data/mod/02_basic_types/format/css_format.rb +0 -6
- data/mod/02_basic_types/format/csv_format.rb +0 -6
- data/mod/02_basic_types/format/file_format.rb +0 -3
- data/mod/02_basic_types/format/js_format.rb +0 -6
- data/mod/02_basic_types/format/json_format.rb +0 -6
- data/mod/02_basic_types/format/rss_format.rb +0 -10
- data/mod/02_basic_types/format/xml_format.rb +0 -6
- data/mod/02_basic_types/set/abstract/code_file.rb +0 -63
- data/mod/02_basic_types/set/all/all_css.rb +0 -38
- data/mod/02_basic_types/set/all/all_csv.rb +0 -49
- data/mod/02_basic_types/set/all/base.rb +0 -150
- data/mod/02_basic_types/set/all/file.rb +0 -9
- data/mod/02_basic_types/set/all/json.rb +0 -67
- data/mod/02_basic_types/set/all/rss.rb +0 -70
- data/mod/02_basic_types/set/type/html.rb +0 -23
- data/mod/02_basic_types/set/type/plain_text.rb +0 -12
- data/mod/02_basic_types/set/type/pointer.rb +0 -384
- data/mod/02_basic_types/spec/set/all/all_css_spec.rb +0 -10
- data/mod/02_basic_types/spec/set/all/all_csv_spec.rb +0 -11
- data/mod/02_basic_types/spec/set/all/base_spec.rb +0 -89
- data/mod/02_basic_types/spec/set/all/json_spec.rb +0 -26
- data/mod/02_basic_types/spec/set/all/rss_spec.rb +0 -22
- data/mod/02_basic_types/spec/set/type/plain_text_spec.rb +0 -11
- data/mod/02_basic_types/spec/set/type/pointer_spec.rb +0 -201
- data/mod/03_machines/lib/card/machine.rb +0 -218
- data/mod/03_machines/lib/card/machine_input.rb +0 -65
- data/mod/03_machines/lib/javascript/wagn.js.coffee +0 -365
- data/mod/03_machines/lib/javascript/wagn_mod.js.coffee +0 -557
- data/mod/03_machines/lib/stylesheets/style_cards.scss +0 -940
- data/mod/03_machines/set/self/script_ace.rb +0 -1
- data/mod/03_machines/set/self/script_slot.rb +0 -5
- data/mod/03_machines/set/self/script_tinymce.rb +0 -1
- data/mod/03_machines/set/type/coffee_script.rb +0 -57
- data/mod/03_machines/set/type/css.rb +0 -57
- data/mod/03_machines/set/type/java_script.rb +0 -50
- data/mod/03_machines/set/type/scss.rb +0 -22
- data/mod/03_machines/set/type/skin.rb +0 -9
- data/mod/03_machines/spec/lib/shared_machine_examples.rb +0 -170
- data/mod/03_machines/spec/lib/shared_machine_input_examples.rb +0 -64
- data/mod/03_machines/spec/set/type/coffeescript_spec.rb +0 -35
- data/mod/03_machines/spec/set/type/css_spec.rb +0 -40
- data/mod/03_machines/spec/set/type/javascript_spec.rb +0 -34
- data/mod/03_machines/spec/set/type/scss_spec.rb +0 -62
- data/mod/03_machines/spec/set/type/skin_spec.rb +0 -68
- data/mod/04_settings/lib/card/setting.rb +0 -82
- data/mod/04_settings/set/abstract/permission.rb +0 -94
- data/mod/04_settings/set/right/comment.rb +0 -3
- data/mod/04_settings/set/right/create.rb +0 -3
- data/mod/04_settings/set/right/delete.rb +0 -3
- data/mod/04_settings/set/right/script.rb +0 -9
- data/mod/04_settings/set/right/style.rb +0 -10
- data/mod/04_settings/set/right/update.rb +0 -3
- data/mod/04_settings/set/self/accountable.rb +0 -3
- data/mod/04_settings/set/self/input.rb +0 -2
- data/mod/04_settings/set/self/options.rb +0 -2
- data/mod/04_settings/set/self/options_label.rb +0 -2
- data/mod/04_settings/set/type/setting.rb +0 -88
- data/mod/04_settings/spec/set/right/comment_spec.rb +0 -38
- data/mod/04_settings/spec/set/right/create_spec.rb +0 -10
- data/mod/04_settings/spec/set/right/script_spec.rb +0 -24
- data/mod/04_settings/spec/set/right/structure_spec.rb +0 -25
- data/mod/04_settings/spec/set/right/style_spec.rb +0 -29
- data/mod/04_settings/spec/set/type/setting_spec.rb +0 -10
- data/mod/05_email/format/email_html_format.rb +0 -9
- data/mod/05_email/format/email_text_format.rb +0 -11
- data/mod/05_email/lib/card/follow_option.rb +0 -87
- data/mod/05_email/set/all/email_html.rb +0 -4
- data/mod/05_email/set/all/email_text.rb +0 -5
- data/mod/05_email/set/all/follow.rb +0 -245
- data/mod/05_email/set/all/notify.rb +0 -255
- data/mod/05_email/set/right/bcc.rb +0 -40
- data/mod/05_email/set/right/follow.rb +0 -99
- data/mod/05_email/set/right/followers.rb +0 -34
- data/mod/05_email/set/right/following.rb +0 -58
- data/mod/05_email/set/self/always.rb +0 -13
- data/mod/05_email/set/self/created.rb +0 -19
- data/mod/05_email/set/self/edited.rb +0 -20
- data/mod/05_email/set/self/follow_defaults.rb +0 -68
- data/mod/05_email/set/self/never.rb +0 -13
- data/mod/05_email/set/type/email_template.rb +0 -126
- data/mod/05_email/set/type_plus_right/user/follow.rb +0 -177
- data/mod/05_email/spec/set/all/follow_spec.rb +0 -126
- data/mod/05_email/spec/set/all/notify_spec.rb +0 -378
- data/mod/05_email/spec/set/all/observer_spec.rb +0 -97
- data/mod/05_email/spec/set/right/followers_spec.rb +0 -121
- data/mod/05_email/spec/set/self/follow_defaults_spec.rb +0 -18
- data/mod/05_standard/lib/carrier_wave/cardmount.rb +0 -113
- data/mod/05_standard/lib/file_uploader.rb +0 -148
- data/mod/05_standard/lib/image_uploader.rb +0 -52
- data/mod/05_standard/set/abstract/attachment.rb +0 -277
- data/mod/05_standard/set/all/account.rb +0 -65
- data/mod/05_standard/set/all/comment.rb +0 -59
- data/mod/05_standard/set/all/error.rb +0 -222
- data/mod/05_standard/set/all/event_viz.rb +0 -56
- data/mod/05_standard/set/all/links.rb +0 -158
- data/mod/05_standard/set/all/list_changes.rb +0 -46
- data/mod/05_standard/set/all/rich_html/content.rb +0 -254
- data/mod/05_standard/set/all/rich_html/editing.rb +0 -241
- data/mod/05_standard/set/all/rich_html/form.rb +0 -301
- data/mod/05_standard/set/all/rich_html/header.rb +0 -65
- data/mod/05_standard/set/all/rich_html/menu.rb +0 -127
- data/mod/05_standard/set/all/rich_html/modal.rb +0 -51
- data/mod/05_standard/set/all/rich_html/toolbar.rb +0 -305
- data/mod/05_standard/set/all/rich_html/wrapper.rb +0 -157
- data/mod/05_standard/set/right/account.rb +0 -189
- data/mod/05_standard/set/right/email.rb +0 -54
- data/mod/05_standard/set/right/password.rb +0 -47
- data/mod/05_standard/set/right/salt.rb +0 -5
- data/mod/05_standard/set/right/stats.rb +0 -32
- data/mod/05_standard/set/right/status.rb +0 -9
- data/mod/05_standard/set/right/token.rb +0 -52
- data/mod/05_standard/set/right/when_created.rb +0 -5
- data/mod/05_standard/set/right/when_last_edited.rb +0 -5
- data/mod/05_standard/set/rstar/rules_editor.rb +0 -364
- data/mod/05_standard/set/self/account_links.rb +0 -48
- data/mod/05_standard/set/self/admin_info.rb +0 -82
- data/mod/05_standard/set/self/alerts.rb +0 -5
- data/mod/05_standard/set/self/all.rb +0 -19
- data/mod/05_standard/set/self/foot.rb +0 -8
- data/mod/05_standard/set/self/head.rb +0 -130
- data/mod/05_standard/set/self/navbox.rb +0 -29
- data/mod/05_standard/set/self/now.rb +0 -6
- data/mod/05_standard/set/self/recent.rb +0 -27
- data/mod/05_standard/set/self/search.rb +0 -64
- data/mod/05_standard/set/self/signin.rb +0 -133
- data/mod/05_standard/set/self/stats.rb +0 -87
- data/mod/05_standard/set/self/version.rb +0 -8
- data/mod/05_standard/set/type/basic.rb +0 -44
- data/mod/05_standard/set/type/cardtype.rb +0 -74
- data/mod/05_standard/set/type/date.rb +0 -7
- data/mod/05_standard/set/type/file.rb +0 -137
- data/mod/05_standard/set/type/image.rb +0 -89
- data/mod/05_standard/set/type/layout_type.rb +0 -16
- data/mod/05_standard/set/type/list.rb +0 -128
- data/mod/05_standard/set/type/listed_by.rb +0 -93
- data/mod/05_standard/set/type/number.rb +0 -18
- data/mod/05_standard/set/type/phrase.rb +0 -3
- data/mod/05_standard/set/type/search_type.rb +0 -316
- data/mod/05_standard/set/type/session.rb +0 -35
- data/mod/05_standard/set/type/set.rb +0 -341
- data/mod/05_standard/set/type/signup.rb +0 -168
- data/mod/05_standard/set/type/toggle.rb +0 -12
- data/mod/05_standard/set/type/user.rb +0 -81
- data/mod/05_standard/spec/chunk/include_spec.rb +0 -203
- data/mod/05_standard/spec/chunk/link_spec.rb +0 -98
- data/mod/05_standard/spec/chunk/query_reference_spec.rb +0 -49
- data/mod/05_standard/spec/format/css_format_spec.rb +0 -5
- data/mod/05_standard/spec/format/csv_format_spec.rb +0 -5
- data/mod/05_standard/spec/format/email_html_format_spec.rb +0 -5
- data/mod/05_standard/spec/format/file_format_spec.rb +0 -5
- data/mod/05_standard/spec/format/js_format_spec.rb +0 -5
- data/mod/05_standard/spec/format/json_format_spec.rb +0 -5
- data/mod/05_standard/spec/format/rss_format_spec.rb +0 -5
- data/mod/05_standard/spec/format/xml_format_spec.rb +0 -5
- data/mod/05_standard/spec/set/all/account_spec.rb +0 -138
- data/mod/05_standard/spec/set/all/email_html_spec.rb +0 -15
- data/mod/05_standard/spec/set/all/error_spec.rb +0 -9
- data/mod/05_standard/spec/set/all/history_spec.rb +0 -217
- data/mod/05_standard/spec/set/all/links_spec.rb +0 -15
- data/mod/05_standard/spec/set/all/rich_html/editing_spec.rb +0 -61
- data/mod/05_standard/spec/set/all/rich_html/form_spec.rb +0 -43
- data/mod/05_standard/spec/set/all/rich_html/wrapper_spec.rb +0 -32
- data/mod/05_standard/spec/set/right/account_spec.rb +0 -187
- data/mod/05_standard/spec/set/right/email_spec.rb +0 -52
- data/mod/05_standard/spec/set/right/password_spec.rb +0 -41
- data/mod/05_standard/spec/set/right/salt_spec.rb +0 -5
- data/mod/05_standard/spec/set/right/stats_spec.rb +0 -12
- data/mod/05_standard/spec/set/right/token_spec.rb +0 -23
- data/mod/05_standard/spec/set/right/when_created_spec.rb +0 -7
- data/mod/05_standard/spec/set/right/when_last_edited_spec.rb +0 -7
- data/mod/05_standard/spec/set/rstar/rules_spec.rb +0 -25
- data/mod/05_standard/spec/set/self/account_links_spec.rb +0 -9
- data/mod/05_standard/spec/set/self/all_spec.rb +0 -43
- data/mod/05_standard/spec/set/self/head_spec.rb +0 -15
- data/mod/05_standard/spec/set/self/navbox_spec.rb +0 -7
- data/mod/05_standard/spec/set/self/now_spec.rb +0 -7
- data/mod/05_standard/spec/set/self/signin_spec.rb +0 -69
- data/mod/05_standard/spec/set/self/stats_spec.rb +0 -12
- data/mod/05_standard/spec/set/self/version_spec.rb +0 -7
- data/mod/05_standard/spec/set/type/cardtype_spec.rb +0 -18
- data/mod/05_standard/spec/set/type/date_spec.rb +0 -7
- data/mod/05_standard/spec/set/type/email_template_spec.rb +0 -212
- data/mod/05_standard/spec/set/type/file_spec.rb +0 -99
- data/mod/05_standard/spec/set/type/html_spec.rb +0 -28
- data/mod/05_standard/spec/set/type/image_spec.rb +0 -135
- data/mod/05_standard/spec/set/type/layout_type_spec.rb +0 -7
- data/mod/05_standard/spec/set/type/list_spec.rb +0 -140
- data/mod/05_standard/spec/set/type/listed_by_spec.rb +0 -157
- data/mod/05_standard/spec/set/type/number_spec.rb +0 -7
- data/mod/05_standard/spec/set/type/phrase_spec.rb +0 -7
- data/mod/05_standard/spec/set/type/search_type_spec.rb +0 -59
- data/mod/05_standard/spec/set/type/set_spec.rb +0 -25
- data/mod/05_standard/spec/set/type/signup_spec.rb +0 -242
- data/mod/05_standard/spec/set/type/toggle_spec.rb +0 -12
- data/mod/05_standard/spec/set/type/uri_spec.rb +0 -41
- data/mod/06_bootstrap/set/all/bootstrap/form.rb +0 -34
- data/mod/06_bootstrap/set/all/bootstrap/helper.rb +0 -140
- data/mod/06_bootstrap/set/all/bootstrap/table.rb +0 -55
- data/mod/06_bootstrap/set/all/bootstrap/tabs.rb +0 -81
- data/mod/06_bootstrap/set/all/bootstrap/wrapper.rb +0 -11
- data/mod/06_bootstrap/set/all/rich_bootstrap.rb +0 -6
- data/mod/06_bootstrap/set/self/bootstrap_js.rb +0 -5
- data/mod/06_bootstrap/set/self/bootswatch_shared.rb +0 -40
- data/mod/06_bootstrap/set/self/smartmenu_css.rb +0 -5
- data/mod/06_bootstrap/set/self/smartmenu_js.rb +0 -5
- data/mod/06_bootstrap/spec/set/all/bootstrap/form_spec.rb +0 -13
- data/tmpsets/README.md +0 -2
- data/tmpsets/set/mod001-01_core/all/active_card.rb +0 -41
- data/tmpsets/set/mod001-01_core/all/collection.rb +0 -348
- data/tmpsets/set/mod001-01_core/all/content.rb +0 -67
- data/tmpsets/set/mod001-01_core/all/erb.rb +0 -18
- data/tmpsets/set/mod001-01_core/all/fetch.rb +0 -345
- data/tmpsets/set/mod001-01_core/all/haml.rb +0 -14
- data/tmpsets/set/mod001-01_core/all/initialize.rb +0 -48
- data/tmpsets/set/mod001-01_core/all/name.rb +0 -348
- data/tmpsets/set/mod001-01_core/all/pattern.rb +0 -64
- data/tmpsets/set/mod001-01_core/all/permissions.rb +0 -298
- data/tmpsets/set/mod001-01_core/all/phases.rb +0 -215
- data/tmpsets/set/mod001-01_core/all/references.rb +0 -106
- data/tmpsets/set/mod001-01_core/all/rules.rb +0 -317
- data/tmpsets/set/mod001-01_core/all/states.rb +0 -29
- data/tmpsets/set/mod001-01_core/all/templating.rb +0 -78
- data/tmpsets/set/mod001-01_core/all/tracked_attributes.rb +0 -152
- data/tmpsets/set/mod001-01_core/all/trash.rb +0 -63
- data/tmpsets/set/mod001-01_core/all/type.rb +0 -73
- data/tmpsets/set/mod001-01_core/all/utils.rb +0 -191
- data/tmpsets/set/mod001-01_core/all/view_cache.rb +0 -15
- data/tmpsets/set/mod002-01_history/all/actions.rb +0 -63
- data/tmpsets/set/mod002-01_history/all/content_history.rb +0 -162
- data/tmpsets/set/mod002-01_history/all/history.rb +0 -382
- data/tmpsets/set/mod003-02_basic_types/all/all_css.rb +0 -49
- data/tmpsets/set/mod003-02_basic_types/all/all_csv.rb +0 -59
- data/tmpsets/set/mod003-02_basic_types/all/all_js.rb +0 -14
- data/tmpsets/set/mod003-02_basic_types/all/base.rb +0 -157
- data/tmpsets/set/mod003-02_basic_types/all/file.rb +0 -19
- data/tmpsets/set/mod003-02_basic_types/all/json.rb +0 -73
- data/tmpsets/set/mod003-02_basic_types/all/rss.rb +0 -77
- data/tmpsets/set/mod003-02_basic_types/all/text.rb +0 -15
- data/tmpsets/set/mod003-02_basic_types/type/html.rb +0 -34
- data/tmpsets/set/mod003-02_basic_types/type/plain_text.rb +0 -20
- data/tmpsets/set/mod003-02_basic_types/type/pointer.rb +0 -386
- data/tmpsets/set/mod004-03_machines/right/machine_input.rb +0 -9
- data/tmpsets/set/mod004-03_machines/right/machine_output.rb +0 -39
- data/tmpsets/set/mod004-03_machines/self/script_ace.rb +0 -19
- data/tmpsets/set/mod004-03_machines/self/script_card_menu.rb +0 -18
- data/tmpsets/set/mod004-03_machines/self/script_html5shiv_printshiv.rb +0 -9
- data/tmpsets/set/mod004-03_machines/self/script_jquery.rb +0 -9
- data/tmpsets/set/mod004-03_machines/self/script_jquery_helper.rb +0 -19
- data/tmpsets/set/mod004-03_machines/self/script_slot.rb +0 -14
- data/tmpsets/set/mod004-03_machines/self/script_tinymce.rb +0 -9
- data/tmpsets/set/mod004-03_machines/self/style_bootstrap_compatible.rb +0 -12
- data/tmpsets/set/mod004-03_machines/self/style_cards.rb +0 -13
- data/tmpsets/set/mod004-03_machines/self/style_jquery_ui_smoothness.rb +0 -10
- data/tmpsets/set/mod004-03_machines/type/coffee_script.rb +0 -68
- data/tmpsets/set/mod004-03_machines/type/css.rb +0 -56
- data/tmpsets/set/mod004-03_machines/type/java_script.rb +0 -44
- data/tmpsets/set/mod004-03_machines/type/scss.rb +0 -29
- data/tmpsets/set/mod004-03_machines/type/skin.rb +0 -19
- data/tmpsets/set/mod005-04_settings/abstract/permission.rb +0 -107
- data/tmpsets/set/mod005-04_settings/right/add_help.rb +0 -18
- data/tmpsets/set/mod005-04_settings/right/comment.rb +0 -10
- data/tmpsets/set/mod005-04_settings/right/create.rb +0 -10
- data/tmpsets/set/mod005-04_settings/right/default.rb +0 -10
- data/tmpsets/set/mod005-04_settings/right/delete.rb +0 -10
- data/tmpsets/set/mod005-04_settings/right/help.rb +0 -10
- data/tmpsets/set/mod005-04_settings/right/read.rb +0 -10
- data/tmpsets/set/mod005-04_settings/right/script.rb +0 -17
- data/tmpsets/set/mod005-04_settings/right/structure.rb +0 -63
- data/tmpsets/set/mod005-04_settings/right/style.rb +0 -17
- data/tmpsets/set/mod005-04_settings/right/update.rb +0 -10
- data/tmpsets/set/mod005-04_settings/self/accountable.rb +0 -10
- data/tmpsets/set/mod005-04_settings/self/add_help.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/autoname.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/captcha.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/create.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/default.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/delete.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/help.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/input.rb +0 -8
- data/tmpsets/set/mod005-04_settings/self/layout.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/on_create.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/on_delete.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/on_update.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/options.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/options_label.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/read.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/recent_settings.rb +0 -10
- data/tmpsets/set/mod005-04_settings/self/script.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/structure.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/style.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/table_of_contents.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/thanks.rb +0 -9
- data/tmpsets/set/mod005-04_settings/self/update.rb +0 -9
- data/tmpsets/set/mod005-04_settings/type/setting.rb +0 -100
- data/tmpsets/set/mod006-05_email/all/email_html.rb +0 -12
- data/tmpsets/set/mod006-05_email/all/email_text.rb +0 -12
- data/tmpsets/set/mod006-05_email/all/follow.rb +0 -260
- data/tmpsets/set/mod006-05_email/all/notify.rb +0 -262
- data/tmpsets/set/mod006-05_email/all/observer.rb +0 -34
- data/tmpsets/set/mod006-05_email/right/bcc.rb +0 -52
- data/tmpsets/set/mod006-05_email/right/cc.rb +0 -10
- data/tmpsets/set/mod006-05_email/right/follow.rb +0 -118
- data/tmpsets/set/mod006-05_email/right/follow_fields.rb +0 -9
- data/tmpsets/set/mod006-05_email/right/followers.rb +0 -39
- data/tmpsets/set/mod006-05_email/right/following.rb +0 -68
- data/tmpsets/set/mod006-05_email/right/from.rb +0 -10
- data/tmpsets/set/mod006-05_email/right/html_message.rb +0 -10
- data/tmpsets/set/mod006-05_email/right/to.rb +0 -10
- data/tmpsets/set/mod006-05_email/self/always.rb +0 -21
- data/tmpsets/set/mod006-05_email/self/created.rb +0 -28
- data/tmpsets/set/mod006-05_email/self/edited.rb +0 -31
- data/tmpsets/set/mod006-05_email/self/follow.rb +0 -9
- data/tmpsets/set/mod006-05_email/self/follow_defaults.rb +0 -76
- data/tmpsets/set/mod006-05_email/self/never.rb +0 -22
- data/tmpsets/set/mod006-05_email/type/email_template.rb +0 -120
- data/tmpsets/set/mod006-05_email/type_plus_right/user/follow.rb +0 -183
- data/tmpsets/set/mod007-05_standard/abstract/attachment.rb +0 -301
- data/tmpsets/set/mod007-05_standard/all/account.rb +0 -72
- data/tmpsets/set/mod007-05_standard/all/comment.rb +0 -68
- data/tmpsets/set/mod007-05_standard/all/error.rb +0 -229
- data/tmpsets/set/mod007-05_standard/all/event_viz.rb +0 -76
- data/tmpsets/set/mod007-05_standard/all/links.rb +0 -164
- data/tmpsets/set/mod007-05_standard/all/rich_html/content.rb +0 -261
- data/tmpsets/set/mod007-05_standard/all/rich_html/editing.rb +0 -251
- data/tmpsets/set/mod007-05_standard/all/rich_html/form.rb +0 -291
- data/tmpsets/set/mod007-05_standard/all/rich_html/header.rb +0 -79
- data/tmpsets/set/mod007-05_standard/all/rich_html/menu.rb +0 -136
- data/tmpsets/set/mod007-05_standard/all/rich_html/modal.rb +0 -56
- data/tmpsets/set/mod007-05_standard/all/rich_html/toolbar.rb +0 -272
- data/tmpsets/set/mod007-05_standard/all/rich_html/wrapper.rb +0 -159
- data/tmpsets/set/mod007-05_standard/right/account.rb +0 -184
- data/tmpsets/set/mod007-05_standard/right/discussion.rb +0 -10
- data/tmpsets/set/mod007-05_standard/right/email.rb +0 -61
- data/tmpsets/set/mod007-05_standard/right/password.rb +0 -53
- data/tmpsets/set/mod007-05_standard/right/salt.rb +0 -12
- data/tmpsets/set/mod007-05_standard/right/stats.rb +0 -42
- data/tmpsets/set/mod007-05_standard/right/status.rb +0 -16
- data/tmpsets/set/mod007-05_standard/right/token.rb +0 -59
- data/tmpsets/set/mod007-05_standard/right/when_created.rb +0 -12
- data/tmpsets/set/mod007-05_standard/right/when_last_edited.rb +0 -12
- data/tmpsets/set/mod007-05_standard/rstar/rules.rb +0 -107
- data/tmpsets/set/mod007-05_standard/self/account_links.rb +0 -56
- data/tmpsets/set/mod007-05_standard/self/alerts.rb +0 -12
- data/tmpsets/set/mod007-05_standard/self/all.rb +0 -35
- data/tmpsets/set/mod007-05_standard/self/foot.rb +0 -15
- data/tmpsets/set/mod007-05_standard/self/head.rb +0 -140
- data/tmpsets/set/mod007-05_standard/self/navbox.rb +0 -40
- data/tmpsets/set/mod007-05_standard/self/now.rb +0 -13
- data/tmpsets/set/mod007-05_standard/self/performance_log.rb +0 -98
- data/tmpsets/set/mod007-05_standard/self/recent.rb +0 -55
- data/tmpsets/set/mod007-05_standard/self/search.rb +0 -73
- data/tmpsets/set/mod007-05_standard/self/signin.rb +0 -140
- data/tmpsets/set/mod007-05_standard/self/stats.rb +0 -110
- data/tmpsets/set/mod007-05_standard/self/version.rb +0 -16
- data/tmpsets/set/mod007-05_standard/type/basic.rb +0 -53
- data/tmpsets/set/mod007-05_standard/type/cardtype.rb +0 -81
- data/tmpsets/set/mod007-05_standard/type/date.rb +0 -15
- data/tmpsets/set/mod007-05_standard/type/file.rb +0 -155
- data/tmpsets/set/mod007-05_standard/type/image.rb +0 -89
- data/tmpsets/set/mod007-05_standard/type/layout_type.rb +0 -22
- data/tmpsets/set/mod007-05_standard/type/number.rb +0 -26
- data/tmpsets/set/mod007-05_standard/type/phrase.rb +0 -10
- data/tmpsets/set/mod007-05_standard/type/search_type.rb +0 -318
- data/tmpsets/set/mod007-05_standard/type/session.rb +0 -43
- data/tmpsets/set/mod007-05_standard/type/set.rb +0 -359
- data/tmpsets/set/mod007-05_standard/type/signup.rb +0 -176
- data/tmpsets/set/mod007-05_standard/type/toggle.rb +0 -19
- data/tmpsets/set/mod007-05_standard/type/uri.rb +0 -18
- data/tmpsets/set/mod007-05_standard/type/user.rb +0 -88
- data/tmpsets/set/mod008-06_bootstrap/all/bootstrap/form.rb +0 -42
- data/tmpsets/set/mod008-06_bootstrap/all/bootstrap/helper.rb +0 -151
- data/tmpsets/set/mod008-06_bootstrap/all/bootstrap/wrapper.rb +0 -19
- data/tmpsets/set/mod008-06_bootstrap/all/rich_bootstrap.rb +0 -15
- data/tmpsets/set/mod008-06_bootstrap/self/bootstrap_cards.rb +0 -16
- data/tmpsets/set/mod008-06_bootstrap/self/bootstrap_js.rb +0 -14
- data/tmpsets/set/mod008-06_bootstrap/self/bootswatch_shared.rb +0 -39
- data/tmpsets/set/mod008-06_bootstrap/self/smartmenu_css.rb +0 -14
- data/tmpsets/set/mod008-06_bootstrap/self/smartmenu_js.rb +0 -13
@@ -1,348 +0,0 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module All; module Name; extend Card::Set
|
3
|
-
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/01_core/set/all/name.rb ~~~~~~~~~~~
|
4
|
-
require 'uuid'
|
5
|
-
|
6
|
-
module ClassMethods
|
7
|
-
def uniquify_name name, rename=:new
|
8
|
-
return name unless Card.exists?(name)
|
9
|
-
uniq_name = "#{name} 1"
|
10
|
-
while Card.exists?(uniq_name)
|
11
|
-
uniq_name.next!
|
12
|
-
end
|
13
|
-
if rename == :old
|
14
|
-
# name conflict resolved; original name can be used
|
15
|
-
Card[name].update_attributes! name: uniq_name,
|
16
|
-
update_referencers: true
|
17
|
-
name
|
18
|
-
else
|
19
|
-
uniq_name
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
def name= newname
|
25
|
-
cardname = newname.to_name
|
26
|
-
if @supercard
|
27
|
-
@supercard.subcards.rename key, cardname.key
|
28
|
-
@contextual_name = cardname.to_s
|
29
|
-
relparts = cardname.parts
|
30
|
-
if relparts.size == 2 &&
|
31
|
-
(relparts.first.blank? || relparts.first.to_name.key == @supercard.key)
|
32
|
-
@superleft = @supercard
|
33
|
-
end
|
34
|
-
cardname = cardname.to_absolute_name @supercard.name
|
35
|
-
end
|
36
|
-
|
37
|
-
newkey = cardname.key
|
38
|
-
if key != newkey
|
39
|
-
self.key = newkey
|
40
|
-
# reset the old name - should be handled in tracked_attributes!!
|
41
|
-
reset_patterns_if_rule
|
42
|
-
reset_patterns
|
43
|
-
end
|
44
|
-
subcards.each do |subcard|
|
45
|
-
subcard.name = subcard.cardname.replace_part name, newname
|
46
|
-
end
|
47
|
-
|
48
|
-
write_attribute :name, cardname.s
|
49
|
-
end
|
50
|
-
|
51
|
-
def cardname
|
52
|
-
name.to_name
|
53
|
-
end
|
54
|
-
|
55
|
-
def autoname name
|
56
|
-
if Card.exists? name
|
57
|
-
autoname name.next
|
58
|
-
else
|
59
|
-
name
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
# FIXME: use delegations and include all cardname functions
|
64
|
-
def simple?
|
65
|
-
cardname.simple?
|
66
|
-
end
|
67
|
-
|
68
|
-
def junction?
|
69
|
-
cardname.junction?
|
70
|
-
end
|
71
|
-
|
72
|
-
def contextual_name
|
73
|
-
@contextual_name || name
|
74
|
-
end
|
75
|
-
|
76
|
-
def relative_name context_name=nil
|
77
|
-
if !context_name && @supercard
|
78
|
-
context_name = @supercard.cardname
|
79
|
-
end
|
80
|
-
cardname.relative_name(context_name)
|
81
|
-
end
|
82
|
-
|
83
|
-
def absolute_name context_name=nil
|
84
|
-
if !context_name && @supercard
|
85
|
-
context_name = @supercard.cardname
|
86
|
-
end
|
87
|
-
cardname.absolute_name(context_name)
|
88
|
-
end
|
89
|
-
|
90
|
-
def left *args
|
91
|
-
return if simple?
|
92
|
-
@superleft || begin
|
93
|
-
unless name_changed? &&
|
94
|
-
name.to_name.trunk_name.key == name_was.to_name.key
|
95
|
-
# prevent recursion when, eg, renaming A+B to A+B+C
|
96
|
-
Card.fetch cardname.left, *args
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
|
-
def right *args
|
102
|
-
Card.fetch(cardname.right, *args) if !simple?
|
103
|
-
end
|
104
|
-
|
105
|
-
def [] *args
|
106
|
-
case args[0]
|
107
|
-
when Fixnum, Range
|
108
|
-
fetch_name = Array.wrap(cardname.parts[args[0]]).compact.join '+'
|
109
|
-
Card.fetch(fetch_name, args[1] || {}) if !simple?
|
110
|
-
else
|
111
|
-
super
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
|
-
def trunk *args
|
116
|
-
simple? ? self : left(*args)
|
117
|
-
end
|
118
|
-
|
119
|
-
def tag *args
|
120
|
-
simple? ? self : Card.fetch(cardname.right, *args)
|
121
|
-
end
|
122
|
-
|
123
|
-
def left_or_new args={}
|
124
|
-
left(args) || Card.new(args.merge(name: cardname.left))
|
125
|
-
end
|
126
|
-
|
127
|
-
def fields
|
128
|
-
field_names.map { |name| Card[name] }
|
129
|
-
end
|
130
|
-
|
131
|
-
def field_names parent_name=nil
|
132
|
-
child_names parent_name, :left
|
133
|
-
end
|
134
|
-
|
135
|
-
def children
|
136
|
-
child_names.map { |name| Card[name] }
|
137
|
-
end
|
138
|
-
|
139
|
-
def child_names parent_name=nil, side=nil
|
140
|
-
# eg, A+B is a child of A and B
|
141
|
-
parent_name ||= name
|
142
|
-
side ||= parent_name.to_name.simple? ? :part : :left
|
143
|
-
Card.search({ side => parent_name, return: :name },
|
144
|
-
"(#{side}) children of #{parent_name}")
|
145
|
-
end
|
146
|
-
|
147
|
-
def descendant_names parent_name=nil
|
148
|
-
return [] if new_card?
|
149
|
-
parent_name ||= name
|
150
|
-
Auth.as_bot do
|
151
|
-
deps = child_names parent_name
|
152
|
-
deps.inject(deps) do |array, childname|
|
153
|
-
array + descendant_names(childname)
|
154
|
-
end
|
155
|
-
end
|
156
|
-
end
|
157
|
-
|
158
|
-
def descendants
|
159
|
-
# children and children's children
|
160
|
-
# NOTE - set modules are not loaded
|
161
|
-
# -- should only be used for name manipulations
|
162
|
-
@descendants ||= descendant_names.map { |name| Card.quick_fetch name }
|
163
|
-
end
|
164
|
-
|
165
|
-
def repair_key
|
166
|
-
Auth.as_bot do
|
167
|
-
correct_key = cardname.key
|
168
|
-
current_key = key
|
169
|
-
return self if current_key == correct_key
|
170
|
-
|
171
|
-
if (key_blocker = Card.find_by_key_and_trash(correct_key, true))
|
172
|
-
key_blocker.cardname = key_blocker.cardname + "*trash#{rand(4)}"
|
173
|
-
key_blocker.save
|
174
|
-
end
|
175
|
-
|
176
|
-
saved = (self.key = correct_key) && self.save!
|
177
|
-
saved ||= (self.cardname = current_key) && self.save!
|
178
|
-
|
179
|
-
if saved
|
180
|
-
descendants.each(&:repair_key)
|
181
|
-
else
|
182
|
-
Rails.logger.debug "FAILED TO REPAIR BROKEN KEY: #{key}"
|
183
|
-
self.name = "BROKEN KEY: #{name}"
|
184
|
-
end
|
185
|
-
self
|
186
|
-
end
|
187
|
-
rescue
|
188
|
-
Rails.logger.info "BROKE ATTEMPTING TO REPAIR BROKEN KEY: #{key}"
|
189
|
-
self
|
190
|
-
end
|
191
|
-
|
192
|
-
event :permit_codename, before: :approve, on: :update, changed: :codename do
|
193
|
-
errors.add :codename, 'only admins can set codename' unless Auth.always_ok?
|
194
|
-
end
|
195
|
-
|
196
|
-
event :validate_unique_codename, after: :permit_codename do
|
197
|
-
if codename.present? && errors.empty? &&
|
198
|
-
Card.find_by_codename(codename).present?
|
199
|
-
errors.add :codename, "codename #{codename} already in use"
|
200
|
-
end
|
201
|
-
end
|
202
|
-
|
203
|
-
event :validate_name, before: :approve, on: :save do
|
204
|
-
cdname = name.to_name
|
205
|
-
if name.length > 255
|
206
|
-
errors.add :name, 'is too long (255 character maximum)'
|
207
|
-
elsif cdname.blank?
|
208
|
-
errors.add :name, "can't be blank"
|
209
|
-
elsif name_changed?
|
210
|
-
# Rails.logger.debug "valid name #{card.name.inspect} New #{name.inspect}"
|
211
|
-
|
212
|
-
unless cdname.valid?
|
213
|
-
errors.add :name, 'may not contain any of the following characters: ' \
|
214
|
-
"#{ Card::Name.banned_array * ' ' }"
|
215
|
-
end
|
216
|
-
# this is to protect against using a plus card as a tag
|
217
|
-
if cdname.junction? && simple? && id &&
|
218
|
-
Auth.as_bot { Card.count_by_wql right_id: id } > 0
|
219
|
-
errors.add :name, "#{name} in use as a tag"
|
220
|
-
end
|
221
|
-
|
222
|
-
# validate uniqueness of name
|
223
|
-
condition_sql = 'cards.key = ? and trash=?'
|
224
|
-
condition_params = [cdname.key, false]
|
225
|
-
unless new_record?
|
226
|
-
condition_sql << ' AND cards.id <> ?'
|
227
|
-
condition_params << id
|
228
|
-
end
|
229
|
-
if (c = Card.find_by(condition_sql, *condition_params))
|
230
|
-
errors.add :name, "must be unique; '#{c.name}' already exists."
|
231
|
-
end
|
232
|
-
end
|
233
|
-
end
|
234
|
-
|
235
|
-
event :set_autoname, before: :validate_name, on: :create do
|
236
|
-
if name.blank? && (autoname_card = rule_card(:autoname))
|
237
|
-
self.name = autoname autoname_card.content
|
238
|
-
# FIXME: should give placeholder in approve phase
|
239
|
-
# and finalize/commit change in store phase
|
240
|
-
autoname_card.refresh.update_column :db_content, name
|
241
|
-
end
|
242
|
-
end
|
243
|
-
|
244
|
-
event :validate_key, after: :validate_name, on: :save do
|
245
|
-
if key.empty?
|
246
|
-
errors.add :key, 'cannot be blank' if errors.empty?
|
247
|
-
elsif key != cardname.key
|
248
|
-
errors.add :key, "wrong key '#{key}' for name #{name}"
|
249
|
-
end
|
250
|
-
end
|
251
|
-
|
252
|
-
event :set_name, before: :store, changed: :name do
|
253
|
-
Card.expire name
|
254
|
-
Card.expire name_was
|
255
|
-
if cardname.junction?
|
256
|
-
[:left, :right].each do |side|
|
257
|
-
sidename = cardname.send "#{side}_name"
|
258
|
-
# warn "sidename #{name} / #{name_was} / #{cardname},
|
259
|
-
# #{side}: #{sidename}"
|
260
|
-
sidecard = Card[sidename]
|
261
|
-
|
262
|
-
# eg, renaming A to A+B
|
263
|
-
old_name_in_way = (sidecard && sidecard.id == id)
|
264
|
-
suspend_name(sidename) if old_name_in_way
|
265
|
-
send "#{side}_id=", begin
|
266
|
-
if !sidecard || old_name_in_way
|
267
|
-
Card.create! name: sidename, supercard: self
|
268
|
-
else
|
269
|
-
sidecard
|
270
|
-
end.id
|
271
|
-
end
|
272
|
-
end
|
273
|
-
else
|
274
|
-
self.left_id = self.right_id = nil
|
275
|
-
end
|
276
|
-
end
|
277
|
-
|
278
|
-
event :rename, after: :set_name, on: :update do
|
279
|
-
if (existing_card = Card.find_by_key_and_trash(cardname.key, true)) &&
|
280
|
-
existing_card != self
|
281
|
-
existing_card.name = existing_card.name + '*trash'
|
282
|
-
existing_card.rename_without_callbacks
|
283
|
-
existing_card.save!
|
284
|
-
end
|
285
|
-
end
|
286
|
-
|
287
|
-
def suspend_name name
|
288
|
-
# move the current card out of the way, in case the new name will require
|
289
|
-
# re-creating a card with the current name, ie. A -> A+B
|
290
|
-
Card.expire name
|
291
|
-
tmp_name = 'tmp:' + UUID.new.generate
|
292
|
-
Card.where(id: id).update_all(name: tmp_name, key: tmp_name)
|
293
|
-
end
|
294
|
-
|
295
|
-
event :cascade_name_changes, after: :store, on: :update, changed: :name do
|
296
|
-
# Rails.logger.info "------------------- #{name_was} CASCADE #{self.name} " \
|
297
|
-
# " -------------------------------------"
|
298
|
-
# handle strings from cgi
|
299
|
-
self.update_referencers = false if update_referencers == 'false'
|
300
|
-
Card::Reference.update_on_rename self, name, self.update_referencers
|
301
|
-
|
302
|
-
des = descendants
|
303
|
-
@descendants = nil # reset
|
304
|
-
|
305
|
-
des.each do |de|
|
306
|
-
# here we specifically want NOT to invoke recursive cascades on these
|
307
|
-
# cards, have to go this low level to avoid callbacks.
|
308
|
-
Rails.logger.info "cascading name: #{de.name}"
|
309
|
-
Card.expire de.name # old name
|
310
|
-
newname = de.cardname.replace_part name_was, name
|
311
|
-
Card.where(id: de.id).update_all name: newname.to_s, key: newname.key
|
312
|
-
Card::Reference.update_on_rename de, newname, update_referencers
|
313
|
-
Card.expire newname
|
314
|
-
end
|
315
|
-
execute_referencers_update(des) if update_referencers
|
316
|
-
end
|
317
|
-
|
318
|
-
def execute_referencers_update descendants
|
319
|
-
Auth.as_bot do
|
320
|
-
[name_referencers(name_was) + descendants.map(&:referencers)]
|
321
|
-
.flatten.uniq.each do |card|
|
322
|
-
# FIXME: using 'name_referencers' instead of plain 'referencers' for self
|
323
|
-
# because there are cases where trunk and tag
|
324
|
-
# have already been saved via association by this point and therefore
|
325
|
-
# referencers misses things
|
326
|
-
# eg. X includes Y, and Y is renamed to X+Z. When X+Z is saved, X is
|
327
|
-
# first updated as a trunk before X+Z gets to this point.
|
328
|
-
# so at this time X is still including Y, which does not exist.
|
329
|
-
# therefore #referencers doesn't find it, but name_referencers(old_name)
|
330
|
-
# does.
|
331
|
-
# some even more complicated scenario probably breaks on the descendants,
|
332
|
-
# so this probably needs a more thoughtful refactor
|
333
|
-
# aligning the dependent saving with the name cascading
|
334
|
-
|
335
|
-
Rails.logger.debug "------------------ UPDATE REFERER #{card.name} " \
|
336
|
-
'------------------------'
|
337
|
-
unless card == self || card.structure
|
338
|
-
card = card.refresh
|
339
|
-
card.db_content = card.replace_references name_was, name
|
340
|
-
card.save!
|
341
|
-
end
|
342
|
-
end
|
343
|
-
end
|
344
|
-
end
|
345
|
-
|
346
|
-
|
347
|
-
# ~~~~~~~~~~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/01_core/set/all/name.rb ~~~~~~~~~~~
|
348
|
-
end;end;end;end;
|
@@ -1,64 +0,0 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module All; module Pattern; extend Card::Set
|
3
|
-
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/01_core/set/all/pattern.rb ~~~~~~~~~~~
|
4
|
-
|
5
|
-
def patterns
|
6
|
-
@patterns ||= set_patterns.map { |sub| sub.new(self) }.compact
|
7
|
-
end
|
8
|
-
|
9
|
-
def patterns_with_new
|
10
|
-
new_card? ? patterns_without_new[1..-1] : patterns_without_new
|
11
|
-
end
|
12
|
-
alias_method_chain :patterns, :new
|
13
|
-
|
14
|
-
def reset_patterns
|
15
|
-
@set_mods_loaded = @patterns = @set_modules = @junction_only = @set_names = @template = @rule_set_keys = @virtual = nil
|
16
|
-
true
|
17
|
-
end
|
18
|
-
|
19
|
-
def reset_patterns_if_rule saving=false
|
20
|
-
if !new_card? && is_rule?
|
21
|
-
set = left
|
22
|
-
set.reset_patterns
|
23
|
-
set.include_set_modules
|
24
|
-
|
25
|
-
# FIXME: should be in right/read.rb
|
26
|
-
if saving && right.id == Card::ReadID
|
27
|
-
self.add_to_read_rule_update_queue(set.item_cards limit: 0)
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
def safe_set_keys
|
33
|
-
patterns.map(&:safe_key).reverse * " "
|
34
|
-
end
|
35
|
-
|
36
|
-
def set_modules
|
37
|
-
@set_modules ||=
|
38
|
-
patterns_without_new[0..-2].reverse.map(&:module_list).flatten.compact
|
39
|
-
end
|
40
|
-
|
41
|
-
def set_format_modules klass
|
42
|
-
@set_format_modules ||= {}
|
43
|
-
@set_format_modules[klass] =
|
44
|
-
patterns_without_new[0..-2].reverse.map do |pattern|
|
45
|
-
pattern.format_module_list klass
|
46
|
-
end.flatten.compact
|
47
|
-
end
|
48
|
-
|
49
|
-
def set_names
|
50
|
-
if @set_names.nil?
|
51
|
-
@set_names = patterns.map &:to_s
|
52
|
-
Card.set_members @set_names, key
|
53
|
-
end
|
54
|
-
@set_names
|
55
|
-
end
|
56
|
-
|
57
|
-
def rule_set_keys
|
58
|
-
set_names # this triggers set_members cache. need better solution!
|
59
|
-
@rule_set_keys ||= patterns.map(&:rule_set_key).compact
|
60
|
-
end
|
61
|
-
|
62
|
-
|
63
|
-
# ~~~~~~~~~~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/01_core/set/all/pattern.rb ~~~~~~~~~~~
|
64
|
-
end;end;end;end;
|
@@ -1,298 +0,0 @@
|
|
1
|
-
# -*- encoding : utf-8 -*-
|
2
|
-
class Card; module Set; module All; module Permissions; extend Card::Set
|
3
|
-
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/01_core/set/all/permissions.rb ~~~~~~~~~~~
|
4
|
-
|
5
|
-
Card.error_codes.merge! permission_denied: [:denial, 403],
|
6
|
-
captcha: [:errors, 449]
|
7
|
-
|
8
|
-
# ok? and ok! are public facing methods to approve one action at a time
|
9
|
-
#
|
10
|
-
# fetching: if the optional :trait parameter is supplied, it is passed
|
11
|
-
# to fetch and the test is perfomed on the fetched card, therefore:
|
12
|
-
#
|
13
|
-
# trait: :account would fetch this card plus a tag codenamed :account
|
14
|
-
# trait: :roles, new: {} would initialize a new card with default ({})
|
15
|
-
# options.
|
16
|
-
|
17
|
-
def ok? action
|
18
|
-
@action_ok = true
|
19
|
-
send "ok_to_#{action}"
|
20
|
-
@action_ok
|
21
|
-
end
|
22
|
-
|
23
|
-
def ok_with_fetch? action, opts={}
|
24
|
-
card = opts[:trait].nil? ? self : fetch(opts)
|
25
|
-
card && card.ok_without_fetch?(action)
|
26
|
-
end
|
27
|
-
|
28
|
-
# note: method is chained so that we can return the instance variable @action_ok
|
29
|
-
alias_method_chain :ok?, :fetch
|
30
|
-
|
31
|
-
def ok! action, opts={}
|
32
|
-
raise Card::PermissionDenied.new self unless ok? action, opts
|
33
|
-
end
|
34
|
-
|
35
|
-
def who_can action
|
36
|
-
# warn "who_can[#{name}] #{(prc=permission_rule_card(action)).inspect},
|
37
|
-
# #{prc.first.item_cards.map(&:id)}" if action == :update
|
38
|
-
permission_rule_card(action).item_cards.map &:id
|
39
|
-
end
|
40
|
-
|
41
|
-
def permission_rule_id_and_class action
|
42
|
-
direct_rule_id = rule_card_id action
|
43
|
-
require_permission_rule! direct_rule_id, action
|
44
|
-
direct_rule = Card.fetch direct_rule_id, skip_modules: true
|
45
|
-
[applicable_permission_rule_id(direct_rule, action),
|
46
|
-
direct_rule.rule_class_name]
|
47
|
-
end
|
48
|
-
|
49
|
-
def applicable_permission_rule_id direct_rule, action
|
50
|
-
if junction? && direct_rule.db_content =~ /^\[?\[?_left\]?\]?$/
|
51
|
-
lcard = left_or_new(skip_virtual: true, skip_modules: true)
|
52
|
-
if action == :create && lcard.real? && !lcard.action == :create
|
53
|
-
action = :update
|
54
|
-
end
|
55
|
-
lcard.permission_rule_id_and_class(action).first
|
56
|
-
else
|
57
|
-
direct_rule.id
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
def permission_rule_card action
|
62
|
-
Card.fetch permission_rule_id_and_class(action).first
|
63
|
-
end
|
64
|
-
|
65
|
-
def require_permission_rule! rule_id, action
|
66
|
-
return if rule_id
|
67
|
-
# RULE missing. should not be possible.
|
68
|
-
# generalize this to handling of all required rules
|
69
|
-
errors.add :permission_denied, "No #{action} rule for #{name}"
|
70
|
-
raise Card::PermissionDenied.new(self)
|
71
|
-
end
|
72
|
-
|
73
|
-
def rule_class_name
|
74
|
-
trunk.type_id == Card::SetID ? cardname.trunk_name.tag : nil
|
75
|
-
end
|
76
|
-
|
77
|
-
def you_cant what
|
78
|
-
"You don't have permission to #{what}"
|
79
|
-
end
|
80
|
-
|
81
|
-
def deny_because why
|
82
|
-
@permission_errors << why if @permission_errors
|
83
|
-
@action_ok = false
|
84
|
-
end
|
85
|
-
|
86
|
-
def permitted? action
|
87
|
-
return if Card.config.read_only
|
88
|
-
return true if action != :comment and Auth.always_ok?
|
89
|
-
|
90
|
-
permitted_ids = who_can action
|
91
|
-
if action == :comment && Auth.always_ok?
|
92
|
-
# admin can comment if anyone can
|
93
|
-
!permitted_ids.empty?
|
94
|
-
else
|
95
|
-
Auth.among? permitted_ids
|
96
|
-
end
|
97
|
-
end
|
98
|
-
|
99
|
-
def permit action, verb=nil
|
100
|
-
if Card.config.read_only # not called by ok_to_read
|
101
|
-
deny_because 'Currently in read-only mode'
|
102
|
-
end
|
103
|
-
|
104
|
-
return if permitted? action
|
105
|
-
verb ||= action.to_s
|
106
|
-
deny_because you_cant("#{verb} #{name.present? ? name : 'this'}")
|
107
|
-
end
|
108
|
-
|
109
|
-
def ok_to_create
|
110
|
-
permit :create
|
111
|
-
return if !@action_ok || !junction?
|
112
|
-
|
113
|
-
[:left, :right].each do |side|
|
114
|
-
# left is supercard; create permissions will get checked there.
|
115
|
-
next if side == :left && @superleft
|
116
|
-
part_card = send side, new: {}
|
117
|
-
if part_card && part_card.new_card? # if no card, there must be other errors
|
118
|
-
unless part_card.ok? :create
|
119
|
-
deny_because you_cant("create #{part_card.name}")
|
120
|
-
end
|
121
|
-
end
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
|
-
def ok_to_read
|
126
|
-
return if Auth.always_ok?
|
127
|
-
@read_rule_id ||= permission_rule_id_and_class(:read).first
|
128
|
-
return if Auth.as_card.read_rules.member? @read_rule_id
|
129
|
-
deny_because you_cant 'read this'
|
130
|
-
end
|
131
|
-
|
132
|
-
def ok_to_update
|
133
|
-
permit :update
|
134
|
-
if @action_ok && type_id_changed? && !permitted?(:create)
|
135
|
-
deny_because you_cant('change to this type (need create permission)')
|
136
|
-
end
|
137
|
-
ok_to_read if @action_ok
|
138
|
-
end
|
139
|
-
|
140
|
-
def ok_to_delete
|
141
|
-
permit :delete
|
142
|
-
end
|
143
|
-
|
144
|
-
def ok_to_comment
|
145
|
-
permit :comment, 'comment on'
|
146
|
-
return unless @action_ok
|
147
|
-
deny_because 'No comments allowed on templates' if is_template?
|
148
|
-
deny_because 'No comments allowed on structured content' if structure
|
149
|
-
end
|
150
|
-
|
151
|
-
event :clear_read_rule, before: :store, on: :delete do
|
152
|
-
self.read_rule_id = self.read_rule_class = nil
|
153
|
-
end
|
154
|
-
|
155
|
-
event :set_read_rule, before: :store, on: :save do
|
156
|
-
# avoid doing this on simple content saves?
|
157
|
-
read_rule_id, read_rule_class = permission_rule_id_and_class(:read)
|
158
|
-
self.read_rule_id = read_rule_id
|
159
|
-
self.read_rule_class = read_rule_class
|
160
|
-
end
|
161
|
-
|
162
|
-
event :set_field_read_rules,
|
163
|
-
after: :set_read_rule, on: :update, changed: :type_id do
|
164
|
-
# find all cards with me as trunk and update their read_rule
|
165
|
-
# (because of *type plus right)
|
166
|
-
# skip if name is updated because will already be resaved
|
167
|
-
|
168
|
-
Auth.as_bot do
|
169
|
-
fields.each do |field|
|
170
|
-
field.refresh.update_read_rule
|
171
|
-
end
|
172
|
-
end
|
173
|
-
end
|
174
|
-
|
175
|
-
def update_read_rule
|
176
|
-
Card.record_timestamps = false
|
177
|
-
reset_patterns # why is this needed?
|
178
|
-
rcard, rclass = permission_rule_card :read
|
179
|
-
# these two are just to make sure vals are correct on current object
|
180
|
-
self.read_rule_id = rcard.id
|
181
|
-
self.read_rule_class = rclass
|
182
|
-
Card.where(id: id).update_all read_rule_id: rcard.id, read_rule_class: rclass
|
183
|
-
expire_hard
|
184
|
-
|
185
|
-
# currently doing a brute force search for every card that may be impacted.
|
186
|
-
# may want to optimize(?)
|
187
|
-
Auth.as_bot do
|
188
|
-
fields.each do |field|
|
189
|
-
if field.rule(:read) == '_left'
|
190
|
-
field.update_read_rule
|
191
|
-
end
|
192
|
-
end
|
193
|
-
end
|
194
|
-
|
195
|
-
ensure
|
196
|
-
Card.record_timestamps = true
|
197
|
-
end
|
198
|
-
|
199
|
-
|
200
|
-
def add_to_read_rule_update_queue updates
|
201
|
-
@read_rule_update_queue = Array.wrap(@read_rule_update_queue).concat updates
|
202
|
-
end
|
203
|
-
|
204
|
-
event :check_permissions, after: :approve do
|
205
|
-
task =
|
206
|
-
if @action != :delete && comment # will be obviated by new comment handling
|
207
|
-
:comment
|
208
|
-
else
|
209
|
-
@action
|
210
|
-
end
|
211
|
-
track_permission_errors do
|
212
|
-
ok? task
|
213
|
-
end
|
214
|
-
end
|
215
|
-
|
216
|
-
def track_permission_errors
|
217
|
-
@permission_errors = []
|
218
|
-
result = yield
|
219
|
-
|
220
|
-
@permission_errors.each do |message|
|
221
|
-
errors.add :permission_denied, message
|
222
|
-
end
|
223
|
-
@permission_errors = nil
|
224
|
-
|
225
|
-
result
|
226
|
-
end
|
227
|
-
|
228
|
-
def recaptcha_on?
|
229
|
-
have_recaptcha_keys? &&
|
230
|
-
Env[:controller] &&
|
231
|
-
!Auth.signed_in? &&
|
232
|
-
!Auth.needs_setup? &&
|
233
|
-
!Auth.always_ok? &&
|
234
|
-
Card.toggle(rule :captcha)
|
235
|
-
end
|
236
|
-
|
237
|
-
def have_recaptcha_keys?
|
238
|
-
@@have_recaptcha_keys =
|
239
|
-
if defined?(@@have_recaptcha_keys)
|
240
|
-
@@have_recaptcha_keys
|
241
|
-
else
|
242
|
-
!!(Card.config.recaptcha_public_key && Card.config.recaptcha_private_key)
|
243
|
-
end
|
244
|
-
end
|
245
|
-
|
246
|
-
event :recaptcha, before: :approve do
|
247
|
-
if !@supercard && !Env[:recaptcha_used] && recaptcha_on?
|
248
|
-
Env[:recaptcha_used] = true
|
249
|
-
Env[:controller].verify_recaptcha model: self, attribute: :captcha
|
250
|
-
end
|
251
|
-
end
|
252
|
-
|
253
|
-
module Accounts
|
254
|
-
# This is a short-term hack that is used in account-related cards to allow a
|
255
|
-
# permissions pattern where permissions are restricted to the owner of the
|
256
|
-
# account (and, by default, Admin)
|
257
|
-
# That pattern should be permitted by our card representation
|
258
|
-
# (without creating separate rules for each account holder) but is not yet.
|
259
|
-
|
260
|
-
def permit action, verb=nil
|
261
|
-
case
|
262
|
-
when action == :comment then @action_ok = false
|
263
|
-
when action == :create then @superleft ? true : super(action, verb)
|
264
|
-
# restricts account creation to subcard handling on permitted card
|
265
|
-
# (unless explicitly permitted)
|
266
|
-
when own_account? then true
|
267
|
-
else
|
268
|
-
super action, verb
|
269
|
-
end
|
270
|
-
end
|
271
|
-
end
|
272
|
-
|
273
|
-
module Follow
|
274
|
-
def ok_to_update
|
275
|
-
permit :update
|
276
|
-
end
|
277
|
-
|
278
|
-
def ok_to_create
|
279
|
-
permit :create
|
280
|
-
end
|
281
|
-
|
282
|
-
def ok_to_delete
|
283
|
-
permit :delete
|
284
|
-
end
|
285
|
-
|
286
|
-
def permit action, verb=nil
|
287
|
-
if [:create, :delete, :update].include?(action) && Auth.signed_in? &&
|
288
|
-
(user = rule_user) && Auth.current_id == user.id
|
289
|
-
return true
|
290
|
-
else
|
291
|
-
super action, verb
|
292
|
-
end
|
293
|
-
end
|
294
|
-
end
|
295
|
-
|
296
|
-
|
297
|
-
# ~~~~~~~~~~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/01_core/set/all/permissions.rb ~~~~~~~~~~~
|
298
|
-
end;end;end;end;
|