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
@@ -35,13 +35,7 @@ class UserDataToCards < ActiveRecord::Migration
|
|
35
35
|
rulename = [ :signin, :self, setting ].map { |code| Card[code].name } * '+'
|
36
36
|
Card.create! :name=>rulename, :content=>"[[#{Card[:anyone].name}]]"
|
37
37
|
end
|
38
|
-
|
39
|
-
puts "turn captcha off by default on signup"
|
40
|
-
rulename = [:signup, :type, :captcha].map { |code| Card[code].name } * '+'
|
41
|
-
captcha_rule = Card.fetch rulename, :new=>{}
|
42
|
-
captcha_rule.content = '0'
|
43
|
-
captcha_rule.save!
|
44
|
-
|
38
|
+
|
45
39
|
puts "supporting legacy handling of +*email on User cards"
|
46
40
|
oldname = [ :email, :right, :structure].map { |code| Card[code].name } * '+'
|
47
41
|
newname = [:user, :email, :type_plus_right, :structure].map { |code| Card[code].name } * '+'
|
@@ -23,6 +23,8 @@ class AccountRequestsToSignups < ActiveRecord::Migration
|
|
23
23
|
new_signup.update_referencers = true
|
24
24
|
new_signup.codename = :signup
|
25
25
|
new_signup.save!
|
26
|
+
|
27
|
+
Card::Codename.reset_cache
|
26
28
|
|
27
29
|
# move old "*signup+*thanks" to "Sign up+*type+*thanks"
|
28
30
|
thanks = Card[:thanks]
|
@@ -37,6 +39,13 @@ class AccountRequestsToSignups < ActiveRecord::Migration
|
|
37
39
|
old_signup.delete!
|
38
40
|
end
|
39
41
|
|
42
|
+
# turn captcha off by default on signup
|
43
|
+
rulename = [:signup, :type, :captcha].map { |code| Card[code].name } * '+'
|
44
|
+
captcha_rule = Card.fetch rulename, :new=>{}
|
45
|
+
captcha_rule.content = '0'
|
46
|
+
captcha_rule.save!
|
47
|
+
|
48
|
+
|
40
49
|
end
|
41
50
|
end
|
42
51
|
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
|
3
|
+
class ConfigCardUpdates < ActiveRecord::Migration
|
4
|
+
include Wagn::MigrationHelper
|
5
|
+
def up
|
6
|
+
contentedly do
|
7
|
+
raw_json = File.read( File.join Wagn.gem_root, 'db/migrate_cards/data/1.13_config_text.json' )
|
8
|
+
json = JSON.parse raw_json
|
9
|
+
Card.merge_list json["card"]["value"], :output_file=>"tmp/unmerged_config_text.json", :pristine=>true
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
{
|
2
|
+
"url": "http://en.dwagn.org/export.json",
|
3
|
+
"timestamp": "2014-07-25 17:38:28 +0000",
|
4
|
+
"card": {
|
5
|
+
"name": "export",
|
6
|
+
"type": "Pointer",
|
7
|
+
"content": "[[Signup Success]]\n[[Sign up+description]]\n[[Config]]\n[[*request]]",
|
8
|
+
"value": [
|
9
|
+
{
|
10
|
+
"name": "Signup Success",
|
11
|
+
"type": "Basic",
|
12
|
+
"content": "<div>Thank you for signing up with {{*title}}. You should receive a response in your email.</div>"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"name": "Sign up+description",
|
16
|
+
"type": "Basic",
|
17
|
+
"content": "<p>[[Sign up]] cards represent not-yet-approved accounts. When approved, they become [[User]] cards. [[http://wagn.org/account|more]]</p>"
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"name": "Config",
|
21
|
+
"type": "Basic",
|
22
|
+
"content": "<h1>Basics</h1>\r\n<div>Set your site name, home card, and logo image:</div>\r\n<blockquote>\r\n<div>{{*title|closed;type:Phrase}}</div>\r\n<div>{{*home|closed;type:Phrase}}</div>\r\n<div>{{*logo|closed;type:Image}}</div>\r\n</blockquote>\r\n<div> </div>\r\n<h1>Rules</h1>\r\n<div>Cards are configured by creating <em>rules</em>. All the rules impacting a given card can be accessed from its card menu via the \"advanced\" item. Here are the site-wide defaults:</div>\r\n<div>\r\n<blockquote>{{*all|open}}</blockquote>\r\n</div>\r\n<div><em>[[http://wagn.org/rules | More about rules.]]</em></div>\r\n<div> </div>\r\n<h1>Accounts</h1>\r\n<div>Accounts are represented in cards, too. You first create a [[Sign up]] card, and that then turns into a [[User]] card.</div>\r\n<blockquote>\r\n<div>{{Sign up|closed}}</div>\r\n<div>{{User|closed}}</div>\r\n</blockquote>\r\n<div>\r\n<ul>\r\n<li>When [[Anyone]] can [[*create|create]] a [[Sign up]] card, links to sign up will appear.</li>\r\n<li>When [[Anyone]] can [[*create|create]] a [[User]] card, sign-ups can be authenticated with a token.</li>\r\n<li>When only other [[Roles]] can [[*create|create]] a [[User]] card, sign-ups must be approved by hand. </li>\r\n</ul>\r\n</div>\r\n<div><em>[[http://wagn.org/account | More about accounts.]]</em></div>\r\n<div> </div>\r\n<blockquote>\r\n<div> </div>\r\n<div> </div>\r\n</blockquote>"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"name": "*request",
|
26
|
+
"type": "Basic",
|
27
|
+
"content": "",
|
28
|
+
"codename": "request"
|
29
|
+
}
|
30
|
+
]
|
31
|
+
}
|
32
|
+
}
|
data/features/setup.feature
CHANGED
@@ -15,7 +15,7 @@ Feature: Setting up
|
|
15
15
|
When I fill in "card_name" with "The Newber"
|
16
16
|
And I enter "newb@wagn.org" into "*email"
|
17
17
|
And I enter "newb_pass" into "*password"
|
18
|
-
And I press "
|
18
|
+
And I press "Set up"
|
19
19
|
Then I should see "The Newber"
|
20
20
|
|
21
21
|
When I go to card "The Newber\+\*roles"
|
data/lib/card/auth.rb
CHANGED
@@ -25,31 +25,7 @@ class Card
|
|
25
25
|
account.password == encrypt( password, account.salt )
|
26
26
|
end
|
27
27
|
|
28
|
-
def authenticate_by_token token
|
29
|
-
token_card = find_token_card(token) or return :token_not_found
|
30
|
-
|
31
|
-
token_card.updated_at >
|
32
|
-
Wagn.config.token_expiry.ago or return :token_expired # > means "after"
|
33
|
-
|
34
|
-
account = token_card.left and
|
35
|
-
account.right_id==Card::AccountID or return :bad_account
|
36
|
-
|
37
|
-
accounted = account.left and
|
38
|
-
accounted.accountable? or return :illegal_account #(overkill?)
|
39
|
-
|
40
|
-
as_bot { token_card.delete! }
|
41
|
-
accounted.id
|
42
|
-
end
|
43
28
|
|
44
|
-
def find_token_card token
|
45
|
-
Auth.as_bot do
|
46
|
-
Card.search(
|
47
|
-
:right_id=>Card::TokenID,
|
48
|
-
:content=>token
|
49
|
-
).first
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
29
|
# Encrypts some data with the salt.
|
54
30
|
def encrypt password, salt
|
55
31
|
Digest::SHA1.hexdigest "#{salt}--#{password}--"
|
data/lib/card/content.rb
CHANGED
@@ -5,15 +5,16 @@ require_dependency 'card/chunk'
|
|
5
5
|
|
6
6
|
class Card
|
7
7
|
class Content < SimpleDelegator
|
8
|
-
attr_reader :revision, :format, :chunks
|
8
|
+
attr_reader :revision, :format, :chunks, :opts
|
9
9
|
|
10
|
-
def initialize content, format_or_card
|
10
|
+
def initialize content, format_or_card, opts={}
|
11
11
|
@format = if Card===format_or_card
|
12
12
|
Format.new format_or_card, :format=>nil
|
13
13
|
else
|
14
14
|
format_or_card
|
15
15
|
end
|
16
|
-
|
16
|
+
@opts = opts || {}
|
17
|
+
|
17
18
|
unless Array === content
|
18
19
|
content = parse_content content
|
19
20
|
end
|
@@ -23,6 +24,10 @@ class Card
|
|
23
24
|
def card
|
24
25
|
format.card
|
25
26
|
end
|
27
|
+
|
28
|
+
def chunk_list
|
29
|
+
@opts[:chunk_list] || card.chunk_list
|
30
|
+
end
|
26
31
|
|
27
32
|
def to_s
|
28
33
|
case __getobj__
|
@@ -62,7 +67,7 @@ class Card
|
|
62
67
|
|
63
68
|
if String===content
|
64
69
|
position = last_position = 0
|
65
|
-
prefix_regexp = Chunk.get_prefix_regexp
|
70
|
+
prefix_regexp = Chunk.get_prefix_regexp chunk_list
|
66
71
|
interval_string = ''
|
67
72
|
|
68
73
|
while prefix_match = content[position..-1].match( prefix_regexp )
|
data/lib/card/env.rb
CHANGED
@@ -25,14 +25,6 @@ class Card
|
|
25
25
|
@@env[key.to_sym] = value
|
26
26
|
end
|
27
27
|
|
28
|
-
#hacky - should be in module
|
29
|
-
def recaptcha_on?
|
30
|
-
if self[:recaptcha_on].nil?
|
31
|
-
self[:recaptcha_count] = 0
|
32
|
-
self[:recaptcha_on] = self[:controller] && have_recaptcha_keys? && !Auth.signed_in? && !Auth.needs_setup? && !Auth.always_ok?
|
33
|
-
end
|
34
|
-
self[:recaptcha_on]
|
35
|
-
end
|
36
28
|
|
37
29
|
def params
|
38
30
|
self[:params] ||= {}
|
@@ -54,11 +46,7 @@ class Card
|
|
54
46
|
end
|
55
47
|
end
|
56
48
|
|
57
|
-
|
58
|
-
|
59
|
-
def have_recaptcha_keys?
|
60
|
-
!!( Wagn.config.recaptcha_public_key && Wagn.config.recaptcha_private_key )
|
61
|
-
end
|
49
|
+
|
62
50
|
end
|
63
51
|
end
|
64
52
|
Env.reset
|
data/lib/card/format.rb
CHANGED
@@ -284,7 +284,7 @@ class Card
|
|
284
284
|
return content unless card
|
285
285
|
content = card.raw_content || '' if content.nil?
|
286
286
|
|
287
|
-
obj_content = Card::Content===content ? content : Card::Content.new( content, format=self )
|
287
|
+
obj_content = Card::Content===content ? content : Card::Content.new( content, format=self, opts.delete(:content_opts) )
|
288
288
|
|
289
289
|
card.update_references( obj_content, refresh=true ) if card.references_expired # I thik we need this generalized
|
290
290
|
|
@@ -410,8 +410,13 @@ class Card
|
|
410
410
|
opts.delete_if { |k,v| v.nil? }
|
411
411
|
opts.reverse_merge! inclusion_defaults
|
412
412
|
|
413
|
-
sub =
|
414
|
-
|
413
|
+
sub = nil
|
414
|
+
if opts[:inc_name] =~ /^_(self)?$/
|
415
|
+
sub = self
|
416
|
+
else
|
417
|
+
sub = subformat nested_card
|
418
|
+
sub.inclusion_opts = opts[:items] ? opts[:items].clone : {}
|
419
|
+
end
|
415
420
|
|
416
421
|
|
417
422
|
view = canonicalize_view opts.delete :view
|
@@ -2,7 +2,7 @@ class FormatGenerator < Rails::Generators::NamedBase
|
|
2
2
|
source_root File.expand_path('../templates', __FILE__)
|
3
3
|
|
4
4
|
def create_files
|
5
|
-
template 'format_template.erb', "
|
6
|
-
template 'format_spec_template.erb', "spec/
|
5
|
+
template 'format_template.erb', "mod/standard/format/#{file_name}_format.rb"
|
6
|
+
template 'format_spec_template.erb', "spec/mod/standard/format/#{file_name}_format_spec.rb"
|
7
7
|
end
|
8
8
|
end
|
@@ -7,8 +7,8 @@ class SetGenerator < Rails::Generators::Base
|
|
7
7
|
argument :anchor
|
8
8
|
|
9
9
|
def create_files
|
10
|
-
template 'set_template.erb', "
|
11
|
-
template 'set_spec_template.erb', "spec/
|
10
|
+
template 'set_template.erb', "mod/#{mod}/set/#{set_pattern}/#{anchor}.rb"
|
11
|
+
template 'set_spec_template.erb', "spec/mod/#{mod}/set/#{set_pattern}/#{anchor}_spec.rb"
|
12
12
|
end
|
13
13
|
|
14
14
|
end
|
data/lib/card/loader.rb
CHANGED
@@ -14,13 +14,13 @@ class Card
|
|
14
14
|
|
15
15
|
def load_chunks
|
16
16
|
mod_dirs.each do |mod|
|
17
|
-
load_dir "#{mod}/
|
17
|
+
load_dir "#{mod}/chunk/*.rb"
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
21
|
def load_layouts
|
22
22
|
mod_dirs.inject({}) do |hash, mod|
|
23
|
-
dirname = "#{mod}/
|
23
|
+
dirname = "#{mod}/layout"
|
24
24
|
if File.exists? dirname
|
25
25
|
Dir.foreach( dirname ) do |filename|
|
26
26
|
next if filename =~ /^\./
|
@@ -35,7 +35,7 @@ class Card
|
|
35
35
|
|
36
36
|
def mod_dirs
|
37
37
|
@@mod_dirs ||= begin
|
38
|
-
(Wagn.paths['gem-
|
38
|
+
(Wagn.paths['gem-mod'].existent + Wagn.paths['local-mod'].existent).map do |dirname|
|
39
39
|
Dir.entries( dirname ).sort.map do |filename|
|
40
40
|
"#{dirname}/#{filename}" if filename !~ /^\./
|
41
41
|
end
|
@@ -47,14 +47,14 @@ class Card
|
|
47
47
|
if rewrite_tmp_files?
|
48
48
|
load_set_patterns_from_source
|
49
49
|
end
|
50
|
-
load_dir "#{Wagn.paths['tmp/
|
50
|
+
load_dir "#{Wagn.paths['tmp/set_pattern'].first}/*.rb"
|
51
51
|
end
|
52
52
|
|
53
53
|
def load_set_patterns_from_source
|
54
|
-
prepare_tmp_dir 'tmp/
|
54
|
+
prepare_tmp_dir 'tmp/set_pattern'
|
55
55
|
seq = 100
|
56
56
|
mod_dirs.each do |mod|
|
57
|
-
dirname = "#{mod}/
|
57
|
+
dirname = "#{mod}/set_pattern"
|
58
58
|
if Dir.exists? dirname
|
59
59
|
Dir.entries( dirname ).sort.each do |filename|
|
60
60
|
if m = filename.match( /^(\d+_)?([^\.]*).rb/) and key = m[2]
|
@@ -70,12 +70,12 @@ class Card
|
|
70
70
|
def load_formats
|
71
71
|
#cheating on load issues now by putting all inherited-from formats in core mod.
|
72
72
|
mod_dirs.each do |mod|
|
73
|
-
load_dir "#{mod}/
|
73
|
+
load_dir "#{mod}/format/*.rb"
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
77
|
def load_sets
|
78
|
-
prepare_tmp_dir 'tmp/
|
78
|
+
prepare_tmp_dir 'tmp/set'
|
79
79
|
load_sets_by_pattern
|
80
80
|
Set.process_base_modules
|
81
81
|
Set.clean_empty_modules
|
@@ -84,7 +84,7 @@ class Card
|
|
84
84
|
|
85
85
|
def load_sets_by_pattern
|
86
86
|
Card.set_patterns.reverse.map(&:pattern_code).each do |set_pattern|
|
87
|
-
pattern_tmp_dir = "#{Wagn.paths['tmp/
|
87
|
+
pattern_tmp_dir = "#{Wagn.paths['tmp/set'].first}/#{set_pattern}"
|
88
88
|
if rewrite_tmp_files?
|
89
89
|
Dir.mkdir pattern_tmp_dir
|
90
90
|
load_implicit_sets_from_source set_pattern
|
@@ -98,7 +98,7 @@ class Card
|
|
98
98
|
def load_implicit_sets_from_source set_pattern
|
99
99
|
seq = 1000
|
100
100
|
mod_dirs.each do |mod_dir|
|
101
|
-
dirname = [mod_dir, '
|
101
|
+
dirname = [mod_dir, 'set', set_pattern] * '/'
|
102
102
|
next unless File.exists?( dirname )
|
103
103
|
|
104
104
|
#FIXME support multiple anchors!
|
@@ -129,7 +129,7 @@ class Card
|
|
129
129
|
if defined?( @@rewrite )
|
130
130
|
@@rewrite
|
131
131
|
else
|
132
|
-
@@rewrite = !( Rails.env.production? and Wagn.paths['tmp/
|
132
|
+
@@rewrite = !( Rails.env.production? and Wagn.paths['tmp/set'].existent.first )
|
133
133
|
end
|
134
134
|
end
|
135
135
|
|
data/lib/card/set.rb
CHANGED
@@ -42,7 +42,7 @@ class Card
|
|
42
42
|
|
43
43
|
...then mycard will include the set modules associated with each of those sets in the above
|
44
44
|
order. (The order is determined by the set pattern; see lib/card/set_pattern.rb for more
|
45
|
-
information about set_ptterns and
|
45
|
+
information about set_ptterns and mod/core/set/all/fetch.rb for more about fetching.)
|
46
46
|
|
47
47
|
Similarly, whenever a Format object is instantiated for a card, it includes all views
|
48
48
|
associated with BOTH (a) sets of which the card is a member and (b) the current format or
|
@@ -50,7 +50,7 @@ class Card
|
|
50
50
|
|
51
51
|
|
52
52
|
In order to have a set file associated with "all cards ending in +address", you could create
|
53
|
-
a file in mywagn/
|
53
|
+
a file in mywagn/mod/mymod/set/right/address.rb. The recommended mechanism for doing so
|
54
54
|
is running `wagn generate set modname set_pattern set_anchor`. In the current example, this
|
55
55
|
would translate to `wagn generate set mymod right address`. Note that both the set_pattern
|
56
56
|
and the set_anchor must correspond to the codename of a card in the database to function
|
@@ -196,7 +196,7 @@ class Card
|
|
196
196
|
# There are special hacks for *all, but others (like *rstar) will not be found by
|
197
197
|
# include_set_modules, which will look for Card::Set::Rstar, not Card::Set::Rstar::Blah
|
198
198
|
|
199
|
-
to_file = "#{Wagn.paths['tmp/
|
199
|
+
to_file = "#{Wagn.paths['tmp/set'].first}/#{set_pattern}/#{seq}-#{anchor}.rb"
|
200
200
|
file_content = <<EOF
|
201
201
|
# -*- encoding : utf-8 -*-
|
202
202
|
class Card; module Set; module #{set_pattern.camelize}; module #{anchor.camelize}
|
data/lib/card/set_pattern.rb
CHANGED
@@ -40,7 +40,7 @@ class Card
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def write_tmp_file pattern_code, from_file, seq
|
43
|
-
to_file = "#{Wagn.paths['tmp/
|
43
|
+
to_file = "#{Wagn.paths['tmp/set_pattern'].first}/#{seq}-#{pattern_code}.rb"
|
44
44
|
klass = "Card::#{pattern_code.camelize}Set"
|
45
45
|
file_content = <<EOF
|
46
46
|
# -*- encoding : utf-8 -*-
|
data/lib/wagn/application.rb
CHANGED
@@ -43,7 +43,7 @@ module Wagn
|
|
43
43
|
|
44
44
|
config.autoload_paths += Dir["#{Wagn.gem_root}/app/**/"]
|
45
45
|
config.autoload_paths += Dir["#{Wagn.gem_root}/lib/**/"]
|
46
|
-
config.autoload_paths += Dir["#{Wagn.gem_root}/
|
46
|
+
config.autoload_paths += Dir["#{Wagn.gem_root}/mod/standard/lib/**/"]
|
47
47
|
|
48
48
|
config.assets.enabled = false
|
49
49
|
config.assets.version = '1.0'
|
@@ -84,17 +84,17 @@ module Wagn
|
|
84
84
|
add_gem_path paths, "db/migrate"
|
85
85
|
add_gem_path paths, "db/migrate_cards"
|
86
86
|
add_gem_path paths, "db/seeds", :with => "db/seeds.rb"
|
87
|
-
add_gem_path paths, 'gem-
|
87
|
+
add_gem_path paths, 'gem-mod', :with => 'mod'
|
88
88
|
add_gem_path paths, 'gem-assets', :with => 'public/assets'
|
89
89
|
|
90
90
|
paths['app/models'] = []
|
91
91
|
paths['app/mailers'] = []
|
92
92
|
paths['app/views'] = File.join( Wagn.gem_root, 'lib/card' )
|
93
|
-
paths['local-
|
94
|
-
|
93
|
+
paths['local-mod'] = approot_is_gemroot? ? [] : 'mod'
|
94
|
+
|
95
95
|
paths.add 'files'
|
96
|
-
paths.add 'tmp/
|
97
|
-
paths.add 'tmp/
|
96
|
+
paths.add 'tmp/set'
|
97
|
+
paths.add 'tmp/set_pattern'
|
98
98
|
|
99
99
|
paths
|
100
100
|
end
|
data/lib/wagn/commands.rb
CHANGED
@@ -48,12 +48,12 @@ else
|
|
48
48
|
when 'rspec'
|
49
49
|
if index = ( ARGV.index("-s") || ARGV.index("--spec" ))
|
50
50
|
ARGV.delete_at(index)
|
51
|
-
files = Dir.glob("
|
51
|
+
files = Dir.glob("mod/**/#{ARGV[index]}_spec.rb").flatten.join(' ')
|
52
52
|
ARGV.delete_at(index)
|
53
53
|
end
|
54
54
|
if index = ( ARGV.index("-m") || ARGV.index("--mod" ))
|
55
55
|
ARGV.delete_at(index)
|
56
|
-
files = "
|
56
|
+
files = "mod/#{ARGV[index]}"
|
57
57
|
ARGV.delete_at(index)
|
58
58
|
end
|
59
59
|
system "RAILS_ROOT=. bundle exec rspec #{ARGV.join(' ')} #{files}"
|
@@ -55,12 +55,8 @@ Wagn.application.class.configure do
|
|
55
55
|
# File.delete(File.join(Rails.root,'tmp', 'debug.txt'))
|
56
56
|
# end
|
57
57
|
|
58
|
-
config.perform_deliveries = false
|
58
|
+
config.action_mailer.perform_deliveries = false
|
59
59
|
|
60
|
-
|
61
|
-
# config.dev_tweaks.autoload_rules do
|
62
|
-
# skip '/files'
|
63
|
-
# end
|
64
60
|
end
|
65
61
|
|
66
62
|
|
@@ -4,16 +4,29 @@ gem 'wagn'<%= ", :path=>'#{@wagn_path}'" if @wagn_path.present? %>
|
|
4
4
|
|
5
5
|
<%= database_gemfile_entry -%>
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
# A javascript runtime is required for JavaScript cards.
|
8
|
+
<% if RUBY_PLATFORM =~ /darwin/ -%>
|
9
|
+
# Macs have one included, but on other platforms you'll need this or another runtime
|
10
|
+
# gem 'therubyracer'
|
11
|
+
<% else -%>
|
12
|
+
gem 'therubyracer'
|
13
|
+
<% end -%>
|
14
|
+
|
15
|
+
<% if options['mod-dev'] -%>
|
9
16
|
group :test do
|
10
17
|
gem 'rspec-rails', "~> 2.6" # behavior-driven-development suite
|
11
18
|
gem 'spork', '>=0.9'
|
12
19
|
end
|
13
20
|
|
14
|
-
|
15
|
-
|
21
|
+
group :test, :development do
|
22
|
+
gem 'rails-dev-tweaks'
|
23
|
+
gem 'sprockets' # just so above works
|
24
|
+
gem 'byebug'
|
25
|
+
end
|
16
26
|
|
27
|
+
<% end -%>
|
28
|
+
<% if options['core-dev'] -%>
|
29
|
+
|
17
30
|
group :assets do
|
18
31
|
gem 'jquery-rails', '~> 3.1' # main js framework, along with rails-specific unobtrusive lib
|
19
32
|
gem 'jquery-ui-rails', '~> 4.2' # main js framework, along with rails-specific unobtrusive lib
|
@@ -27,11 +40,12 @@ end
|
|
27
40
|
|
28
41
|
|
29
42
|
group :test do
|
43
|
+
gem 'rspec-rails', "~> 2.6" # behavior-driven-development suite
|
44
|
+
gem 'spork', '>=0.9'
|
45
|
+
gem 'rr'#, '=1.0.0'
|
46
|
+
|
30
47
|
gem 'simplecov', '~> 0.7.1', :require => false #test coverage
|
31
48
|
|
32
|
-
# SPECS see spec dir
|
33
|
-
gem 'rspec-rails', "~> 2.6" # behavior-driven-development suite
|
34
|
-
|
35
49
|
gem 'guard-rspec', '~> 4.2' # trigger test runs based on file edits
|
36
50
|
if RUBY_PLATFORM =~ /darwin/
|
37
51
|
gem 'terminal-notifier-guard', '~> 1.5' # use growler notifications on macs
|
@@ -47,21 +61,12 @@ group :test do
|
|
47
61
|
gem 'timecop', '=0.3.5' # not clear on use/need. referred to in shared_data.rb
|
48
62
|
# NOTE: had weird errors with timecop 0.4.4. would like to update when possible
|
49
63
|
|
50
|
-
gem 'spork', '>=0.9'
|
51
|
-
|
52
|
-
gem 'rr'#, '=1.0.0'
|
53
64
|
|
54
65
|
gem 'email_spec' #
|
55
66
|
gem 'database_cleaner', '~> 0.7' # used by cucumber for db transactions
|
56
67
|
|
57
68
|
gem 'turn', "~>0.8.3", :require => false # Pretty printed test output. (version constraint is to avoid minitest requirement)
|
58
69
|
gem 'minitest', "~>4.0"
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
#windows stuff
|
63
|
-
gem 'win32console', '~> 1.3', :platforms => ['mingw', 'mswin']
|
64
|
-
gem 'win32-process', '~> 0.6', :platforms => ['mingw', 'mswin']
|
65
70
|
end
|
66
71
|
|
67
72
|
gem 'ruby-prof', '~>0.12.1', :group=>:profile # profiling
|