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
|
@@ -6,10 +6,10 @@ format :html do
|
|
6
6
|
links = []
|
7
7
|
if Auth.signed_in?
|
8
8
|
links << link_to_page( Auth.current.name, nil, :id=>'my-card-link' )
|
9
|
+
if Card.new(:type_id=>Card.default_accounted_type_id).ok? :create
|
10
|
+
links << link_to( 'Invite', wagn_path('account/signup'), :id=>'invite-a-friend-link' )
|
11
|
+
end
|
9
12
|
links << link_to( 'Sign out', wagn_path('delete/:signin'), :id=>'signout-link' )
|
10
|
-
# if Card.new(:type_id=>Card.default_accounted_type_id).ok? :create
|
11
|
-
# link_to 'Invite a Friend', "#{prefix}/invite", :id=>'invite-a-friend-link'
|
12
|
-
# end
|
13
13
|
else
|
14
14
|
if Card.new(:type_id=>Card::SignupID).ok? :create
|
15
15
|
links << link_to( 'Sign up', wagn_path('account/signup'), :id=>'signup-link' )
|
File without changes
|
File without changes
|
File without changes
|
@@ -72,7 +72,7 @@ format :html do
|
|
72
72
|
"window.wagn={rootPath:'#{ Wagn.config.relative_url_root }'}",
|
73
73
|
"window.tinyMCEPreInit={base:\"#{wagn_path 'assets/tinymce'}\",query:'3.5.9',suffix:''}" # tinyMCE doesn't load on non-root wagns w/o preinit line
|
74
74
|
]
|
75
|
-
|
75
|
+
card.have_recaptcha_keys? and varvals << "wagn.recaptchaKey='#{Wagn.config.recaptcha_public_key}'"
|
76
76
|
c=Card[:double_click] and !Card.toggle c.content and varvals << 'wagn.noDoubleClick=true'
|
77
77
|
@css_path and varvals << "wagn.cssPath='#{@css_path}'"
|
78
78
|
|
File without changes
|
File without changes
|
File without changes
|
@@ -4,7 +4,7 @@ view :raw do |args|
|
|
4
4
|
# jquery.ui.autocomplete must be after jquery.ui stuff
|
5
5
|
js_files = %w( jquerymobile.js jquery-ui.js jquery.ui.autocomplete.html.js jquery.autosize.js jquery.fileupload.js jquery.iframe-transport.js jquery_ujs.js )
|
6
6
|
js_files.map do |filename|
|
7
|
-
File.read "#{Wagn.gem_root}/
|
7
|
+
File.read "#{Wagn.gem_root}/mod/standard/lib/javascript/#{filename}"
|
8
8
|
end.join("\n")
|
9
9
|
end
|
10
10
|
|
File without changes
|
@@ -2,15 +2,23 @@
|
|
2
2
|
format :html do
|
3
3
|
|
4
4
|
view :open do |args|
|
5
|
-
args.merge! :
|
5
|
+
args.merge! :optional_help=>:show
|
6
6
|
super args
|
7
7
|
end
|
8
|
+
|
9
|
+
def default_title_args args
|
10
|
+
args[:title] ||= 'Sign In'
|
11
|
+
end
|
8
12
|
|
9
13
|
view :open_content do |args|
|
10
14
|
# annoying step designed to avoid table of contents. sigh
|
11
15
|
_render_core( args )
|
12
16
|
end
|
13
17
|
|
18
|
+
view :closed_content do |args|
|
19
|
+
''
|
20
|
+
end
|
21
|
+
|
14
22
|
|
15
23
|
view :core do |args|
|
16
24
|
args[:buttons] = button_tag 'Sign in'
|
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
|
File without changes
|
@@ -138,6 +138,16 @@ format :css do
|
|
138
138
|
|
139
139
|
end
|
140
140
|
|
141
|
+
|
142
|
+
format :js do
|
143
|
+
view :core do |args|
|
144
|
+
card.item_cards.map do |item|
|
145
|
+
nest item, :view=>(params[:item] || :core)
|
146
|
+
end.join "\n\n"
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
|
141
151
|
format :data do
|
142
152
|
view :core do |args|
|
143
153
|
card.item_cards.map do |c|
|
@@ -172,7 +182,7 @@ end
|
|
172
182
|
def item_names args={}
|
173
183
|
context = args[:context] || self.cardname
|
174
184
|
self.raw_content.to_s.split(/\n+/).map do |line|
|
175
|
-
item_name = line.gsub /\[\[|\]\]/, ''
|
185
|
+
item_name = line.gsub( /\[\[|\]\]/, '').strip
|
176
186
|
if context == :raw
|
177
187
|
item_name
|
178
188
|
else
|
File without changes
|
@@ -78,7 +78,7 @@ format do
|
|
78
78
|
v = {}
|
79
79
|
v[:spec] = card.spec search_params
|
80
80
|
v[:item] = set_inclusion_opts args.merge( :spec_view=>v[:spec][:view] )
|
81
|
-
v[:results] = card.item_cards search_params
|
81
|
+
v[:results] = card.item_cards search_params # this is really odd. the search is called from within the vars???
|
82
82
|
v
|
83
83
|
rescue =>e
|
84
84
|
{ :error => e }
|
@@ -95,40 +95,6 @@ format do
|
|
95
95
|
|
96
96
|
|
97
97
|
|
98
|
-
def search_params
|
99
|
-
@search_params ||= begin
|
100
|
-
p = default_search_params.clone
|
101
|
-
|
102
|
-
if focal?
|
103
|
-
p[:offset] = params[:offset] if params[:offset]
|
104
|
-
p[:limit] = params[:limit] if params[:limit]
|
105
|
-
p.merge! params[:wql] if params[:wql]
|
106
|
-
end
|
107
|
-
p
|
108
|
-
end
|
109
|
-
end
|
110
|
-
|
111
|
-
def default_search_params # wahh?
|
112
|
-
set_default_search_params
|
113
|
-
end
|
114
|
-
|
115
|
-
def set_default_search_params overrides={}
|
116
|
-
@default_search_params ||= begin
|
117
|
-
p = { :default_limit=> 100 }.merge overrides
|
118
|
-
set_search_params_variables! p
|
119
|
-
p
|
120
|
-
end
|
121
|
-
end
|
122
|
-
|
123
|
-
def set_search_params_variables! hash
|
124
|
-
hash[:vars] = params[:vars] || {}
|
125
|
-
params.each do |key,val|
|
126
|
-
case key.to_s
|
127
|
-
when '_wql' ; hash.merge! val
|
128
|
-
when /^\_(\w+)$/ ; hash[:vars][$1.to_sym] = val
|
129
|
-
end
|
130
|
-
end
|
131
|
-
end
|
132
98
|
|
133
99
|
def page_link text, page
|
134
100
|
@paging_path_args[:offset] = page * @paging_limit
|
File without changes
|
File without changes
|
@@ -0,0 +1,146 @@
|
|
1
|
+
|
2
|
+
format :html do
|
3
|
+
|
4
|
+
def default_new_args args
|
5
|
+
super args
|
6
|
+
args.merge!(
|
7
|
+
:optional_help => :show, #, :optional_menu=>:never
|
8
|
+
:buttons => button_tag( 'Submit' ),
|
9
|
+
:account => card.fetch( :trait=>:account, :new=>{} ),
|
10
|
+
:hidden => {
|
11
|
+
:success => (card.rule(:thanks) || '_self'),
|
12
|
+
'card[type_id]' => card.type_id
|
13
|
+
}
|
14
|
+
)
|
15
|
+
|
16
|
+
if Auth.signed_in? and args[:account].confirm_ok?
|
17
|
+
args[:buttons] = button_tag 'Send Sign-up Token'
|
18
|
+
args[:hidden][:success] = '_self'
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
view :new do |args|
|
23
|
+
#FIXME - make more use of standard new view?
|
24
|
+
|
25
|
+
frame_and_form :create, args, 'main-success'=>"REDIRECT" do
|
26
|
+
[
|
27
|
+
_render_name_fieldset( :help=>'usually first and last name' ),
|
28
|
+
_optional_render( :account_fieldsets, args),
|
29
|
+
( card.structure ? edit_slot : ''),
|
30
|
+
_optional_render( :button_fieldset, args )
|
31
|
+
]
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
|
36
|
+
view :account_fieldsets do |args|
|
37
|
+
sub_args = { :structure => true }
|
38
|
+
sub_args[:no_password] = true if Auth.signed_in?
|
39
|
+
Auth.as_bot { subformat( args[:account] )._render :content_fieldset, sub_args } #YUCK!!!!
|
40
|
+
end
|
41
|
+
|
42
|
+
|
43
|
+
view :core do |args|
|
44
|
+
headings, links = [], []
|
45
|
+
if !card.new_card? #necessary?
|
46
|
+
by_anon = card.creator_id == AnonymousID
|
47
|
+
headings << %(<strong>#{ card.name }</strong> #{ 'was' if !by_anon } signed up on #{ format_date card.created_at })
|
48
|
+
if account = card.account
|
49
|
+
token_action = 'Send'
|
50
|
+
if account.token
|
51
|
+
headings << "An activation token has been sent #{ "to #{account.email}" if account.email_card.ok? :read }"
|
52
|
+
token_action = 'Resend'
|
53
|
+
end
|
54
|
+
if account.confirm_ok?
|
55
|
+
links << link_to( "#{token_action} token", wagn_path("/update/~#{card.id}?approve_token=true" ) )
|
56
|
+
links << link_to( "Approve without token", wagn_path("/update/~#{card.id}?approve_without_token=true") )
|
57
|
+
end
|
58
|
+
if card.ok? :delete
|
59
|
+
links << link_to( "Deny and delete", wagn_path("/delete/~#{card.id}") )
|
60
|
+
end
|
61
|
+
headings << links * '' if links.any?
|
62
|
+
else
|
63
|
+
headings << "ERROR: signup card missing account"
|
64
|
+
end
|
65
|
+
end
|
66
|
+
%{<div class="invite-links">
|
67
|
+
#{ headings.map { |h| "<div>#{h}</div>"} * "\n" }
|
68
|
+
</div>
|
69
|
+
#{ process_content render_raw }
|
70
|
+
}
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
event :activate_by_token, :before=>:approve, :on=>:update, :when=>proc{ |c| c.has_token? } do
|
75
|
+
result = account ? account.authenticate_by_token( @env_token ) : "no account associated with #{name}"
|
76
|
+
case result
|
77
|
+
when Integer
|
78
|
+
abort :failure, 'no field manipulation mid-activation' if subcards.present?
|
79
|
+
# necessary because the rest of the action is performed as Wagn Bot
|
80
|
+
activate_account
|
81
|
+
Auth.signin id
|
82
|
+
Auth.as_bot
|
83
|
+
Env.params[:success] = ''
|
84
|
+
when :token_expired
|
85
|
+
resend_activation_token
|
86
|
+
abort :success
|
87
|
+
else
|
88
|
+
abort :failure, "signup activation error: #{authentication_result}" # bad token or account
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
def has_token?
|
93
|
+
@env_token = Env.params[:token]
|
94
|
+
end
|
95
|
+
|
96
|
+
event :activate_account do
|
97
|
+
subcards['+*account'] = {'+*status'=>'active'}
|
98
|
+
self.type_id = Card.default_accounted_type_id
|
99
|
+
end
|
100
|
+
|
101
|
+
event :approve_token, :on=>:update, :before=>:approve, :when=>proc {|c| Env.params[:approve_token] } do
|
102
|
+
abort :failure, 'illegal approval' unless account.confirm_ok?
|
103
|
+
account.reset_token
|
104
|
+
account.send_account_confirmation_email
|
105
|
+
end
|
106
|
+
|
107
|
+
event :approve_without_token, :on=>:update, :before=>:approve, :when=>proc {|c| Env.params[:approve_without_token] } do
|
108
|
+
abort :failure, 'illegal approval' unless account.confirm_ok?
|
109
|
+
activate_account
|
110
|
+
end
|
111
|
+
|
112
|
+
event :resend_activation_token do
|
113
|
+
account.reset_token
|
114
|
+
account.send_account_confirmation_email
|
115
|
+
Env.params[:success] = {
|
116
|
+
:id => '_self',
|
117
|
+
:view => 'message',
|
118
|
+
:message => "Sorry, this token has expired. Please check your email for a new password reset link."
|
119
|
+
}
|
120
|
+
end
|
121
|
+
|
122
|
+
def signed_in_as_me_without_password?
|
123
|
+
Auth.signed_in? && Auth.current_id==id && account.password.blank?
|
124
|
+
end
|
125
|
+
|
126
|
+
event :redirect_to_edit_password, :on=>:update, :after=>:store, :when=>proc {|c| c.signed_in_as_me_without_password? } do
|
127
|
+
Env.params[:success] = account.edit_password_success_args
|
128
|
+
end
|
129
|
+
|
130
|
+
|
131
|
+
event :preprocess_account_subcards, :before=>:process_subcards, :on=>:create do
|
132
|
+
#FIXME: use codenames!
|
133
|
+
email, password = subcards.delete('+*account+*email'), subcards.delete('+*account+*password')
|
134
|
+
subcards['+*account'] ||={}
|
135
|
+
subcards['+*account']['+*email'] = email if email
|
136
|
+
subcards['+*account']['+*password' ]=password if password
|
137
|
+
end
|
138
|
+
|
139
|
+
send_signup_notifications = proc do |c|
|
140
|
+
!Auth.signed_in? and c.account and c.account.pending? and Card.setting '*request+*to'
|
141
|
+
end
|
142
|
+
|
143
|
+
event :signup_notifications, :after=>:extend, :on=>:create, :when=>send_signup_notifications do
|
144
|
+
Mailer.signup_alert(self).deliver
|
145
|
+
end
|
146
|
+
|