card 1.16.6 → 1.16.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardoc/checksums +234 -49
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/VERSION +1 -1
- data/config/initializers/mime_types.rb +3 -3
- data/config/initializers/notification.rb +1 -1
- data/db/migrate/20121118115000_update_link_type.rb +8 -8
- data/db/migrate/20130411210957_update_codenames.rb +2 -2
- data/db/migrate/20140822073704_create_new_revision_tables.rb +12 -13
- data/db/migrate/20141001105348_move_revisions_to_actions.rb +16 -16
- data/db/migrate/20141121172918_rename_card_migration_table.rb +4 -4
- data/db/migrate_core_cards/20130419215612_import_help_text.rb +3 -3
- data/db/migrate_core_cards/20130823192433_add_style_cards.rb +45 -47
- data/db/migrate_core_cards/20130910183318_move_styles_to_content.rb +1 -1
- data/db/migrate_core_cards/20130920214038_jsonize_tinymce.rb +3 -3
- data/db/migrate_core_cards/20130920291703_update_stylesheets.rb +3 -3
- data/db/migrate_core_cards/20130927191728_account_events.rb +6 -6
- data/db/migrate_core_cards/20131016172445_common_css_patch.rb +1 -1
- data/db/migrate_core_cards/20140110193325_reset_account_request_type.rb +1 -1
- data/db/migrate_core_cards/20140307231621_user_data_to_cards.rb +19 -19
- data/db/migrate_core_cards/20140317035504_account_requests_to_signups.rb +11 -12
- data/db/migrate_core_cards/20140512155840_add_script_cards.rb +35 -36
- data/db/migrate_core_cards/20140629222005_add_email_cards.rb +55 -55
- data/db/migrate_core_cards/20140725180118_config_card_updates.rb +1 -1
- data/db/migrate_core_cards/20141111083921_delete_machine_output.rb +2 -2
- data/db/migrate_core_cards/20141115034214_config_descriptions_etc.rb +3 -3
- data/db/migrate_core_cards/20141120120605_fix_notification_html_message.rb +2 -2
- data/db/migrate_core_cards/20141204061304_watchers_to_following.rb +8 -8
- data/db/migrate_core_cards/20141208162106_add_ace_script.rb +2 -2
- data/db/migrate_core_cards/20141216155251_add_more_following_cards.rb +16 -16
- data/db/migrate_core_cards/20141230204340_uri_codename.rb +1 -1
- data/db/migrate_core_cards/20150202143810_import_bootstrap_layout.rb +19 -19
- data/db/migrate_core_cards/20150220134731_following_to_follow_rule.rb +3 -3
- data/db/migrate_core_cards/20150317162412_bootstrap_themes.rb +15 -15
- data/db/migrate_core_cards/20150326205655_bootswatch_themes.rb +11 -11
- data/db/migrate_core_cards/20150331135745_new_card_menu.rb +1 -1
- data/db/migrate_core_cards/20150429090551_search_card_context.rb +1 -1
- data/db/migrate_core_cards/20150508212032_menu_compatibility.rb +3 -3
- data/db/migrate_core_cards/20150510031118_fix_skin_images.rb +1 -1
- data/db/migrate_core_cards/20150528084659_add_session_cardtype.rb +4 -4
- data/db/migrate_core_cards/20150601133433_add_recent_setting_session_card.rb +5 -5
- data/db/migrate_core_cards/20150605115802_add_performance_log_card.rb +1 -1
- data/db/migrate_core_cards/20150610171702_add_debugger_session_card.rb +2 -2
- data/db/migrate_core_cards/20150611203506_rails_inflection_updates.rb +5 -5
- 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/20150724123438_update_file_and_image_cards.rb +5 -5
- 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 +2 -2
- data/db/migrate_core_cards/20150910085603_remove_performance_log_card.rb +1 -1
- data/lib/card.rb +4 -4
- data/lib/card/active_record_ext.rb +8 -8
- data/lib/card/auth.rb +6 -6
- data/lib/card/cache.rb +1 -1
- data/lib/card/chunk.rb +1 -1
- data/lib/card/content.rb +1 -1
- data/lib/card/diff.rb +10 -10
- data/lib/card/env.rb +1 -1
- data/lib/card/format.rb +12 -12
- data/lib/card/loader.rb +1 -1
- data/lib/card/migration.rb +1 -1
- data/lib/card/name.rb +4 -4
- data/lib/card/query.rb +255 -61
- data/lib/card/query/attributes.rb +310 -0
- data/lib/card/query/clause.rb +12 -15
- data/lib/card/query/join.rb +73 -0
- data/lib/card/query/reference.rb +51 -0
- data/lib/card/query/sql_statement.rb +228 -0
- data/lib/card/query/value.rb +66 -0
- data/lib/card/reference.rb +6 -6
- data/lib/card/set.rb +12 -12
- data/lib/card/set_pattern.rb +9 -9
- data/lib/card/spec_helper.rb +5 -5
- data/lib/card/success.rb +1 -1
- data/lib/cardio.rb +7 -7
- data/lib/generators/card/format/format_generator.rb +3 -3
- data/lib/generators/card/migration/migration_generator.rb +5 -5
- data/lib/generators/card/set/set_generator.rb +4 -4
- data/mod/01_core/chunk/include.rb +4 -4
- data/mod/01_core/chunk/link.rb +5 -5
- data/mod/01_core/chunk/literal.rb +2 -2
- data/mod/01_core/chunk/query_reference.rb +8 -8
- data/mod/01_core/chunk/uri.rb +18 -18
- data/mod/01_core/format/html_format.rb +4 -4
- data/mod/01_core/set/all/active_card.rb +2 -2
- data/mod/01_core/set/all/collection.rb +21 -26
- data/mod/01_core/set/all/content.rb +2 -2
- data/mod/01_core/set/all/fetch.rb +6 -6
- data/mod/01_core/set/all/initialize.rb +4 -4
- data/mod/01_core/set/all/location_history.rb +2 -2
- data/mod/01_core/set/all/name.rb +14 -14
- data/mod/01_core/set/all/pattern.rb +1 -1
- data/mod/01_core/set/all/permissions.rb +12 -12
- data/mod/01_core/set/all/phases.rb +29 -12
- data/mod/01_core/set/all/references.rb +14 -14
- data/mod/01_core/set/all/rules.rb +8 -8
- data/mod/01_core/set/all/templating.rb +10 -9
- data/mod/01_core/set/all/tracked_attributes.rb +7 -7
- data/mod/01_core/set/all/trash.rb +6 -6
- data/mod/01_core/set/all/type.rb +7 -7
- data/mod/01_core/set/all/utils.rb +4 -4
- data/mod/01_core/set/all/view_cache.rb +1 -1
- data/mod/01_core/set_pattern/02_all_plus.rb +2 -2
- data/mod/01_core/set_pattern/03_type.rb +1 -1
- data/mod/01_core/set_pattern/04_star.rb +1 -1
- data/mod/01_core/set_pattern/05_rstar.rb +2 -2
- data/mod/01_core/set_pattern/06_right.rb +4 -4
- data/mod/01_core/set_pattern/07_type_plus_right.rb +4 -4
- data/mod/01_core/set_pattern/08_self.rb +1 -1
- data/mod/01_core/spec/chunk/uri_spec.rb +73 -73
- data/mod/01_core/spec/format/html_format_spec.rb +5 -5
- data/mod/01_core/spec/set/all/attribute_tracking_spec.rb +1 -1
- data/mod/01_core/spec/set/all/collection_spec.rb +22 -22
- data/mod/01_core/spec/set/all/content_spec.rb +1 -1
- data/mod/01_core/spec/set/all/fetch_spec.rb +24 -24
- data/mod/01_core/spec/set/all/initialize_spec.rb +9 -9
- data/mod/01_core/spec/set/all/name_spec.rb +8 -8
- data/mod/01_core/spec/set/all/pattern_spec.rb +10 -10
- data/mod/01_core/spec/set/all/permissions_spec.rb +45 -45
- data/mod/01_core/spec/set/all/references_spec.rb +1 -1
- data/mod/01_core/spec/set/all/rules2_spec.rb +15 -15
- data/mod/01_core/spec/set/all/rules_spec.rb +37 -37
- data/mod/01_core/spec/set/all/templating_spec.rb +21 -21
- data/mod/01_core/spec/set/all/tracked_attributes_spec.rb +55 -55
- data/mod/01_core/spec/set/all/trash_spec.rb +4 -4
- data/mod/01_core/spec/set/all/type_spec.rb +15 -15
- data/mod/01_history/lib/card/act.rb +2 -2
- data/mod/01_history/lib/card/action.rb +22 -22
- data/mod/01_history/lib/card/change.rb +1 -1
- data/mod/01_history/set/all/actions.rb +2 -2
- data/mod/01_history/set/all/content_history.rb +4 -4
- data/mod/01_history/set/all/history.rb +46 -46
- data/mod/02_basic_types/set/all/all_css.rb +10 -10
- data/mod/02_basic_types/set/all/all_csv.rb +7 -7
- data/mod/02_basic_types/set/all/base.rb +25 -25
- data/mod/02_basic_types/set/all/json.rb +16 -16
- data/mod/02_basic_types/set/all/rss.rb +7 -7
- data/mod/02_basic_types/set/type/html.rb +2 -2
- data/mod/02_basic_types/set/type/plain_text.rb +1 -1
- data/mod/02_basic_types/set/type/pointer.rb +39 -31
- data/mod/02_basic_types/spec/set/all/all_css_spec.rb +1 -1
- data/mod/02_basic_types/spec/set/all/all_csv_spec.rb +1 -1
- data/mod/02_basic_types/spec/set/all/base_spec.rb +18 -18
- data/mod/02_basic_types/spec/set/all/json_spec.rb +4 -4
- data/mod/02_basic_types/spec/set/all/rss_spec.rb +8 -2
- data/mod/02_basic_types/spec/set/type/plain_text_spec.rb +1 -1
- data/mod/02_basic_types/spec/set/type/pointer_spec.rb +54 -44
- data/mod/03_machines/lib/card/machine.rb +46 -29
- data/mod/03_machines/lib/card/machine_input.rb +34 -10
- data/mod/03_machines/set/type/coffee_script.rb +3 -3
- data/mod/03_machines/set/type/css.rb +8 -8
- data/mod/03_machines/set/type/java_script.rb +4 -4
- data/mod/03_machines/set/type/scss.rb +2 -2
- data/mod/03_machines/set/type/skin.rb +1 -1
- data/mod/03_machines/spec/lib/shared_machine_examples.rb +27 -27
- data/mod/03_machines/spec/lib/shared_machine_input_examples.rb +8 -8
- data/mod/03_machines/spec/set/type/coffeescript_spec.rb +6 -6
- data/mod/03_machines/spec/set/type/css_spec.rb +9 -9
- data/mod/03_machines/spec/set/type/javascript_spec.rb +6 -6
- data/mod/03_machines/spec/set/type/scss_spec.rb +5 -5
- data/mod/03_machines/spec/set/type/skin_spec.rb +25 -25
- data/mod/04_settings/lib/card/setting.rb +11 -11
- data/mod/04_settings/set/abstract/permission.rb +9 -9
- data/mod/04_settings/set/right/script.rb +1 -1
- data/mod/04_settings/set/right/structure.rb +0 -5
- data/mod/04_settings/set/right/style.rb +2 -2
- data/mod/04_settings/set/self/accountable.rb +1 -1
- data/mod/04_settings/set/self/add_help.rb +1 -1
- data/mod/04_settings/set/self/autoname.rb +1 -1
- data/mod/04_settings/set/self/captcha.rb +1 -1
- data/mod/04_settings/set/self/create.rb +1 -1
- data/mod/04_settings/set/self/default.rb +1 -1
- data/mod/04_settings/set/self/delete.rb +1 -1
- data/mod/04_settings/set/self/help.rb +1 -1
- data/mod/04_settings/set/self/input.rb +1 -1
- data/mod/04_settings/set/self/layout.rb +1 -1
- data/mod/04_settings/set/self/on_create.rb +1 -1
- data/mod/04_settings/set/self/on_delete.rb +1 -1
- data/mod/04_settings/set/self/on_update.rb +1 -1
- data/mod/04_settings/set/self/options.rb +1 -1
- data/mod/04_settings/set/self/options_label.rb +1 -1
- data/mod/04_settings/set/self/read.rb +1 -1
- data/mod/04_settings/set/self/script.rb +1 -1
- data/mod/04_settings/set/self/structure.rb +1 -1
- data/mod/04_settings/set/self/style.rb +1 -1
- data/mod/04_settings/set/self/table_of_contents.rb +1 -1
- data/mod/04_settings/set/self/thanks.rb +1 -1
- data/mod/04_settings/set/self/update.rb +1 -1
- data/mod/04_settings/set/type/setting.rb +14 -14
- data/mod/04_settings/spec/set/right/comment_spec.rb +5 -5
- data/mod/04_settings/spec/set/right/create_spec.rb +1 -1
- data/mod/04_settings/spec/set/right/script_spec.rb +5 -5
- data/mod/04_settings/spec/set/right/structure_spec.rb +4 -2
- data/mod/04_settings/spec/set/right/style_spec.rb +7 -7
- data/mod/04_settings/spec/set/type/setting_spec.rb +2 -2
- data/mod/05_email/lib/card/follow_option.rb +24 -24
- data/mod/05_email/set/all/follow.rb +24 -16
- data/mod/05_email/set/all/notify.rb +25 -23
- data/mod/05_email/set/all/observer.rb +5 -5
- data/mod/05_email/set/right/bcc.rb +8 -8
- data/mod/05_email/set/right/follow.rb +44 -17
- data/mod/05_email/set/right/follow_fields.rb +1 -1
- data/mod/05_email/set/right/following.rb +49 -40
- data/mod/05_email/set/self/always.rb +2 -2
- data/mod/05_email/set/self/created.rb +1 -1
- data/mod/05_email/set/self/edited.rb +4 -4
- data/mod/05_email/set/self/follow.rb +1 -1
- data/mod/05_email/set/self/follow_defaults.rb +9 -9
- data/mod/05_email/set/self/never.rb +1 -1
- data/mod/05_email/set/type/email_template.rb +9 -9
- data/mod/05_email/set/type_plus_right/user/follow.rb +16 -16
- data/mod/05_email/spec/set/all/follow_spec.rb +10 -10
- data/mod/05_email/spec/set/all/notify_spec.rb +82 -82
- data/mod/05_email/spec/set/all/observer_spec.rb +16 -16
- data/mod/05_email/spec/set/right/followers_spec.rb +6 -6
- data/mod/05_email/spec/set/self/follow_defaults_spec.rb +2 -2
- data/mod/05_standard/lib/carrier_wave/cardmount.rb +5 -5
- data/mod/05_standard/lib/image_uploader.rb +8 -8
- data/mod/05_standard/set/abstract/attachment.rb +18 -18
- data/mod/05_standard/set/all/account.rb +5 -5
- data/mod/05_standard/set/all/comment.rb +7 -7
- data/mod/05_standard/set/all/error.rb +25 -25
- data/mod/05_standard/set/all/event_viz.rb +1 -1
- data/mod/05_standard/set/all/links.rb +9 -9
- data/mod/05_standard/set/all/rich_html/content.rb +34 -34
- data/mod/05_standard/set/all/rich_html/editing.rb +35 -35
- data/mod/05_standard/set/all/rich_html/form.rb +20 -20
- data/mod/05_standard/set/all/rich_html/header.rb +8 -8
- data/mod/05_standard/set/all/rich_html/menu.rb +33 -33
- data/mod/05_standard/set/all/rich_html/modal.rb +16 -16
- data/mod/05_standard/set/all/rich_html/toolbar.rb +63 -63
- data/mod/05_standard/set/all/rich_html/wrapper.rb +8 -8
- data/mod/05_standard/set/right/account.rb +27 -27
- data/mod/05_standard/set/right/email.rb +5 -5
- data/mod/05_standard/set/right/password.rb +5 -5
- data/mod/05_standard/set/rstar/rules.rb +52 -52
- data/mod/05_standard/set/self/account_links.rb +27 -27
- data/mod/05_standard/set/self/all.rb +1 -1
- data/mod/05_standard/set/self/head.rb +5 -5
- data/mod/05_standard/set/self/navbox.rb +11 -11
- data/mod/05_standard/set/self/recent.rb +2 -2
- data/mod/05_standard/set/self/search.rb +13 -13
- data/mod/05_standard/set/self/signin.rb +19 -19
- data/mod/05_standard/set/self/stats.rb +2 -2
- data/mod/05_standard/set/type/basic.rb +1 -1
- data/mod/05_standard/set/type/cardtype.rb +5 -5
- data/mod/05_standard/set/type/date.rb +1 -1
- data/mod/05_standard/set/type/file.rb +7 -7
- data/mod/05_standard/set/type/image.rb +8 -8
- data/mod/05_standard/set/type/number.rb +2 -2
- data/mod/05_standard/set/type/phrase.rb +1 -1
- data/mod/05_standard/set/type/search_type.rb +27 -21
- data/mod/05_standard/set/type/session.rb +2 -2
- data/mod/05_standard/set/type/set.rb +37 -37
- data/mod/05_standard/set/type/signup.rb +25 -25
- data/mod/05_standard/set/type/uri.rb +1 -1
- data/mod/05_standard/set/type/user.rb +21 -21
- data/mod/05_standard/spec/chunk/include_spec.rb +16 -16
- data/mod/05_standard/spec/chunk/link_spec.rb +18 -18
- data/mod/05_standard/spec/chunk/query_reference_spec.rb +1 -1
- data/mod/05_standard/spec/set/all/account_spec.rb +7 -7
- data/mod/05_standard/spec/set/all/email_html_spec.rb +3 -3
- data/mod/05_standard/spec/set/all/history_spec.rb +14 -14
- data/mod/05_standard/spec/set/all/rich_html/editing_spec.rb +1 -1
- data/mod/05_standard/spec/set/all/rich_html/form_spec.rb +2 -2
- data/mod/05_standard/spec/set/right/account_spec.rb +9 -9
- data/mod/05_standard/spec/set/right/email_spec.rb +8 -8
- data/mod/05_standard/spec/set/right/password_spec.rb +9 -9
- data/mod/05_standard/spec/set/right/stats_spec.rb +1 -1
- data/mod/05_standard/spec/set/right/when_created_spec.rb +1 -1
- data/mod/05_standard/spec/set/right/when_last_edited_spec.rb +1 -1
- data/mod/05_standard/spec/set/rstar/rules_spec.rb +2 -2
- data/mod/05_standard/spec/set/self/account_links_spec.rb +2 -2
- data/mod/05_standard/spec/set/self/all_spec.rb +8 -11
- data/mod/05_standard/spec/set/self/head_spec.rb +1 -1
- data/mod/05_standard/spec/set/self/navbox_spec.rb +1 -1
- data/mod/05_standard/spec/set/self/now_spec.rb +1 -1
- data/mod/05_standard/spec/set/self/stats_spec.rb +1 -1
- data/mod/05_standard/spec/set/self/version_spec.rb +1 -1
- data/mod/05_standard/spec/set/type/email_template_spec.rb +25 -25
- data/mod/05_standard/spec/set/type/file_spec.rb +4 -4
- data/mod/05_standard/spec/set/type/html_spec.rb +3 -3
- data/mod/05_standard/spec/set/type/image_spec.rb +6 -6
- data/mod/05_standard/spec/set/type/layout_type_spec.rb +1 -1
- data/mod/05_standard/spec/set/type/search_type_spec.rb +10 -10
- data/mod/05_standard/spec/set/type/signup_spec.rb +11 -11
- data/mod/05_standard/spec/set/type/toggle_spec.rb +2 -2
- data/mod/05_standard/spec/set/type/uri_spec.rb +9 -9
- data/mod/06_bootstrap/set/all/bootstrap/helper.rb +10 -10
- data/mod/06_bootstrap/set/all/bootstrap/wrapper.rb +4 -4
- data/mod/06_bootstrap/set/all/rich_bootstrap.rb +1 -1
- data/spec/lib/card/action_spec.rb +2 -2
- data/spec/lib/card/cache_spec.rb +7 -7
- data/spec/lib/card/content_spec.rb +31 -37
- data/spec/lib/card/diff_spec.rb +56 -56
- data/spec/lib/card/format_spec.rb +11 -11
- data/spec/lib/card/query_spec.rb +382 -265
- data/spec/lib/card/reference_spec.rb +133 -140
- data/spec/lib/card/set_pattern_spec.rb +10 -9
- data/spec/lib/card/set_spec.rb +11 -11
- data/spec/lib/card/success_spec.rb +16 -8
- data/spec/mailers/mailer_spec.rb +5 -5
- data/spec/models/card/cardtype_spec.rb +20 -20
- data/spec/models/card/create_spec.rb +6 -6
- data/spec/models/card/trash_spec.rb +20 -20
- data/spec/models/card/type_transition_spec.rb +3 -3
- data/spec/models/card/validation_spec.rb +5 -5
- data/spec/models/card_spec.rb +24 -24
- data/spec/spec_helper.rb +5 -5
- data/tmpsets/set/mod001-01_core/all/active_card.rb +2 -2
- data/tmpsets/set/mod001-01_core/all/collection.rb +23 -26
- data/tmpsets/set/mod001-01_core/all/content.rb +2 -2
- data/tmpsets/set/mod001-01_core/all/fetch.rb +6 -6
- data/tmpsets/set/mod001-01_core/all/initialize.rb +8 -4
- data/tmpsets/set/mod001-01_core/all/name.rb +14 -14
- data/tmpsets/set/mod001-01_core/all/pattern.rb +1 -1
- data/tmpsets/set/mod001-01_core/all/permissions.rb +12 -12
- data/tmpsets/set/mod001-01_core/all/phases.rb +31 -13
- data/tmpsets/set/mod001-01_core/all/references.rb +14 -14
- data/tmpsets/set/mod001-01_core/all/rules.rb +8 -10
- data/tmpsets/set/mod001-01_core/all/templating.rb +10 -9
- data/tmpsets/set/mod001-01_core/all/tracked_attributes.rb +7 -7
- data/tmpsets/set/mod001-01_core/all/trash.rb +9 -8
- data/tmpsets/set/mod001-01_core/all/type.rb +7 -7
- data/tmpsets/set/mod001-01_core/all/utils.rb +16 -4
- data/tmpsets/set/mod001-01_core/all/view_cache.rb +1 -1
- data/tmpsets/set/mod002-01_history/all/actions.rb +2 -2
- data/tmpsets/set/mod002-01_history/all/content_history.rb +11 -7
- data/tmpsets/set/mod002-01_history/all/history.rb +46 -46
- data/tmpsets/set/mod003-02_basic_types/all/all_css.rb +10 -10
- data/tmpsets/set/mod003-02_basic_types/all/all_csv.rb +7 -7
- data/tmpsets/set/mod003-02_basic_types/all/base.rb +25 -25
- data/tmpsets/set/mod003-02_basic_types/all/json.rb +16 -16
- data/tmpsets/set/mod003-02_basic_types/all/rss.rb +7 -7
- data/tmpsets/set/mod003-02_basic_types/type/html.rb +2 -2
- data/tmpsets/set/mod003-02_basic_types/type/plain_text.rb +1 -1
- data/tmpsets/set/mod003-02_basic_types/type/pointer.rb +38 -31
- data/tmpsets/set/mod004-03_machines/right/machine_output.rb +4 -0
- data/tmpsets/set/mod004-03_machines/type/coffee_script.rb +3 -3
- data/tmpsets/set/mod004-03_machines/type/css.rb +8 -8
- data/tmpsets/set/mod004-03_machines/type/java_script.rb +4 -4
- data/tmpsets/set/mod004-03_machines/type/scss.rb +2 -2
- data/tmpsets/set/mod004-03_machines/type/skin.rb +1 -1
- data/tmpsets/set/mod005-04_settings/abstract/permission.rb +9 -9
- data/tmpsets/set/mod005-04_settings/right/script.rb +1 -1
- data/tmpsets/set/mod005-04_settings/right/structure.rb +0 -5
- data/tmpsets/set/mod005-04_settings/right/style.rb +2 -2
- data/tmpsets/set/mod005-04_settings/self/accountable.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/add_help.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/autoname.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/captcha.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/create.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/default.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/delete.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/help.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/input.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/layout.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/on_create.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/on_delete.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/on_update.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/options.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/options_label.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/read.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/script.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/structure.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/style.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/table_of_contents.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/thanks.rb +1 -1
- data/tmpsets/set/mod005-04_settings/self/update.rb +1 -1
- data/tmpsets/set/mod005-04_settings/type/setting.rb +14 -14
- data/tmpsets/set/mod006-05_email/all/follow.rb +24 -16
- data/tmpsets/set/mod006-05_email/all/notify.rb +25 -23
- data/tmpsets/set/mod006-05_email/all/observer.rb +8 -8
- data/tmpsets/set/mod006-05_email/right/bcc.rb +8 -8
- data/tmpsets/set/mod006-05_email/right/follow.rb +44 -17
- data/tmpsets/set/mod006-05_email/right/follow_fields.rb +1 -1
- data/tmpsets/set/mod006-05_email/right/following.rb +49 -40
- data/tmpsets/set/mod006-05_email/self/always.rb +2 -2
- data/tmpsets/set/mod006-05_email/self/created.rb +1 -1
- data/tmpsets/set/mod006-05_email/self/edited.rb +4 -4
- data/tmpsets/set/mod006-05_email/self/follow.rb +1 -1
- data/tmpsets/set/mod006-05_email/self/follow_defaults.rb +9 -9
- data/tmpsets/set/mod006-05_email/self/never.rb +1 -1
- data/tmpsets/set/mod006-05_email/type/email_template.rb +9 -9
- data/tmpsets/set/mod006-05_email/type_plus_right/user/follow.rb +17 -17
- data/tmpsets/set/mod007-05_standard/abstract/attachment.rb +98 -46
- data/tmpsets/set/mod007-05_standard/all/account.rb +5 -5
- data/tmpsets/set/mod007-05_standard/all/comment.rb +7 -7
- data/tmpsets/set/mod007-05_standard/all/error.rb +26 -26
- data/tmpsets/set/mod007-05_standard/all/event_viz.rb +1 -1
- data/tmpsets/set/mod007-05_standard/all/links.rb +10 -9
- data/tmpsets/set/mod007-05_standard/all/rich_html/content.rb +34 -34
- data/tmpsets/set/mod007-05_standard/all/rich_html/editing.rb +35 -35
- data/tmpsets/set/mod007-05_standard/all/rich_html/form.rb +20 -20
- data/tmpsets/set/mod007-05_standard/all/rich_html/header.rb +8 -8
- data/tmpsets/set/mod007-05_standard/all/rich_html/menu.rb +33 -33
- data/tmpsets/set/mod007-05_standard/all/rich_html/modal.rb +16 -16
- data/tmpsets/set/mod007-05_standard/all/rich_html/toolbar.rb +63 -63
- data/tmpsets/set/mod007-05_standard/all/rich_html/wrapper.rb +8 -8
- data/tmpsets/set/mod007-05_standard/right/account.rb +27 -27
- data/tmpsets/set/mod007-05_standard/right/email.rb +5 -5
- data/tmpsets/set/mod007-05_standard/right/password.rb +5 -5
- data/tmpsets/set/mod007-05_standard/rstar/rules.rb +52 -52
- data/tmpsets/set/mod007-05_standard/self/account_links.rb +27 -27
- data/tmpsets/set/mod007-05_standard/self/all.rb +1 -1
- data/tmpsets/set/mod007-05_standard/self/head.rb +5 -5
- data/tmpsets/set/mod007-05_standard/self/navbox.rb +11 -11
- data/tmpsets/set/mod007-05_standard/self/recent.rb +2 -2
- data/tmpsets/set/mod007-05_standard/self/search.rb +13 -13
- data/tmpsets/set/mod007-05_standard/self/signin.rb +19 -19
- data/tmpsets/set/mod007-05_standard/self/stats.rb +2 -2
- data/tmpsets/set/mod007-05_standard/type/basic.rb +1 -1
- data/tmpsets/set/mod007-05_standard/type/cardtype.rb +5 -5
- data/tmpsets/set/mod007-05_standard/type/date.rb +1 -1
- data/tmpsets/set/mod007-05_standard/type/file.rb +23 -8
- data/tmpsets/set/mod007-05_standard/type/image.rb +10 -8
- data/tmpsets/set/mod007-05_standard/type/number.rb +2 -2
- data/tmpsets/set/mod007-05_standard/type/phrase.rb +1 -1
- data/tmpsets/set/mod007-05_standard/type/search_type.rb +21 -19
- data/tmpsets/set/mod007-05_standard/type/session.rb +2 -2
- data/tmpsets/set/mod007-05_standard/type/set.rb +37 -37
- data/tmpsets/set/mod007-05_standard/type/signup.rb +25 -25
- data/tmpsets/set/mod007-05_standard/type/uri.rb +1 -1
- data/tmpsets/set/mod007-05_standard/type/user.rb +21 -21
- data/tmpsets/set/mod008-06_bootstrap/all/bootstrap/helper.rb +10 -10
- data/tmpsets/set/mod008-06_bootstrap/all/bootstrap/wrapper.rb +4 -4
- data/tmpsets/set/mod008-06_bootstrap/all/rich_bootstrap.rb +1 -1
- data/tmpsets/set_pattern/101-all_plus.rb +2 -2
- data/tmpsets/set_pattern/102-type.rb +1 -1
- data/tmpsets/set_pattern/103-star.rb +1 -1
- data/tmpsets/set_pattern/104-rstar.rb +2 -2
- data/tmpsets/set_pattern/105-right.rb +4 -4
- data/tmpsets/set_pattern/106-type_plus_right.rb +4 -4
- data/tmpsets/set_pattern/107-self.rb +1 -1
- metadata +7 -5
- data/lib/card/query/card_clause.rb +0 -528
- data/lib/card/query/ref_clause.rb +0 -47
- data/lib/card/query/value_clause.rb +0 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd04c2a1f1842bd48409bae420476059574eeb35
|
4
|
+
data.tar.gz: ccb22267f94bbcfc81bbdf09e609473ea69252f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7a9e1ea11a6c7053dbae4efebcf0cf71d5741dc92f2d825ac8a6ed0c8a5e47aa9e96098efd766ecb7ad9b68510d5ff75afbe4f87751dcdd662d38e0b8d705ff
|
7
|
+
data.tar.gz: f3c646b9568d2a683b9ed52bdf9e402d9624bfa9199a70889149d898b38e85d89de38eecab08eca1e60083adbe21beecb38f3e39ff5225df7df88ce384bde5ea
|
data/.yardoc/checksums
CHANGED
@@ -1,60 +1,245 @@
|
|
1
|
-
lib/card.rb
|
2
|
-
lib/cardio.rb
|
3
|
-
lib/card/
|
4
|
-
lib/card/
|
5
|
-
lib/card/
|
6
|
-
lib/card/
|
7
|
-
lib/card/
|
8
|
-
lib/card/
|
9
|
-
lib/card/
|
10
|
-
lib/card/
|
11
|
-
lib/card/
|
12
|
-
lib/card/format.rb
|
13
|
-
lib/card/loader.rb 520331bcbcf8bae6a10fe9d4c6033135f0099fc8
|
1
|
+
lib/card.rb 6f2ac4c20be00e19b7ce08f1a1a27a40a235670f
|
2
|
+
lib/cardio.rb 952bffefccf8b2aaf5d83612df6a0c6a6942e0df
|
3
|
+
lib/card/env.rb 4c4b35442775d7f47adffddac489a9e3c5e67670
|
4
|
+
lib/card/set.rb 76b2a229de9c4b01e881f0f4ffa48da082636dc1
|
5
|
+
lib/card/name.rb dc2b5e6a2a9032ac02384e7c6d14c4a206bb8d19
|
6
|
+
lib/card/diff.rb 3d5d4d52ed084737967e05d73c6509a282dd41b8
|
7
|
+
lib/card/auth.rb dd79362f717be2713da29cf2fdb466d19a6b568a
|
8
|
+
lib/card/query.rb 68019e934b2d7ee8d73e7a1df5814a3b2f26a534
|
9
|
+
lib/card/cache.rb c22b99d94e87e3323f6af898cd6c0be76f181ca1
|
10
|
+
lib/card/chunk.rb 54197bbf289cd5294328334554ed85c46b6cf3e9
|
11
|
+
lib/card/loader.rb 24c51af920c7c2cc695cf41f530a42941c8d8dc2
|
12
|
+
lib/card/format.rb c821707551b3759345ffe0690b748fd207deaab0
|
14
13
|
lib/card/mailer.rb 7b1bf70e4ed3b896a4a93b375dca808996b5e4ff
|
15
|
-
lib/card/
|
14
|
+
lib/card/success.rb a1887b6b4c1a2a642391978204ea863cadd325c6
|
16
15
|
lib/card/version.rb 7a88132977844e7742fe13e2c8b6b4ab48a27322
|
17
|
-
lib/card/
|
16
|
+
lib/card/content.rb 75f9db1791170aa94ef19fdbf33d4065c5ce3490
|
18
17
|
lib/card/codename.rb ec33eaabcd324d2e3a5672d8b7a72ce8532bde4d
|
18
|
+
lib/card/core_ext.rb b82e8c10b7ba6f1316ca8373046217c8146dcbaa
|
19
|
+
lib/card/location.rb 47bf1f7b84652807f1d0816f6e8e6bff78ca077f
|
20
|
+
lib/card/migration.rb f6ff1f25d21590f929ea613d3d3522d3bc450894
|
19
21
|
lib/card/view_name.rb 0a1177de5268e021180110c2c36fdae1e0c0c8a6
|
20
|
-
lib/card/
|
21
|
-
lib/card/
|
22
|
+
lib/card/reference.rb f5b80f2795844b1fb1357b42c50b6bba68d6589f
|
23
|
+
lib/card/query/join.rb e57d9c328f69ddf1dbfcc64c5a34dc18ef16641d
|
22
24
|
lib/card/view_cache.rb 132a68bb09bec5ddfd1680f5acbffed685b1c3ff
|
23
|
-
lib/card/exceptions.rb 558acc83c914da1a99c892af476ef4a3b147bcb2
|
24
25
|
lib/generators/card.rb 6aa5bf57b1c847799c8c163e03d2732bcbeb90de
|
25
|
-
lib/card/
|
26
|
-
lib/card/set_pattern.rb
|
27
|
-
lib/card/
|
28
|
-
|
29
|
-
|
30
|
-
spec/lib/card/
|
26
|
+
lib/card/exceptions.rb 558acc83c914da1a99c892af476ef4a3b147bcb2
|
27
|
+
lib/card/set_pattern.rb 97416f2a280b8eee713e8185c3c8139df1d9a05d
|
28
|
+
lib/card/spec_helper.rb 218c492a717fc6bab8e3310d2708cf36aa780c87
|
29
|
+
lib/card/query/value.rb 05a09c9e8b1e2ad1309b649c04e8d4f7d09dbb6d
|
30
|
+
lib/card/query/clause.rb 950a516c4841d8f6b62ebb557b116015d749db03
|
31
|
+
spec/lib/card/set_spec.rb 0c3ef94af80e0a00413a6eabc46a156ee9984599
|
32
|
+
spec/lib/card/diff_spec.rb 2070156d626c7f011829e698276827839a136331
|
31
33
|
spec/lib/card/auth_spec.rb 61ea83a5b633d709f5b06c638dcf249678483b47
|
32
|
-
lib/card/core_migration.rb 28f4711b5e1b35c04b325e50812eec777d6a9f2f
|
33
34
|
spec/lib/card/name_spec.rb e07b4802b9145ff6b8cc1913de3b101516a47ab1
|
34
|
-
|
35
|
+
lib/card/core_migration.rb 28f4711b5e1b35c04b325e50812eec777d6a9f2f
|
36
|
+
spec/lib/card/cache_spec.rb c68b9b400c879497fe86108ef13bd257639cecd6
|
35
37
|
spec/lib/card/chunk_spec.rb f5524858dc09925bffb32898196b65346baa9083
|
36
|
-
|
37
|
-
spec/lib/card/
|
38
|
-
spec/lib/card/action_spec.rb 10e5a134f11ecbd5b6ecf3cd35f98c7f94555b11
|
39
|
-
lib/card/simplecov_helper.rb d9740a35c8d7f223dc868c1fc0cfc4c84354804e
|
38
|
+
lib/card/query/reference.rb 7a301e8b5c2f158a31c64df41d41ccab29d3fe9e
|
39
|
+
spec/lib/card/query_spec.rb 405e8e5c8de93da2bfc691c7b4b7986dd8ad8609
|
40
40
|
spec/lib/card/loader_spec.rb cade6b83949c6071158a901672dbd3d078ff2a1b
|
41
|
-
lib/card/
|
42
|
-
|
43
|
-
lib/card/
|
44
|
-
lib/card/
|
45
|
-
|
41
|
+
spec/lib/card/format_spec.rb e47f0fa01bb80545a7c58664a59b921aec91f911
|
42
|
+
lib/card/query/attributes.rb cb52faab874a13747aaaf91a6f5f894fe8071343
|
43
|
+
lib/card/simplecov_helper.rb d9740a35c8d7f223dc868c1fc0cfc4c84354804e
|
44
|
+
spec/lib/card/action_spec.rb 419561bbdbed919f4c6e10c921a08be2d477425b
|
45
|
+
lib/card/active_record_ext.rb 7e729a4fa21cd9630b405f3478f33dc22c4e11b7
|
46
|
+
spec/lib/card/success_spec.rb 304aef6a099eb93b724e7c4531c379615ecfb88b
|
47
|
+
spec/lib/card/content_spec.rb 49142da82400016626844e69905cbfc525eddda6
|
48
|
+
mod/01_history/lib/card/act.rb a9b6b25fafb9b92d83a1211157dbb9ac9763ae11
|
46
49
|
spec/lib/card/codename_spec.rb aeed3c516149c9f7e7c280bd361d6e052edb2bec
|
47
|
-
lib/card/query/
|
48
|
-
spec/lib/card/reference_spec.rb
|
49
|
-
spec/lib/card/set_pattern_spec.rb
|
50
|
-
mod/01_history/lib/card/action.rb
|
51
|
-
mod/01_history/lib/card/change.rb
|
52
|
-
mod/
|
53
|
-
mod/
|
54
|
-
mod/
|
55
|
-
|
56
|
-
mod/
|
57
|
-
lib/generators/card/
|
58
|
-
mod/03_machines/
|
59
|
-
|
60
|
-
|
50
|
+
lib/card/query/sql_statement.rb ffb01c0682f41b371eb5ab81ba4a6a2a9e9d37f8
|
51
|
+
spec/lib/card/reference_spec.rb 1ae8c54c6e411ff9653daf33d189d50be371ff4d
|
52
|
+
spec/lib/card/set_pattern_spec.rb a51b59a88a8885750c913409930be29859b8ee26
|
53
|
+
mod/01_history/lib/card/action.rb 09f0c55a4d2f7f200dba39508db8eff9db2d7062
|
54
|
+
mod/01_history/lib/card/change.rb 765b725bba47ba188f2f8329406369e2970e4c1d
|
55
|
+
mod/03_machines/lib/card/machine.rb b4c4abde6446c8d1b30539b4a0aea2a7e6a7473c
|
56
|
+
mod/04_settings/lib/card/setting.rb 8613458d637efe2b2b4af43b85dae5fd37708491
|
57
|
+
mod/05_standard/lib/file_uploader.rb c2e3999a942dd2f1011897713bb2ab2d908c58b8
|
58
|
+
mod/05_standard/lib/image_uploader.rb 3ca43328dc1ff73815d4d4d65156b1ffdb620e26
|
59
|
+
mod/05_email/lib/card/follow_option.rb 90029ee631233c967d1fd45a03224afe5f21bdcd
|
60
|
+
lib/generators/card/set/set_generator.rb 2274cccf5121ca30a09e7b0e84eba1549c82bcd5
|
61
|
+
mod/03_machines/lib/card/machine_input.rb 5c50b89af37641d6df6c921af5f10484819d6a6e
|
62
|
+
mod/05_standard/lib/carrier_wave/cardmount.rb dfe95543fb58a4598be80ffa3cb58a5aad319052
|
63
|
+
lib/generators/card/format/format_generator.rb 21cb30034b14a9edf27857bb05f0ee57a8e44faf
|
64
|
+
mod/03_machines/spec/lib/shared_machine_examples.rb 68548cc2bf027a28aa81d040938a884e330da5ed
|
65
|
+
lib/generators/card/migration/migration_generator.rb 61c8bedd8639110717c168b7a06d274311511cc2
|
66
|
+
mod/03_machines/spec/lib/shared_machine_input_examples.rb 9a8fac4506e652f8bcd058223f77cb84b798c93a
|
67
|
+
tmpsets/set_pattern/100-all.rb 18bf9d89fc14cf2889907397cc9a68839a0ae864
|
68
|
+
tmpsets/set_pattern/107-self.rb fadf32bf756cd78beed98ccc545199cbc500f136
|
69
|
+
tmpsets/set_pattern/103-star.rb cbce7106c1495fda167844fc81f068f3b767e3e5
|
70
|
+
tmpsets/set_pattern/102-type.rb 16c3827a99404e92b221691667fffdbe460877f2
|
71
|
+
tmpsets/set_pattern/104-rstar.rb 4ddb7e4ee7c7782def7e1f05f89418a2b2ba3b79
|
72
|
+
tmpsets/set_pattern/105-right.rb df07e217dd64f46e29e785bb266039416126396c
|
73
|
+
tmpsets/set_pattern/101-all_plus.rb ad82ad50bb0e91a8eb36ced7d0175c72178b7a31
|
74
|
+
tmpsets/set/mod001-01_core/all/erb.rb 613e6c3de837dcd24e77d13ed860584ca77ea433
|
75
|
+
tmpsets/set/mod001-01_core/all/name.rb 346cbdafbf8fcabee4ce2f21c53b0215dd411550
|
76
|
+
tmpsets/set/mod001-01_core/all/haml.rb 618724188157c1798c78595410c52104a4c5a25f
|
77
|
+
tmpsets/set/mod001-01_core/all/type.rb 57ddd776eb4690871970e83a1aedf686393d511c
|
78
|
+
tmpsets/set/mod001-01_core/all/utils.rb 0a4d4a947b3809606b47550ceae3bb6f39202ce5
|
79
|
+
tmpsets/set/mod001-01_core/all/rules.rb c2dd04b5dfc317a9772e3bead8e784fc5a79787a
|
80
|
+
tmpsets/set/mod001-01_core/all/fetch.rb b4f1585f6da2cc40a996a621753bcd1526cb1267
|
81
|
+
tmpsets/set/mod006-05_email/right/cc.rb f0b2dcbc178862bd11f034b754ebb7712b65d232
|
82
|
+
tmpsets/set/mod006-05_email/right/to.rb 0498a6ee5c284dc7c76a654a304aaaaf952083cd
|
83
|
+
tmpsets/set/mod001-01_core/all/trash.rb 40812f9303a04f509fb4e2b0138f7e796775b84c
|
84
|
+
tmpsets/set/mod006-05_email/right/bcc.rb 2d2ae80ffc56310818b76cd9c1ccc2a226426bf5
|
85
|
+
tmpsets/set/mod001-01_core/all/phases.rb 6e82a1472bfd4b6e0c653693da0722eb9ec4d30a
|
86
|
+
tmpsets/set/mod001-01_core/all/states.rb c9aaccfce8f5c288be5399ef477ff081de43f60e
|
87
|
+
tmpsets/set/mod006-05_email/all/follow.rb 74093398dfe86c572d8465f50aea4d1b0833ef3a
|
88
|
+
tmpsets/set/mod001-01_core/all/pattern.rb 30afa710c472be1d48aa8fa313f941600bc73ab9
|
89
|
+
tmpsets/set/mod006-05_email/self/never.rb 384bb904952ab6b290b57e4368b02b87b566dc8f
|
90
|
+
tmpsets/set/mod006-05_email/all/notify.rb 81d464c9c47f7658b5309977a47fe099964ef96c
|
91
|
+
tmpsets/set/mod006-05_email/right/from.rb 1b67b88b113f9292c1d7933b60eecfe72db9eb67
|
92
|
+
tmpsets/set/mod001-01_core/all/content.rb 32321ff3ac03ef2225516b945f17b2f96bd09c9b
|
93
|
+
tmpsets/set/mod007-05_standard/self/now.rb 3e76c5568f2ab064693e135e6341676020938068
|
94
|
+
tmpsets/set/mod004-03_machines/type/css.rb db37a2f11b65521102cbb081a4b2b72a9ba6d836
|
95
|
+
tmpsets/set/mod007-05_standard/type/uri.rb ebfe86c813d43b4de9fa6c704d1dc05cf82df5f1
|
96
|
+
tmpsets/set/mod006-05_email/self/edited.rb 125aad18d8d8be596574e0b598dde530718810e9
|
97
|
+
tmpsets/set/mod007-05_standard/type/set.rb 6f919c11a0b437bd03ea7ebcfd57100037e731df
|
98
|
+
tmpsets/set/mod006-05_email/self/follow.rb 0ce83d479aca90712c59e20b6c5c4865a73359d9
|
99
|
+
tmpsets/set_pattern/106-type_plus_right.rb e709e47cb00a9ced8863a1829456bb688a604e1b
|
100
|
+
tmpsets/set/mod007-05_standard/self/all.rb 791a85c853fca811307564acbbf35aea6b162035
|
101
|
+
tmpsets/set/mod006-05_email/self/always.rb 863fd8aadef93ff021007983a47c0ef5535ec502
|
102
|
+
tmpsets/set/mod005-04_settings/self/help.rb c61c7a6999f8b98e6cfe045464b0762f394547bd
|
103
|
+
tmpsets/set/mod005-04_settings/self/read.rb 99184a764c6318cdbb21db0946c8c76919848016
|
104
|
+
tmpsets/set/mod007-05_standard/self/head.rb b544ea5a64b88a04f02eafb51695deebccda17df
|
105
|
+
tmpsets/set/mod007-05_standard/self/foot.rb 63b04dffe0f016dcbcca433ecdc8cefe14091162
|
106
|
+
tmpsets/set/mod007-05_standard/type/date.rb e09e0784a26f8cb0067208acbc8ad5f9922025bd
|
107
|
+
tmpsets/set/mod006-05_email/all/observer.rb b7dc96196b89c270d8d67c6f10583e1fc73a57b2
|
108
|
+
tmpsets/set/mod007-05_standard/all/links.rb d5a759055f678a05dc9231f172e2e113afa6967e
|
109
|
+
tmpsets/set/mod007-05_standard/all/error.rb 10f9b422f61f1ad3a20591a43d42783262caf1f1
|
110
|
+
tmpsets/set/mod007-05_standard/type/file.rb ceb4cbc841ea02550b331895152b55fe1548ceb6
|
111
|
+
tmpsets/set/mod006-05_email/right/follow.rb eccaec056cff068cfde199be374399618217f119
|
112
|
+
tmpsets/set/mod004-03_machines/type/scss.rb 7be5827a9d292c6186059d12b6866edf01ce0043
|
113
|
+
tmpsets/set/mod006-05_email/self/created.rb 34e45fd92937ab53614e0f8387b774e9c089cb2a
|
114
|
+
tmpsets/set/mod007-05_standard/type/user.rb a8622b259a5f6e4e68f2a7e9c441ad1acd4d5ad6
|
115
|
+
tmpsets/set/mod004-03_machines/type/skin.rb 891891cab532e9dbc2926a068e40cc7dd88fef36
|
116
|
+
tmpsets/set/mod002-01_history/all/history.rb 957ba0840b09080705f5872ddfb38027f0d5951c
|
117
|
+
tmpsets/set/mod003-02_basic_types/all/rss.rb aac677d513322700224f01dbdf6269d142f302eb
|
118
|
+
tmpsets/set/mod002-01_history/all/actions.rb e4ffefecf05f8bacd3d5a4b0de92df0f573d94e5
|
119
|
+
tmpsets/set/mod001-01_core/all/view_cache.rb 114e7556a1abc8cc84fa808562265e8658ab9217
|
120
|
+
tmpsets/set/mod007-05_standard/type/image.rb 3dba607f56fa29a86a5c85a8051c5cfec8d4cc6c
|
121
|
+
tmpsets/set/mod001-01_core/all/templating.rb 70aedf190dc2e7fd59bea3ce638df8e016d582d4
|
122
|
+
tmpsets/set/mod001-01_core/all/references.rb 546e3da621c6179dd2df099e237427bea6a465ec
|
123
|
+
tmpsets/set/mod007-05_standard/right/salt.rb 941a11ef271fa8c0dc4bd5e8039253ca9de4e329
|
124
|
+
tmpsets/set/mod005-04_settings/right/help.rb 60fe57976f313c58700f8c84cc3039dcc7d27d1f
|
125
|
+
tmpsets/set/mod005-04_settings/right/read.rb 19e9404ca2052296e9a864858ba7866da2c9f60b
|
126
|
+
tmpsets/set/mod001-01_core/all/initialize.rb a9493bba0c11bbb58af712789b34763bffbce790
|
127
|
+
tmpsets/set/mod001-01_core/all/collection.rb e3b74129fd1ae8c79dc4a75a61907bced0b8afe6
|
128
|
+
tmpsets/set/mod005-04_settings/self/style.rb e899a4c393b80f6ea10f1f518047390a2a8f338e
|
129
|
+
tmpsets/set/mod007-05_standard/type/basic.rb 8646b933db97520176c4e87caed090d9227568a1
|
130
|
+
tmpsets/set/mod005-04_settings/self/input.rb 34044fa8b2f1286c998b8da9930675dde42756ea
|
131
|
+
tmpsets/set/mod007-05_standard/self/stats.rb 604d94f6fad4494a1c736d2e5efd9d94f7da3f88
|
132
|
+
tmpsets/set/mod007-05_standard/rstar/rules.rb 8f04b4e5bc69c0802ecfa532a98374fd6a8f3ac9
|
133
|
+
tmpsets/set/mod001-01_core/all/active_card.rb 09407ce690ba0aa6c9e9320d22ab9134fbf01138
|
134
|
+
tmpsets/set/mod005-04_settings/self/create.rb 2535a332dddc2fc2eaa23e5201d885b7356c1591
|
135
|
+
tmpsets/set/mod007-05_standard/all/comment.rb 845bf8113021dacd7d7d240a7bd7a96d5a504f8d
|
136
|
+
tmpsets/set/mod005-04_settings/self/delete.rb 83d87b9d25d8c7a22f61943df514e79b54593f28
|
137
|
+
tmpsets/set/mod001-01_core/all/permissions.rb aabc8f64ae12795ef8a91afbbbbf42a1465185df
|
138
|
+
tmpsets/set/mod003-02_basic_types/all/base.rb 4e6433b230875aa125bab62ac944acb5359e7324
|
139
|
+
tmpsets/set/mod005-04_settings/self/layout.rb d5a32caf622d39d4a98ff1e866a8d4cfd6197a24
|
140
|
+
tmpsets/set/mod003-02_basic_types/all/file.rb 5fe54354631337f7906b522c4e52b1cbafc12f81
|
141
|
+
tmpsets/set/mod003-02_basic_types/all/json.rb f16c4084895d1992a04faf9216a689b013330603
|
142
|
+
tmpsets/set/mod007-05_standard/type/toggle.rb 958818f46fd9fef7a609a6670c288a1fcd835e67
|
143
|
+
tmpsets/set/mod007-05_standard/right/email.rb 8ecd959615adfbb6c4fd48fc0d894ba44b6e2143
|
144
|
+
tmpsets/set/mod007-05_standard/type/signup.rb 8481e1eb5607415926b491b6f81b3c4a882c3811
|
145
|
+
tmpsets/set/mod007-05_standard/right/stats.rb 68251ed3296ec15682950e321b33a4983405b8f6
|
146
|
+
tmpsets/set/mod003-02_basic_types/all/text.rb 4409a927f8d07e22cc9cf9274b2c018ef0d1abe7
|
147
|
+
tmpsets/set/mod005-04_settings/self/script.rb 53140e9882f235fd327926b7cd7c325274155167
|
148
|
+
tmpsets/set/mod007-05_standard/right/token.rb 0f1f55ca4640c86ee5a32f20251eca35195ef4bc
|
149
|
+
tmpsets/set/mod005-04_settings/right/style.rb 3d78d97a2d78b2dd10fd6c675b70e977e689d7ae
|
150
|
+
tmpsets/set/mod007-05_standard/type/phrase.rb 4789d55aa035d12fdc32504feac2b36fb9415a7a
|
151
|
+
tmpsets/set/mod005-04_settings/self/thanks.rb 6da05593e5ae74a15e4938c682ec6cdc7af1e721
|
152
|
+
tmpsets/set/mod005-04_settings/self/update.rb 0870354d10102c670f20fddd41f25708cb7952d3
|
153
|
+
tmpsets/set/mod007-05_standard/self/alerts.rb f8b3e8b22badd6b54cfa0d2f2a13d109c5c210fe
|
154
|
+
tmpsets/set/mod007-05_standard/all/account.rb 600a478287385df948a692175ebd78f4f490e815
|
155
|
+
tmpsets/set/mod006-05_email/all/email_text.rb ab8e8fed33f016cc904a4049756be268b70a353e
|
156
|
+
tmpsets/set/mod007-05_standard/type/number.rb 1f9544eaa84b657e19a89a99c6a10894aee4e2b6
|
157
|
+
tmpsets/set/mod007-05_standard/self/navbox.rb 97f6e42de0fadb205b285d5ab22e06797ca245d3
|
158
|
+
tmpsets/set/mod007-05_standard/self/recent.rb a935b734de7f2a2136c29498b2275ce18063bd12
|
159
|
+
tmpsets/set/mod007-05_standard/self/search.rb 98c03b0464ee41efb92529f934a1a5a592968798
|
160
|
+
tmpsets/set/mod007-05_standard/self/signin.rb 71ea807a9509a3b7427eeda848d6888fb03d0a47
|
161
|
+
tmpsets/set/mod006-05_email/all/email_html.rb bab98f8f38801e8b9712ba3664071fc4fdefd037
|
162
|
+
tmpsets/set/mod007-05_standard/self/version.rb 3a0373f243e503575e507739a6b6913bf3fc4ee2
|
163
|
+
tmpsets/set/mod006-05_email/right/followers.rb 8368cdfc42af2973ce62bdcc7b17b7b3e2370089
|
164
|
+
tmpsets/set/mod006-05_email/right/following.rb 7482e81cbccce774624083b07f679c56218bee43
|
165
|
+
tmpsets/set/mod005-04_settings/right/create.rb 52fc4c3cdf8f4c94a9fedc41aecaf6090d41cbb0
|
166
|
+
tmpsets/set/mod003-02_basic_types/type/html.rb a6cc905cd4a542d050baeddfc2a5650d0a28a7ca
|
167
|
+
tmpsets/set/mod005-04_settings/right/delete.rb aba36aecbfc943a2094463b7adfdbfa582a8fa76
|
168
|
+
tmpsets/set/mod005-04_settings/right/script.rb c150d02c01806a2eb4e8d61d770b966f8d414eb9
|
169
|
+
tmpsets/set/mod005-04_settings/type/setting.rb f90ebed5f3c5069cbd2b94247ff9557e0631a823
|
170
|
+
tmpsets/set/mod007-05_standard/type/session.rb 999092ede2bef86c35a8df4afb687e46401dce77
|
171
|
+
tmpsets/set/mod007-05_standard/right/status.rb e46374ca9e30a26bd40e5febd665b54d62bdd8e7
|
172
|
+
tmpsets/set/mod005-04_settings/right/update.rb 29ee3ed3b8a5e249615ffe11d70c1d995f2d4198
|
173
|
+
tmpsets/set/mod005-04_settings/self/options.rb 191c177534aa3cfcba569e9536fcde8c6c116d1e
|
174
|
+
tmpsets/set/mod005-04_settings/self/default.rb fad0aef09b0965f42c6518be89bce6eefe47c7e7
|
175
|
+
tmpsets/set/mod005-04_settings/self/captcha.rb c80645ac40bd1ee639ee18c75e73142d59cd982e
|
176
|
+
tmpsets/set/mod005-04_settings/right/comment.rb 32421e901a78df45b4663ee3826d1f46119c65dc
|
177
|
+
tmpsets/set/mod005-04_settings/self/add_help.rb 90e7a85af16e75ec71c01a72163c1c4d15acd045
|
178
|
+
tmpsets/set/mod007-05_standard/type/cardtype.rb de58289b00abd34e4a9cf19168dc2123e1eb0bb9
|
179
|
+
tmpsets/set/mod005-04_settings/right/default.rb 351613a08f574be7618dc9571095f07275023943
|
180
|
+
tmpsets/set/mod007-05_standard/all/event_viz.rb 0a525c6c7ceaea2cae25233c30eee1d74c5deeb8
|
181
|
+
tmpsets/set/mod007-05_standard/right/account.rb dd0675c197675c3a58758af89fbac15009fd7ef7
|
182
|
+
tmpsets/set/mod005-04_settings/self/autoname.rb 458ff88a1af2ad02bba7445dc2f977ec520a8dbf
|
183
|
+
tmpsets/set/mod003-02_basic_types/all/all_js.rb d175c09352ce033f44ae6177768ffad2c372880a
|
184
|
+
tmpsets/set/mod003-02_basic_types/all/all_csv.rb 98e3ad20cab89c8ecaee22b9cfce71be30ac62bc
|
185
|
+
tmpsets/set/mod005-04_settings/self/on_create.rb 858dace27abe4098eedb27f97ae3fe9a077dbc3e
|
186
|
+
tmpsets/set/mod007-05_standard/right/password.rb ecbc8710df76a2f303a81b8aa74148cf5116a408
|
187
|
+
tmpsets/set/mod003-02_basic_types/all/all_css.rb 680d525c242a470a0b307215129ef164db9690c2
|
188
|
+
tmpsets/set/mod005-04_settings/self/structure.rb 3878d8649d5c8005ff54abfdf02d048816483ae5
|
189
|
+
tmpsets/set/mod005-04_settings/self/on_delete.rb 9deaf88fdff5f9744c023cac528fe214e4aa2022
|
190
|
+
tmpsets/set/mod005-04_settings/self/on_update.rb 56fc36be1287aedac03eae6d96e8f5a971dac56e
|
191
|
+
tmpsets/set/mod005-04_settings/right/add_help.rb c55d59c656176cf1d66e3d7e0a0a4530d7d7de2f
|
192
|
+
tmpsets/set/mod006-05_email/right/html_message.rb 7ef4f80def9f6b7772559279c4ece2ea311a4eb8
|
193
|
+
tmpsets/set/mod004-03_machines/self/script_ace.rb 3802c4a50c790102bb8e44b586ac0d23172285ad
|
194
|
+
tmpsets/set/mod005-04_settings/right/structure.rb 383acce4506fe945601dd5d0e8a4aa5d02f92703
|
195
|
+
tmpsets/set/mod003-02_basic_types/type/pointer.rb cfcf4fc74a0a6e6bbc02e46ee02ec6b2c3eec588
|
196
|
+
tmpsets/set/mod004-03_machines/self/style_cards.rb 15831195c2c87969d95fc0db1f4ec8f2df9e2936
|
197
|
+
tmpsets/set/mod006-05_email/type/email_template.rb a493ecb2870faeb7d29277a787711ebef26c7e0e
|
198
|
+
tmpsets/set/mod006-05_email/right/follow_fields.rb b8e692a0885de589371d1a7409489779da34dec1
|
199
|
+
tmpsets/set/mod007-05_standard/right/discussion.rb ed830b43853bc69b4e56a95536afb7ef4e33dc5f
|
200
|
+
tmpsets/set/mod007-05_standard/type/layout_type.rb 9d68e25dc90923869930176ee721cf288120c405
|
201
|
+
tmpsets/set/mod004-03_machines/self/script_slot.rb 2fdeb728c15bef2a1bd67c9e3b05a86f1cdc6bb5
|
202
|
+
tmpsets/set/mod007-05_standard/type/search_type.rb 3a3667eab0d0c060dc962d82672d13e935447525
|
203
|
+
tmpsets/set/mod005-04_settings/self/accountable.rb b82bec6bb1c2c2d24d1fc4e6a4cce9a112e8095a
|
204
|
+
tmpsets/set/mod004-03_machines/type/java_script.rb 9e9752ec96532fcbe891720c32f1cbcce3eea437
|
205
|
+
tmpsets/set/mod006-05_email/self/follow_defaults.rb 21b5e10a7c3f276354619590730e9987b17af05a
|
206
|
+
tmpsets/set/mod007-05_standard/self/account_links.rb e6bcbb115f852da4c0f59f144046dfed0c9d4831
|
207
|
+
tmpsets/set/mod007-05_standard/all/rich_html/menu.rb f925382dd52e9669a7efe1f1927afe784f25031c
|
208
|
+
tmpsets/set/mod004-03_machines/type/coffee_script.rb a936572586074de4a541eec5e477f93293ee4f1a
|
209
|
+
tmpsets/set/mod007-05_standard/all/rich_html/form.rb 38b233c1918af90701c1f842a731001ead166197
|
210
|
+
tmpsets/set/mod002-01_history/all/content_history.rb 616f8af4fb4eca60ff0d8053a315c3f347045c03
|
211
|
+
tmpsets/set/mod004-03_machines/self/script_jquery.rb 6cc4e7aea842933f42c0b9d60f59d747f1c17c21
|
212
|
+
tmpsets/set/mod008-06_bootstrap/self/smartmenu_js.rb 22d3e42bdfc49d819334c78c9fdeca59649f751c
|
213
|
+
tmpsets/set/mod007-05_standard/right/when_created.rb 8369b82fb9cc6ed60a62f052dbe6c3e30a1469fe
|
214
|
+
tmpsets/set/mod001-01_core/all/tracked_attributes.rb 74aabd7d451a35e134ec1245c1f9db86874259fa
|
215
|
+
tmpsets/set/mod008-06_bootstrap/self/bootstrap_js.rb c4f32725f3e3c471c7825b1e793ce723d27335ad
|
216
|
+
tmpsets/set/mod005-04_settings/self/options_label.rb 98216168a9c1416ef0ad7756d22ad34e68ce993d
|
217
|
+
tmpsets/set/mod003-02_basic_types/type/plain_text.rb 31432a7e2babf211700b2aa29e6a6bd4c9d9933e
|
218
|
+
tmpsets/set/mod004-03_machines/right/machine_input.rb 32aa4d4771d066921c96d918ce292aaababce734
|
219
|
+
tmpsets/set/mod007-05_standard/abstract/attachment.rb b6650620c6e9d91f8b477e3b823163c152761cc8
|
220
|
+
tmpsets/set/mod005-04_settings/abstract/permission.rb 548db1783d9364c4a7c2d1b66c6861fe824540ba
|
221
|
+
tmpsets/set/mod004-03_machines/self/script_tinymce.rb a45df43f085ff1ca79776c5d30d544cd3b98beec
|
222
|
+
tmpsets/set/mod007-05_standard/all/rich_html/modal.rb b27d1e6d149c0d4fa2f6d881d06b9642ea2bd7ce
|
223
|
+
tmpsets/set/mod008-06_bootstrap/self/smartmenu_css.rb 08f659a24f7ee30a09fc95354b49427b8d183be7
|
224
|
+
tmpsets/set/mod008-06_bootstrap/all/bootstrap/form.rb 65dbff7a96a42d29d55896a45da746b0216f719e
|
225
|
+
tmpsets/set/mod008-06_bootstrap/all/rich_bootstrap.rb 88025bc3e368b2017b2c05110f9fdec4722da51c
|
226
|
+
tmpsets/set/mod004-03_machines/right/machine_output.rb e519975cb24e41cf8775945abdf69b9f0b6fe05c
|
227
|
+
tmpsets/set/mod005-04_settings/self/recent_settings.rb 18a1787e0215889751c327a816334fe4e7785231
|
228
|
+
tmpsets/set/mod007-05_standard/all/rich_html/header.rb be0b95d1988162fd923f2a87e24c276065c026b1
|
229
|
+
tmpsets/set/mod007-05_standard/self/performance_log.rb be0c821c5ae8c0d42d58c5b1a4901c5b77264e24
|
230
|
+
tmpsets/set/mod008-06_bootstrap/all/bootstrap/helper.rb ff42b0203f4579cb84ef6dc222c0707f5fb3793a
|
231
|
+
tmpsets/set/mod007-05_standard/all/rich_html/editing.rb 5c0fe766e94ff16e290e135f105160835afbeeac
|
232
|
+
tmpsets/set/mod007-05_standard/all/rich_html/content.rb b4105d093f145bcc6c5542f32de057690e613df6
|
233
|
+
tmpsets/set/mod008-06_bootstrap/self/bootstrap_cards.rb 08b087ddadaa79091a1e92ec17e297d84207f12b
|
234
|
+
tmpsets/set/mod007-05_standard/all/rich_html/toolbar.rb 31463270349c9596e48e902d69818b3452993962
|
235
|
+
tmpsets/set/mod007-05_standard/all/rich_html/wrapper.rb 0d92979fcc49fc716b73386e7e1c3e1f2b06fa1e
|
236
|
+
tmpsets/set/mod004-03_machines/self/script_card_menu.rb 9bb8214393031d1958f859f5109356921ee3a831
|
237
|
+
tmpsets/set/mod007-05_standard/right/when_last_edited.rb 5ac4771217427f5a4cec502a2c749343e980eb37
|
238
|
+
tmpsets/set/mod005-04_settings/self/table_of_contents.rb 4d4ccded307558140206fea0ccdb33fbd91b0a86
|
239
|
+
tmpsets/set/mod008-06_bootstrap/all/bootstrap/wrapper.rb 86634b952a7a1c72e716c39be0006ed8784ddc90
|
240
|
+
tmpsets/set/mod008-06_bootstrap/self/bootswatch_shared.rb e64e097eb153b1fc1d3b4c4e462b50a96924654d
|
241
|
+
tmpsets/set/mod006-05_email/type_plus_right/user/follow.rb 94b3c97e1b5bdb0f5df8a7c22c4ad86afc8d566e
|
242
|
+
tmpsets/set/mod004-03_machines/self/script_jquery_helper.rb 631c44774665641e3b9582b4ab53ce4006432296
|
243
|
+
tmpsets/set/mod004-03_machines/self/style_bootstrap_compatible.rb 4e7e18a482c49f084f45f1e2fb3a7583b2b6ab7c
|
244
|
+
tmpsets/set/mod004-03_machines/self/style_jquery_ui_smoothness.rb d87aae6580eb4e70161f939ca2f26b2d171bf0db
|
245
|
+
tmpsets/set/mod004-03_machines/self/script_html5shiv_printshiv.rb b99a118d70ce599f3fa7c4850789a61a10f71679
|
data/.yardoc/object_types
CHANGED
Binary file
|
data/.yardoc/objects/root.dat
CHANGED
Binary file
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.16.
|
1
|
+
1.16.7
|
@@ -2,9 +2,9 @@
|
|
2
2
|
# Be sure to restart your server when you modify this file.
|
3
3
|
# Add new mime types for use in respond_to blocks:
|
4
4
|
|
5
|
-
#Mime::Type.register 'text/css', :css
|
6
|
-
#Mime::Type.register 'application/rss+xml', :rss
|
7
|
-
#Mime::Type.register_alias 'text/plain', :csv
|
5
|
+
# Mime::Type.register 'text/css', :css
|
6
|
+
# Mime::Type.register 'application/rss+xml', :rss
|
7
|
+
# Mime::Type.register_alias 'text/plain', :csv # useful for testing csv in browser
|
8
8
|
|
9
9
|
Mime::Type.register_alias 'text/plain', :txt
|
10
10
|
Mime::Type.register 'application/vnd.google-earth.kml+xml', :kml
|
@@ -1,4 +1,4 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
ActiveSupport::Notifications.subscribe
|
2
|
+
ActiveSupport::Notifications.subscribe(/^card/) do |name, start, finish, id, payload|
|
3
3
|
Rails.logger.debug "#{ (finish - start) * 1000 }ms: #{ name }: #{ payload[:message] }"
|
4
4
|
end
|
@@ -3,17 +3,17 @@ class UpdateLinkType < ActiveRecord::Migration
|
|
3
3
|
class TmpReference < ActiveRecord::Base
|
4
4
|
self.table_name = 'card_references'
|
5
5
|
end
|
6
|
-
|
6
|
+
|
7
7
|
def up
|
8
|
-
TmpReference.update_all(:
|
9
|
-
TmpReference.where(:
|
10
|
-
TmpReference.where(:
|
11
|
-
TmpReference.where(:
|
8
|
+
TmpReference.update_all(present: 1)
|
9
|
+
TmpReference.where(link_type: 'T').update_all(link_type: 'I')
|
10
|
+
TmpReference.where(link_type: 'M').update_all(present: 0, link_type: 'L')
|
11
|
+
TmpReference.where(link_type: 'W').update_all(present: 0, link_type: 'I')
|
12
12
|
end
|
13
13
|
|
14
14
|
def down
|
15
|
-
TmpReference.where(:
|
16
|
-
TmpReference.where(:
|
17
|
-
TmpReference.where(:
|
15
|
+
TmpReference.where(present: 0, link_type: 'L').update_all(link_type: 'M')
|
16
|
+
TmpReference.where(present: 0, link_type: 'I').update_all(link_type: 'W')
|
17
|
+
TmpReference.where(present: 1, link_type: 'I').update_all(link_type: 'T')
|
18
18
|
end
|
19
19
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
2
|
class UpdateCodenames < ActiveRecord::Migration
|
3
3
|
def up
|
4
|
-
{ :
|
4
|
+
{ content: :structure, edit_help: :help }.each do |oldname, newname|
|
5
5
|
execute %{update cards set codename = "#{newname}" where codename = "#{oldname}";}
|
6
6
|
end
|
7
7
|
end
|
8
8
|
|
9
9
|
def down
|
10
|
-
{ :
|
10
|
+
{ content: :structure, edit_help: :help }.each do |oldname, newname|
|
11
11
|
execute %{update cards set codename = "#{oldname}" where codename = "#{newname}";}
|
12
12
|
end
|
13
13
|
end
|
@@ -1,16 +1,15 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
2
|
class CreateNewRevisionTables < ActiveRecord::Migration
|
3
|
-
|
4
3
|
def up
|
5
4
|
add_column :cards, :db_content, :text
|
6
|
-
|
5
|
+
|
7
6
|
create_table :card_acts do |t|
|
8
7
|
t.integer :card_id
|
9
8
|
t.integer :actor_id
|
10
9
|
t.datetime :acted_at
|
11
10
|
t.string :ip_address
|
12
11
|
end
|
13
|
-
|
12
|
+
|
14
13
|
create_table :card_actions do |t|
|
15
14
|
t.integer :card_id
|
16
15
|
t.integer :card_act_id
|
@@ -18,20 +17,20 @@ class CreateNewRevisionTables < ActiveRecord::Migration
|
|
18
17
|
t.integer :action_type
|
19
18
|
t.boolean :draft
|
20
19
|
end
|
21
|
-
|
20
|
+
|
22
21
|
create_table :card_changes do |t|
|
23
22
|
t.integer :card_action_id
|
24
23
|
t.integer :field
|
25
|
-
t.text :value
|
24
|
+
t.text :value
|
26
25
|
end
|
27
|
-
|
28
|
-
add_index :card_acts, :card_id, :
|
29
|
-
add_index :card_acts, :actor_id, :
|
30
|
-
add_index :card_actions, :card_id, :
|
31
|
-
add_index :card_actions, :card_act_id, :
|
32
|
-
add_index :card_changes, :card_action_id, :
|
33
|
-
#add_index :card_actions, [:card_id, :draft], :
|
34
|
-
#add_index :card_changes, [:card_action_id, :field], :
|
26
|
+
|
27
|
+
add_index :card_acts, :card_id, name: 'card_id_index'
|
28
|
+
add_index :card_acts, :actor_id, name: 'actor_id_index'
|
29
|
+
add_index :card_actions, :card_id, name: 'card_id_index'
|
30
|
+
add_index :card_actions, :card_act_id, name: 'card_act_id_index'
|
31
|
+
add_index :card_changes, :card_action_id, name: 'card_action_id_index'
|
32
|
+
# add_index :card_actions, [:card_id, :draft], name: 'card_id_and_draft_index'
|
33
|
+
# add_index :card_changes, [:card_action_id, :field], name: 'card_action_id_and_field_index'
|
35
34
|
end
|
36
35
|
|
37
36
|
def down
|
@@ -1,9 +1,9 @@
|
|
1
1
|
class MoveRevisionsToActions < ActiveRecord::Migration
|
2
2
|
class TmpRevision < ActiveRecord::Base
|
3
|
-
belongs_to :tmp_card, :
|
3
|
+
belongs_to :tmp_card, foreign_key: :card_id
|
4
4
|
self.table_name = 'card_revisions'
|
5
5
|
def self.delete_cardless
|
6
|
-
TmpRevision.where( TmpCard.where( :
|
6
|
+
TmpRevision.where( TmpCard.where( id: arel_table[:card_id] ).exists.not ).delete_all
|
7
7
|
end
|
8
8
|
end
|
9
9
|
class TmpAct < ActiveRecord::Base
|
@@ -16,41 +16,41 @@ class MoveRevisionsToActions < ActiveRecord::Migration
|
|
16
16
|
self.table_name = 'card_changes'
|
17
17
|
end
|
18
18
|
class TmpCard < ActiveRecord::Base
|
19
|
-
belongs_to :tmp_revision, :
|
20
|
-
has_many :tmp_actions, :
|
19
|
+
belongs_to :tmp_revision, foreign_key: :current_revision_id
|
20
|
+
has_many :tmp_actions, foreign_key: :card_id
|
21
21
|
self.table_name = 'cards'
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
def up
|
25
25
|
TmpRevision.delete_cardless
|
26
|
-
|
26
|
+
|
27
27
|
conn = TmpRevision.connection
|
28
28
|
created = Set.new
|
29
29
|
|
30
30
|
TmpRevision.find_each do |rev|
|
31
|
-
TmpAct.create({:
|
31
|
+
TmpAct.create({id: rev.id, card_id: rev.card_id, actor_id: rev.creator_id, acted_at: rev.created_at}, without_protection: true)
|
32
32
|
if created.include? rev.card_id
|
33
|
-
TmpAction.connection.execute "INSERT INTO card_actions (id, card_id, card_act_id, action_type) VALUES
|
33
|
+
TmpAction.connection.execute "INSERT INTO card_actions (id, card_id, card_act_id, action_type) VALUES
|
34
34
|
('#{rev.id}', '#{rev.card_id}', '#{rev.id}', 1)"
|
35
|
-
TmpChange.connection.execute "INSERT INTO card_changes (card_action_id, field, value) VALUES
|
35
|
+
TmpChange.connection.execute "INSERT INTO card_changes (card_action_id, field, value) VALUES
|
36
36
|
('#{rev.id}', 2, #{conn.quote(rev.content)})"
|
37
37
|
else
|
38
|
-
TmpAction.connection.execute "INSERT INTO card_actions (id, card_id, card_act_id, action_type) VALUES
|
38
|
+
TmpAction.connection.execute "INSERT INTO card_actions (id, card_id, card_act_id, action_type) VALUES
|
39
39
|
('#{rev.id}', '#{rev.card_id}', '#{rev.id}', 0)"
|
40
|
-
|
41
|
-
if tmp_card = rev.tmp_card
|
42
|
-
TmpChange.connection.execute "INSERT INTO card_changes (card_action_id, field, value) VALUES
|
43
|
-
('#{rev.id}', 0, #{conn.quote tmp_card.name}),
|
40
|
+
|
41
|
+
if (tmp_card = rev.tmp_card)
|
42
|
+
TmpChange.connection.execute "INSERT INTO card_changes (card_action_id, field, value) VALUES
|
43
|
+
('#{rev.id}', 0, #{conn.quote tmp_card.name}),
|
44
44
|
('#{rev.id}', 1, '#{tmp_card.type_id}'),
|
45
45
|
('#{rev.id}', 2, #{conn.quote(rev.content)}),
|
46
46
|
('#{rev.id}', 3, #{tmp_card.trash})"
|
47
47
|
end
|
48
48
|
created.add rev.card_id
|
49
49
|
end
|
50
|
-
end
|
50
|
+
end
|
51
51
|
|
52
52
|
TmpCard.find_each do |card|
|
53
|
-
card.update_column(:db_content,card.tmp_revision.content) if card.tmp_revision
|
53
|
+
card.update_column(:db_content, card.tmp_revision.content) if card.tmp_revision
|
54
54
|
end
|
55
55
|
|
56
56
|
#drop_table :card_revisions
|