wagn 1.13.0.pre2 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.simplecov +7 -2
- data/.tm_properties +1 -0
- data/CONTRIBUTING.rdoc +13 -2
- data/README.rdoc +3 -5
- data/VERSION +1 -1
- data/config/routes.rb +1 -5
- data/config/version_cards.txt +1 -1
- data/db/bootstrap/card_references.yml +199 -213
- data/db/bootstrap/card_revisions.yml +634 -656
- data/db/bootstrap/cards.yml +1403 -1437
- data/db/migrate_cards/20140307231621_user_data_to_cards.rb +1 -7
- data/db/migrate_cards/20140317035504_account_requests_to_signups.rb +9 -0
- data/db/migrate_cards/20140725180118_config_card_updates.rb +12 -0
- data/db/migrate_cards/data/1.13_config_text.json +32 -0
- data/features/setup.feature +1 -1
- data/lib/card/auth.rb +0 -24
- data/lib/card/content.rb +9 -4
- data/lib/card/env.rb +1 -13
- data/lib/card/format.rb +8 -3
- data/lib/card/generators/format/format_generator.rb +2 -2
- data/lib/card/generators/set/set_generator.rb +2 -2
- data/lib/card/loader.rb +11 -11
- data/lib/card/set.rb +3 -3
- data/lib/card/set_pattern.rb +1 -1
- data/lib/wagn/application.rb +6 -6
- data/lib/wagn/commands.rb +2 -2
- data/lib/wagn/config/environments/development.rb +1 -5
- data/lib/wagn/config/initializers/uuid_state_file.rb +1 -0
- data/lib/wagn/generators/wagn/templates/Gemfile +21 -16
- data/lib/wagn/generators/wagn/templates/config/application.rb +1 -1
- data/lib/wagn/generators/wagn/templates/config/boot.rb +7 -3
- data/lib/wagn/generators/wagn/wagn_generator.rb +4 -4
- data/lib/wagn/mods_spec_helper.rb +0 -2
- data/lib/wagn/tasks/test.rake +1 -1
- data/lib/wagn/tasks/wagn.rake +21 -26
- data/lib/wagn/version.rb +4 -8
- data/{mods/core/chunks → mod/core/chunk}/include.rb +0 -0
- data/{mods/core/chunks → mod/core/chunk}/link.rb +0 -0
- data/{mods/core/chunks → mod/core/chunk}/literal.rb +0 -0
- data/{mods/core/chunks → mod/core/chunk}/reference.rb +0 -0
- data/{mods/core/chunks → mod/core/chunk}/uri.rb +0 -0
- data/{mods/core/formats → mod/core/format}/data_format.rb +0 -0
- data/{mods/core/formats → mod/core/format}/html_format.rb +2 -2
- data/{mods/core/formats → mod/core/format}/text_format.rb +0 -0
- data/{mods/core/layouts → mod/core/layout}/blank.html +0 -0
- data/{mods/core/layouts → mod/core/layout}/default.html +0 -0
- data/{mods/core/layouts → mod/core/layout}/noside.html +0 -0
- data/{mods/core/layouts → mod/core/layout}/pre.html +0 -0
- data/{mods/core/layouts → mod/core/layout}/simple.html +0 -0
- data/{mods/core/sets → mod/core/set}/all/active_card.rb +0 -0
- data/{mods/core/sets → mod/core/set}/all/attribute_tracking.rb +0 -0
- data/{mods/core/sets → mod/core/set}/all/collection.rb +38 -0
- data/{mods/core/sets → mod/core/set}/all/content.rb +0 -0
- data/{mods/core/sets → mod/core/set}/all/fetch.rb +0 -0
- data/{mods/core/sets → mod/core/set}/all/initialize.rb +0 -0
- data/{mods/core/sets → mod/core/set}/all/name.rb +0 -0
- data/{mods/core/sets → mod/core/set}/all/pattern.rb +0 -0
- data/{mods/core/sets → mod/core/set}/all/permissions.rb +17 -7
- data/{mods/core/sets → mod/core/set}/all/phases.rb +1 -0
- data/{mods/core/sets → mod/core/set}/all/references.rb +0 -0
- data/{mods/core/sets → mod/core/set}/all/rules.rb +0 -0
- data/{mods/core/sets → mod/core/set}/all/states.rb +0 -0
- data/{mods/core/sets → mod/core/set}/all/templating.rb +0 -0
- data/{mods/core/sets → mod/core/set}/all/tracked_attributes.rb +0 -0
- data/{mods/core/sets → mod/core/set}/all/trash.rb +0 -0
- data/{mods/core/sets → mod/core/set}/all/type.rb +0 -0
- data/{mods/core/sets → mod/core/set}/all/utils.rb +4 -2
- data/{mods/core/sets → mod/core/set}/right/structure.rb +0 -0
- data/{mods/core/sets → mod/core/set}/type/plain_text.rb +0 -0
- data/{mods/core/set_patterns → mod/core/set_pattern}/01_all.rb +0 -0
- data/{mods/core/set_patterns → mod/core/set_pattern}/02_all_plus.rb +0 -0
- data/{mods/core/set_patterns → mod/core/set_pattern}/03_type.rb +0 -0
- data/{mods/core/set_patterns → mod/core/set_pattern}/04_star.rb +0 -0
- data/{mods/core/set_patterns → mod/core/set_pattern}/05_rstar.rb +0 -0
- data/{mods/core/set_patterns → mod/core/set_pattern}/06_right.rb +0 -0
- data/{mods/core/set_patterns → mod/core/set_pattern}/07_type_plus_right.rb +0 -0
- data/{mods/core/set_patterns → mod/core/set_pattern}/08_self.rb +0 -0
- data/{mods/standard/files → mod/standard/file}/103/icon-6566.ico +0 -0
- data/{mods/standard/files → mod/standard/file}/103/large-6566.ico +0 -0
- data/{mods/standard/files → mod/standard/file}/103/medium-6566.ico +0 -0
- data/{mods/standard/files → mod/standard/file}/103/original-6566.ico +0 -0
- data/{mods/standard/files → mod/standard/file}/103/small-6566.ico +0 -0
- data/{mods/standard/files → mod/standard/file}/79/icon-6556.png +0 -0
- data/{mods/standard/files → mod/standard/file}/79/large-6556.png +0 -0
- data/{mods/standard/files → mod/standard/file}/79/medium-6556.png +0 -0
- data/{mods/standard/files → mod/standard/file}/79/original-6556.png +0 -0
- data/{mods/standard/files → mod/standard/file}/79/small-6556.png +0 -0
- data/{mods/standard/files → mod/standard/file}/790/icon-6419.png +0 -0
- data/{mods/standard/files → mod/standard/file}/790/large-6419.png +0 -0
- data/{mods/standard/files → mod/standard/file}/790/medium-6419.png +0 -0
- data/{mods/standard/files → mod/standard/file}/790/original-6419.png +0 -0
- data/{mods/standard/files → mod/standard/file}/790/small-6419.png +0 -0
- data/{mods/standard/formats → mod/standard/format}/css_format.rb +0 -0
- data/{mods/standard/formats → mod/standard/format}/csv_format.rb +0 -0
- data/{mods/standard/formats → mod/standard/format}/email_html_format.rb +0 -0
- data/{mods/standard/formats → mod/standard/format}/file_format.rb +0 -0
- data/{mods/standard/formats → mod/standard/format}/js_format.rb +0 -0
- data/{mods/standard/formats → mod/standard/format}/json_format.rb +0 -0
- data/{mods/standard/formats → mod/standard/format}/rss_format.rb +0 -0
- data/{mods/standard/formats → mod/standard/format}/xml_format.rb +0 -0
- data/{mods → mod}/standard/lib/card/machine.rb +37 -9
- data/{mods → mod}/standard/lib/card/machine_input.rb +2 -2
- data/{mods → mod}/standard/lib/javascript/html5shiv-printshiv.js +0 -0
- data/{mods → mod}/standard/lib/javascript/jquery-ui.js +0 -0
- data/{mods → mod}/standard/lib/javascript/jquery.autosize.js +0 -0
- data/{mods → mod}/standard/lib/javascript/jquery.fileupload.js +0 -0
- data/{mods → mod}/standard/lib/javascript/jquery.iframe-transport.js +0 -0
- data/{mods → mod}/standard/lib/javascript/jquery.js +0 -0
- data/{mods → mod}/standard/lib/javascript/jquery.ui.autocomplete.html.js +0 -0
- data/{mods → mod}/standard/lib/javascript/jquery_ujs.js +0 -0
- data/{mods → mod}/standard/lib/javascript/jquerymobile.js +0 -0
- data/{mods → mod}/standard/lib/javascript/tinymce.js +0 -0
- data/{mods → mod}/standard/lib/javascript/wagn.js.coffee +13 -4
- data/{mods → mod}/standard/lib/javascript/wagn_menu.js +0 -0
- data/{mods → mod}/standard/lib/javascript/wagn_mod.js.coffee +0 -0
- data/{mods → mod}/standard/lib/stylesheets/functional.scss +0 -0
- data/{mods → mod}/standard/lib/stylesheets/jquery-ui-smoothness.css +0 -0
- data/{mods → mod}/standard/lib/stylesheets/standard.scss +0 -0
- data/{mods/standard/sets → mod/standard/set}/all/account.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/all/all_css.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/all/all_csv.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/all/attach.rb +1 -1
- data/{mods/standard/sets → mod/standard/set}/all/base.rb +2 -2
- data/{mods/standard/sets → mod/standard/set}/all/comment.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/all/email_html.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/all/event_viz.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/all/file.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/all/flexmail.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/all/follow.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/all/history.rb +1 -1
- data/{mods/standard/sets → mod/standard/set}/all/json.rb +2 -2
- data/{mods/standard/sets → mod/standard/set}/all/rich_html.rb +12 -7
- data/{mods/standard/sets → mod/standard/set}/all/rss.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/all/text.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/right/account.rb +27 -10
- data/{mods/standard/sets → mod/standard/set}/right/add_help.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/right/comment.rb +2 -2
- data/{mods/standard/sets → mod/standard/set}/right/create.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/right/default.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/right/delete.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/right/email.rb +0 -0
- data/mod/standard/set/right/help.rb +3 -0
- data/mod/standard/set/right/machine_output.rb +19 -0
- data/{mods/standard/sets → mod/standard/set}/right/password.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/right/read.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/right/salt.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/right/script.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/right/stats.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/right/status.rb +0 -0
- data/mod/standard/set/right/style.rb +9 -0
- data/{mods/standard/sets → mod/standard/set}/right/token.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/right/update.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/right/when_created.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/right/when_last_edited.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/rstar/rules.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/self/account_links.rb +3 -3
- data/{mods/standard/sets → mod/standard/set}/self/alerts.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/self/all.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/self/foot.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/self/head.rb +1 -1
- data/{mods/standard/sets → mod/standard/set}/self/navbox.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/self/now.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/self/recent.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/self/script_card_menu.rb +1 -1
- data/{mods/standard/sets/self/style_functional.rb → mod/standard/set/self/script_html5shiv_printshiv.rb} +1 -2
- data/{mods/standard/sets → mod/standard/set}/self/script_jquery.rb +1 -1
- data/{mods/standard/sets → mod/standard/set}/self/script_jquery_helper.rb +1 -1
- data/{mods/standard/sets → mod/standard/set}/self/script_slot.rb +1 -1
- data/{mods/standard/sets → mod/standard/set}/self/script_tinymce.rb +1 -1
- data/{mods/standard/sets → mod/standard/set}/self/search.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/self/signin.rb +9 -1
- data/{mods/standard/sets → mod/standard/set}/self/stats.rb +0 -0
- data/mod/standard/set/self/style_functional.rb +8 -0
- data/mod/standard/set/self/style_jquery_ui_smoothness.rb +8 -0
- data/{mods/standard/sets → mod/standard/set}/self/style_standard.rb +1 -1
- data/{mods/standard/sets → mod/standard/set}/self/version.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/type/basic.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/type/cardtype.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/type/coffee_script.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/type/css.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/type/date.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/type/file.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/type/html.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/type/image.rb +1 -1
- data/{mods/standard/sets → mod/standard/set}/type/java_script.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/type/layout_type.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/type/number.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/type/phrase.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/type/pointer.rb +11 -1
- data/{mods/standard/sets → mod/standard/set}/type/scss.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/type/search_type.rb +1 -35
- data/{mods/standard/sets → mod/standard/set}/type/set.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/type/setting.rb +0 -0
- data/mod/standard/set/type/signup.rb +146 -0
- data/{mods/standard/sets → mod/standard/set}/type/skin.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/type/toggle.rb +0 -0
- data/{mods/standard/sets → mod/standard/set}/type/user.rb +10 -20
- data/spec/controllers/card_controller_spec.rb +1 -4
- data/spec/{mods/core/chunks → mod/core/chunk}/literal_spec.rb +0 -0
- data/spec/{mods/core/chunks → mod/core/chunk}/uri_spec.rb +0 -0
- data/spec/{mods/core/formats → mod/core/format}/data_format_spec.rb +0 -0
- data/spec/{mods/core/formats → mod/core/format}/html_format_spec.rb +0 -0
- data/spec/{mods/core/formats → mod/core/format}/text_format_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/active_card_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/attribute_tracking_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/collection_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/content_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/fetch_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/initialize_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/name_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/pattern_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/permissions_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/phases_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/references_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/rules2_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/rules_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/states_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/templating_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/tracked_attributes_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/trash_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/type_spec.rb +0 -0
- data/spec/{mods/core/sets → mod/core/set}/all/utils_spec.rb +0 -0
- data/spec/{mods/standard/chunks → mod/standard/chunk}/include_spec.rb +0 -0
- data/spec/{mods/standard/chunks → mod/standard/chunk}/link_spec.rb +0 -0
- data/spec/{mods/standard/formats → mod/standard/format}/css_format_spec.rb +0 -0
- data/spec/{mods/standard/formats → mod/standard/format}/csv_format_spec.rb +0 -0
- data/spec/{mods/standard/formats → mod/standard/format}/email_html_format_spec.rb +0 -0
- data/spec/{mods/standard/formats → mod/standard/format}/file_format_spec.rb +0 -0
- data/spec/{mods/standard/formats → mod/standard/format}/js_format_spec.rb +0 -0
- data/spec/{mods/standard/formats → mod/standard/format}/json_format_spec.rb +0 -0
- data/spec/{mods/standard/formats → mod/standard/format}/rss_format_spec.rb +0 -0
- data/spec/{mods/standard/formats → mod/standard/format}/xml_format_spec.rb +0 -0
- data/spec/{mods → mod}/standard/lib/machine_input_spec.rb +0 -0
- data/spec/{mods → mod}/standard/lib/machine_spec.rb +17 -3
- data/spec/{mods/standard/sets → mod/standard/set}/all/account_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/all/all_css_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/all/all_csv_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/all/attach_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/all/base_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/all/comment_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/all/email_html_spec.rb +0 -0
- data/spec/mod/standard/set/all/event_viz_spec.rb +9 -0
- data/spec/{mods/standard/sets → mod/standard/set}/all/file_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/all/flexmail_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/all/follow_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/all/history_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/all/json_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/all/rich_html_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/all/rss_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/all/text_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/account_spec.rb +1 -1
- data/spec/{mods/standard/sets → mod/standard/set}/right/add_help_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/comment_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/create_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/default_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/delete_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/email_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/help_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/machine_output_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/password_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/read_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/salt_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/script_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/stats_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/status_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/structure_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/style_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/token_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/update_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/when_created_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/right/when_last_edited_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/rstar/rules_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/self/account_links_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/self/alerts_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/self/all_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/self/foot_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/self/head_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/self/navbox_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/self/now_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/self/recent_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/self/search_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/self/signin_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/self/stats_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/self/style_functional_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/self/style_jquery_ui_smoothness_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/self/style_standard_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/self/version_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/basic_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/cardtype_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/coffeescript_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/css_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/date_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/file_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/html_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/image_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/javascript_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/layout_type_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/number_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/phrase_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/plain_text_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/pointer_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/scss_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/search_type_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/set_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/setting_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/signup_spec.rb +44 -5
- data/spec/{mods/standard/sets → mod/standard/set}/type/skin_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/toggle_spec.rb +0 -0
- data/spec/{mods/standard/sets → mod/standard/set}/type/user_spec.rb +0 -0
- data/spec/spec_helper.rb +2 -2
- data/test/fixtures/card_references.yml +440 -482
- data/test/fixtures/card_revisions.yml +1287 -1384
- data/test/fixtures/cards.yml +2268 -2472
- metadata +389 -390
- data/config.ru +0 -4
- data/config/samples/asset_htaccess +0 -9
- data/config/samples/robots.txt +0 -12
- data/mods/standard/sets/right/help.rb +0 -3
- data/mods/standard/sets/right/machine_output.rb +0 -14
- data/mods/standard/sets/right/style.rb +0 -22
- data/mods/standard/sets/self/script_html5shiv_printshiv.rb +0 -7
- data/mods/standard/sets/self/style_jquery_ui_smoothness.rb +0 -8
- data/mods/standard/sets/type/signup.rb +0 -113
- data/spec/mods/standard/sets/all/event_viz_spec.rb +0 -7
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -100,8 +100,8 @@ class Card
|
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
103
|
-
host_class.event "
|
104
|
-
|
103
|
+
host_class.event "reset_machine_output_#{host_class.name.gsub(':','_')}".to_sym, :after => :store_subcards, :on => :save do
|
104
|
+
reset_machine_output!
|
105
105
|
end
|
106
106
|
end
|
107
107
|
end
|
@@ -119,17 +119,45 @@ class Card
|
|
119
119
|
end.select(&:present?).join( joint )
|
120
120
|
after_engine output
|
121
121
|
end
|
122
|
+
|
123
|
+
def reset_machine_output!
|
124
|
+
Auth.as_bot do
|
125
|
+
moc = machine_output_card and moc.real? and moc.delete!
|
126
|
+
mic = machine_input_card and mic.real? and mic.delete!
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
122
130
|
|
123
|
-
def update_machine_output
|
124
|
-
|
125
|
-
|
131
|
+
def update_machine_output
|
132
|
+
if ok? :read and not was_already_locked = locked?
|
133
|
+
Auth.as_bot do
|
134
|
+
lock!
|
135
|
+
update_input_card
|
136
|
+
run_machine
|
137
|
+
end
|
138
|
+
end
|
139
|
+
ensure
|
140
|
+
unlock! unless was_already_locked
|
141
|
+
end
|
142
|
+
|
143
|
+
def lock_cache_key
|
144
|
+
"UPDATE-LOCK:#{key}"
|
145
|
+
end
|
146
|
+
|
147
|
+
def locked?
|
148
|
+
Card.cache.read lock_cache_key
|
149
|
+
end
|
150
|
+
|
151
|
+
def lock!
|
152
|
+
Card.cache.write lock_cache_key, true
|
153
|
+
end
|
154
|
+
|
155
|
+
def unlock!
|
156
|
+
Card.cache.write lock_cache_key, false
|
126
157
|
end
|
127
158
|
|
128
159
|
def update_input_card
|
129
|
-
|
130
|
-
machine_input_card.items = engine_input
|
131
|
-
#machine_input_card.save
|
132
|
-
end
|
160
|
+
machine_input_card.items = engine_input
|
133
161
|
end
|
134
162
|
|
135
163
|
def input_item_cards
|
@@ -21,7 +21,7 @@ class Card
|
|
21
21
|
host_class.event "after_machine_input_updated_#{host_class.name.gsub(':','_')}".to_sym, :after=>:extend, :on => :save do
|
22
22
|
machines = Card.search( {:right_plus => [{:codename => "machine_input"}, {:link_to => name}]}.merge(host_class.machines_wql) )
|
23
23
|
machines.each do |item|
|
24
|
-
item.
|
24
|
+
item.reset_machine_output! if item.kind_of? Machine
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
@@ -31,7 +31,7 @@ class Card
|
|
31
31
|
|
32
32
|
host_class.event "after_machine_input_deleted_#{host_class.name.gsub(':','_')}".to_sym, :after=>:store_subcards, :on => :delete do
|
33
33
|
@involved_machines.each do |item|
|
34
|
-
item.
|
34
|
+
item.reset_machine_output! if item.kind_of? Machine
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -23,6 +23,11 @@ $.extend wagn,
|
|
23
23
|
wagn.slotParams value, processed, cgiKey
|
24
24
|
else
|
25
25
|
processed[cgiKey] = value
|
26
|
+
|
27
|
+
slotReady: (func)->
|
28
|
+
$('document').ready ->
|
29
|
+
$('body').on 'slotReady', '.card-slot', ->
|
30
|
+
func.call this, $(this)
|
26
31
|
|
27
32
|
pingName: (name, success)->
|
28
33
|
$.getJSON wagn.rootPath + '/', { format: 'json', view: 'status', 'card[name]': name }, success
|
@@ -39,10 +44,10 @@ jQuery.fn.extend {
|
|
39
44
|
else #simple text (not html)
|
40
45
|
v = val
|
41
46
|
s.replaceWith v
|
47
|
+
v.trigger 'slotReady'
|
42
48
|
v
|
43
49
|
|
44
50
|
slotSuccess: (data) ->
|
45
|
-
|
46
51
|
if data.redirect
|
47
52
|
window.location=data.redirect
|
48
53
|
else
|
@@ -135,7 +140,9 @@ $(window).ready ->
|
|
135
140
|
# dislike the timeout, but without this forms with multiple TinyMCE editors were failing to load properly
|
136
141
|
|
137
142
|
$('body').on 'ajax:success', '.slotter', (event, data, c, d) ->
|
138
|
-
|
143
|
+
unless event.slotSuccessful
|
144
|
+
$(this).slotSuccess data
|
145
|
+
event.slotSuccessful = true
|
139
146
|
|
140
147
|
$('body').on 'ajax:error', '.slotter', (event, xhr) ->
|
141
148
|
$(this).slotError xhr.status, xhr.responseText
|
@@ -208,15 +215,16 @@ $(window).ready ->
|
|
208
215
|
unless wagn.noDoubleClick
|
209
216
|
$('body').on 'dblclick', '.card-slot', (event) ->
|
210
217
|
s = $(this)
|
211
|
-
return false if s.
|
218
|
+
return false if s.closest( '.nodblclick' )[0]
|
212
219
|
return false if s.closest( '.card-header' )[0]
|
220
|
+
return false if s.find( '.card-editor' )[0]
|
213
221
|
return false unless s.data('cardId')
|
214
222
|
s.addClass 'slotter'
|
215
223
|
s.attr 'href', wagn.rootPath + '/card/edit/~' + s.data('cardId')
|
216
224
|
$.rails.handleRemote(s)
|
217
225
|
false # don't propagate up to next slot
|
218
226
|
|
219
|
-
$('body').on 'dblclick', '.nodblclick', -> false
|
227
|
+
# $('body').on 'dblclick', '.nodblclick', -> false
|
220
228
|
|
221
229
|
$('body').on 'submit', 'form.slotter', (event)->
|
222
230
|
if (target = $(this).attr 'main-success') and $(this).isMain()
|
@@ -279,6 +287,7 @@ $(window).ready ->
|
|
279
287
|
msg.show()
|
280
288
|
# msg.dialog()
|
281
289
|
event.preventDefault()
|
290
|
+
|
282
291
|
|
283
292
|
# important: this prevents jquery-mobile from taking over everything
|
284
293
|
$( document ).on "mobileinit", ->
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -115,7 +115,7 @@ module Paperclip::Interpolations
|
|
115
115
|
def local at, style_name
|
116
116
|
if mod = at.instance.attach_mod
|
117
117
|
# generalize this to work with any mod (needs design)
|
118
|
-
"#{Wagn.gem_root}/
|
118
|
+
"#{Wagn.gem_root}/mod/#{mod}/file"
|
119
119
|
else
|
120
120
|
Wagn.paths['files'].existent.first
|
121
121
|
end
|
@@ -22,8 +22,8 @@ format do
|
|
22
22
|
|
23
23
|
# DATE VIEWS
|
24
24
|
|
25
|
-
view :created_at do |args| time_ago_in_words card.created_at end
|
26
|
-
view :updated_at do |args| time_ago_in_words card.updated_at end
|
25
|
+
view :created_at, :perms=>:none do |args| time_ago_in_words card.created_at end
|
26
|
+
view :updated_at, :perms=>:none do |args| time_ago_in_words card.updated_at end
|
27
27
|
|
28
28
|
|
29
29
|
# CONTENT VIEWS
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -54,9 +54,9 @@ format :json do
|
|
54
54
|
view :atom do |args|
|
55
55
|
h = {
|
56
56
|
:name => card.name,
|
57
|
-
:type => card.type_name
|
58
|
-
:content => card.raw_content
|
57
|
+
:type => card.type_name
|
59
58
|
}
|
59
|
+
h[:content] = card.content unless card.structure
|
60
60
|
h[:codename] = card.codename if card.codename
|
61
61
|
h[:value] = _render_core args if @depth < max_depth
|
62
62
|
h
|
@@ -14,8 +14,7 @@ format :html do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
view :layout, :perms=>:none do |args|
|
17
|
-
|
18
|
-
process_content layout_content
|
17
|
+
process_content get_layout_content, :content_opts=>{ :chunk_list=>:default }
|
19
18
|
end
|
20
19
|
|
21
20
|
view :content do |args|
|
@@ -89,6 +88,12 @@ format :html do
|
|
89
88
|
</h1>
|
90
89
|
}
|
91
90
|
end
|
91
|
+
|
92
|
+
=begin
|
93
|
+
view :anchor, :perms=>:none, :tags=>:unknown_ok do |args|
|
94
|
+
%{ <a id="#{card.cardname.url_key}" name="#{card.cardname.url_key}"></a> }
|
95
|
+
end
|
96
|
+
=end
|
92
97
|
|
93
98
|
view :menu, :tags=>:unknown_ok do |args|
|
94
99
|
disc_tagname = Card.fetch(:discussion, :skip_modules=>true).cardname
|
@@ -158,7 +163,7 @@ format :html do
|
|
158
163
|
hidden[:success] ||= card.rule(:thanks) || '_self'
|
159
164
|
hidden[:card ] ||={}
|
160
165
|
|
161
|
-
args[:optional_help]
|
166
|
+
args[:optional_help] ||= :show
|
162
167
|
|
163
168
|
# name field / title
|
164
169
|
if !params[:name_prompt] and !card.cardname.blank?
|
@@ -215,7 +220,7 @@ format :html do
|
|
215
220
|
args[:optional_help] = :show
|
216
221
|
|
217
222
|
args[:buttons] = %{
|
218
|
-
#{ button_tag 'Submit', :class=>'submit-button' }
|
223
|
+
#{ button_tag 'Submit', :class=>'submit-button', :disable_with=>'Submitting' }
|
219
224
|
#{ button_tag 'Cancel', :class=>'cancel-button slotter', :href=>path, :type=>'button' }
|
220
225
|
}
|
221
226
|
end
|
@@ -256,8 +261,8 @@ format :html do
|
|
256
261
|
:card => { :update_referencers => false }
|
257
262
|
)
|
258
263
|
args[:buttons] = %{
|
259
|
-
#{ button_tag 'Rename and Update', :class=>'renamer-updater' }
|
260
|
-
#{ button_tag 'Rename', :class=>'renamer'
|
264
|
+
#{ button_tag 'Rename and Update', :disable_with=>'Renaming', :class=>'renamer-updater' }
|
265
|
+
#{ button_tag 'Rename', :disable_with=>'Renaming', :class=>'renamer' }
|
261
266
|
#{ button_tag 'Cancel', :class=>'slotter', :type=>'button', :href=>path(:view=>:edit, :id=>card.id)}
|
262
267
|
}
|
263
268
|
|
@@ -285,7 +290,7 @@ format :html do
|
|
285
290
|
|
286
291
|
|
287
292
|
view :missing do |args|
|
288
|
-
return '' unless card.ok? :create #
|
293
|
+
return '' unless card.ok? :create # should this be moved into ok_view?
|
289
294
|
new_args = { :view=>:new, 'card[name]'=>card.name }
|
290
295
|
new_args['card[type]'] = args[:type] if args[:type]
|
291
296
|
|
File without changes
|
File without changes
|
@@ -12,13 +12,25 @@ def blocked? ; status=='blocked' end
|
|
12
12
|
def built_in? ; status=='system' end
|
13
13
|
def pending? ; status=='pending' end
|
14
14
|
|
15
|
+
|
16
|
+
def authenticate_by_token val
|
17
|
+
tcard = token_card or return :token_not_found
|
18
|
+
token == val or return :incorrect_token
|
19
|
+
tcard.updated_at > Wagn.config.token_expiry.ago or return :token_expired # > means "after"
|
20
|
+
left and left.accountable? or return :illegal_account #(overkill?)
|
21
|
+
Auth.as_bot { tcard.delete! }
|
22
|
+
left.id
|
23
|
+
end
|
24
|
+
|
25
|
+
|
26
|
+
|
15
27
|
format :html do
|
16
28
|
|
17
29
|
view :raw do |args|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
30
|
+
content = []
|
31
|
+
content << "{{+#{Card[:email ].name}|titled;title:email}}" unless args[:no_email]
|
32
|
+
content << "{{+#{Card[:password].name}|titled;title:password}}" unless args[:no_password]
|
33
|
+
content * ' '
|
22
34
|
end
|
23
35
|
|
24
36
|
view :edit do |args|
|
@@ -60,14 +72,11 @@ event :generate_confirmation_token, :on=>:create, :before=>:process_subcards, :w
|
|
60
72
|
subcards["+#{Card[:token].name}"] = {:content => generate_token }
|
61
73
|
end
|
62
74
|
|
63
|
-
event :reset_password, :on=>:update, :before=>:approve, :when=>proc{ |c| c.has_reset_token? } do
|
64
|
-
result =
|
65
|
-
case result
|
75
|
+
event :reset_password, :on=>:update, :before=>:approve, :when=>proc{ |c| c.has_reset_token? } do
|
76
|
+
case ( result = authenticate_by_token @env_token )
|
66
77
|
when Integer
|
67
78
|
Auth.signin result
|
68
|
-
Env.params[:success] =
|
69
|
-
:related=>{:name=>"+#{Card[:account].name}", :view=>'edit'}
|
70
|
-
}
|
79
|
+
Env.params[:success] = edit_password_success_args
|
71
80
|
abort :success
|
72
81
|
when :token_expired
|
73
82
|
send_reset_password_token
|
@@ -82,6 +91,14 @@ event :reset_password, :on=>:update, :before=>:approve, :when=>proc{ |c| c.has_r
|
|
82
91
|
end
|
83
92
|
end
|
84
93
|
|
94
|
+
def edit_password_success_args
|
95
|
+
{
|
96
|
+
:id=>left.name,
|
97
|
+
:view=>:related,
|
98
|
+
:related=>{ :name=>"+#{Card[:account].name}", :view=>'edit' }
|
99
|
+
}
|
100
|
+
end
|
101
|
+
|
85
102
|
def has_reset_token?
|
86
103
|
@env_token = Env.params[:reset_token]
|
87
104
|
end
|
File without changes
|
@@ -54,12 +54,12 @@ format :html do
|
|
54
54
|
view :pointer_core, :view=>:core, :mod=>Type::Pointer::HtmlFormat
|
55
55
|
|
56
56
|
view :core do |args|
|
57
|
-
args[:item] ||= :link
|
58
57
|
card.content=='_left' ? core_inherit_content(args) : render( :pointer_core, args )
|
59
58
|
end
|
60
59
|
|
61
60
|
view :closed_content do |args|
|
62
|
-
|
61
|
+
args[:item] ||= :link
|
62
|
+
render_core args
|
63
63
|
end
|
64
64
|
|
65
65
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
format do
|
2
|
+
view :not_found do |args|
|
3
|
+
if update_machine_output_live?
|
4
|
+
root.error_status = 302
|
5
|
+
card.left.update_machine_output
|
6
|
+
wagn_path card.left.machine_output_url
|
7
|
+
else
|
8
|
+
super args
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def update_machine_output_live?
|
13
|
+
srid = card.selected_revision_id
|
14
|
+
card.left.kind_of? Machine and # must be a machine
|
15
|
+
!card.left.locked? and # machine must not already be running
|
16
|
+
( card.new_card? or !srid or srid == card.current_revision_id ) # must want current output (won't re-output old stuff)
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|