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,20 @@
|
|
1
|
+
#############################################################################
|
2
|
+
#
|
3
|
+
# Tr8n Default Date Rules
|
4
|
+
#
|
5
|
+
# Definition:
|
6
|
+
# operator: is_in
|
7
|
+
# value1: past, future, present
|
8
|
+
#
|
9
|
+
#############################################################################
|
10
|
+
|
11
|
+
en-US:
|
12
|
+
rule1:
|
13
|
+
operator: is_in
|
14
|
+
value: past
|
15
|
+
rule2:
|
16
|
+
operator: is_in
|
17
|
+
value: future
|
18
|
+
rule3:
|
19
|
+
operator: is_in
|
20
|
+
value: present
|
@@ -0,0 +1,82 @@
|
|
1
|
+
#############################################################################
|
2
|
+
#
|
3
|
+
# Tr8n Default Gender List Rules
|
4
|
+
#
|
5
|
+
# Definition:
|
6
|
+
# multipart: true, false
|
7
|
+
# part1: contains
|
8
|
+
# value1: one_element, at_least_two_elements
|
9
|
+
# part2: is, is_not, are, are_not
|
10
|
+
# value2: male, female, unknown, all_male, all_female, mixed
|
11
|
+
#
|
12
|
+
#############################################################################
|
13
|
+
|
14
|
+
en-US:
|
15
|
+
rule1:
|
16
|
+
multipart: false
|
17
|
+
part1: contains
|
18
|
+
value1: one_element
|
19
|
+
rule2:
|
20
|
+
multipart: false
|
21
|
+
part1: contains
|
22
|
+
value1: at_least_two_elements
|
23
|
+
iw:
|
24
|
+
rule1:
|
25
|
+
multipart: true
|
26
|
+
part1: contains
|
27
|
+
value1: one_element
|
28
|
+
part2: is
|
29
|
+
value2: male
|
30
|
+
rule2:
|
31
|
+
multipart: true
|
32
|
+
part1: contains
|
33
|
+
value1: one_element
|
34
|
+
part2: is
|
35
|
+
value2: female
|
36
|
+
rule3:
|
37
|
+
multipart: true
|
38
|
+
part1: contains
|
39
|
+
value1: one_element
|
40
|
+
part2: is
|
41
|
+
value2: unknown
|
42
|
+
rule4:
|
43
|
+
multipart: true
|
44
|
+
part1: contains
|
45
|
+
value1: at_least_two_elements
|
46
|
+
part2: are
|
47
|
+
value2: all_male
|
48
|
+
rule5:
|
49
|
+
multipart: true
|
50
|
+
part1: contains
|
51
|
+
value1: at_least_two_elements
|
52
|
+
part2: are
|
53
|
+
value2: all_female
|
54
|
+
rule6:
|
55
|
+
multipart: true
|
56
|
+
part1: contains
|
57
|
+
value1: at_least_two_elements
|
58
|
+
part2: are
|
59
|
+
value2: mixed
|
60
|
+
ru:
|
61
|
+
rule1:
|
62
|
+
multipart: true
|
63
|
+
part1: contains
|
64
|
+
value1: one_element
|
65
|
+
part2: is
|
66
|
+
value2: male
|
67
|
+
rule2:
|
68
|
+
multipart: true
|
69
|
+
part1: contains
|
70
|
+
value1: one_element
|
71
|
+
part2: is
|
72
|
+
value2: female
|
73
|
+
rule3:
|
74
|
+
multipart: true
|
75
|
+
part1: contains
|
76
|
+
value1: one_element
|
77
|
+
part2: is
|
78
|
+
value2: unknown
|
79
|
+
rule4:
|
80
|
+
multipart: false
|
81
|
+
part1: contains
|
82
|
+
value1: at_least_two_elements
|
@@ -0,0 +1,20 @@
|
|
1
|
+
#############################################################################
|
2
|
+
#
|
3
|
+
# Tr8n Default Gender Rules
|
4
|
+
#
|
5
|
+
# Definition:
|
6
|
+
# operator: is, is_not
|
7
|
+
# value1: male, female, unknown
|
8
|
+
#
|
9
|
+
#############################################################################
|
10
|
+
|
11
|
+
en-US:
|
12
|
+
rule1:
|
13
|
+
operator: is
|
14
|
+
value: male
|
15
|
+
rule2:
|
16
|
+
operator: is
|
17
|
+
value: female
|
18
|
+
rule3:
|
19
|
+
operator: is
|
20
|
+
value: unknown
|
@@ -0,0 +1,272 @@
|
|
1
|
+
#############################################################################
|
2
|
+
#
|
3
|
+
# Tr8n Default Language Cases
|
4
|
+
#
|
5
|
+
#############################################################################
|
6
|
+
|
7
|
+
en-US:
|
8
|
+
nom:
|
9
|
+
keyword: "nom"
|
10
|
+
latin_name: "Nominative"
|
11
|
+
native_name: "Nominative"
|
12
|
+
description: "Used for any noun or pronoun that is the subject of a verb"
|
13
|
+
application: "phrase"
|
14
|
+
obj:
|
15
|
+
keyword: "obj"
|
16
|
+
latin_name: "Objective"
|
17
|
+
native_name: "Objective"
|
18
|
+
description: "Used in the direct object, indirect object, object of preposition, object complement, and subject of an infinitive"
|
19
|
+
application: "phrase"
|
20
|
+
pos:
|
21
|
+
keyword: "pos"
|
22
|
+
latin_name: "Possessive"
|
23
|
+
native_name: "Possessive"
|
24
|
+
description: "Used to indicate possession (i.e., ownership). It is usually created by adding 's to the word"
|
25
|
+
application: "phrase"
|
26
|
+
rules:
|
27
|
+
1:
|
28
|
+
multipart: false
|
29
|
+
gender: none
|
30
|
+
part1: ends_in
|
31
|
+
value1: "s"
|
32
|
+
operation: append
|
33
|
+
operation_value: "'"
|
34
|
+
2:
|
35
|
+
multipart: false
|
36
|
+
gender: none
|
37
|
+
part1: does_not_end_in
|
38
|
+
value1: "s"
|
39
|
+
operation: append
|
40
|
+
operation_value: "'s"
|
41
|
+
ord:
|
42
|
+
keyword: "ord"
|
43
|
+
latin_name: "Ordinal"
|
44
|
+
native_name: "Ordinal"
|
45
|
+
description: "The adjective form of the cardinal numbers"
|
46
|
+
application: "phrase"
|
47
|
+
rules:
|
48
|
+
1:
|
49
|
+
multipart: true
|
50
|
+
gender: none
|
51
|
+
part1: ends_in
|
52
|
+
value1: "1"
|
53
|
+
operator: and
|
54
|
+
part2: does_not_end_in
|
55
|
+
value2: "11"
|
56
|
+
operation: append
|
57
|
+
operation_value: "st"
|
58
|
+
2:
|
59
|
+
multipart: true
|
60
|
+
gender: none
|
61
|
+
part1: ends_in
|
62
|
+
value1: "2"
|
63
|
+
operator: and
|
64
|
+
part2: does_not_end_in
|
65
|
+
value2: "12"
|
66
|
+
operation: append
|
67
|
+
operation_value: "nd"
|
68
|
+
3:
|
69
|
+
multipart: true
|
70
|
+
gender: none
|
71
|
+
part1: ends_in
|
72
|
+
value1: "3"
|
73
|
+
operator: and
|
74
|
+
part2: does_not_end_in
|
75
|
+
value2: "13"
|
76
|
+
operation: append
|
77
|
+
operation_value: "rd"
|
78
|
+
4:
|
79
|
+
multipart: false
|
80
|
+
gender: none
|
81
|
+
part1: ends_in
|
82
|
+
value1: "0,4,5,6,7,8,9,11,12,13"
|
83
|
+
operation: append
|
84
|
+
operation_value: "th"
|
85
|
+
times:
|
86
|
+
keyword: "times"
|
87
|
+
latin_name: "Iteration"
|
88
|
+
native_name: "Iteration"
|
89
|
+
description: "The iteration form of the cardinal numbers"
|
90
|
+
application: "phrase"
|
91
|
+
rules:
|
92
|
+
1:
|
93
|
+
multipart: true
|
94
|
+
gender: none
|
95
|
+
part1: is
|
96
|
+
value1: "1"
|
97
|
+
operation: replace
|
98
|
+
operation_value: "once"
|
99
|
+
2:
|
100
|
+
multipart: true
|
101
|
+
gender: none
|
102
|
+
part1: is
|
103
|
+
value1: "2"
|
104
|
+
operation: replace
|
105
|
+
operation_value: "twice"
|
106
|
+
3:
|
107
|
+
multipart: true
|
108
|
+
gender: none
|
109
|
+
part1: is
|
110
|
+
value1: "3"
|
111
|
+
operation: replace
|
112
|
+
operation_value: "thrice"
|
113
|
+
3:
|
114
|
+
multipart: false
|
115
|
+
gender: none
|
116
|
+
part1: is_not
|
117
|
+
value1: "1,2,3"
|
118
|
+
operation: append
|
119
|
+
operation_value: " times"
|
120
|
+
ordinal:
|
121
|
+
keyword: "ordinal"
|
122
|
+
latin_name: "Ordinal"
|
123
|
+
native_name: "Ordinal"
|
124
|
+
description: "The adjective form of the cardinal numbers"
|
125
|
+
application: "phrase"
|
126
|
+
rules:
|
127
|
+
1:
|
128
|
+
multipart: true
|
129
|
+
gender: none
|
130
|
+
part1: is
|
131
|
+
value1: "1"
|
132
|
+
operation: replace
|
133
|
+
operation_value: "first"
|
134
|
+
2:
|
135
|
+
multipart: true
|
136
|
+
gender: none
|
137
|
+
part1: is
|
138
|
+
value1: "2"
|
139
|
+
operation: replace
|
140
|
+
operation_value: "second"
|
141
|
+
3:
|
142
|
+
multipart: true
|
143
|
+
gender: none
|
144
|
+
part1: is
|
145
|
+
value1: "3"
|
146
|
+
operation: replace
|
147
|
+
operation_value: "third"
|
148
|
+
4:
|
149
|
+
multipart: true
|
150
|
+
gender: none
|
151
|
+
part1: ends_in
|
152
|
+
value1: "1"
|
153
|
+
operator: and
|
154
|
+
part2: does_not_end_in
|
155
|
+
value2: "11"
|
156
|
+
operation: append
|
157
|
+
operation_value: "st"
|
158
|
+
5:
|
159
|
+
multipart: true
|
160
|
+
gender: none
|
161
|
+
part1: ends_in
|
162
|
+
value1: "2"
|
163
|
+
operator: and
|
164
|
+
part2: does_not_end_in
|
165
|
+
value2: "12"
|
166
|
+
operation: append
|
167
|
+
operation_value: "nd"
|
168
|
+
6:
|
169
|
+
multipart: true
|
170
|
+
gender: none
|
171
|
+
part1: ends_in
|
172
|
+
value1: "3"
|
173
|
+
operator: and
|
174
|
+
part2: does_not_end_in
|
175
|
+
value2: "13"
|
176
|
+
operation: append
|
177
|
+
operation_value: "rd"
|
178
|
+
7:
|
179
|
+
multipart: false
|
180
|
+
gender: none
|
181
|
+
part1: ends_in
|
182
|
+
value1: "0,4,5,6,7,8,9,11,12,13"
|
183
|
+
operation: append
|
184
|
+
operation_value: "th"
|
185
|
+
|
186
|
+
ru:
|
187
|
+
case1:
|
188
|
+
keyword: "nom"
|
189
|
+
latin_name: "Nominativus"
|
190
|
+
native_name: "Именительный падеж"
|
191
|
+
description: "Есть - Кто? Что?"
|
192
|
+
application: "words"
|
193
|
+
case2:
|
194
|
+
keyword: "gen"
|
195
|
+
latin_name: "Genitivus"
|
196
|
+
native_name: "Родительный падеж"
|
197
|
+
description: "Нет - Кого? Чего?"
|
198
|
+
application: "words"
|
199
|
+
rules:
|
200
|
+
1:
|
201
|
+
multipart: false
|
202
|
+
gender: male
|
203
|
+
part1: ends_in
|
204
|
+
value1: "б, в, г, д, ж, з, к, л, м, н, п, р, с, т, ф, х, ц, ч, ш, щ"
|
205
|
+
operation: append
|
206
|
+
operation_value: "a"
|
207
|
+
2:
|
208
|
+
multipart: false
|
209
|
+
gender: male
|
210
|
+
part1: ends_in
|
211
|
+
value1: "й"
|
212
|
+
operation: replace
|
213
|
+
operation_value: "я"
|
214
|
+
3:
|
215
|
+
multipart: false
|
216
|
+
gender: female
|
217
|
+
part1: ends_in
|
218
|
+
value1: "а"
|
219
|
+
operation: replace
|
220
|
+
operation_value: "ы"
|
221
|
+
4:
|
222
|
+
multipart: false
|
223
|
+
gender: female
|
224
|
+
part1: ends_in
|
225
|
+
value1: "я"
|
226
|
+
operation: replace
|
227
|
+
operation_value: "и"
|
228
|
+
case3:
|
229
|
+
keyword: "dat"
|
230
|
+
latin_name: "Dativus"
|
231
|
+
native_name: "Дательный падеж"
|
232
|
+
description: "Рад - Кому? Чему?"
|
233
|
+
application: "words"
|
234
|
+
case4:
|
235
|
+
keyword: "acc"
|
236
|
+
latin_name: "Accusativus"
|
237
|
+
native_name: "Винительный падеж"
|
238
|
+
description: "Вижу - Кого? Что?"
|
239
|
+
application: "words"
|
240
|
+
case5:
|
241
|
+
keyword: "ins"
|
242
|
+
latin_name: "Instrumentalis"
|
243
|
+
native_name: "Творительный падеж"
|
244
|
+
description: "Доволен - Кем? Чем?"
|
245
|
+
application: "words"
|
246
|
+
case6:
|
247
|
+
keyword: "pre"
|
248
|
+
latin_name: "Prepositivus"
|
249
|
+
native_name: "Предложный падеж"
|
250
|
+
description: "Думаю - О ком? О чём?"
|
251
|
+
application: "words"
|
252
|
+
case7:
|
253
|
+
keyword: "pos"
|
254
|
+
latin_name: "Possessive"
|
255
|
+
native_name: "Притяжательный падеж"
|
256
|
+
description: "Чей?"
|
257
|
+
application: "words"
|
258
|
+
rules:
|
259
|
+
1:
|
260
|
+
multipart: false
|
261
|
+
gender: female
|
262
|
+
part1: ends_in
|
263
|
+
value1: "ва"
|
264
|
+
operation: replace
|
265
|
+
operation_value: "вой"
|
266
|
+
2:
|
267
|
+
multipart: false
|
268
|
+
gender: male
|
269
|
+
part1: ends_in
|
270
|
+
value1: "б, в, г, д, ж, з, к, л, м, н, п, р, с, т, ф, х, ц, ч, ш, щ"
|
271
|
+
operation: append
|
272
|
+
operation_value: "a"
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#############################################################################
|
2
|
+
#
|
3
|
+
# Tr8n Default List Rules
|
4
|
+
#
|
5
|
+
# Definition:
|
6
|
+
# operator: contains
|
7
|
+
# value1: one_element, at_least_two_elements
|
8
|
+
#
|
9
|
+
# Important! If your site supports user genders, use Tr8n::GenderListRule instead
|
10
|
+
#
|
11
|
+
#############################################################################
|
12
|
+
|
13
|
+
en-US:
|
14
|
+
rule1:
|
15
|
+
operator: contains
|
16
|
+
value: one_element
|
17
|
+
rule2:
|
18
|
+
operator: contains
|
19
|
+
value: at_least_two_elements
|
@@ -0,0 +1,42 @@
|
|
1
|
+
#############################################################################
|
2
|
+
#
|
3
|
+
# Tr8n Default Numeric Rules
|
4
|
+
#
|
5
|
+
# Definition:
|
6
|
+
# multipart: true, false
|
7
|
+
# part1: is, is_not, ends_in, does_not_end_in
|
8
|
+
# value1: USER_SPECIFIED
|
9
|
+
# operator: and, or
|
10
|
+
# part2: is, is_not, ends_in, does_not_end_in
|
11
|
+
# value2: USER_SPECIFIED
|
12
|
+
#
|
13
|
+
#############################################################################
|
14
|
+
|
15
|
+
en-US:
|
16
|
+
rule1:
|
17
|
+
multipart: false
|
18
|
+
part1: is
|
19
|
+
value1: "1"
|
20
|
+
rule2:
|
21
|
+
multipart: false
|
22
|
+
part1: is_not
|
23
|
+
value1: "1"
|
24
|
+
ru:
|
25
|
+
rule1:
|
26
|
+
multipart: true
|
27
|
+
part1: ends_in
|
28
|
+
value1: "1"
|
29
|
+
operator: and
|
30
|
+
part2: does_not_end_in
|
31
|
+
value2: "11"
|
32
|
+
rule2:
|
33
|
+
multipart: true
|
34
|
+
part1: ends_in
|
35
|
+
value1: "2,3,4"
|
36
|
+
operator: and
|
37
|
+
part2: does_not_end_in
|
38
|
+
value2: "12,13,14"
|
39
|
+
rule3:
|
40
|
+
multipart: false
|
41
|
+
part1: ends_in
|
42
|
+
value1: "0,5,6,7,8,9,11,12,13,14"
|