platform 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +21 -0
- data/.rspec +2 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +191 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +5 -0
- data/Rakefile +37 -0
- data/app/assets/images/platform/.gitkeep +0 -0
- data/app/assets/images/platform/accept.png +0 -0
- data/app/assets/images/platform/action_tab_bkgd.gif +0 -0
- data/app/assets/images/platform/action_tab_white_bkgd.gif +0 -0
- data/app/assets/images/platform/add.png +0 -0
- data/app/assets/images/platform/apps/app_icon.gif +0 -0
- data/app/assets/images/platform/apps/app_logo.gif +0 -0
- data/app/assets/images/platform/arrow_down.gif +0 -0
- data/app/assets/images/platform/arrow_down.png +0 -0
- data/app/assets/images/platform/arrow_down_grey.png +0 -0
- data/app/assets/images/platform/arrow_right.gif +0 -0
- data/app/assets/images/platform/arrow_up.png +0 -0
- data/app/assets/images/platform/arrow_up_grey.png +0 -0
- data/app/assets/images/platform/bullet_go.png +0 -0
- data/app/assets/images/platform/buttons.png +0 -0
- data/app/assets/images/platform/cancel.png +0 -0
- data/app/assets/images/platform/clipboard_icon.gif +0 -0
- data/app/assets/images/platform/close.gif +0 -0
- data/app/assets/images/platform/cross.png +0 -0
- data/app/assets/images/platform/default_app_icon.gif +0 -0
- data/app/assets/images/platform/default_app_logo.gif +0 -0
- data/app/assets/images/platform/delete.png +0 -0
- data/app/assets/images/platform/disk.png +0 -0
- data/app/assets/images/platform/exclamation.png +0 -0
- data/app/assets/images/platform/eye.png +0 -0
- data/app/assets/images/platform/eye_not.png +0 -0
- data/app/assets/images/platform/field_sprite.gif +0 -0
- data/app/assets/images/platform/find.png +0 -0
- data/app/assets/images/platform/globe.gif +0 -0
- data/app/assets/images/platform/help.png +0 -0
- data/app/assets/images/platform/help/app_reg.png +0 -0
- data/app/assets/images/platform/help/app_reg_ext.png +0 -0
- data/app/assets/images/platform/help/app_reg_web.png +0 -0
- data/app/assets/images/platform/help/auth_desktop.png +0 -0
- data/app/assets/images/platform/help/auth_iframe.png +0 -0
- data/app/assets/images/platform/help/auth_iphone.png +0 -0
- data/app/assets/images/platform/help/auth_web.png +0 -0
- data/app/assets/images/platform/help/authorize.png +0 -0
- data/app/assets/images/platform/help/ext.png +0 -0
- data/app/assets/images/platform/help/login.png +0 -0
- data/app/assets/images/platform/help/login_desktop.png +0 -0
- data/app/assets/images/platform/help/login_iphone.png +0 -0
- data/app/assets/images/platform/help/login_web.png +0 -0
- data/app/assets/images/platform/help2.png +0 -0
- data/app/assets/images/platform/information.png +0 -0
- data/app/assets/images/platform/keyboard.png +0 -0
- data/app/assets/images/platform/language_selector_arrow.gif +0 -0
- data/app/assets/images/platform/left_quote.png +0 -0
- data/app/assets/images/platform/lightning.png +0 -0
- data/app/assets/images/platform/loading.gif +0 -0
- data/app/assets/images/platform/loading2.gif +0 -0
- data/app/assets/images/platform/loading3.gif +0 -0
- data/app/assets/images/platform/loading_animation.gif +0 -0
- data/app/assets/images/platform/loading_large.gif +0 -0
- data/app/assets/images/platform/lock.png +0 -0
- data/app/assets/images/platform/lock_add.png +0 -0
- data/app/assets/images/platform/lock_delete.png +0 -0
- data/app/assets/images/platform/lock_open.png +0 -0
- data/app/assets/images/platform/medals/bronze.png +0 -0
- data/app/assets/images/platform/medals/gold.png +0 -0
- data/app/assets/images/platform/medals/runner.png +0 -0
- data/app/assets/images/platform/medals/silver.png +0 -0
- data/app/assets/images/platform/minus_node.png +0 -0
- data/app/assets/images/platform/oauth/perm_tile.gif +0 -0
- data/app/assets/images/platform/oauth/right_grey.png +0 -0
- data/app/assets/images/platform/pencil.png +0 -0
- data/app/assets/images/platform/photo_silhouette.gif +0 -0
- data/app/assets/images/platform/pixel.gif +0 -0
- data/app/assets/images/platform/platform.png +0 -0
- data/app/assets/images/platform/platform2.png +0 -0
- data/app/assets/images/platform/platform3.png +0 -0
- data/app/assets/images/platform/platform4.png +0 -0
- data/app/assets/images/platform/platform5.png +0 -0
- data/app/assets/images/platform/plus.png +0 -0
- data/app/assets/images/platform/plus_node.png +0 -0
- data/app/assets/images/platform/random.png +0 -0
- data/app/assets/images/platform/random2.png +0 -0
- data/app/assets/images/platform/rating_star0.png +0 -0
- data/app/assets/images/platform/rating_star05.png +0 -0
- data/app/assets/images/platform/rating_star1.png +0 -0
- data/app/assets/images/platform/rating_stars.gif +0 -0
- data/app/assets/images/platform/rating_stars.psd +0 -0
- data/app/assets/images/platform/reply.png +0 -0
- data/app/assets/images/platform/right_quote.png +0 -0
- data/app/assets/images/platform/rotating_world.gif +0 -0
- data/app/assets/images/platform/script.png +0 -0
- data/app/assets/images/platform/script_edit.png +0 -0
- data/app/assets/images/platform/script_gear.png +0 -0
- data/app/assets/images/platform/site_sprite.gif +0 -0
- data/app/assets/images/platform/spinner.gif +0 -0
- data/app/assets/images/platform/star.png +0 -0
- data/app/assets/images/platform/table_edit.png +0 -0
- data/app/assets/images/platform/table_gear.png +0 -0
- data/app/assets/images/platform/table_multiple.png +0 -0
- data/app/assets/images/platform/thumb_down.png +0 -0
- data/app/assets/images/platform/thumb_up.png +0 -0
- data/app/assets/images/platform/top_left_stem.png +0 -0
- data/app/assets/images/platform/top_right_stem.png +0 -0
- data/app/assets/images/platform/translate_icn.gif +0 -0
- data/app/assets/images/platform/treeview/diffDoc.gif +0 -0
- data/app/assets/images/platform/treeview/diffFolder.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2blank.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2doc.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2folderclosed.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2folderopen.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2lastnode.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2link.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2mlastnode.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2mnode.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2node.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2plastnode.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2pnode.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2vertline.gif +0 -0
- data/app/assets/images/platform/wizard.png +0 -0
- data/app/assets/images/platform/world_link.png +0 -0
- data/app/assets/javascripts/platform/api_explorer.js +628 -0
- data/app/assets/javascripts/platform/application.js +9 -0
- data/app/assets/javascripts/platform/ftiens4.js +1197 -0
- data/app/assets/javascripts/platform/jsdk.js +539 -0
- data/app/assets/javascripts/platform/platform.js +447 -0
- data/app/assets/javascripts/platform/shortcut.js +223 -0
- data/app/assets/javascripts/platform/ua.js +147 -0
- data/app/assets/stylesheets/platform/api_explorer.css.scss +140 -0
- data/app/assets/stylesheets/platform/application.css.scss +6 -0
- data/app/assets/stylesheets/platform/components.css.scss +208 -0
- data/app/assets/stylesheets/platform/layout.css.scss +119 -0
- data/app/assets/stylesheets/platform/oauth.css +51 -0
- data/app/assets/stylesheets/platform/platform.css.scss +311 -0
- data/app/controllers/platform/admin/apps_controller.rb +99 -0
- data/app/controllers/platform/admin/base_controller.rb +60 -0
- data/app/controllers/platform/admin/categories_controller.rb +132 -0
- data/app/controllers/platform/admin/clientsdk_controller.rb +30 -0
- data/app/controllers/platform/admin/developers_controller.rb +30 -0
- data/app/controllers/platform/admin/exceptions_controller.rb +30 -0
- data/app/controllers/platform/admin/forum_controller.rb +34 -0
- data/app/controllers/platform/admin/metrics_controller.rb +42 -0
- data/app/controllers/platform/api/apps_controller.rb +40 -0
- data/app/controllers/platform/api/base_controller.rb +541 -0
- data/app/controllers/platform/apps_controller.rb +142 -0
- data/app/controllers/platform/base_controller.rb +127 -0
- data/app/controllers/platform/developer/api_explorer_controller.rb +56 -0
- data/app/controllers/platform/developer/apps_controller.rb +161 -0
- data/app/controllers/platform/developer/base_controller.rb +51 -0
- data/app/controllers/platform/developer/blog_controller.rb +29 -0
- data/app/controllers/platform/developer/dashboard_controller.rb +63 -0
- data/app/controllers/platform/developer/forum_controller.rb +85 -0
- data/app/controllers/platform/developer/help_controller.rb +113 -0
- data/app/controllers/platform/developer/info_controller.rb +41 -0
- data/app/controllers/platform/developer/registration_controller.rb +39 -0
- data/app/controllers/platform/developer/resources_controller.rb +30 -0
- data/app/controllers/platform/forum_controller.rb +74 -0
- data/app/controllers/platform/oauth_controller.rb +421 -0
- data/app/controllers/platform/ratings_controller.rb +61 -0
- data/app/helpers/platform/admin/categories_helper.rb +54 -0
- data/app/helpers/platform/apps_helper.rb +26 -0
- data/app/helpers/platform/developer/dashboard_helper.rb +42 -0
- data/app/helpers/platform/developer/help_helper.rb +45 -0
- data/app/helpers/platform_helper.rb +26 -0
- data/app/models/platform/application.rb +394 -0
- data/app/models/platform/application_category.rb +34 -0
- data/app/models/platform/application_developer.rb +30 -0
- data/app/models/platform/application_filter.rb +30 -0
- data/app/models/platform/application_log.rb +32 -0
- data/app/models/platform/application_log_filter.rb +34 -0
- data/app/models/platform/application_metric.rb +58 -0
- data/app/models/platform/application_metric_filter.rb +34 -0
- data/app/models/platform/application_permission.rb +30 -0
- data/app/models/platform/application_permission_filter.rb +30 -0
- data/app/models/platform/application_usage_metric.rb +58 -0
- data/app/models/platform/application_usage_metric_filter.rb +34 -0
- data/app/models/platform/application_user.rb +45 -0
- data/app/models/platform/application_user_filter.rb +34 -0
- data/app/models/platform/base_filter.rb +46 -0
- data/app/models/platform/category.rb +64 -0
- data/app/models/platform/daily_application_metric.rb +31 -0
- data/app/models/platform/developer.rb +45 -0
- data/app/models/platform/developer_filter.rb +26 -0
- data/app/models/platform/forum_message.rb +35 -0
- data/app/models/platform/forum_message_filter.rb +26 -0
- data/app/models/platform/forum_topic.rb +38 -0
- data/app/models/platform/forum_topic_filter.rb +26 -0
- data/app/models/platform/logged_exception.rb +290 -0
- data/app/models/platform/logged_exception_filter.rb +58 -0
- data/app/models/platform/media/image.rb +26 -0
- data/app/models/platform/media/media.rb +58 -0
- data/app/models/platform/monthly_application_metric.rb +31 -0
- data/app/models/platform/oauth/access_token.rb +57 -0
- data/app/models/platform/oauth/client_token.rb +38 -0
- data/app/models/platform/oauth/oauth_model_methods.rb +41 -0
- data/app/models/platform/oauth/oauth_token.rb +57 -0
- data/app/models/platform/oauth/oauth_token_filter.rb +34 -0
- data/app/models/platform/oauth/refresh_token.rb +47 -0
- data/app/models/platform/oauth/request_token.rb +50 -0
- data/app/models/platform/permission.rb +27 -0
- data/app/models/platform/rating.rb +43 -0
- data/app/models/platform/rating_filter.rb +30 -0
- data/app/models/platform/rollup_log.rb +27 -0
- data/app/models/platform/rollup_log_filter.rb +30 -0
- data/app/models/platform/total_application_metric.rb +40 -0
- data/app/models/platform/weekly_application_metric.rb +31 -0
- data/app/views/platform/admin/apps/_categories.html.erb +17 -0
- data/app/views/platform/admin/apps/_categories_scripts.html.erb +17 -0
- data/app/views/platform/admin/apps/_tabs.html.erb +25 -0
- data/app/views/platform/admin/apps/index.html.erb +32 -0
- data/app/views/platform/admin/apps/permissions.html.erb +7 -0
- data/app/views/platform/admin/apps/ratings.html.erb +7 -0
- data/app/views/platform/admin/apps/tokens.html.erb +18 -0
- data/app/views/platform/admin/apps/users.html.erb +7 -0
- data/app/views/platform/admin/apps/view.html.erb +170 -0
- data/app/views/platform/admin/categories/_tabs.html.erb +22 -0
- data/app/views/platform/admin/categories/category_assigner.html.erb +9 -0
- data/app/views/platform/admin/categories/category_assigner_tree.html.erb +81 -0
- data/app/views/platform/admin/categories/index.html.erb +106 -0
- data/app/views/platform/admin/categories/items.html.erb +153 -0
- data/app/views/platform/admin/categories/lb_update_application_category.html.erb +54 -0
- data/app/views/platform/admin/categories/lb_update_category.html.erb +64 -0
- data/app/views/platform/admin/categories/tree.html.erb +64 -0
- data/app/views/platform/admin/clientsdk/index.html.erb +89 -0
- data/app/views/platform/admin/common/_footer.html.erb +1 -0
- data/app/views/platform/admin/common/_header.html.erb +32 -0
- data/app/views/platform/admin/common/_lightbox_buttons.html.erb +5 -0
- data/app/views/platform/admin/common/_paginator.html.erb +20 -0
- data/app/views/platform/admin/developers/_tabs.html.erb +22 -0
- data/app/views/platform/admin/developers/index.html.erb +7 -0
- data/app/views/platform/admin/exceptions/_tabs.html.erb +22 -0
- data/app/views/platform/admin/exceptions/index.html.erb +7 -0
- data/app/views/platform/admin/forum/_tabs.html.erb +22 -0
- data/app/views/platform/admin/forum/index.html.erb +7 -0
- data/app/views/platform/admin/forum/messages.html.erb +7 -0
- data/app/views/platform/admin/metrics/_tabs.html.erb +25 -0
- data/app/views/platform/admin/metrics/application_log.html.erb +7 -0
- data/app/views/platform/admin/metrics/index.html.erb +9 -0
- data/app/views/platform/admin/metrics/rollup_log.html.erb +7 -0
- data/app/views/platform/admin/metrics/usage.html.erb +7 -0
- data/app/views/platform/apps/_actions_module.html.erb +3 -0
- data/app/views/platform/apps/_app_footer.html.erb +8 -0
- data/app/views/platform/apps/_app_header.html.erb +25 -0
- data/app/views/platform/apps/_apps_module.html.erb +42 -0
- data/app/views/platform/apps/_authorize_form.html.erb +11 -0
- data/app/views/platform/apps/_categories_module.html.erb +11 -0
- data/app/views/platform/apps/_featured_apps_module.html.erb +40 -0
- data/app/views/platform/apps/_left.html.erb +20 -0
- data/app/views/platform/apps/_monthly_users_module.html.erb +8 -0
- data/app/views/platform/apps/_paginator.html.erb +13 -0
- data/app/views/platform/apps/_rank_module.html.erb +18 -0
- data/app/views/platform/apps/_search_apps_module.html.erb +35 -0
- data/app/views/platform/apps/canvas_app.html.erb +15 -0
- data/app/views/platform/apps/index.html.erb +86 -0
- data/app/views/platform/apps/view.html.erb +71 -0
- data/app/views/platform/apps/xd.html.erb +11 -0
- data/app/views/platform/common/_footer.html.erb +1 -0
- data/app/views/platform/common/_header.html.erb +4 -0
- data/app/views/platform/common/_paginator.html.erb +32 -0
- data/app/views/platform/common/_scripts.html.erb +7 -0
- data/app/views/platform/common/_user_login.html.erb +11 -0
- data/app/views/platform/developer/api_explorer/history.html.erb +31 -0
- data/app/views/platform/developer/api_explorer/index.html.erb +134 -0
- data/app/views/platform/developer/api_explorer/oauth_lander.html.erb +4 -0
- data/app/views/platform/developer/api_explorer/options.html.erb +44 -0
- data/app/views/platform/developer/apps/_form.html.erb +340 -0
- data/app/views/platform/developer/apps/create_version.html.erb +19 -0
- data/app/views/platform/developer/apps/edit.html.erb +21 -0
- data/app/views/platform/developer/apps/index.html.erb +375 -0
- data/app/views/platform/developer/apps/new.html.erb +20 -0
- data/app/views/platform/developer/blog/index.html.erb +7 -0
- data/app/views/platform/developer/common/_footer.html.erb +1 -0
- data/app/views/platform/developer/common/_header.html.erb +34 -0
- data/app/views/platform/developer/dashboard/_apps_info.html.erb +84 -0
- data/app/views/platform/developer/dashboard/_discussions.html.erb +68 -0
- data/app/views/platform/developer/dashboard/_header.html.erb +12 -0
- data/app/views/platform/developer/dashboard/_reviews.html.erb +53 -0
- data/app/views/platform/developer/dashboard/_statistics.html.erb +105 -0
- data/app/views/platform/developer/dashboard/index.html.erb +85 -0
- data/app/views/platform/developer/dashboard/settings.html.erb +23 -0
- data/app/views/platform/developer/forum/_message.html.erb +17 -0
- data/app/views/platform/developer/forum/_messages.html.erb +14 -0
- data/app/views/platform/developer/forum/_new_message.html.erb +28 -0
- data/app/views/platform/developer/forum/_new_topic.html.erb +39 -0
- data/app/views/platform/developer/forum/index.html.erb +89 -0
- data/app/views/platform/developer/forum/topic.html.erb +28 -0
- data/app/views/platform/developer/help/_footer.html.erb +4 -0
- data/app/views/platform/developer/help/_header.html.erb +95 -0
- data/app/views/platform/developer/help/_navigation.html.erb +99 -0
- data/app/views/platform/developer/help/api.html.erb +120 -0
- data/app/views/platform/developer/help/credits.html.erb +77 -0
- data/app/views/platform/developer/help/index.html.erb +19 -0
- data/app/views/platform/developer/help/license.html.erb +586 -0
- data/app/views/platform/developer/help/oauth_app_login.html.erb +177 -0
- data/app/views/platform/developer/help/oauth_client_side.html.erb +264 -0
- data/app/views/platform/developer/help/oauth_desktop.html.erb +191 -0
- data/app/views/platform/developer/help/oauth_extensions.html.erb +342 -0
- data/app/views/platform/developer/help/oauth_intro.html.erb +371 -0
- data/app/views/platform/developer/help/oauth_mobile.html.erb +292 -0
- data/app/views/platform/developer/help/oauth_server_side.html.erb +603 -0
- data/app/views/platform/developer/help/oauth_trusted_client.html.erb +202 -0
- data/app/views/platform/developer/help/reference.html.erb +42 -0
- data/app/views/platform/developer/help/sdk_ios.html.erb +31 -0
- data/app/views/platform/developer/help/sdk_js.html.erb +202 -0
- data/app/views/platform/developer/info/_basic_info.html.erb +74 -0
- data/app/views/platform/developer/info/_header.html.erb +12 -0
- data/app/views/platform/developer/info/index.html.erb +23 -0
- data/app/views/platform/developer/registration/index.html.erb +134 -0
- data/app/views/platform/developer/resources/index.html.erb +23 -0
- data/app/views/platform/forum/_message.html.erb +17 -0
- data/app/views/platform/forum/_messages.html.erb +14 -0
- data/app/views/platform/forum/_new_message.html.erb +26 -0
- data/app/views/platform/forum/_new_topic.html.erb +38 -0
- data/app/views/platform/forum/_topic.html.erb +18 -0
- data/app/views/platform/forum/_topics.html.erb +74 -0
- data/app/views/platform/login/index.html.erb +31 -0
- data/app/views/platform/login/register.html.erb +55 -0
- data/app/views/platform/oauth/_authorization_box.html.erb +75 -0
- data/app/views/platform/oauth/_authorization_popup.html.erb +38 -0
- data/app/views/platform/oauth/_authorize_form.html.erb +11 -0
- data/app/views/platform/oauth/auth_failed.html.erb +0 -0
- data/app/views/platform/oauth/auth_success.html.erb +0 -0
- data/app/views/platform/oauth/authorize_desktop.html.erb +76 -0
- data/app/views/platform/oauth/authorize_failure_iframe.html.erb +1 -0
- data/app/views/platform/oauth/authorize_failure_mobile.html.erb +24 -0
- data/app/views/platform/oauth/authorize_failure_popup.html.erb +24 -0
- data/app/views/platform/oauth/authorize_failure_web.html.erb +1 -0
- data/app/views/platform/oauth/authorize_iframe.html.erb +16 -0
- data/app/views/platform/oauth/authorize_mobile.html.erb +1 -0
- data/app/views/platform/oauth/authorize_popup.html.erb +1 -0
- data/app/views/platform/oauth/authorize_success_iframe.html.erb +1 -0
- data/app/views/platform/oauth/authorize_success_mobile.html.erb +24 -0
- data/app/views/platform/oauth/authorize_success_popup.html.erb +24 -0
- data/app/views/platform/oauth/authorize_success_web.html.erb +1 -0
- data/app/views/platform/oauth/authorize_web.html.erb +3 -0
- data/app/views/platform/oauth/xd.html.erb +13 -0
- data/app/views/platform/ratings/_list.html.erb +30 -0
- data/app/views/platform/ratings/_new.html.erb +70 -0
- data/app/views/platform/ratings/_rating.html.erb +17 -0
- data/config/platform/config.yml +133 -0
- data/config/platform/data/default_applications.yml +39 -0
- data/config/platform/data/default_categories.yml +56 -0
- data/config/platform/data/default_permissions.yml +0 -0
- data/config/platform/site/features.yml +66 -0
- data/config/routes.rb +59 -0
- data/db/migrate/20110602232141_create_platform_tables.rb +262 -0
- data/docs/Classes.graffle +7315 -0
- data/docs/Classes.pdf +0 -0
- data/lib/generators/platform/platform_generator.rb +56 -0
- data/lib/generators/platform/templates/db/create_platform_tables.rb +262 -0
- data/lib/generators/platform/templates/layouts/platform.html.erb +49 -0
- data/lib/generators/platform/templates/layouts/platform_admin.html.erb +60 -0
- data/lib/platform.rb +6 -0
- data/lib/platform/api/already_jsoned_string.rb +9 -0
- data/lib/platform/api/proxy.rb +45 -0
- data/lib/platform/api/proxy/base.rb +62 -0
- data/lib/platform/cache.rb +78 -0
- data/lib/platform/config.rb +666 -0
- data/lib/platform/engine.rb +5 -0
- data/lib/platform/exception.rb +27 -0
- data/lib/platform/extensions/action_controller_extension.rb +65 -0
- data/lib/platform/extensions/action_view_extension.rb +168 -0
- data/lib/platform/extensions/object_extension.rb +51 -0
- data/lib/platform/helper.rb +33 -0
- data/lib/platform/logger.rb +62 -0
- data/lib/platform/railtie.rb +52 -0
- data/lib/platform/random_password_generator.rb +76 -0
- data/lib/platform/simple_string_permissions.rb +40 -0
- data/lib/platform/version.rb +3 -0
- data/lib/tasks/platform.rake +119 -0
- data/platform.gemspec +45 -0
- data/script/rails +6 -0
- data/spec/config/config_spec.rb +10 -0
- data/spec/dummy_app.rb +52 -0
- data/spec/models/application_spec.rb +53 -0
- data/spec/models/developer_spec.rb +23 -0
- data/spec/spec_helper.rb +29 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +7 -0
- data/test/dummy/app/assets/stylesheets/admin.css +200 -0
- data/test/dummy/app/assets/stylesheets/application.css +47 -0
- data/test/dummy/app/assets/stylesheets/components.css.scss +211 -0
- data/test/dummy/app/assets/stylesheets/layout.css.scss +143 -0
- data/test/dummy/app/controllers/admin/admins_controller.rb +7 -0
- data/test/dummy/app/controllers/admin/base_controller.rb +12 -0
- data/test/dummy/app/controllers/admin/bookmarks_controller.rb +7 -0
- data/test/dummy/app/controllers/admin/users_controller.rb +19 -0
- data/test/dummy/app/controllers/api/base_controller.rb +5 -0
- data/test/dummy/app/controllers/api/bookmarks_controller.rb +35 -0
- data/test/dummy/app/controllers/api/users_controller.rb +19 -0
- data/test/dummy/app/controllers/application_controller.rb +31 -0
- data/test/dummy/app/controllers/home_controller.rb +7 -0
- data/test/dummy/app/controllers/login_controller.rb +65 -0
- data/test/dummy/app/helpers/application_helper.rb +9 -0
- data/test/dummy/app/helpers/home_helper.rb +2 -0
- data/test/dummy/app/mailers/.gitkeep +0 -0
- data/test/dummy/app/models/.gitkeep +0 -0
- data/test/dummy/app/models/admin.rb +4 -0
- data/test/dummy/app/models/admin_filter.rb +7 -0
- data/test/dummy/app/models/bookmark.rb +7 -0
- data/test/dummy/app/models/user.rb +34 -0
- data/test/dummy/app/views/admin/admins/index.html.erb +7 -0
- data/test/dummy/app/views/admin/bookmarks/index.html.erb +5 -0
- data/test/dummy/app/views/admin/users/index.html.erb +10 -0
- data/test/dummy/app/views/demo/index.rhtml +108 -0
- data/test/dummy/app/views/demo/tokens.rhtml +35 -0
- data/test/dummy/app/views/home/index.html.erb +43 -0
- data/test/dummy/app/views/layouts/_footer.html.erb +16 -0
- data/test/dummy/app/views/layouts/_header.html.erb +22 -0
- data/test/dummy/app/views/layouts/admin.html.erb +97 -0
- data/test/dummy/app/views/layouts/application.html.erb +25 -0
- data/test/dummy/app/views/layouts/minimal.html.erb +37 -0
- data/test/dummy/app/views/layouts/popup.html.erb +43 -0
- data/test/dummy/app/views/login/index.html.erb +34 -0
- data/test/dummy/app/views/login/register.html.erb +51 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +51 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +30 -0
- data/test/dummy/config/environments/production.rb +60 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/platform/api/0/bookmark.yml +18 -0
- data/test/dummy/config/platform/api/0/user.yml +17 -0
- data/test/dummy/config/platform/api/1/bookmark.yml +58 -0
- data/test/dummy/config/platform/api/1/user.yml +36 -0
- data/test/dummy/config/platform/config.yml +135 -0
- data/test/dummy/config/platform/data/default_applications.yml +39 -0
- data/test/dummy/config/platform/data/default_categories.yml +56 -0
- data/test/dummy/config/platform/data/default_permissions.yml +0 -0
- data/test/dummy/config/platform/site/features.yml +66 -0
- data/test/dummy/config/platform/site/sample_apps.yml +100 -0
- data/test/dummy/config/routes.rb +30 -0
- data/test/dummy/config/tr8n/config.yml +247 -0
- data/test/dummy/config/tr8n/data/ip_locations.csv +93460 -0
- data/test/dummy/config/tr8n/rules/default_date_rules.yml +20 -0
- data/test/dummy/config/tr8n/rules/default_gender_list_rules.yml +82 -0
- data/test/dummy/config/tr8n/rules/default_gender_rules.yml +20 -0
- data/test/dummy/config/tr8n/rules/default_language_cases.yml +272 -0
- data/test/dummy/config/tr8n/rules/default_list_rules.yml +19 -0
- data/test/dummy/config/tr8n/rules/default_numeric_rules.yml +42 -0
- data/test/dummy/config/tr8n/rules/default_value_rules.yml +18 -0
- data/test/dummy/config/tr8n/site/default_glossary.yml +18 -0
- data/test/dummy/config/tr8n/site/default_languages.yml +1591 -0
- data/test/dummy/config/tr8n/site/features.yml +111 -0
- data/test/dummy/config/tr8n/site/shortcuts.yml +55 -0
- data/test/dummy/config/tr8n/site/sitemap.json +42 -0
- data/test/dummy/config/tr8n/tokens/data.yml +19 -0
- data/test/dummy/config/tr8n/tokens/decorations.yml +19 -0
- data/test/dummy/config/will_filter/config.yml +99 -0
- data/test/dummy/db/migrate/20101207014543_create_users.rb +23 -0
- data/test/dummy/db/migrate/20110113223509_create_admins.rb +15 -0
- data/test/dummy/db/migrate/20110930041143_create_will_filter_filters.rb +15 -0
- data/test/dummy/db/migrate/20110930041150_create_tr8n_tables.rb +350 -0
- data/test/dummy/db/migrate/20111004075531_create_platform_tables.rb +262 -0
- data/test/dummy/db/migrate/20111012055603_create_bookmarks.rb +10 -0
- data/test/dummy/db/schema.rb +683 -0
- data/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/dummy/lib/platform/api/bookmark_proxy_0.rb +12 -0
- data/test/dummy/lib/platform/api/bookmark_proxy_1.rb +12 -0
- data/test/dummy/lib/platform/api/user_proxy_0.rb +12 -0
- data/test/dummy/lib/platform/api/user_proxy_1.rb +12 -0
- data/test/dummy/log/.gitkeep +0 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/fixtures/documents.yml +11 -0
- data/test/dummy/test/unit/document_test.rb +7 -0
- metadata +886 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>XD</title>
|
5
|
+
</head>
|
6
|
+
<body onload="sendFragment()">
|
7
|
+
<script>
|
8
|
+
function sendFragment() {
|
9
|
+
(window.opener || window.parent || window.top).postMessage("<%=params.to_query%>", "<%= params[:origin] %>");
|
10
|
+
}
|
11
|
+
</script>
|
12
|
+
</body>
|
13
|
+
</html>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<div class="section_title" style="padding-top:0px;">
|
2
|
+
<% if @ratings.any? and params['sec'] != 'Reviews' %>
|
3
|
+
<span style="float:right; font-size:12px;">
|
4
|
+
<%=link_to("view all", :controller => "/platform/apps", :action => :view, :id => @app.id, :sec => 'Reviews')%>
|
5
|
+
</span>
|
6
|
+
<% end %>
|
7
|
+
|
8
|
+
<%=tr("Reviews")%>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="section">
|
12
|
+
<%= render(:partial => "/platform/ratings/new", :locals => {:app => @app} )%>
|
13
|
+
|
14
|
+
<div style="margin-top:10px; border-top: 1px solid #ccc;">
|
15
|
+
<% if @ratings.any? %>
|
16
|
+
<table>
|
17
|
+
<% @ratings.each do |rating| %>
|
18
|
+
<tr>
|
19
|
+
<%= render(:partial => "/platform/ratings/rating", :locals => {:rating => rating} )%>
|
20
|
+
</tr>
|
21
|
+
<% end %>
|
22
|
+
</table>
|
23
|
+
<% else %>
|
24
|
+
<div style="padding:10px; text-align:center; color: #888;">
|
25
|
+
<%= tr("This application has not been reviewed yet. Be the first one to review this app!") %>
|
26
|
+
</div>
|
27
|
+
<% end %>
|
28
|
+
</div>
|
29
|
+
|
30
|
+
</div>
|
@@ -0,0 +1,70 @@
|
|
1
|
+
<div class="section grey">
|
2
|
+
<%= form_tag({:controller => '/platform/ratings', :action => :submit_app_rating, :app_id => app.id}, {:id => :app_rating_form}) do %>
|
3
|
+
<%=hidden_field_tag(:rating_value, '0')%>
|
4
|
+
<table style="width:100%" cellpadding="5px">
|
5
|
+
<tr>
|
6
|
+
<td style="width:60px;text-align:right; padding:3px;">Rating:</td>
|
7
|
+
<td style="text-align:left; padding:3px;">
|
8
|
+
<div onMouseOut="ratingBlockMouseOut()">
|
9
|
+
<% html = []
|
10
|
+
1.upto(5) do |index|
|
11
|
+
html << image_tag("platform/rating_star0.png", :id => "rating#{index}", :onMouseOver => "ratingMouseOver(#{index})", :onMouseOut => "ratingMouseOut(#{index})", :onClick => "ratingSelected(#{index})", :style => "cursor:pointer")
|
12
|
+
end
|
13
|
+
%>
|
14
|
+
<%=html.join("").html_safe%>
|
15
|
+
</div>
|
16
|
+
</td>
|
17
|
+
</tr>
|
18
|
+
<tr>
|
19
|
+
<td style="text-align:right; padding:3px;">Review:</td>
|
20
|
+
<td style=" padding:3px;">
|
21
|
+
<%=text_area_tag(:rating_comment, "", :style=>"width:98%")%>
|
22
|
+
</td>
|
23
|
+
</tr>
|
24
|
+
</table>
|
25
|
+
<div style="text-align:center;padding:10px;">
|
26
|
+
<button type="submit" class="platform_btn platform_submit_btn" onClick="Platform.Effects.submit('app_rating_form'); return false;">
|
27
|
+
<span><%=tr("Submit Review")%></span>
|
28
|
+
</button>
|
29
|
+
</div>
|
30
|
+
<% end %>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
|
34
|
+
<script>
|
35
|
+
var selectedRating = 0;
|
36
|
+
|
37
|
+
function ratingMouseOver(index) {
|
38
|
+
for (i=1; i<=index; i++) {
|
39
|
+
Platform.element('rating' + i).src = "/assets/platform/rating_star1.png";
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
function ratingBlockMouseOut() {
|
44
|
+
for (i=1; i<=5; i++) {
|
45
|
+
Platform.element('rating' + i).src = "/assets/platform/rating_star0.png";
|
46
|
+
}
|
47
|
+
|
48
|
+
if (selectedRating != 0) {
|
49
|
+
for (i=1; i<=selectedRating; i++) {
|
50
|
+
Platform.element('rating' + i).src = "/assets/platform/rating_star1.png";
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
function ratingMouseOut(index) {
|
56
|
+
}
|
57
|
+
|
58
|
+
function ratingSelected(index) {
|
59
|
+
selectedRating = index;
|
60
|
+
Platform.element('rating_value').value = index;
|
61
|
+
|
62
|
+
for (i=1; i<=5; i++) {
|
63
|
+
if (i <= selectedRating)
|
64
|
+
Platform.element('rating' + i).src = "/assets/platform/rating_star1.png";
|
65
|
+
else
|
66
|
+
Platform.element('rating' + i).src = "/assets/platform/rating_star0.png";
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
</script>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<td style="padding:5px; width:50px;">
|
2
|
+
<%=platform_user_mugshot_tag(rating.user, :linked => true)%>
|
3
|
+
</td>
|
4
|
+
<td style="padding:5px; width:150px;">
|
5
|
+
<%=platform_user_tag(rating.user, :linked => true)%>
|
6
|
+
<div style="color:grey;font-size:10px;"><%=rating.created_at.tr(:date_time) %></div>
|
7
|
+
<div style="font-size:10px;">
|
8
|
+
<% if rating.user == platform_current_user %>
|
9
|
+
<%=link_to(tr("Delete", "Link to delete application review"), {:controller => '/platform/ratings', :action => :delete_app_rating, :rating_id => rating.id}, {:confirm => trl("Are you sure you want to delete this review?")})%>
|
10
|
+
<% else %>
|
11
|
+
<%=link_to_function(tr("Report", "Link to report an abusive review"), "tr8nLightbox.show('/tr8n/translator/lb_report?message_id=#{rating.id}', {width:600, height:340});")%>
|
12
|
+
<% end %>
|
13
|
+
</div>
|
14
|
+
</td>
|
15
|
+
<td style="padding:5px; width:700px;">
|
16
|
+
<%=platform_rating_tag(rating, :width => "12px;") %> - <%=rating.comment ? rating.toHTML : raw("<span style='color:#ccc'>#{tr('no comment')}</span>") %>
|
17
|
+
</td>
|
@@ -0,0 +1,133 @@
|
|
1
|
+
#############################################################################
|
2
|
+
# Platform Configuration
|
3
|
+
#
|
4
|
+
# Default settings for all environments
|
5
|
+
#
|
6
|
+
# You can overload any feature for any environment by changing the
|
7
|
+
# environment settings at the bottom of the file.
|
8
|
+
#
|
9
|
+
# Alternatively, you can overload any of the methods of Platform::Config
|
10
|
+
#############################################################################
|
11
|
+
|
12
|
+
defaults: &defaults
|
13
|
+
enable_platform: true
|
14
|
+
enable_app_directory: true
|
15
|
+
enable_embedded_applications: true
|
16
|
+
enable_mobile_applications: true
|
17
|
+
enable_developer_agreement: false
|
18
|
+
enable_app_statistics: false
|
19
|
+
enable_api_verification: false
|
20
|
+
api_explorer_app_id: -1
|
21
|
+
|
22
|
+
#############################################################################
|
23
|
+
# Platform best run with caching enabled
|
24
|
+
# You can configure cache adapter and store parameters by providing the
|
25
|
+
# the name of your class implementation and the store settings. For example:
|
26
|
+
#
|
27
|
+
#
|
28
|
+
# cache_adapter: ActiveSupport::Cache
|
29
|
+
# cache_store: memory_store
|
30
|
+
# cache_store: file_store
|
31
|
+
# cache_store: drb_store
|
32
|
+
# cache_store: [mem_cache_store, 'localhost:11211']
|
33
|
+
#
|
34
|
+
# Alternatively you can provide your own implementation of cache by setting
|
35
|
+
# the adapter to your own class.
|
36
|
+
#############################################################################
|
37
|
+
caching:
|
38
|
+
enabled: false
|
39
|
+
adapter: "Platform::CacheAdapter"
|
40
|
+
version: 1 # you can change the version to invalidate the cache
|
41
|
+
|
42
|
+
#############################################################################
|
43
|
+
# By default, Platform will use its own logger. If you set it to false,
|
44
|
+
# it will use default Rails logger.
|
45
|
+
#############################################################################
|
46
|
+
logger:
|
47
|
+
enabled: true
|
48
|
+
log_path: log/platform.log # location of the log file
|
49
|
+
|
50
|
+
#############################################################################
|
51
|
+
# Site Integration Settings
|
52
|
+
#############################################################################
|
53
|
+
site_info:
|
54
|
+
title: "Sample"
|
55
|
+
base_url: "localhost:3000"
|
56
|
+
contact_email: platform@geni.com
|
57
|
+
default_url: "/home"
|
58
|
+
login_url: "/login"
|
59
|
+
platform_layout: application
|
60
|
+
admin_layout: admin
|
61
|
+
oauth_layout: minimal
|
62
|
+
system_user_id: 10
|
63
|
+
media_directory: "/media/p1"
|
64
|
+
user_info:
|
65
|
+
enabled: true
|
66
|
+
current_user_method: current_user
|
67
|
+
logout_method: "logout!"
|
68
|
+
class_name: User
|
69
|
+
methods:
|
70
|
+
id: id
|
71
|
+
name: name
|
72
|
+
email: "email"
|
73
|
+
link: path
|
74
|
+
mugshot: square_mugshot_url
|
75
|
+
admin: admin?
|
76
|
+
guest: guest?
|
77
|
+
locale: language
|
78
|
+
media_info:
|
79
|
+
enabled: true
|
80
|
+
class_name: "Platform::Media::Image"
|
81
|
+
write_method: "write"
|
82
|
+
logo_url_method: "media_url(:logo)"
|
83
|
+
icon_url_method: "media_url(:icon)"
|
84
|
+
|
85
|
+
#############################################################################
|
86
|
+
# API Settings
|
87
|
+
#############################################################################
|
88
|
+
API:
|
89
|
+
enabled: true
|
90
|
+
base_url: "localhost:3000/api"
|
91
|
+
config_path: "config/platform/api"
|
92
|
+
logging_enabled: true
|
93
|
+
admin_email: scott.steadman@geni.com
|
94
|
+
allow_public: true
|
95
|
+
cookies_enabled: true
|
96
|
+
max_models: 50
|
97
|
+
request_limit: 3
|
98
|
+
request_window: 1
|
99
|
+
token_lifetime: 86400
|
100
|
+
supported_versions: ['1', '0']
|
101
|
+
default_version: '1'
|
102
|
+
explorer_groups:
|
103
|
+
'0': [['document', 'photo'], ['project', 'video', 'union'], ['profile']]
|
104
|
+
'1': [['user', 'project', 'photo_album', 'union', 'surname'], ['document', 'photo', 'video', 'revision'], ['profile']]
|
105
|
+
user:
|
106
|
+
create_enabled: true
|
107
|
+
|
108
|
+
#############################################################################
|
109
|
+
# Environment Settings
|
110
|
+
# You can overload any feature defined in the defaults for any environment
|
111
|
+
#############################################################################
|
112
|
+
development:
|
113
|
+
<<: *defaults
|
114
|
+
enable_api_verification: true
|
115
|
+
api_explorer_app_id: "TBUDuxvLLqY7ndxjzS5hnPykVMl1hIN29RwfKjh1"
|
116
|
+
|
117
|
+
test:
|
118
|
+
<<: *defaults
|
119
|
+
|
120
|
+
qa:
|
121
|
+
<<: *defaults
|
122
|
+
|
123
|
+
stage:
|
124
|
+
<<: *defaults
|
125
|
+
api_explorer_app_id: "ci9EG77hmXg53AEsKlRuDe9TL2beeGupq6slAHMX"
|
126
|
+
|
127
|
+
production:
|
128
|
+
<<: *defaults
|
129
|
+
api_explorer_app_id: "ci9EG77hmXg53AEsKlRuDe9TL2beeGupq6slAHMX"
|
130
|
+
|
131
|
+
sandbox:
|
132
|
+
<<: *defaults
|
133
|
+
api_explorer_app_id: "tAGjqNSsCYfbDP3At9Qaf3UDrcZfIHbJH7Jp29Nn"
|
@@ -0,0 +1,39 @@
|
|
1
|
+
defaults: &defaults
|
2
|
+
google:
|
3
|
+
name: "Google"
|
4
|
+
description: "Google Search Engine"
|
5
|
+
url: "http://www.google.com"
|
6
|
+
contact_email: "apps@railsplatform.org"
|
7
|
+
category_keywords: ["all"]
|
8
|
+
icon_path: "/public/platform/images/apps/app_icon.gif"
|
9
|
+
logo_path: "/public/platform/images/apps/app_logo.gif"
|
10
|
+
|
11
|
+
yahoo:
|
12
|
+
name: "Yahoo"
|
13
|
+
description: "Yahoo Search Engine"
|
14
|
+
url: "http://www.yahoo.com"
|
15
|
+
contact_email: "apps@railsplatform.org"
|
16
|
+
category_keywords: ["all"]
|
17
|
+
icon_path: "/public/platform/images/apps/app_icon.gif"
|
18
|
+
logo_path: "/public/platform/images/apps/app_logo.gif"
|
19
|
+
|
20
|
+
#############################################################################
|
21
|
+
# Environment Settings
|
22
|
+
# You can overload any feature defined in the defaults for any environment
|
23
|
+
#############################################################################
|
24
|
+
development:
|
25
|
+
<<: *defaults
|
26
|
+
|
27
|
+
test:
|
28
|
+
<<: *defaults
|
29
|
+
|
30
|
+
qa:
|
31
|
+
<<: *defaults
|
32
|
+
|
33
|
+
stage:
|
34
|
+
<<: *defaults
|
35
|
+
|
36
|
+
production:
|
37
|
+
<<: *defaults
|
38
|
+
|
39
|
+
|
@@ -0,0 +1,56 @@
|
|
1
|
+
defaults: &defaults
|
2
|
+
all:
|
3
|
+
position: 1
|
4
|
+
name: "All Apps"
|
5
|
+
categories:
|
6
|
+
all_business:
|
7
|
+
position: 1
|
8
|
+
name: "Business"
|
9
|
+
all_education:
|
10
|
+
position: 2
|
11
|
+
name: "Education"
|
12
|
+
all_entertainment:
|
13
|
+
position: 3
|
14
|
+
name: "Entertainment"
|
15
|
+
all_games:
|
16
|
+
position: 4
|
17
|
+
name: "Games"
|
18
|
+
all_fun:
|
19
|
+
position: 5
|
20
|
+
name: "Just For Fun"
|
21
|
+
all_lifestyle:
|
22
|
+
position: 6
|
23
|
+
name: "Lifestyle"
|
24
|
+
all_utilities:
|
25
|
+
position: 7
|
26
|
+
name: "Utilities"
|
27
|
+
external_websites:
|
28
|
+
position: 3
|
29
|
+
name: "External Websites"
|
30
|
+
desktop:
|
31
|
+
position: 4
|
32
|
+
name: "Desktop"
|
33
|
+
mobile:
|
34
|
+
position: 5
|
35
|
+
name: "Mobile"
|
36
|
+
|
37
|
+
#############################################################################
|
38
|
+
# Environment Settings
|
39
|
+
# You can overload any feature defined in the defaults for any environment
|
40
|
+
#############################################################################
|
41
|
+
development:
|
42
|
+
<<: *defaults
|
43
|
+
|
44
|
+
test:
|
45
|
+
<<: *defaults
|
46
|
+
|
47
|
+
qa:
|
48
|
+
<<: *defaults
|
49
|
+
|
50
|
+
stage:
|
51
|
+
<<: *defaults
|
52
|
+
|
53
|
+
production:
|
54
|
+
<<: *defaults
|
55
|
+
|
56
|
+
|
File without changes
|
@@ -0,0 +1,66 @@
|
|
1
|
+
#############################################################################
|
2
|
+
# Platform Features Configuration
|
3
|
+
#
|
4
|
+
# Default settings for all environments
|
5
|
+
#
|
6
|
+
# You can overload any feature for any environment by changing the
|
7
|
+
# environment settings at the bottom of the file
|
8
|
+
#############################################################################
|
9
|
+
|
10
|
+
defaults: &defaults
|
11
|
+
enabled_features: [dashboard, apps, forum, api_explorer, help]
|
12
|
+
|
13
|
+
dashboard:
|
14
|
+
title: Dashboard
|
15
|
+
link: /platform/developer/dashboard
|
16
|
+
controller: dashboard
|
17
|
+
actions: [index]
|
18
|
+
manager_only: false
|
19
|
+
|
20
|
+
apps:
|
21
|
+
title: Applications
|
22
|
+
link: /platform/developer/apps
|
23
|
+
controller: apps
|
24
|
+
actions: [index, view]
|
25
|
+
manager_only: false
|
26
|
+
|
27
|
+
forum:
|
28
|
+
title: Discussions
|
29
|
+
link: /platform/developer/forum
|
30
|
+
controller: forum
|
31
|
+
actions: [index, topic, message]
|
32
|
+
manager_only: false
|
33
|
+
|
34
|
+
help:
|
35
|
+
title: Help
|
36
|
+
link: /platform/developer/help
|
37
|
+
controller: help
|
38
|
+
actions: []
|
39
|
+
manager_only: false
|
40
|
+
|
41
|
+
api_explorer:
|
42
|
+
title: API Explorer
|
43
|
+
link: /platform/developer/api_explorer
|
44
|
+
controller: api_explorer
|
45
|
+
actions: [index]
|
46
|
+
manager_only: false
|
47
|
+
|
48
|
+
|
49
|
+
#############################################################################
|
50
|
+
# Environment Settings
|
51
|
+
# You can overload any feature defined in the defaults for any environment
|
52
|
+
#############################################################################
|
53
|
+
development:
|
54
|
+
<<: *defaults
|
55
|
+
|
56
|
+
test:
|
57
|
+
<<: *defaults
|
58
|
+
|
59
|
+
qa:
|
60
|
+
<<: *defaults
|
61
|
+
|
62
|
+
stage:
|
63
|
+
<<: *defaults
|
64
|
+
|
65
|
+
production:
|
66
|
+
<<: *defaults
|
data/config/routes.rb
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
#--
|
2
|
+
# Copyright (c) 2010-2011 Michael Berkovich
|
3
|
+
#
|
4
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
5
|
+
# a copy of this software and associated documentation files (the
|
6
|
+
# "Software"), to deal in the Software without restriction, including
|
7
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
8
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
9
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
10
|
+
# the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be
|
13
|
+
# included in all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
17
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
19
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
20
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
21
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
|
+
#++
|
23
|
+
|
24
|
+
Platform::Engine.routes.draw do
|
25
|
+
|
26
|
+
match "apps", :to => "apps#index"
|
27
|
+
match "apps/index", :to => "apps#index"
|
28
|
+
match "apps/view", :to => "apps#view"
|
29
|
+
match "apps/paginate_module", :to => "apps#paginate_module"
|
30
|
+
match "apps/featured_applications_module_content", :to => "apps#featured_applications_module_content"
|
31
|
+
match "apps/xd", :to => "apps#xd"
|
32
|
+
match "apps(/:canvas_name)", :to => "apps#run"
|
33
|
+
|
34
|
+
[:forum, :oauth, :ratings].each do |ctrl|
|
35
|
+
match "#{ctrl}(/:action)", :controller => "#{ctrl}"
|
36
|
+
end
|
37
|
+
|
38
|
+
[:apps, :categories, :clientsdk, :developers, :exceptions, :forum, :metrics].each do |ctrl|
|
39
|
+
match "admin/#{ctrl}(/:action)", :controller => "admin/#{ctrl}"
|
40
|
+
end
|
41
|
+
|
42
|
+
[:apps].each do |ctrl|
|
43
|
+
match "api/#{ctrl}(/:action)", :controller => "api/#{ctrl}"
|
44
|
+
end
|
45
|
+
|
46
|
+
[:api_explorer, :apps, :blog, :dashboard, :forum, :help, :info, :registration, :resources].each do |ctrl|
|
47
|
+
match "developer/#{ctrl}(/:action)", :controller => "developer/#{ctrl}"
|
48
|
+
end
|
49
|
+
|
50
|
+
namespace :admin do
|
51
|
+
root :to => "admin/apps#index"
|
52
|
+
end
|
53
|
+
|
54
|
+
namespace :developer do
|
55
|
+
root :to => "developer/apps#index"
|
56
|
+
end
|
57
|
+
|
58
|
+
root :to => "apps#index"
|
59
|
+
end
|