From e055d0080b01a5c930fb61b1d422441aa6c96edc Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Mon, 18 Mar 2013 15:36:16 +0400 Subject: [PATCH] #29: removed hack for encoding --- app/controllers/activity_feeds_controller.rb | 1 - app/controllers/admin/base_controller.rb | 1 - app/controllers/admin/event_logs_controller.rb | 1 - app/controllers/admin/register_requests_controller.rb | 1 - app/controllers/admin/users_controller.rb | 1 - app/controllers/advisories_controller.rb | 1 - app/controllers/api/v1/advisories_controller.rb | 1 - app/controllers/api/v1/arches_controller.rb | 1 - app/controllers/api/v1/base_controller.rb | 1 - app/controllers/api/v1/build_lists_controller.rb | 1 - app/controllers/api/v1/groups_controller.rb | 1 - app/controllers/api/v1/platforms_controller.rb | 1 - app/controllers/api/v1/product_build_lists_controller.rb | 1 - app/controllers/api/v1/products_controller.rb | 1 - app/controllers/api/v1/projects_controller.rb | 1 - app/controllers/api/v1/repositories_controller.rb | 1 - app/controllers/api/v1/search_controller.rb | 1 - app/controllers/api/v1/users_controller.rb | 1 - app/controllers/application_controller.rb | 1 - app/controllers/autocompletes_controller.rb | 1 - app/controllers/contacts_controller.rb | 1 - app/controllers/groups/base_controller.rb | 1 - app/controllers/groups/members_controller.rb | 1 - app/controllers/groups/profile_controller.rb | 1 - app/controllers/pages_controller.rb | 1 - app/controllers/platforms/base_controller.rb | 1 - app/controllers/platforms/maintainers_controller.rb | 1 - app/controllers/platforms/platforms_controller.rb | 1 - app/controllers/platforms/private_users_controller.rb | 1 - app/controllers/platforms/privates_controller.rb | 1 - app/controllers/platforms/product_build_lists_controller.rb | 1 - app/controllers/platforms/products_controller.rb | 1 - app/controllers/platforms/repositories_controller.rb | 1 - app/controllers/projects/base_controller.rb | 1 - app/controllers/projects/build_lists_controller.rb | 1 - app/controllers/projects/collaborators_controller.rb | 1 - app/controllers/projects/comments_controller.rb | 1 - app/controllers/projects/commit_subscribes_controller.rb | 1 - app/controllers/projects/git/base_controller.rb | 1 - app/controllers/projects/git/blobs_controller.rb | 1 - app/controllers/projects/git/commits_controller.rb | 1 - app/controllers/projects/git/trees_controller.rb | 1 - app/controllers/projects/issues_controller.rb | 1 - app/controllers/projects/projects_controller.rb | 1 - app/controllers/projects/pull_requests_controller.rb | 1 - app/controllers/projects/subscribes_controller.rb | 1 - app/controllers/projects/wiki_controller.rb | 1 - app/controllers/search_controller.rb | 1 - app/controllers/users/base_controller.rb | 1 - app/controllers/users/omniauth_callbacks_controller.rb | 1 - app/controllers/users/profile_controller.rb | 1 - app/controllers/users/register_requests_controller.rb | 1 - app/controllers/users/settings_controller.rb | 1 - app/controllers/users/ssh_keys_controller.rb | 1 - app/controllers/users/users_controller.rb | 1 - app/helpers/activity_feeds_helper.rb | 1 - app/helpers/advisories_helper.rb | 1 - app/helpers/application_helper.rb | 1 - app/helpers/build_lists_helper.rb | 1 - app/helpers/comments_helper.rb | 1 - app/helpers/commit_helper.rb | 1 - app/helpers/devise_helper.rb | 1 - app/helpers/diff_helper.rb | 1 - app/helpers/git_helper.rb | 1 - app/helpers/issues_helper.rb | 1 - app/helpers/mass_build_helper.rb | 1 - app/helpers/platforms_helper.rb | 1 - app/helpers/projects_helper.rb | 1 - app/helpers/pull_request_helper.rb | 1 - app/helpers/users_helper.rb | 1 - app/helpers/wiki_helper.rb | 1 - app/mailers/user_mailer.rb | 2 -- app/models/ability.rb | 1 - app/models/activity_feed.rb | 1 - app/models/activity_feed_observer.rb | 1 - app/models/arch.rb | 1 - app/models/authentication.rb | 1 - app/models/avatar.rb | 1 - app/models/build_list.rb | 1 - app/models/build_list/filter.rb | 1 - app/models/build_list/item.rb | 1 - app/models/collaborator.rb | 1 - app/models/comment.rb | 1 - app/models/event_log.rb | 1 - app/models/event_log_observer.rb | 1 - app/models/git_hook.rb | 1 - app/models/group.rb | 1 - app/models/issue.rb | 1 - app/models/key_pair.rb | 1 - app/models/label.rb | 1 - app/models/labeling.rb | 1 - app/models/platform.rb | 1 - app/models/private_user.rb | 1 - app/models/product.rb | 1 - app/models/product_build_list.rb | 1 - app/models/project.rb | 1 - app/models/project_import.rb | 1 - app/models/project_tag.rb | 1 - app/models/project_to_repository.rb | 1 - app/models/register_request.rb | 1 - app/models/relation.rb | 1 - app/models/repository.rb | 1 - app/models/search.rb | 1 - app/models/settings_notifier.rb | 1 - app/models/subscribe.rb | 1 - app/models/user.rb | 1 - app/presenters/application_presenter.rb | 1 - app/presenters/comment_presenter.rb | 1 - app/presenters/git_presenters/commit_as_message_presenter.rb | 1 - config/application.rb | 1 - config/boot.rb | 1 - config/deploy.rb.sample | 1 - config/deploy/production.rb.sample | 1 - config/environment.rb | 1 - config/environments/development.rb | 1 - config/environments/production.rb | 1 - config/environments/test.rb | 1 - config/initializers/a_app_config.rb | 1 - config/initializers/airbrake.rb | 1 - config/initializers/backtrace_silencers.rb | 1 - config/initializers/devise.rb | 1 - config/initializers/inflections.rb | 1 - config/initializers/mime_types.rb | 1 - config/initializers/notifications.rb | 1 - config/initializers/secret_token.rb | 1 - config/initializers/session_store.rb | 1 - config/initializers/setup.rb | 1 - config/routes.rb | 1 - config/schedule.rb | 1 - config/unicorn.rb | 1 - db/migrate/20110309144736_devise_create_users.rb | 1 - db/migrate/20110309173339_create_platforms.rb | 1 - db/migrate/20110309173421_create_projects.rb | 1 - db/migrate/20110311154011_create_repositories.rb | 1 - db/migrate/20110311154044_remove_platform_id_from_projects.rb | 1 - db/migrate/20110311154136_add_repository_id_to_projects.rb | 1 - db/migrate/20110311154929_add_unixname_to_repositories.rb | 1 - db/migrate/20110312133121_create_containers.rb | 1 - db/migrate/20110312133559_create_arches.rb | 1 - db/migrate/20110312133948_create_rpms.rb | 1 - db/migrate/20110317130503_add_released_to_platforms.rb | 1 - db/migrate/20110405161609_create_build_lists.rb | 1 - db/migrate/20110407144147_add_is_circle_to_build_lists.rb | 1 - db/migrate/20110408123808_create_build_list_items.rb | 1 - .../20110408132541_add_additional_repos_to_build_lists.rb | 1 - db/migrate/20110408134718_add_name_to_build_lists.rb | 1 - db/migrate/20110411082826_create_products.rb | 1 - db/migrate/20110411125015_add_fields_to_products.rb | 1 - db/migrate/20110411160955_create_delayed_jobs.rb | 1 - db/migrate/20110412074038_add_attachment_tar_to_product.rb | 1 - db/migrate/20110414145300_add_template_columns_to_products.rb | 1 - db/migrate/20110428132112_add_cron_tab_to_products.rb | 1 - db/migrate/20110428140753_add_use_cron_to_products.rb | 1 - db/migrate/20111011182847_add_extra_fields_to_users.rb | 1 - db/migrate/20111011200645_create_authentications.rb | 1 - db/migrate/20111012065448_create_downloads.rb | 1 - db/migrate/20111012133633_create_event_logs.rb | 1 - db/migrate/20111012223006_create_permissions.rb | 1 - db/migrate/20111012223306_create_roles.rb | 1 - db/migrate/20111012223521_create_relations.rb | 1 - db/migrate/20111012223944_create_groups.rb | 1 - db/migrate/20111013150125_create_project_to_repositories.rb | 1 - db/migrate/20111014150436_remove_repository_id_from_project.rb | 1 - db/migrate/20111016130557_add_uname_to_groups.rb | 1 - db/migrate/20111016220428_platform_restruct.rb | 1 - db/migrate/20111016224709_project_restruct.rb | 1 - db/migrate/20111016225240_repositories_restruct.rb | 1 - db/migrate/20111017112255_create_private_users.rb | 1 - db/migrate/20111017152936_create_categories.rb | 1 - ...0111017172701_add_category_id_and_description_to_projects.rb | 1 - db/migrate/20111018102655_add_uname_to_users.rb | 1 - db/migrate/20111019173246_create_role_lines.rb | 1 - db/migrate/20111020160644_add_new_fields_to_build_lists.rb | 1 - db/migrate/20111021164945_delete_nickname_init_uname.rb | 1 - db/migrate/20111022170400_create_rights.rb | 1 - db/migrate/20111023154034_add_global_role_to_users.rb | 1 - db/migrate/20111023154130_add_global_role_to_groups.rb | 1 - db/migrate/20111023195205_add_can_see_to_roles.rb | 1 - db/migrate/20111026135125_add_on_and_to_to_roles.rb | 1 - db/migrate/20111026152530_add_user_id_to_private_users.rb | 1 - db/migrate/20111026200223_add_default_to_roles.rb | 1 - db/migrate/20111027230610_change_roles_on_and_to.rb | 1 - .../20111028070604_remove_visibility_from_repositories.rb | 1 - db/migrate/20111029135514_add_version_to_build_list_items.rb | 1 - db/migrate/20111029150934_create_auto_build_lists.rb | 1 - db/migrate/20111107211538_create_product_build_lists.rb | 1 - .../20111111184657_rename_products_build_to_build_script.rb | 1 - db/migrate/20111116140040_add_roles_to_relations.rb | 1 - db/migrate/20111122232244_add_ancestry_to_projects.rb | 1 - db/migrate/20111123160010_drop_acl_tables.rb | 1 - db/migrate/20111128140341_rename_name_and_unixname.rb | 1 - ...130181101_change_build_lists_build_requires_default_value.rb | 1 - db/migrate/20111216134039_create_issues.rb | 1 - db/migrate/20111216140849_create_comments.rb | 1 - db/migrate/20111219073859_add_has_issues_to_projects.rb | 1 - db/migrate/20111220152347_add_include_repos_to_build_lists.rb | 1 - db/migrate/20111221120208_add_has_wiki_to_projects.rb | 1 - db/migrate/20111221194422_add_user_id_to_build_lists.rb | 1 - db/migrate/20111226141947_create_subscribes.rb | 1 - db/migrate/20111228182425_add_auto_publish_to_build_lists.rb | 1 - db/migrate/20120111072106_create_settings_notifiers.rb | 1 - db/migrate/20120111080234_change_commentable_id.rb | 1 - db/migrate/20120111135443_add_settings_notifier_to_all_users.rb | 1 - db/migrate/20120113121748_add_issue_status_default_value.rb | 1 - db/migrate/20120113151305_add_package_version_to_build_lists.rb | 1 - db/migrate/20120113212924_add_commit_hash_to_build_lists.rb | 1 - db/migrate/20120117110723_add_language_to_users.rb | 1 - db/migrate/20120117210132_create_project_imports.rb | 1 - db/migrate/20120118173141_add_settings_to_settings_notifiers.rb | 1 - db/migrate/20120123120400_add_status_to_subscribe.rb | 1 - db/migrate/20120123134616_add_project_to_subscribe.rb | 1 - db/migrate/20120123161250_change_subscribeable_to_string.rb | 1 - db/migrate/20120124065207_create_activity_feeds.rb | 1 - db/migrate/20120124101727_add_srpm_columns_to_projects.rb | 1 - db/migrate/20120126214421_add_projects_count_to_users.rb | 1 - db/migrate/20120126214447_add_projects_count_to_groups.rb | 1 - db/migrate/20120127141211_add_confirmable_to_users.rb | 1 - db/migrate/20120127234602_add_index_for_projects_name.rb | 1 - .../20120131124517_add_platform_reference_to_project_imports.rb | 1 - db/migrate/20120201181421_add_queue_to_delayed_jobs.rb | 1 - db/migrate/20120202154114_upgrade_devise.rb | 1 - db/migrate/20120206225130_change_commentable_id_to_decimal.rb | 1 - db/migrate/20120209135822_create_register_requests.rb | 1 - .../20120210141153_add_more_fields_to_register_requests.rb | 1 - db/migrate/20120214021626_change_subscribeable_id_to_decimal.rb | 1 - db/migrate/20120219161749_add_creator_to_issue.rb | 1 - db/migrate/20120220131333_add_default_branch_to_projects.rb | 1 - db/migrate/20120220175615_create_labels.rb | 1 - db/migrate/20120220185458_remove_repositories_owner.rb | 1 - db/migrate/20120224122738_add_is_rpm_to_projects.rb | 1 - db/migrate/20120228094721_add_closed_at_to_issue.rb | 1 - db/migrate/20120228100121_add_closed_by_to_issue.rb | 1 - db/migrate/20120229163054_add_description_to_groups.rb | 1 - .../20120229182356_add_default_values_to_is_rpm_for_projects.rb | 1 - db/migrate/20120302102734_remove_name_from_groups.rb | 1 - .../20120302114735_add_professional_experience_to_users.rb | 1 - .../20120303062601_add_site_company_and_location_to_users.rb | 1 - db/migrate/20120303171802_add_avatar_to_users.rb | 1 - db/migrate/20120306212914_add_project_to_comment.rb | 1 - db/migrate/20120313130930_delete_dublicate_subscribes.rb | 1 - db/migrate/20120314151558_truncate_activity_feed.rb | 1 - db/migrate/20120314162313_add_description_to_products.rb | 1 - db/migrate/20120314223151_remove_is_template_from_products.rb | 1 - db/migrate/20120320102912_add_build_list_priority.rb | 1 - db/migrate/20120321130436_add_devise_lockable.rb | 1 - db/migrate/20120326142636_confirm_all_registered_users.rb | 1 - db/migrate/20120329181830_remove_auto_build_list.rb | 1 - db/migrate/20120329182602_delete_categories.rb | 1 - db/migrate/20120330201229_remove_containers_and_rpms.rb | 1 - db/migrate/20120331180541_customize_platform.rb | 1 - db/migrate/20120403110931_clear_product.rb | 1 - db/seeds.rb | 1 - doc/downloads/download.rb | 1 - lib/abf_worker/build_lists_publish_task_manager.rb | 1 - lib/ext/core/object.rb | 1 - lib/ext/core/string.rb | 1 - lib/ext/git/gollum.rb | 1 - lib/ext/git/grit.rb | 1 - lib/ext/paperclip.rb | 1 - lib/ext/preregistration.rb | 1 - lib/ext/rails/render_errors_in_forms.rb | 1 - lib/ext/rails/url_for.rb | 1 - lib/ext/rosa/constraints.rb | 1 - lib/modules.rb | 1 - lib/modules/models/acts_like_member.rb | 1 - lib/modules/models/commit_and_version.rb | 1 - lib/modules/models/file_store_clean.rb | 1 - lib/modules/models/git.rb | 1 - lib/modules/models/owner.rb | 1 - lib/modules/models/personal_repository.rb | 1 - lib/modules/models/time_living.rb | 1 - lib/modules/models/wiki.rb | 1 - lib/plugins.rb | 1 - lib/plugins/grack.rb | 1 - lib/plugins/grack/auth.rb | 1 - lib/plugins/grack/base.rb | 1 - lib/plugins/grack/handler.rb | 1 - lib/plugins/rails_datatables.rb | 1 - lib/plugins/rails_datatables/rails_datatables.rb | 1 - lib/plugins/related_models.rb | 1 - lib/plugins/related_models/base.rb | 1 - lib/plugins/related_models/belongs_to_helpers.rb | 1 - lib/plugins/related_models/class_methods.rb | 1 - lib/plugins/related_models/polymorphic_helpers.rb | 1 - lib/plugins/related_models/url_helpers.rb | 1 - lib/plugins/rosa_presenter.rb | 1 - lib/plugins/rosa_presenter/activation.rb | 2 -- lib/plugins/rosa_presenter/base.rb | 2 -- lib/recipes/bluepill.rb | 1 - lib/recipes/nginx.rb | 1 - lib/recipes/resque.rb | 1 - lib/recipes/unicorn.rb | 1 - spec/controllers/activity_feeds_controller_spec.rb | 1 - spec/controllers/api/v1/advisories_controller_spec.rb | 1 - spec/controllers/api/v1/arches_controller_spec.rb | 1 - spec/controllers/api/v1/build_lists_controller_spec.rb | 1 - spec/controllers/api/v1/groups_controller_spec.rb | 1 - spec/controllers/api/v1/platforms_controller_spec.rb | 1 - spec/controllers/api/v1/product_build_lists_controller.rb | 1 - spec/controllers/api/v1/products_controller_spec.rb | 1 - spec/controllers/api/v1/projects_controller_spec.rb | 1 - spec/controllers/api/v1/repositories_controller_spec.rb | 1 - spec/controllers/api/v1/search_controller_spec.rb | 1 - spec/controllers/api/v1/users_controller_spec.rb | 1 - spec/controllers/autocompletes_controller_spec.rb | 1 - spec/controllers/groups/members_controller_spec.rb | 1 - spec/controllers/groups/profile_controller_spec.rb | 1 - spec/controllers/platforms/maintainers_controller_spec.rb | 1 - spec/controllers/platforms/mass_builds_controller_spec.rb | 1 - spec/controllers/platforms/platforms_controller_spec.rb | 1 - spec/controllers/platforms/private_users_controller_spec.rb | 1 - spec/controllers/platforms/privates_controller_spec.rb | 1 - .../platforms/product_build_lists_controller_spec.rb | 1 - spec/controllers/platforms/products_controller_spec.rb | 1 - spec/controllers/platforms/repositories_controller_spec.rb | 1 - spec/controllers/projects/build_lists_controller_spec.rb | 1 - spec/controllers/projects/collaborators_controller_spec.rb | 1 - .../controllers/projects/comments_controller_for_commit_spec.rb | 1 - spec/controllers/projects/comments_controller_spec.rb | 1 - spec/controllers/projects/git/git_trees_controller_spec.rb | 1 - spec/controllers/projects/issues_controller_spec.rb | 1 - spec/controllers/projects/projects_controller_spec.rb | 1 - spec/controllers/projects/pull_requests_controller_spec.rb | 1 - spec/controllers/projects/subscribes_controller_spec.rb | 1 - spec/controllers/projects/wiki_controller_spec.rb | 1 - spec/controllers/search_controller_spec.rb | 1 - spec/controllers/users/profile_controller_spec.rb | 1 - spec/factories/_sequences.rb | 1 - spec/factories/activity_feeds.rb | 1 - spec/factories/advisories.rb | 1 - spec/factories/arches.rb | 1 - spec/factories/build_lists.rb | 1 - spec/factories/comments.rb | 1 - spec/factories/flash_notify.rb | 1 - spec/factories/groups.rb | 1 - spec/factories/issues.rb | 1 - spec/factories/key_pair.rb | 1 - spec/factories/mass_build.rb | 1 - spec/factories/platforms.rb | 1 - spec/factories/private_users.rb | 1 - spec/factories/product_build_lists.rb | 1 - spec/factories/products.rb | 1 - spec/factories/project_imports.rb | 1 - spec/factories/projects.rb | 1 - spec/factories/pull_request.rb | 1 - spec/factories/register_requests.rb | 1 - spec/factories/repositories.rb | 1 - spec/factories/settings_notifiers.rb | 2 -- spec/factories/subscribes.rb | 1 - spec/factories/users.rb | 1 - spec/helpers/activity_feeds_helper_spec.rb | 1 - spec/helpers/build_lists_helper_spec.rb | 1 - spec/helpers/wiki_helper_spec.rb | 1 - spec/mailers/user_mailer_spec.rb | 1 - spec/models/activity_feed_observer_spec.rb | 1 - spec/models/activity_feed_spec.rb | 1 - spec/models/arch_spec.rb | 1 - spec/models/build_list_spec.rb | 1 - spec/models/cancan_spec.rb | 1 - spec/models/comment_for_commit_spec.rb | 1 - spec/models/comment_spec.rb | 1 - spec/models/event_log_spec.rb | 1 - spec/models/group_spec.rb | 1 - spec/models/issue_spec.rb | 1 - spec/models/labels_spec.rb | 1 - spec/models/platform_spec.rb | 1 - spec/models/private_user_spec.rb | 1 - spec/models/product_build_list_spec.rb | 1 - spec/models/product_spec.rb | 1 - spec/models/project_import_spec.rb | 1 - spec/models/project_spec.rb | 1 - spec/models/project_to_repository_spec.rb | 1 - spec/models/pull_request_spec.rb | 1 - spec/models/register_request_spec.rb | 1 - spec/models/relation_spec.rb | 1 - spec/models/repository_spec.rb | 1 - spec/models/subscribe_spec.rb | 1 - spec/models/user_spec.rb | 2 +- spec/routing/product_build_lists_routing_spec.rb | 2 +- spec/routing/projects_routing_spec.rb.rb | 2 +- spec/spec_helper.rb | 1 - spec/support/devise.rb | 1 - spec/support/shared_examples/comments.rb | 1 - spec/support/shared_examples/members_controller.rb | 1 - 384 files changed, 3 insertions(+), 388 deletions(-) diff --git a/app/controllers/activity_feeds_controller.rb b/app/controllers/activity_feeds_controller.rb index bcc44ed10..6f19cd212 100644 --- a/app/controllers/activity_feeds_controller.rb +++ b/app/controllers/activity_feeds_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ActivityFeedsController < ApplicationController before_filter :authenticate_user! diff --git a/app/controllers/admin/base_controller.rb b/app/controllers/admin/base_controller.rb index 5104813c4..a1f559897 100644 --- a/app/controllers/admin/base_controller.rb +++ b/app/controllers/admin/base_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Admin::BaseController < ApplicationController before_filter :authenticate_user! load_and_authorize_resource diff --git a/app/controllers/admin/event_logs_controller.rb b/app/controllers/admin/event_logs_controller.rb index a58dfcefd..a683628dd 100644 --- a/app/controllers/admin/event_logs_controller.rb +++ b/app/controllers/admin/event_logs_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Admin::EventLogsController < Admin::BaseController def index @event_logs = EventLog.default_order.eager_loading.paginate :page => params[:page] diff --git a/app/controllers/admin/register_requests_controller.rb b/app/controllers/admin/register_requests_controller.rb index 9da359399..5939746fa 100644 --- a/app/controllers/admin/register_requests_controller.rb +++ b/app/controllers/admin/register_requests_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Admin::RegisterRequestsController < Admin::BaseController def index @register_requests = @register_requests.send((params[:scope] || 'unprocessed').to_sym).paginate(:page => params[:page]) diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb index 09e1089f2..643bbf05a 100644 --- a/app/controllers/admin/users_controller.rb +++ b/app/controllers/admin/users_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Admin::UsersController < Admin::BaseController include AvatarHelper prepend_before_filter :find_user diff --git a/app/controllers/advisories_controller.rb b/app/controllers/advisories_controller.rb index 912509508..876e9ec99 100644 --- a/app/controllers/advisories_controller.rb +++ b/app/controllers/advisories_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AdvisoriesController < ApplicationController before_filter :authenticate_user! skip_before_filter :authenticate_user! if APP_CONFIG['anonymous_access'] diff --git a/app/controllers/api/v1/advisories_controller.rb b/app/controllers/api/v1/advisories_controller.rb index 3e0e5b79c..7380c124c 100644 --- a/app/controllers/api/v1/advisories_controller.rb +++ b/app/controllers/api/v1/advisories_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Api::V1::AdvisoriesController < Api::V1::BaseController before_filter :authenticate_user! skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access'] diff --git a/app/controllers/api/v1/arches_controller.rb b/app/controllers/api/v1/arches_controller.rb index 641869742..813b5d27b 100644 --- a/app/controllers/api/v1/arches_controller.rb +++ b/app/controllers/api/v1/arches_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Api::V1::ArchesController < Api::V1::BaseController before_filter :authenticate_user! unless APP_CONFIG['anonymous_access'] diff --git a/app/controllers/api/v1/base_controller.rb b/app/controllers/api/v1/base_controller.rb index 98402c117..4b2c39b4b 100644 --- a/app/controllers/api/v1/base_controller.rb +++ b/app/controllers/api/v1/base_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Api::V1::BaseController < ApplicationController #respond_to :json diff --git a/app/controllers/api/v1/build_lists_controller.rb b/app/controllers/api/v1/build_lists_controller.rb index 79d3c04b4..ddb461331 100644 --- a/app/controllers/api/v1/build_lists_controller.rb +++ b/app/controllers/api/v1/build_lists_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Api::V1::BuildListsController < Api::V1::BaseController before_filter :authenticate_user! diff --git a/app/controllers/api/v1/groups_controller.rb b/app/controllers/api/v1/groups_controller.rb index 09b3e9b4d..5e021e684 100644 --- a/app/controllers/api/v1/groups_controller.rb +++ b/app/controllers/api/v1/groups_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Api::V1::GroupsController < Api::V1::BaseController before_filter :authenticate_user! diff --git a/app/controllers/api/v1/platforms_controller.rb b/app/controllers/api/v1/platforms_controller.rb index 37cdf20de..a93c96905 100644 --- a/app/controllers/api/v1/platforms_controller.rb +++ b/app/controllers/api/v1/platforms_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Api::V1::PlatformsController < Api::V1::BaseController before_filter :authenticate_user! skip_before_filter :authenticate_user!, :only => [:show, :platforms_for_build, :members] if APP_CONFIG['anonymous_access'] diff --git a/app/controllers/api/v1/product_build_lists_controller.rb b/app/controllers/api/v1/product_build_lists_controller.rb index 83c6b6fd8..537b8ccba 100644 --- a/app/controllers/api/v1/product_build_lists_controller.rb +++ b/app/controllers/api/v1/product_build_lists_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Api::V1::ProductBuildListsController < Api::V1::BaseController before_filter :authenticate_user! skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access'] diff --git a/app/controllers/api/v1/products_controller.rb b/app/controllers/api/v1/products_controller.rb index 3b82cd085..fd136af78 100644 --- a/app/controllers/api/v1/products_controller.rb +++ b/app/controllers/api/v1/products_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Api::V1::ProductsController < Api::V1::BaseController before_filter :authenticate_user! skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access'] diff --git a/app/controllers/api/v1/projects_controller.rb b/app/controllers/api/v1/projects_controller.rb index 927a35bed..359c85be3 100644 --- a/app/controllers/api/v1/projects_controller.rb +++ b/app/controllers/api/v1/projects_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Api::V1::ProjectsController < Api::V1::BaseController before_filter :authenticate_user! diff --git a/app/controllers/api/v1/repositories_controller.rb b/app/controllers/api/v1/repositories_controller.rb index 642ad7ca0..064e81a26 100644 --- a/app/controllers/api/v1/repositories_controller.rb +++ b/app/controllers/api/v1/repositories_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Api::V1::RepositoriesController < Api::V1::BaseController before_filter :authenticate_user! diff --git a/app/controllers/api/v1/search_controller.rb b/app/controllers/api/v1/search_controller.rb index 525b45c4a..cc02c6d25 100644 --- a/app/controllers/api/v1/search_controller.rb +++ b/app/controllers/api/v1/search_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Api::V1::SearchController < Api::V1::BaseController before_filter :authenticate_user! unless APP_CONFIG['anonymous_access'] diff --git a/app/controllers/api/v1/users_controller.rb b/app/controllers/api/v1/users_controller.rb index 5b225b9c0..9482eea56 100644 --- a/app/controllers/api/v1/users_controller.rb +++ b/app/controllers/api/v1/users_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Api::V1::UsersController < Api::V1::BaseController before_filter :authenticate_user! diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 0107fa98d..aff75afdb 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ApplicationController < ActionController::Base AIRBRAKE_IGNORE = [ActionController::InvalidAuthenticityToken, AbstractController::ActionNotFound] diff --git a/app/controllers/autocompletes_controller.rb b/app/controllers/autocompletes_controller.rb index cbffc074a..038fd4835 100644 --- a/app/controllers/autocompletes_controller.rb +++ b/app/controllers/autocompletes_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AutocompletesController < ApplicationController before_filter :authenticate_user! diff --git a/app/controllers/contacts_controller.rb b/app/controllers/contacts_controller.rb index cfff89a41..207182722 100644 --- a/app/controllers/contacts_controller.rb +++ b/app/controllers/contacts_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ContactsController < ApplicationController def new diff --git a/app/controllers/groups/base_controller.rb b/app/controllers/groups/base_controller.rb index 0db3685be..7428bfbe4 100644 --- a/app/controllers/groups/base_controller.rb +++ b/app/controllers/groups/base_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Groups::BaseController < ApplicationController before_filter :authenticate_user! before_filter :find_group diff --git a/app/controllers/groups/members_controller.rb b/app/controllers/groups/members_controller.rb index 77d97ddc4..7e7032b7c 100644 --- a/app/controllers/groups/members_controller.rb +++ b/app/controllers/groups/members_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Groups::MembersController < Groups::BaseController is_related_controller! belongs_to :group, :finder => 'find_by_insensitive_uname!', :optional => true diff --git a/app/controllers/groups/profile_controller.rb b/app/controllers/groups/profile_controller.rb index 9124a458f..4df5ab1cc 100644 --- a/app/controllers/groups/profile_controller.rb +++ b/app/controllers/groups/profile_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Groups::ProfileController < Groups::BaseController include AvatarHelper load_and_authorize_resource :class => Group, :instance_name => 'group' diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index 2c8046360..3bbf48049 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class PagesController < ApplicationController # before_filter :authenticate_user!, :except => [:show, :main, :forbidden] # load_and_authorize_resource diff --git a/app/controllers/platforms/base_controller.rb b/app/controllers/platforms/base_controller.rb index 96ba67738..16b4dcef3 100644 --- a/app/controllers/platforms/base_controller.rb +++ b/app/controllers/platforms/base_controller.rb @@ -1,3 +1,2 @@ -# -*- encoding : utf-8 -*- class Platforms::BaseController < ApplicationController end diff --git a/app/controllers/platforms/maintainers_controller.rb b/app/controllers/platforms/maintainers_controller.rb index 9abd417de..af8947d91 100644 --- a/app/controllers/platforms/maintainers_controller.rb +++ b/app/controllers/platforms/maintainers_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Platforms::MaintainersController < ApplicationController before_filter :authenticate_user! skip_before_filter :authenticate_user!, :only => [:index] if APP_CONFIG['anonymous_access'] diff --git a/app/controllers/platforms/platforms_controller.rb b/app/controllers/platforms/platforms_controller.rb index 43319bb55..559d0dfd0 100644 --- a/app/controllers/platforms/platforms_controller.rb +++ b/app/controllers/platforms/platforms_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Platforms::PlatformsController < Platforms::BaseController before_filter :authenticate_user! diff --git a/app/controllers/platforms/private_users_controller.rb b/app/controllers/platforms/private_users_controller.rb index ebd000e50..695a2fffb 100644 --- a/app/controllers/platforms/private_users_controller.rb +++ b/app/controllers/platforms/private_users_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Platforms::PrivateUsersController < Platforms::BaseController before_filter :authenticate_user! before_filter :find_platform_and_private_users diff --git a/app/controllers/platforms/privates_controller.rb b/app/controllers/platforms/privates_controller.rb index c10bb6c51..c6af1f38e 100644 --- a/app/controllers/platforms/privates_controller.rb +++ b/app/controllers/platforms/privates_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Platforms::PrivatesController < Platforms::BaseController require 'digest/sha2' diff --git a/app/controllers/platforms/product_build_lists_controller.rb b/app/controllers/platforms/product_build_lists_controller.rb index 51ebfb1a9..f2d2d07f4 100644 --- a/app/controllers/platforms/product_build_lists_controller.rb +++ b/app/controllers/platforms/product_build_lists_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Platforms::ProductBuildListsController < Platforms::BaseController before_filter :authenticate_user! skip_before_filter :authenticate_user!, :only => [:index, :show, :log] if APP_CONFIG['anonymous_access'] diff --git a/app/controllers/platforms/products_controller.rb b/app/controllers/platforms/products_controller.rb index 744189384..6c6ccfd44 100644 --- a/app/controllers/platforms/products_controller.rb +++ b/app/controllers/platforms/products_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Platforms::ProductsController < Platforms::BaseController before_filter :authenticate_user! skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access'] diff --git a/app/controllers/platforms/repositories_controller.rb b/app/controllers/platforms/repositories_controller.rb index 9b92e1360..3900babe6 100644 --- a/app/controllers/platforms/repositories_controller.rb +++ b/app/controllers/platforms/repositories_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Platforms::RepositoriesController < Platforms::BaseController before_filter :authenticate_user! skip_before_filter :authenticate_user!, :only => [:index, :show, :projects_list] if APP_CONFIG['anonymous_access'] diff --git a/app/controllers/projects/base_controller.rb b/app/controllers/projects/base_controller.rb index 41bf3b8d9..fed389664 100644 --- a/app/controllers/projects/base_controller.rb +++ b/app/controllers/projects/base_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Projects::BaseController < ApplicationController prepend_before_filter :find_project before_filter :init_statistics diff --git a/app/controllers/projects/build_lists_controller.rb b/app/controllers/projects/build_lists_controller.rb index 9df8fd43d..7a42e8c38 100644 --- a/app/controllers/projects/build_lists_controller.rb +++ b/app/controllers/projects/build_lists_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Projects::BuildListsController < Projects::BaseController NESTED_ACTIONS = [:search, :index, :new, :create] diff --git a/app/controllers/projects/collaborators_controller.rb b/app/controllers/projects/collaborators_controller.rb index f0432b4fd..d86e83e26 100644 --- a/app/controllers/projects/collaborators_controller.rb +++ b/app/controllers/projects/collaborators_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Projects::CollaboratorsController < Projects::BaseController respond_to :html, :json diff --git a/app/controllers/projects/comments_controller.rb b/app/controllers/projects/comments_controller.rb index e1f7f1073..cf019ace9 100644 --- a/app/controllers/projects/comments_controller.rb +++ b/app/controllers/projects/comments_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Projects::CommentsController < Projects::BaseController before_filter :authenticate_user! load_and_authorize_resource :project diff --git a/app/controllers/projects/commit_subscribes_controller.rb b/app/controllers/projects/commit_subscribes_controller.rb index b7dbc31c7..f63a46022 100644 --- a/app/controllers/projects/commit_subscribes_controller.rb +++ b/app/controllers/projects/commit_subscribes_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Projects::CommitSubscribesController < Projects::BaseController before_filter :authenticate_user! load_and_authorize_resource :project diff --git a/app/controllers/projects/git/base_controller.rb b/app/controllers/projects/git/base_controller.rb index 2b854e2db..eb843043b 100644 --- a/app/controllers/projects/git/base_controller.rb +++ b/app/controllers/projects/git/base_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Projects::Git::BaseController < Projects::BaseController before_filter :authenticate_user! skip_before_filter :authenticate_user!, :only => [:show, :index, :blame, :raw, :archive, :diff, :tags, :branches] if APP_CONFIG['anonymous_access'] diff --git a/app/controllers/projects/git/blobs_controller.rb b/app/controllers/projects/git/blobs_controller.rb index 68e4734c8..6c930eb42 100644 --- a/app/controllers/projects/git/blobs_controller.rb +++ b/app/controllers/projects/git/blobs_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Projects::Git::BlobsController < Projects::Git::BaseController before_filter :set_blob before_filter lambda {authorize! :write, @project}, :only => [:edit, :update] diff --git a/app/controllers/projects/git/commits_controller.rb b/app/controllers/projects/git/commits_controller.rb index 080cefbe8..9396497e3 100644 --- a/app/controllers/projects/git/commits_controller.rb +++ b/app/controllers/projects/git/commits_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Projects::Git::CommitsController < Projects::Git::BaseController def index if @path.present? diff --git a/app/controllers/projects/git/trees_controller.rb b/app/controllers/projects/git/trees_controller.rb index 775275318..a6df09571 100644 --- a/app/controllers/projects/git/trees_controller.rb +++ b/app/controllers/projects/git/trees_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Projects::Git::TreesController < Projects::Git::BaseController before_filter lambda{redirect_to @project if params[:treeish] == @project.default_branch and params[:path].blank?}, :only => :show skip_before_filter :set_branch_and_tree, :set_treeish_and_path, :only => :archive diff --git a/app/controllers/projects/issues_controller.rb b/app/controllers/projects/issues_controller.rb index b79afa46a..95df89b26 100644 --- a/app/controllers/projects/issues_controller.rb +++ b/app/controllers/projects/issues_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Projects::IssuesController < Projects::BaseController NON_RESTFUL_ACTION = [:create_label, :update_label, :destroy_label] before_filter :authenticate_user! diff --git a/app/controllers/projects/projects_controller.rb b/app/controllers/projects/projects_controller.rb index 4c76cbbb4..f8c509109 100644 --- a/app/controllers/projects/projects_controller.rb +++ b/app/controllers/projects/projects_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Projects::ProjectsController < Projects::BaseController include ProjectsHelper before_filter :authenticate_user! diff --git a/app/controllers/projects/pull_requests_controller.rb b/app/controllers/projects/pull_requests_controller.rb index 08dabf8e2..dd894e1b1 100644 --- a/app/controllers/projects/pull_requests_controller.rb +++ b/app/controllers/projects/pull_requests_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Projects::PullRequestsController < Projects::BaseController before_filter :authenticate_user! skip_before_filter :authenticate_user!, :only => [:index, :show] if APP_CONFIG['anonymous_access'] diff --git a/app/controllers/projects/subscribes_controller.rb b/app/controllers/projects/subscribes_controller.rb index 0c4c285f3..16e205c41 100644 --- a/app/controllers/projects/subscribes_controller.rb +++ b/app/controllers/projects/subscribes_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Projects::SubscribesController < Projects::BaseController before_filter :authenticate_user! diff --git a/app/controllers/projects/wiki_controller.rb b/app/controllers/projects/wiki_controller.rb index 30a78d38c..b53b7aa28 100644 --- a/app/controllers/projects/wiki_controller.rb +++ b/app/controllers/projects/wiki_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- #require 'lib/gollum' require 'cgi' diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index 46157d1cd..d57642258 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class SearchController < ApplicationController before_filter :authenticate_user! unless APP_CONFIG['anonymous_access'] # load_and_authorize_resource diff --git a/app/controllers/users/base_controller.rb b/app/controllers/users/base_controller.rb index b35f9c2f0..1a8e47d92 100644 --- a/app/controllers/users/base_controller.rb +++ b/app/controllers/users/base_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Users::BaseController < ApplicationController before_filter :authenticate_user! before_filter :find_user diff --git a/app/controllers/users/omniauth_callbacks_controller.rb b/app/controllers/users/omniauth_callbacks_controller.rb index a23a8c7e1..55665e78d 100644 --- a/app/controllers/users/omniauth_callbacks_controller.rb +++ b/app/controllers/users/omniauth_callbacks_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController def open_id # raise env['omniauth.auth'].inspect diff --git a/app/controllers/users/profile_controller.rb b/app/controllers/users/profile_controller.rb index 892ee0717..f17dcc0fa 100644 --- a/app/controllers/users/profile_controller.rb +++ b/app/controllers/users/profile_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Users::ProfileController < Users::BaseController skip_before_filter :authenticate_user!, :only => :show if APP_CONFIG['anonymous_access'] diff --git a/app/controllers/users/register_requests_controller.rb b/app/controllers/users/register_requests_controller.rb index a21249cdb..2112c3893 100644 --- a/app/controllers/users/register_requests_controller.rb +++ b/app/controllers/users/register_requests_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Users::RegisterRequestsController < ApplicationController before_filter :user_choose_locale layout 'invite' diff --git a/app/controllers/users/settings_controller.rb b/app/controllers/users/settings_controller.rb index ab657ce88..8c6fe18d1 100644 --- a/app/controllers/users/settings_controller.rb +++ b/app/controllers/users/settings_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Users::SettingsController < Users::BaseController include AvatarHelper before_filter :set_current_user diff --git a/app/controllers/users/ssh_keys_controller.rb b/app/controllers/users/ssh_keys_controller.rb index 30bbb572b..03974297a 100644 --- a/app/controllers/users/ssh_keys_controller.rb +++ b/app/controllers/users/ssh_keys_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Users::SshKeysController < Users::BaseController skip_before_filter :find_user diff --git a/app/controllers/users/users_controller.rb b/app/controllers/users/users_controller.rb index e3fe08a13..b1961731c 100644 --- a/app/controllers/users/users_controller.rb +++ b/app/controllers/users/users_controller.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Users::UsersController < Users::BaseController skip_before_filter :authenticate_user! before_filter :find_user_by_key, :only => [:allowed, :discover] diff --git a/app/helpers/activity_feeds_helper.rb b/app/helpers/activity_feeds_helper.rb index b7e0058be..b8a979c3b 100644 --- a/app/helpers/activity_feeds_helper.rb +++ b/app/helpers/activity_feeds_helper.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- module ActivityFeedsHelper def render_activity_feed(activity_feed) render activity_feed.partial, activity_feed.data.merge(:activity_feed => activity_feed) diff --git a/app/helpers/advisories_helper.rb b/app/helpers/advisories_helper.rb index 42634b590..8a1a99d14 100644 --- a/app/helpers/advisories_helper.rb +++ b/app/helpers/advisories_helper.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- module AdvisoriesHelper def advisories_select_options(advisories, opts = {:class => 'popoverable'}) def_values = [[t("layout.advisories.no_"), 'no'], [t("layout.advisories.new"), 'new'], [t("layout.advisories.existing"), 'existing', {:class => 'advisory_id'}]] diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index d2498da18..cdb8090fa 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- module ApplicationHelper def layout_class case diff --git a/app/helpers/build_lists_helper.rb b/app/helpers/build_lists_helper.rb index b6a27cbb1..fb31b0ddd 100644 --- a/app/helpers/build_lists_helper.rb +++ b/app/helpers/build_lists_helper.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- module BuildListsHelper def build_list_status_color(status) case status diff --git a/app/helpers/comments_helper.rb b/app/helpers/comments_helper.rb index 5e1fe450e..d57301a6e 100644 --- a/app/helpers/comments_helper.rb +++ b/app/helpers/comments_helper.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- module CommentsHelper def project_commentable_comment_path(project, commentable, comment) if Comment.issue_comment?(commentable.class) diff --git a/app/helpers/commit_helper.rb b/app/helpers/commit_helper.rb index 28c87e9fa..b471a845d 100644 --- a/app/helpers/commit_helper.rb +++ b/app/helpers/commit_helper.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- module CommitHelper def render_commit_stats(stats) diff --git a/app/helpers/devise_helper.rb b/app/helpers/devise_helper.rb index 2369c4632..462cd0afe 100644 --- a/app/helpers/devise_helper.rb +++ b/app/helpers/devise_helper.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- module DeviseHelper def getDeviseErrors(*name) res = Array.new(name.count) diff --git a/app/helpers/diff_helper.rb b/app/helpers/diff_helper.rb index 00c6774da..f245e6c4c 100644 --- a/app/helpers/diff_helper.rb +++ b/app/helpers/diff_helper.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- module DiffHelper def render_diff_stats(stats) path = @pull.try(:id) ? polymorphic_path([@project, @pull]) : '' diff --git a/app/helpers/git_helper.rb b/app/helpers/git_helper.rb index c65d1ff37..cd66811ee 100644 --- a/app/helpers/git_helper.rb +++ b/app/helpers/git_helper.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- module GitHelper def render_path diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index de76623a6..b8811a9af 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- module IssuesHelper def tracker_search_field(name, txt) str = " groups, :owner_type => 'Group'). diff --git a/app/helpers/pull_request_helper.rb b/app/helpers/pull_request_helper.rb index 0b9cc87d4..602ccaa74 100644 --- a/app/helpers/pull_request_helper.rb +++ b/app/helpers/pull_request_helper.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- module PullRequestHelper def merge_activity comments, commits common_comments, pull_comments = comments.partition {|c| c.data.blank?} diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb index 1424c819f..3ec7235a4 100644 --- a/app/helpers/users_helper.rb +++ b/app/helpers/users_helper.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- module UsersHelper def avatar_url_by_email(email, size = :small) diff --git a/app/helpers/wiki_helper.rb b/app/helpers/wiki_helper.rb index 98bf7f61f..76c39038d 100644 --- a/app/helpers/wiki_helper.rb +++ b/app/helpers/wiki_helper.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- module WikiHelper def revert_path(project, first, second, name) diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index 7c4c79f0a..506efd631 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -1,5 +1,3 @@ -# -*- encoding : utf-8 -*- - class UserMailer < ActionMailer::Base default :from => "\"#{APP_CONFIG['project_name']}\" <#{APP_CONFIG['do-not-reply-email']}>" default_url_options.merge!(:protocol => 'https') if APP_CONFIG['mailer_https_url'] diff --git a/app/models/ability.rb b/app/models/ability.rb index f7d26c011..fdbc88694 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- # If rules goes one by one CanCan joins them by 'OR' sql operator # If rule has multiple conditions CanCan joins them by 'AND' sql operator # WARNING: diff --git a/app/models/activity_feed.rb b/app/models/activity_feed.rb index a4ac3a759..3e3419c5e 100644 --- a/app/models/activity_feed.rb +++ b/app/models/activity_feed.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ActivityFeed < ActiveRecord::Base CODE = ['git_delete_branch_notification', 'git_new_push_notification', 'new_comment_commit_notification'] diff --git a/app/models/activity_feed_observer.rb b/app/models/activity_feed_observer.rb index 7fe598a20..b49038226 100644 --- a/app/models/activity_feed_observer.rb +++ b/app/models/activity_feed_observer.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ActivityFeedObserver < ActiveRecord::Observer observe :issue, :comment, :user, :build_list diff --git a/app/models/arch.rb b/app/models/arch.rb index 5a2804ded..cebbac206 100644 --- a/app/models/arch.rb +++ b/app/models/arch.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Arch < ActiveRecord::Base has_many :build_lists, :dependent => :destroy diff --git a/app/models/authentication.rb b/app/models/authentication.rb index 0f29e3da9..26ba03317 100644 --- a/app/models/authentication.rb +++ b/app/models/authentication.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Authentication < ActiveRecord::Base belongs_to :user diff --git a/app/models/avatar.rb b/app/models/avatar.rb index 2fbefa5e8..822667b03 100644 --- a/app/models/avatar.rb +++ b/app/models/avatar.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Avatar < ActiveRecord::Base self.abstract_class = true diff --git a/app/models/build_list.rb b/app/models/build_list.rb index 3dbbad32e..7df0ef10b 100644 --- a/app/models/build_list.rb +++ b/app/models/build_list.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class BuildList < ActiveRecord::Base include Modules::Models::CommitAndVersion include Modules::Models::FileStoreClean diff --git a/app/models/build_list/filter.rb b/app/models/build_list/filter.rb index 64849d3af..7d7a0f4f6 100644 --- a/app/models/build_list/filter.rb +++ b/app/models/build_list/filter.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class BuildList::Filter PER_PAGE = [25, 50, 100] diff --git a/app/models/build_list/item.rb b/app/models/build_list/item.rb index 896f36592..1f2b6dfe3 100644 --- a/app/models/build_list/item.rb +++ b/app/models/build_list/item.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class BuildList::Item < ActiveRecord::Base belongs_to :build_list, :touch => true diff --git a/app/models/collaborator.rb b/app/models/collaborator.rb index 8b1f1b412..b8333d1ad 100644 --- a/app/models/collaborator.rb +++ b/app/models/collaborator.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Collaborator include ActiveModel::Conversion include ActiveModel::Validations diff --git a/app/models/comment.rb b/app/models/comment.rb index bdb17bf96..98379b421 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Comment < ActiveRecord::Base belongs_to :commentable, :polymorphic => true belongs_to :user diff --git a/app/models/event_log.rb b/app/models/event_log.rb index 820f83772..36d53b2f5 100644 --- a/app/models/event_log.rb +++ b/app/models/event_log.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class EventLog < ActiveRecord::Base belongs_to :user belongs_to :eventable, :polymorphic => true diff --git a/app/models/event_log_observer.rb b/app/models/event_log_observer.rb index 1a6c1437c..109f8becd 100644 --- a/app/models/event_log_observer.rb +++ b/app/models/event_log_observer.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class EventLogObserver < ActiveRecord::Observer observe :user, :private_user, :platform, :repository, :project, :product, :build_list, :product_build_list diff --git a/app/models/git_hook.rb b/app/models/git_hook.rb index 0aef7df8a..4dec8ff4b 100644 --- a/app/models/git_hook.rb +++ b/app/models/git_hook.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class GitHook ZERO = '0000000000000000000000000000000000000000' @queue = :hook diff --git a/app/models/group.rb b/app/models/group.rb index e10edf9ad..b71103ade 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Group < Avatar belongs_to :owner, :class_name => 'User' diff --git a/app/models/issue.rb b/app/models/issue.rb index 7c2c5ab91..b6b069bee 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Issue < ActiveRecord::Base STATUSES = ['open', 'closed'] diff --git a/app/models/key_pair.rb b/app/models/key_pair.rb index 54f306116..93c86c69b 100644 --- a/app/models/key_pair.rb +++ b/app/models/key_pair.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class KeyPair < ActiveRecord::Base belongs_to :repository belongs_to :user diff --git a/app/models/label.rb b/app/models/label.rb index fe4ad5b22..40b737724 100644 --- a/app/models/label.rb +++ b/app/models/label.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Label < ActiveRecord::Base has_many :labelings, :dependent => :destroy has_many :issues, :through => :labelings diff --git a/app/models/labeling.rb b/app/models/labeling.rb index acc688f68..d03b0c6b3 100644 --- a/app/models/labeling.rb +++ b/app/models/labeling.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Labeling < ActiveRecord::Base belongs_to :issue belongs_to :label diff --git a/app/models/platform.rb b/app/models/platform.rb index 4a1cd3608..7987ec1fc 100644 --- a/app/models/platform.rb +++ b/app/models/platform.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Platform < ActiveRecord::Base VISIBILITIES = ['open', 'hidden'] diff --git a/app/models/private_user.rb b/app/models/private_user.rb index d68d5e423..f8fca0a1a 100644 --- a/app/models/private_user.rb +++ b/app/models/private_user.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class PrivateUser < ActiveRecord::Base require 'digest/sha2' diff --git a/app/models/product.rb b/app/models/product.rb index 240646523..c0a076621 100644 --- a/app/models/product.rb +++ b/app/models/product.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Product < ActiveRecord::Base include Modules::Models::TimeLiving diff --git a/app/models/product_build_list.rb b/app/models/product_build_list.rb index 98d0b68e6..a3fd5ef6b 100644 --- a/app/models/product_build_list.rb +++ b/app/models/product_build_list.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ProductBuildList < ActiveRecord::Base include Modules::Models::CommitAndVersion include Modules::Models::TimeLiving diff --git a/app/models/project.rb b/app/models/project.rb index 6d5d5e8f2..0a8291abf 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Project < ActiveRecord::Base VISIBILITIES = ['open', 'hidden'] MAX_OWN_PROJECTS = 32000 diff --git a/app/models/project_import.rb b/app/models/project_import.rb index 530bed133..b53d81f68 100644 --- a/app/models/project_import.rb +++ b/app/models/project_import.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ProjectImport < ActiveRecord::Base belongs_to :project belongs_to :platform diff --git a/app/models/project_tag.rb b/app/models/project_tag.rb index 171a3bf5e..1b414b097 100644 --- a/app/models/project_tag.rb +++ b/app/models/project_tag.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ProjectTag < ActiveRecord::Base include Modules::Models::FileStoreClean diff --git a/app/models/project_to_repository.rb b/app/models/project_to_repository.rb index 16035ce3e..efbcbe8b0 100644 --- a/app/models/project_to_repository.rb +++ b/app/models/project_to_repository.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ProjectToRepository < ActiveRecord::Base belongs_to :project belongs_to :repository diff --git a/app/models/register_request.rb b/app/models/register_request.rb index b40e7f4b4..028c615e9 100644 --- a/app/models/register_request.rb +++ b/app/models/register_request.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class RegisterRequest < ActiveRecord::Base default_scope order('created_at ASC') diff --git a/app/models/relation.rb b/app/models/relation.rb index 2ce5d0fa4..28d16c69e 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Relation < ActiveRecord::Base belongs_to :target, :polymorphic => true belongs_to :actor, :polymorphic => true diff --git a/app/models/repository.rb b/app/models/repository.rb index 23a4234d6..9044848c2 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Repository < ActiveRecord::Base belongs_to :platform diff --git a/app/models/search.rb b/app/models/search.rb index 409d246ef..e62de9dd5 100644 --- a/app/models/search.rb +++ b/app/models/search.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Search TYPES = ['projects', 'users', 'groups', 'platforms'] diff --git a/app/models/settings_notifier.rb b/app/models/settings_notifier.rb index e01c09c0b..d721e1597 100644 --- a/app/models/settings_notifier.rb +++ b/app/models/settings_notifier.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class SettingsNotifier < ActiveRecord::Base belongs_to :user diff --git a/app/models/subscribe.rb b/app/models/subscribe.rb index 8145286e1..c6fea3abf 100644 --- a/app/models/subscribe.rb +++ b/app/models/subscribe.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Subscribe < ActiveRecord::Base belongs_to :subscribeable, :polymorphic => true belongs_to :user diff --git a/app/models/user.rb b/app/models/user.rb index 953665770..00a410c1e 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class User < Avatar ROLES = ['', 'admin', 'banned', 'tester'] EXTENDED_ROLES = ROLES | ['system'] diff --git a/app/presenters/application_presenter.rb b/app/presenters/application_presenter.rb index 914343861..35ce9e33b 100644 --- a/app/presenters/application_presenter.rb +++ b/app/presenters/application_presenter.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ApplicationPresenter < RosaPresenter::Base end diff --git a/app/presenters/comment_presenter.rb b/app/presenters/comment_presenter.rb index ac9564c31..22b2a937e 100644 --- a/app/presenters/comment_presenter.rb +++ b/app/presenters/comment_presenter.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CommentPresenter < ApplicationPresenter attr_accessor :comment, :options diff --git a/app/presenters/git_presenters/commit_as_message_presenter.rb b/app/presenters/git_presenters/commit_as_message_presenter.rb index 1d2604f55..610fe68b2 100644 --- a/app/presenters/git_presenters/commit_as_message_presenter.rb +++ b/app/presenters/git_presenters/commit_as_message_presenter.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class GitPresenters::CommitAsMessagePresenter < ApplicationPresenter include CommitHelper diff --git a/config/application.rb b/config/application.rb index 13f0a15c1..0ccdcd359 100644 --- a/config/application.rb +++ b/config/application.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- require File.expand_path('../boot', __FILE__) require 'rails/all' diff --git a/config/boot.rb b/config/boot.rb index f488c9a44..4489e5868 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- require 'rubygems' # Set up gems listed in the Gemfile. diff --git a/config/deploy.rb.sample b/config/deploy.rb.sample index 2c354b981..27889acf3 100644 --- a/config/deploy.rb.sample +++ b/config/deploy.rb.sample @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- require 'cape' require 'capistrano_colors' diff --git a/config/deploy/production.rb.sample b/config/deploy/production.rb.sample index 85c450ead..95930b54b 100644 --- a/config/deploy/production.rb.sample +++ b/config/deploy/production.rb.sample @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- require "whenever/capistrano" set :branch, "master" diff --git a/config/environment.rb b/config/environment.rb index 0a6cad37f..b35a7204e 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- # Load the rails application require File.expand_path('../application', __FILE__) diff --git a/config/environments/development.rb b/config/environments/development.rb index 98a9d21f5..6809679f4 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- Rosa::Application.configure do # Settings specified here will take precedence over those in config/application.rb diff --git a/config/environments/production.rb b/config/environments/production.rb index f3d908503..eef80d48e 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- Rosa::Application.configure do # Settings specified here will take precedence over those in config/application.rb diff --git a/config/environments/test.rb b/config/environments/test.rb index 42ea6abe2..67ee98018 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- Rosa::Application.configure do # Settings specified here will take precedence over those in config/application.rb diff --git a/config/initializers/a_app_config.rb b/config/initializers/a_app_config.rb index 071ccb537..2517aeb60 100644 --- a/config/initializers/a_app_config.rb +++ b/config/initializers/a_app_config.rb @@ -1,2 +1 @@ -# -*- encoding : utf-8 -*- APP_CONFIG = YAML.load_file("#{Rails.root}/config/application.yml")[Rails.env] \ No newline at end of file diff --git a/config/initializers/airbrake.rb b/config/initializers/airbrake.rb index 39031d9be..69ed3db93 100644 --- a/config/initializers/airbrake.rb +++ b/config/initializers/airbrake.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- Airbrake.configure do |config| config.api_key = APP_CONFIG['keys']['airbrake_api_key'] end rescue nil diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb index b5e9a55a2..59385cdf3 100644 --- a/config/initializers/backtrace_silencers.rb +++ b/config/initializers/backtrace_silencers.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- # Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index 6f9f45858..6d592eee8 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- # Use this hook to configure devise mailer, warden hooks and so forth. The first # four configuration values can also be set straight in your models. Devise.setup do |config| diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index e3c680d36..9e8b0131f 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- # Be sure to restart your server when you modify this file. # Add new inflection rules using the following format diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb index cb8fd3f81..c85b642b3 100644 --- a/config/initializers/mime_types.rb +++ b/config/initializers/mime_types.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- # Be sure to restart your server when you modify this file. # Add new mime types for use in respond_to blocks: diff --git a/config/initializers/notifications.rb b/config/initializers/notifications.rb index 0988fe186..c46429587 100644 --- a/config/initializers/notifications.rb +++ b/config/initializers/notifications.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- Warden::Manager.after_authentication do |user,auth,opts| # after_set_user, :except => fetch ActiveSupport::Notifications.instrument("event_log.observer", :eventable => user) end diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb index dfc204516..5803b0700 100644 --- a/config/initializers/secret_token.rb +++ b/config/initializers/secret_token.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- # Be sure to restart your server when you modify this file. # Your secret key for verifying the integrity of signed cookies. diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index 87917b000..8f345debb 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- # Be sure to restart your server when you modify this file. Rosa::Application.config.session_store :cookie_store, :key => '_rosa_session' diff --git a/config/initializers/setup.rb b/config/initializers/setup.rb index bb9d9b5c0..42884a73a 100644 --- a/config/initializers/setup.rb +++ b/config/initializers/setup.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- Dir[Rails.root.join("lib/ext/**/*.rb")].each {|f| require f} require 'modules' require 'plugins' diff --git a/config/routes.rb b/config/routes.rb index f564b379a..46529c561 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- Rosa::Application.routes.draw do resource :contact, :only => [:new, :create, :sended] do get '/' => 'contacts#new' diff --git a/config/schedule.rb b/config/schedule.rb index 97cf5991f..b788468fa 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- #every 1.day, :at => '0:05 am' do # runner "Download.rotate_nginx_log" #end diff --git a/config/unicorn.rb b/config/unicorn.rb index a41c9b722..ed8692c0f 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- #base_path = File.expand_path(File.join File.dirname(__FILE__), '..') base_path = "/srv/rosa_build" diff --git a/db/migrate/20110309144736_devise_create_users.rb b/db/migrate/20110309144736_devise_create_users.rb index baee7dd05..34555b0a3 100644 --- a/db/migrate/20110309144736_devise_create_users.rb +++ b/db/migrate/20110309144736_devise_create_users.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class DeviseCreateUsers < ActiveRecord::Migration def self.up create_table(:users) do |t| diff --git a/db/migrate/20110309173339_create_platforms.rb b/db/migrate/20110309173339_create_platforms.rb index 321246522..787f4a9ed 100644 --- a/db/migrate/20110309173339_create_platforms.rb +++ b/db/migrate/20110309173339_create_platforms.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreatePlatforms < ActiveRecord::Migration def self.up create_table :platforms do |t| diff --git a/db/migrate/20110309173421_create_projects.rb b/db/migrate/20110309173421_create_projects.rb index b6877c66e..06eb3a62d 100644 --- a/db/migrate/20110309173421_create_projects.rb +++ b/db/migrate/20110309173421_create_projects.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateProjects < ActiveRecord::Migration def self.up create_table :projects do |t| diff --git a/db/migrate/20110311154011_create_repositories.rb b/db/migrate/20110311154011_create_repositories.rb index fcb621e20..1396f8c30 100644 --- a/db/migrate/20110311154011_create_repositories.rb +++ b/db/migrate/20110311154011_create_repositories.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateRepositories < ActiveRecord::Migration def self.up create_table :repositories do |t| diff --git a/db/migrate/20110311154044_remove_platform_id_from_projects.rb b/db/migrate/20110311154044_remove_platform_id_from_projects.rb index 01ae35f21..7ec739f02 100644 --- a/db/migrate/20110311154044_remove_platform_id_from_projects.rb +++ b/db/migrate/20110311154044_remove_platform_id_from_projects.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class RemovePlatformIdFromProjects < ActiveRecord::Migration def self.up remove_column :projects, :platform_id diff --git a/db/migrate/20110311154136_add_repository_id_to_projects.rb b/db/migrate/20110311154136_add_repository_id_to_projects.rb index 0be2d3c7d..c2099a9f5 100644 --- a/db/migrate/20110311154136_add_repository_id_to_projects.rb +++ b/db/migrate/20110311154136_add_repository_id_to_projects.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddRepositoryIdToProjects < ActiveRecord::Migration def self.up add_column :projects, :repository_id, :integer, :null => false diff --git a/db/migrate/20110311154929_add_unixname_to_repositories.rb b/db/migrate/20110311154929_add_unixname_to_repositories.rb index 75e6d2431..b3907bc14 100644 --- a/db/migrate/20110311154929_add_unixname_to_repositories.rb +++ b/db/migrate/20110311154929_add_unixname_to_repositories.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddUnixnameToRepositories < ActiveRecord::Migration def self.up add_column :repositories, :unixname, :string, :null => false diff --git a/db/migrate/20110312133121_create_containers.rb b/db/migrate/20110312133121_create_containers.rb index 2746e287d..e5a2fbf87 100644 --- a/db/migrate/20110312133121_create_containers.rb +++ b/db/migrate/20110312133121_create_containers.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateContainers < ActiveRecord::Migration def self.up create_table :containers do |t| diff --git a/db/migrate/20110312133559_create_arches.rb b/db/migrate/20110312133559_create_arches.rb index 751dacb9e..98a064628 100644 --- a/db/migrate/20110312133559_create_arches.rb +++ b/db/migrate/20110312133559_create_arches.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateArches < ActiveRecord::Migration def self.up create_table :arches do |t| diff --git a/db/migrate/20110312133948_create_rpms.rb b/db/migrate/20110312133948_create_rpms.rb index 876998787..8feaa5221 100644 --- a/db/migrate/20110312133948_create_rpms.rb +++ b/db/migrate/20110312133948_create_rpms.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateRpms < ActiveRecord::Migration def self.up create_table :rpms do |t| diff --git a/db/migrate/20110317130503_add_released_to_platforms.rb b/db/migrate/20110317130503_add_released_to_platforms.rb index 6644af343..bc8346d7e 100644 --- a/db/migrate/20110317130503_add_released_to_platforms.rb +++ b/db/migrate/20110317130503_add_released_to_platforms.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddReleasedToPlatforms < ActiveRecord::Migration def self.up add_column :platforms, :released, :boolean, :default => false diff --git a/db/migrate/20110405161609_create_build_lists.rb b/db/migrate/20110405161609_create_build_lists.rb index f60ad7cbb..0f90611da 100644 --- a/db/migrate/20110405161609_create_build_lists.rb +++ b/db/migrate/20110405161609_create_build_lists.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateBuildLists < ActiveRecord::Migration def self.up create_table :build_lists, :force => true do |t| diff --git a/db/migrate/20110407144147_add_is_circle_to_build_lists.rb b/db/migrate/20110407144147_add_is_circle_to_build_lists.rb index 861399b19..016190164 100644 --- a/db/migrate/20110407144147_add_is_circle_to_build_lists.rb +++ b/db/migrate/20110407144147_add_is_circle_to_build_lists.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddIsCircleToBuildLists < ActiveRecord::Migration def self.up add_column :build_lists, :is_circle, :boolean, :default => false diff --git a/db/migrate/20110408123808_create_build_list_items.rb b/db/migrate/20110408123808_create_build_list_items.rb index 8f30795e0..db9538fef 100644 --- a/db/migrate/20110408123808_create_build_list_items.rb +++ b/db/migrate/20110408123808_create_build_list_items.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateBuildListItems < ActiveRecord::Migration def self.up create_table :build_list_items, :force => true do |t| diff --git a/db/migrate/20110408132541_add_additional_repos_to_build_lists.rb b/db/migrate/20110408132541_add_additional_repos_to_build_lists.rb index 5eb7db1bf..480655348 100644 --- a/db/migrate/20110408132541_add_additional_repos_to_build_lists.rb +++ b/db/migrate/20110408132541_add_additional_repos_to_build_lists.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddAdditionalReposToBuildLists < ActiveRecord::Migration def self.up add_column :build_lists, :additional_repos, :text diff --git a/db/migrate/20110408134718_add_name_to_build_lists.rb b/db/migrate/20110408134718_add_name_to_build_lists.rb index 5d0fbebb5..dd1ad13ec 100644 --- a/db/migrate/20110408134718_add_name_to_build_lists.rb +++ b/db/migrate/20110408134718_add_name_to_build_lists.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddNameToBuildLists < ActiveRecord::Migration def self.up add_column :build_lists, :name, :string diff --git a/db/migrate/20110411082826_create_products.rb b/db/migrate/20110411082826_create_products.rb index eaf361f3c..64a50e87b 100644 --- a/db/migrate/20110411082826_create_products.rb +++ b/db/migrate/20110411082826_create_products.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateProducts < ActiveRecord::Migration def self.up create_table :products do |t| diff --git a/db/migrate/20110411125015_add_fields_to_products.rb b/db/migrate/20110411125015_add_fields_to_products.rb index aeabf19e7..b845eb38c 100644 --- a/db/migrate/20110411125015_add_fields_to_products.rb +++ b/db/migrate/20110411125015_add_fields_to_products.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddFieldsToProducts < ActiveRecord::Migration def self.up add_column :products, :build, :text diff --git a/db/migrate/20110411160955_create_delayed_jobs.rb b/db/migrate/20110411160955_create_delayed_jobs.rb index 16016a61f..e2d4b85c4 100644 --- a/db/migrate/20110411160955_create_delayed_jobs.rb +++ b/db/migrate/20110411160955_create_delayed_jobs.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateDelayedJobs < ActiveRecord::Migration def self.up create_table :delayed_jobs, :force => true do |table| diff --git a/db/migrate/20110412074038_add_attachment_tar_to_product.rb b/db/migrate/20110412074038_add_attachment_tar_to_product.rb index ec9e373a6..b97643f1c 100644 --- a/db/migrate/20110412074038_add_attachment_tar_to_product.rb +++ b/db/migrate/20110412074038_add_attachment_tar_to_product.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddAttachmentTarToProduct < ActiveRecord::Migration def self.up add_column :products, :tar_file_name, :string diff --git a/db/migrate/20110414145300_add_template_columns_to_products.rb b/db/migrate/20110414145300_add_template_columns_to_products.rb index 84bdcd31a..f56229ce7 100644 --- a/db/migrate/20110414145300_add_template_columns_to_products.rb +++ b/db/migrate/20110414145300_add_template_columns_to_products.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddTemplateColumnsToProducts < ActiveRecord::Migration def self.up add_column :products, :is_template, :boolean, :default => false diff --git a/db/migrate/20110428132112_add_cron_tab_to_products.rb b/db/migrate/20110428132112_add_cron_tab_to_products.rb index 9f758f1a4..4d9894990 100644 --- a/db/migrate/20110428132112_add_cron_tab_to_products.rb +++ b/db/migrate/20110428132112_add_cron_tab_to_products.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddCronTabToProducts < ActiveRecord::Migration def self.up add_column :products, :cron_tab, :text diff --git a/db/migrate/20110428140753_add_use_cron_to_products.rb b/db/migrate/20110428140753_add_use_cron_to_products.rb index d3102a513..db07c69fe 100644 --- a/db/migrate/20110428140753_add_use_cron_to_products.rb +++ b/db/migrate/20110428140753_add_use_cron_to_products.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddUseCronToProducts < ActiveRecord::Migration def self.up add_column :products, :use_cron, :boolean, :default => false diff --git a/db/migrate/20111011182847_add_extra_fields_to_users.rb b/db/migrate/20111011182847_add_extra_fields_to_users.rb index 7e2a7e9f6..49fbbf1e5 100644 --- a/db/migrate/20111011182847_add_extra_fields_to_users.rb +++ b/db/migrate/20111011182847_add_extra_fields_to_users.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddExtraFieldsToUsers < ActiveRecord::Migration def self.up add_column :users, :nickname, :string diff --git a/db/migrate/20111011200645_create_authentications.rb b/db/migrate/20111011200645_create_authentications.rb index 7518250f8..068a5c180 100644 --- a/db/migrate/20111011200645_create_authentications.rb +++ b/db/migrate/20111011200645_create_authentications.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateAuthentications < ActiveRecord::Migration def self.up create_table :authentications do |t| diff --git a/db/migrate/20111012065448_create_downloads.rb b/db/migrate/20111012065448_create_downloads.rb index 68e8987de..8eeb4f022 100644 --- a/db/migrate/20111012065448_create_downloads.rb +++ b/db/migrate/20111012065448_create_downloads.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateDownloads < ActiveRecord::Migration def self.up create_table :downloads do |t| diff --git a/db/migrate/20111012133633_create_event_logs.rb b/db/migrate/20111012133633_create_event_logs.rb index 694aad29f..93c18d296 100644 --- a/db/migrate/20111012133633_create_event_logs.rb +++ b/db/migrate/20111012133633_create_event_logs.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateEventLogs < ActiveRecord::Migration def self.up create_table :event_logs do |t| diff --git a/db/migrate/20111012223006_create_permissions.rb b/db/migrate/20111012223006_create_permissions.rb index 8754005c9..8001623a4 100644 --- a/db/migrate/20111012223006_create_permissions.rb +++ b/db/migrate/20111012223006_create_permissions.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreatePermissions < ActiveRecord::Migration def self.up create_table :permissions do |t| diff --git a/db/migrate/20111012223306_create_roles.rb b/db/migrate/20111012223306_create_roles.rb index 48a3cc780..b5693219d 100644 --- a/db/migrate/20111012223306_create_roles.rb +++ b/db/migrate/20111012223306_create_roles.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateRoles < ActiveRecord::Migration def self.up create_table :roles do |t| diff --git a/db/migrate/20111012223521_create_relations.rb b/db/migrate/20111012223521_create_relations.rb index 607e26a8f..8017f07f4 100644 --- a/db/migrate/20111012223521_create_relations.rb +++ b/db/migrate/20111012223521_create_relations.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateRelations < ActiveRecord::Migration def self.up create_table :relations do |t| diff --git a/db/migrate/20111012223944_create_groups.rb b/db/migrate/20111012223944_create_groups.rb index 44169366e..c5b3522ea 100644 --- a/db/migrate/20111012223944_create_groups.rb +++ b/db/migrate/20111012223944_create_groups.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateGroups < ActiveRecord::Migration def self.up create_table :groups do |t| diff --git a/db/migrate/20111013150125_create_project_to_repositories.rb b/db/migrate/20111013150125_create_project_to_repositories.rb index f4d485d29..148561c4c 100644 --- a/db/migrate/20111013150125_create_project_to_repositories.rb +++ b/db/migrate/20111013150125_create_project_to_repositories.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateProjectToRepositories < ActiveRecord::Migration def self.up create_table :project_to_repositories do |t| diff --git a/db/migrate/20111014150436_remove_repository_id_from_project.rb b/db/migrate/20111014150436_remove_repository_id_from_project.rb index 7567e931e..bc85b3ae0 100644 --- a/db/migrate/20111014150436_remove_repository_id_from_project.rb +++ b/db/migrate/20111014150436_remove_repository_id_from_project.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class RemoveRepositoryIdFromProject < ActiveRecord::Migration def self.up remove_column :projects, :repository_id diff --git a/db/migrate/20111016130557_add_uname_to_groups.rb b/db/migrate/20111016130557_add_uname_to_groups.rb index bf92ee663..37805aabf 100644 --- a/db/migrate/20111016130557_add_uname_to_groups.rb +++ b/db/migrate/20111016130557_add_uname_to_groups.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddUnameToGroups < ActiveRecord::Migration def self.up add_column :groups, :uname, :string diff --git a/db/migrate/20111016220428_platform_restruct.rb b/db/migrate/20111016220428_platform_restruct.rb index 43a7cb5e4..60d49c43d 100644 --- a/db/migrate/20111016220428_platform_restruct.rb +++ b/db/migrate/20111016220428_platform_restruct.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class PlatformRestruct < ActiveRecord::Migration def self.up change_table :platforms do |t| diff --git a/db/migrate/20111016224709_project_restruct.rb b/db/migrate/20111016224709_project_restruct.rb index 370cd75f4..89d190c12 100644 --- a/db/migrate/20111016224709_project_restruct.rb +++ b/db/migrate/20111016224709_project_restruct.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ProjectRestruct < ActiveRecord::Migration def self.up change_table :projects do |t| diff --git a/db/migrate/20111016225240_repositories_restruct.rb b/db/migrate/20111016225240_repositories_restruct.rb index d88c337e4..21a3a5b60 100644 --- a/db/migrate/20111016225240_repositories_restruct.rb +++ b/db/migrate/20111016225240_repositories_restruct.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class RepositoriesRestruct < ActiveRecord::Migration def self.up change_table :repositories do |t| diff --git a/db/migrate/20111017112255_create_private_users.rb b/db/migrate/20111017112255_create_private_users.rb index 155c84b7c..cb7eb9700 100644 --- a/db/migrate/20111017112255_create_private_users.rb +++ b/db/migrate/20111017112255_create_private_users.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreatePrivateUsers < ActiveRecord::Migration def self.up create_table :private_users do |t| diff --git a/db/migrate/20111017152936_create_categories.rb b/db/migrate/20111017152936_create_categories.rb index 88afecd6f..438dc11f5 100644 --- a/db/migrate/20111017152936_create_categories.rb +++ b/db/migrate/20111017152936_create_categories.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateCategories < ActiveRecord::Migration def self.up create_table :categories do |t| diff --git a/db/migrate/20111017172701_add_category_id_and_description_to_projects.rb b/db/migrate/20111017172701_add_category_id_and_description_to_projects.rb index 0f772031e..327374f48 100644 --- a/db/migrate/20111017172701_add_category_id_and_description_to_projects.rb +++ b/db/migrate/20111017172701_add_category_id_and_description_to_projects.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddCategoryIdAndDescriptionToProjects < ActiveRecord::Migration def self.up change_table :projects do |t| diff --git a/db/migrate/20111018102655_add_uname_to_users.rb b/db/migrate/20111018102655_add_uname_to_users.rb index c41dddea0..7572a6139 100644 --- a/db/migrate/20111018102655_add_uname_to_users.rb +++ b/db/migrate/20111018102655_add_uname_to_users.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddUnameToUsers < ActiveRecord::Migration def self.up add_column :users, :uname, :string diff --git a/db/migrate/20111019173246_create_role_lines.rb b/db/migrate/20111019173246_create_role_lines.rb index 281fe9b28..84aa4e3de 100644 --- a/db/migrate/20111019173246_create_role_lines.rb +++ b/db/migrate/20111019173246_create_role_lines.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateRoleLines < ActiveRecord::Migration def self.up create_table :role_lines do |t| diff --git a/db/migrate/20111020160644_add_new_fields_to_build_lists.rb b/db/migrate/20111020160644_add_new_fields_to_build_lists.rb index 7c53532ed..35cc1772e 100644 --- a/db/migrate/20111020160644_add_new_fields_to_build_lists.rb +++ b/db/migrate/20111020160644_add_new_fields_to_build_lists.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddNewFieldsToBuildLists < ActiveRecord::Migration def self.up add_column :build_lists, :build_requires, :boolean diff --git a/db/migrate/20111021164945_delete_nickname_init_uname.rb b/db/migrate/20111021164945_delete_nickname_init_uname.rb index 9a394b414..ca06f82a4 100644 --- a/db/migrate/20111021164945_delete_nickname_init_uname.rb +++ b/db/migrate/20111021164945_delete_nickname_init_uname.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class DeleteNicknameInitUname < ActiveRecord::Migration def self.up remove_column :users, :nickname diff --git a/db/migrate/20111022170400_create_rights.rb b/db/migrate/20111022170400_create_rights.rb index 4d61e0ad4..fea0cf008 100644 --- a/db/migrate/20111022170400_create_rights.rb +++ b/db/migrate/20111022170400_create_rights.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateRights < ActiveRecord::Migration def self.up create_table :rights do |t| diff --git a/db/migrate/20111023154034_add_global_role_to_users.rb b/db/migrate/20111023154034_add_global_role_to_users.rb index 8d3edb4c4..94ea1f1c4 100644 --- a/db/migrate/20111023154034_add_global_role_to_users.rb +++ b/db/migrate/20111023154034_add_global_role_to_users.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddGlobalRoleToUsers < ActiveRecord::Migration def self.up add_column :users, :global_role_id, :integer diff --git a/db/migrate/20111023154130_add_global_role_to_groups.rb b/db/migrate/20111023154130_add_global_role_to_groups.rb index 99fceca8a..b1d5f38a2 100644 --- a/db/migrate/20111023154130_add_global_role_to_groups.rb +++ b/db/migrate/20111023154130_add_global_role_to_groups.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddGlobalRoleToGroups < ActiveRecord::Migration def self.up add_column :groups, :global_role_id, :integer diff --git a/db/migrate/20111023195205_add_can_see_to_roles.rb b/db/migrate/20111023195205_add_can_see_to_roles.rb index 4632f2e5e..fdcde3348 100644 --- a/db/migrate/20111023195205_add_can_see_to_roles.rb +++ b/db/migrate/20111023195205_add_can_see_to_roles.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddCanSeeToRoles < ActiveRecord::Migration def self.up add_column :roles, :can_see, :text diff --git a/db/migrate/20111026135125_add_on_and_to_to_roles.rb b/db/migrate/20111026135125_add_on_and_to_to_roles.rb index 8fbfb5bd5..88972f2a1 100644 --- a/db/migrate/20111026135125_add_on_and_to_to_roles.rb +++ b/db/migrate/20111026135125_add_on_and_to_to_roles.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddOnAndToToRoles < ActiveRecord::Migration def self.up add_column :roles, :on, :string diff --git a/db/migrate/20111026152530_add_user_id_to_private_users.rb b/db/migrate/20111026152530_add_user_id_to_private_users.rb index ea2e30a1e..e191da1a1 100644 --- a/db/migrate/20111026152530_add_user_id_to_private_users.rb +++ b/db/migrate/20111026152530_add_user_id_to_private_users.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddUserIdToPrivateUsers < ActiveRecord::Migration def self.up add_column :private_users, :user_id, :integer diff --git a/db/migrate/20111026200223_add_default_to_roles.rb b/db/migrate/20111026200223_add_default_to_roles.rb index a1612be88..79965786f 100644 --- a/db/migrate/20111026200223_add_default_to_roles.rb +++ b/db/migrate/20111026200223_add_default_to_roles.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddDefaultToRoles < ActiveRecord::Migration def self.up add_column :roles, :use_default, :boolean, :default => false diff --git a/db/migrate/20111027230610_change_roles_on_and_to.rb b/db/migrate/20111027230610_change_roles_on_and_to.rb index 514b70cf5..4012fa917 100644 --- a/db/migrate/20111027230610_change_roles_on_and_to.rb +++ b/db/migrate/20111027230610_change_roles_on_and_to.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ChangeRolesOnAndTo < ActiveRecord::Migration def self.up change_column :roles, :on, :string, :default => '' diff --git a/db/migrate/20111028070604_remove_visibility_from_repositories.rb b/db/migrate/20111028070604_remove_visibility_from_repositories.rb index c85ee5177..f9512b8e8 100644 --- a/db/migrate/20111028070604_remove_visibility_from_repositories.rb +++ b/db/migrate/20111028070604_remove_visibility_from_repositories.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class RemoveVisibilityFromRepositories < ActiveRecord::Migration def self.up remove_column :repositories, :visibility diff --git a/db/migrate/20111029135514_add_version_to_build_list_items.rb b/db/migrate/20111029135514_add_version_to_build_list_items.rb index b95279fbc..1e3967227 100644 --- a/db/migrate/20111029135514_add_version_to_build_list_items.rb +++ b/db/migrate/20111029135514_add_version_to_build_list_items.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddVersionToBuildListItems < ActiveRecord::Migration def self.up add_column :build_list_items, :version, :string diff --git a/db/migrate/20111029150934_create_auto_build_lists.rb b/db/migrate/20111029150934_create_auto_build_lists.rb index ccbefc4fd..4e476f025 100644 --- a/db/migrate/20111029150934_create_auto_build_lists.rb +++ b/db/migrate/20111029150934_create_auto_build_lists.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateAutoBuildLists < ActiveRecord::Migration def self.up create_table :auto_build_lists do |t| diff --git a/db/migrate/20111107211538_create_product_build_lists.rb b/db/migrate/20111107211538_create_product_build_lists.rb index 37a109822..350444d9f 100644 --- a/db/migrate/20111107211538_create_product_build_lists.rb +++ b/db/migrate/20111107211538_create_product_build_lists.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateProductBuildLists < ActiveRecord::Migration def self.up create_table :product_build_lists do |t| diff --git a/db/migrate/20111111184657_rename_products_build_to_build_script.rb b/db/migrate/20111111184657_rename_products_build_to_build_script.rb index 12e46cba8..911c7efdc 100644 --- a/db/migrate/20111111184657_rename_products_build_to_build_script.rb +++ b/db/migrate/20111111184657_rename_products_build_to_build_script.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class RenameProductsBuildToBuildScript < ActiveRecord::Migration def self.up rename_column :products, :build, :build_script diff --git a/db/migrate/20111116140040_add_roles_to_relations.rb b/db/migrate/20111116140040_add_roles_to_relations.rb index a067cec0f..cdb0cd7f2 100644 --- a/db/migrate/20111116140040_add_roles_to_relations.rb +++ b/db/migrate/20111116140040_add_roles_to_relations.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddRolesToRelations < ActiveRecord::Migration def self.up add_column :relations, :role, :string diff --git a/db/migrate/20111122232244_add_ancestry_to_projects.rb b/db/migrate/20111122232244_add_ancestry_to_projects.rb index 28cfb845b..b71de394f 100644 --- a/db/migrate/20111122232244_add_ancestry_to_projects.rb +++ b/db/migrate/20111122232244_add_ancestry_to_projects.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddAncestryToProjects < ActiveRecord::Migration def self.up add_column :projects, :ancestry, :string diff --git a/db/migrate/20111123160010_drop_acl_tables.rb b/db/migrate/20111123160010_drop_acl_tables.rb index 276ea8777..c05feb666 100644 --- a/db/migrate/20111123160010_drop_acl_tables.rb +++ b/db/migrate/20111123160010_drop_acl_tables.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class DropAclTables < ActiveRecord::Migration def self.up drop_table :permissions diff --git a/db/migrate/20111128140341_rename_name_and_unixname.rb b/db/migrate/20111128140341_rename_name_and_unixname.rb index a03273a8f..2a8b7c5b3 100644 --- a/db/migrate/20111128140341_rename_name_and_unixname.rb +++ b/db/migrate/20111128140341_rename_name_and_unixname.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class RenameNameAndUnixname < ActiveRecord::Migration def self.up remove_column :projects, :name diff --git a/db/migrate/20111130181101_change_build_lists_build_requires_default_value.rb b/db/migrate/20111130181101_change_build_lists_build_requires_default_value.rb index add6d26fa..fadc4e013 100644 --- a/db/migrate/20111130181101_change_build_lists_build_requires_default_value.rb +++ b/db/migrate/20111130181101_change_build_lists_build_requires_default_value.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ChangeBuildListsBuildRequiresDefaultValue < ActiveRecord::Migration def self.up change_column_default :build_lists, :build_requires, false diff --git a/db/migrate/20111216134039_create_issues.rb b/db/migrate/20111216134039_create_issues.rb index e2319df19..8d6a47315 100644 --- a/db/migrate/20111216134039_create_issues.rb +++ b/db/migrate/20111216134039_create_issues.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateIssues < ActiveRecord::Migration def self.up create_table :issues do |t| diff --git a/db/migrate/20111216140849_create_comments.rb b/db/migrate/20111216140849_create_comments.rb index ccf179497..d05b53eb7 100644 --- a/db/migrate/20111216140849_create_comments.rb +++ b/db/migrate/20111216140849_create_comments.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateComments < ActiveRecord::Migration def self.up create_table :comments do |t| diff --git a/db/migrate/20111219073859_add_has_issues_to_projects.rb b/db/migrate/20111219073859_add_has_issues_to_projects.rb index a6e1adf4a..f0ea1e42c 100644 --- a/db/migrate/20111219073859_add_has_issues_to_projects.rb +++ b/db/migrate/20111219073859_add_has_issues_to_projects.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddHasIssuesToProjects < ActiveRecord::Migration def self.up add_column :projects, :has_issues, :boolean, :default => true diff --git a/db/migrate/20111220152347_add_include_repos_to_build_lists.rb b/db/migrate/20111220152347_add_include_repos_to_build_lists.rb index f61a5b69d..cb0b8d7b0 100644 --- a/db/migrate/20111220152347_add_include_repos_to_build_lists.rb +++ b/db/migrate/20111220152347_add_include_repos_to_build_lists.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddIncludeReposToBuildLists < ActiveRecord::Migration def self.up add_column :build_lists, :include_repos, :text diff --git a/db/migrate/20111221120208_add_has_wiki_to_projects.rb b/db/migrate/20111221120208_add_has_wiki_to_projects.rb index b944a6310..8e411afd1 100644 --- a/db/migrate/20111221120208_add_has_wiki_to_projects.rb +++ b/db/migrate/20111221120208_add_has_wiki_to_projects.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddHasWikiToProjects < ActiveRecord::Migration def self.up add_column :projects, :has_wiki, :boolean, :default => false diff --git a/db/migrate/20111221194422_add_user_id_to_build_lists.rb b/db/migrate/20111221194422_add_user_id_to_build_lists.rb index e77f18048..1a52d0264 100644 --- a/db/migrate/20111221194422_add_user_id_to_build_lists.rb +++ b/db/migrate/20111221194422_add_user_id_to_build_lists.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddUserIdToBuildLists < ActiveRecord::Migration def self.up add_column :build_lists, :user_id, :integer diff --git a/db/migrate/20111226141947_create_subscribes.rb b/db/migrate/20111226141947_create_subscribes.rb index af3d06318..631e09f09 100644 --- a/db/migrate/20111226141947_create_subscribes.rb +++ b/db/migrate/20111226141947_create_subscribes.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateSubscribes < ActiveRecord::Migration def self.up create_table :subscribes do |t| diff --git a/db/migrate/20111228182425_add_auto_publish_to_build_lists.rb b/db/migrate/20111228182425_add_auto_publish_to_build_lists.rb index c0485d5ea..a9cb7d3bd 100644 --- a/db/migrate/20111228182425_add_auto_publish_to_build_lists.rb +++ b/db/migrate/20111228182425_add_auto_publish_to_build_lists.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddAutoPublishToBuildLists < ActiveRecord::Migration def self.up add_column :build_lists, :auto_publish, :boolean, :default => true diff --git a/db/migrate/20120111072106_create_settings_notifiers.rb b/db/migrate/20120111072106_create_settings_notifiers.rb index 87a53a6bc..b8517a9e9 100644 --- a/db/migrate/20120111072106_create_settings_notifiers.rb +++ b/db/migrate/20120111072106_create_settings_notifiers.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateSettingsNotifiers < ActiveRecord::Migration def self.up create_table :settings_notifiers do |t| diff --git a/db/migrate/20120111080234_change_commentable_id.rb b/db/migrate/20120111080234_change_commentable_id.rb index 722bdd59d..60c3c3268 100644 --- a/db/migrate/20120111080234_change_commentable_id.rb +++ b/db/migrate/20120111080234_change_commentable_id.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ChangeCommentableId < ActiveRecord::Migration def self.up change_column :comments, :commentable_id, :string diff --git a/db/migrate/20120111135443_add_settings_notifier_to_all_users.rb b/db/migrate/20120111135443_add_settings_notifier_to_all_users.rb index 3ecd4174b..de018150a 100644 --- a/db/migrate/20120111135443_add_settings_notifier_to_all_users.rb +++ b/db/migrate/20120111135443_add_settings_notifier_to_all_users.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddSettingsNotifierToAllUsers < ActiveRecord::Migration def self.up User.all.each do |user| diff --git a/db/migrate/20120113121748_add_issue_status_default_value.rb b/db/migrate/20120113121748_add_issue_status_default_value.rb index b90983b5f..bbc58f3cc 100644 --- a/db/migrate/20120113121748_add_issue_status_default_value.rb +++ b/db/migrate/20120113121748_add_issue_status_default_value.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddIssueStatusDefaultValue < ActiveRecord::Migration def self.up change_column :issues, :status, :string, :default => 'open' diff --git a/db/migrate/20120113151305_add_package_version_to_build_lists.rb b/db/migrate/20120113151305_add_package_version_to_build_lists.rb index e3566b5c4..d416e3fa5 100644 --- a/db/migrate/20120113151305_add_package_version_to_build_lists.rb +++ b/db/migrate/20120113151305_add_package_version_to_build_lists.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddPackageVersionToBuildLists < ActiveRecord::Migration def self.up add_column :build_lists, :package_version, :string diff --git a/db/migrate/20120113212924_add_commit_hash_to_build_lists.rb b/db/migrate/20120113212924_add_commit_hash_to_build_lists.rb index 17783bb28..504d49f9a 100644 --- a/db/migrate/20120113212924_add_commit_hash_to_build_lists.rb +++ b/db/migrate/20120113212924_add_commit_hash_to_build_lists.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddCommitHashToBuildLists < ActiveRecord::Migration def self.up add_column :build_lists, :commit_hash, :string diff --git a/db/migrate/20120117110723_add_language_to_users.rb b/db/migrate/20120117110723_add_language_to_users.rb index 5d1d18818..4bf0cec48 100644 --- a/db/migrate/20120117110723_add_language_to_users.rb +++ b/db/migrate/20120117110723_add_language_to_users.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddLanguageToUsers < ActiveRecord::Migration def self.up add_column :users, :language, :string, :default => 'en' diff --git a/db/migrate/20120117210132_create_project_imports.rb b/db/migrate/20120117210132_create_project_imports.rb index b302ad1ae..28231a844 100644 --- a/db/migrate/20120117210132_create_project_imports.rb +++ b/db/migrate/20120117210132_create_project_imports.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateProjectImports < ActiveRecord::Migration def self.up create_table :project_imports do |t| diff --git a/db/migrate/20120118173141_add_settings_to_settings_notifiers.rb b/db/migrate/20120118173141_add_settings_to_settings_notifiers.rb index 1343a8b53..89877b871 100644 --- a/db/migrate/20120118173141_add_settings_to_settings_notifiers.rb +++ b/db/migrate/20120118173141_add_settings_to_settings_notifiers.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddSettingsToSettingsNotifiers < ActiveRecord::Migration def self.up add_column :settings_notifiers, :new_comment_commit_owner, :boolean, :default => true diff --git a/db/migrate/20120123120400_add_status_to_subscribe.rb b/db/migrate/20120123120400_add_status_to_subscribe.rb index 1c6c672e3..69f24e6f9 100644 --- a/db/migrate/20120123120400_add_status_to_subscribe.rb +++ b/db/migrate/20120123120400_add_status_to_subscribe.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddStatusToSubscribe < ActiveRecord::Migration def self.up add_column :subscribes, :status, :boolean, :default => true diff --git a/db/migrate/20120123134616_add_project_to_subscribe.rb b/db/migrate/20120123134616_add_project_to_subscribe.rb index 4079f73cf..f1db12992 100644 --- a/db/migrate/20120123134616_add_project_to_subscribe.rb +++ b/db/migrate/20120123134616_add_project_to_subscribe.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddProjectToSubscribe < ActiveRecord::Migration def self.up add_column :subscribes, :project_id, :integer diff --git a/db/migrate/20120123161250_change_subscribeable_to_string.rb b/db/migrate/20120123161250_change_subscribeable_to_string.rb index 927f793ba..fcee398de 100644 --- a/db/migrate/20120123161250_change_subscribeable_to_string.rb +++ b/db/migrate/20120123161250_change_subscribeable_to_string.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ChangeSubscribeableToString < ActiveRecord::Migration def self.up change_column :subscribes, :subscribeable_id, :string diff --git a/db/migrate/20120124065207_create_activity_feeds.rb b/db/migrate/20120124065207_create_activity_feeds.rb index 6037a0d14..d5b13fc3a 100644 --- a/db/migrate/20120124065207_create_activity_feeds.rb +++ b/db/migrate/20120124065207_create_activity_feeds.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateActivityFeeds < ActiveRecord::Migration def self.up create_table :activity_feeds do |t| diff --git a/db/migrate/20120124101727_add_srpm_columns_to_projects.rb b/db/migrate/20120124101727_add_srpm_columns_to_projects.rb index d7dac263b..3aa569326 100644 --- a/db/migrate/20120124101727_add_srpm_columns_to_projects.rb +++ b/db/migrate/20120124101727_add_srpm_columns_to_projects.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddSrpmColumnsToProjects < ActiveRecord::Migration def self.up change_table :projects do |t| diff --git a/db/migrate/20120126214421_add_projects_count_to_users.rb b/db/migrate/20120126214421_add_projects_count_to_users.rb index 89f9c1608..7ec5c436c 100644 --- a/db/migrate/20120126214421_add_projects_count_to_users.rb +++ b/db/migrate/20120126214421_add_projects_count_to_users.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddProjectsCountToUsers < ActiveRecord::Migration def self.up add_column :users, :own_projects_count, :integer, :default => 0, :null => false diff --git a/db/migrate/20120126214447_add_projects_count_to_groups.rb b/db/migrate/20120126214447_add_projects_count_to_groups.rb index a76472633..ed65a68ef 100644 --- a/db/migrate/20120126214447_add_projects_count_to_groups.rb +++ b/db/migrate/20120126214447_add_projects_count_to_groups.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddProjectsCountToGroups < ActiveRecord::Migration def self.up add_column :groups, :own_projects_count, :integer, :default => 0, :null => false diff --git a/db/migrate/20120127141211_add_confirmable_to_users.rb b/db/migrate/20120127141211_add_confirmable_to_users.rb index d98d15f96..58be2ee72 100644 --- a/db/migrate/20120127141211_add_confirmable_to_users.rb +++ b/db/migrate/20120127141211_add_confirmable_to_users.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddConfirmableToUsers < ActiveRecord::Migration def self.up add_column :users, :confirmation_token, :string diff --git a/db/migrate/20120127234602_add_index_for_projects_name.rb b/db/migrate/20120127234602_add_index_for_projects_name.rb index 9d354aa12..c82a885b7 100644 --- a/db/migrate/20120127234602_add_index_for_projects_name.rb +++ b/db/migrate/20120127234602_add_index_for_projects_name.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddIndexForProjectsName < ActiveRecord::Migration def self.up add_index :projects, [:name, :owner_id, :owner_type], :unique => true, :case_sensitive => false diff --git a/db/migrate/20120131124517_add_platform_reference_to_project_imports.rb b/db/migrate/20120131124517_add_platform_reference_to_project_imports.rb index f46b3019a..a54942edf 100644 --- a/db/migrate/20120131124517_add_platform_reference_to_project_imports.rb +++ b/db/migrate/20120131124517_add_platform_reference_to_project_imports.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddPlatformReferenceToProjectImports < ActiveRecord::Migration def self.up add_column :project_imports, :platform_id, :integer diff --git a/db/migrate/20120201181421_add_queue_to_delayed_jobs.rb b/db/migrate/20120201181421_add_queue_to_delayed_jobs.rb index 9033e82df..072c8d40c 100644 --- a/db/migrate/20120201181421_add_queue_to_delayed_jobs.rb +++ b/db/migrate/20120201181421_add_queue_to_delayed_jobs.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddQueueToDelayedJobs < ActiveRecord::Migration def self.up add_column :delayed_jobs, :queue, :string diff --git a/db/migrate/20120202154114_upgrade_devise.rb b/db/migrate/20120202154114_upgrade_devise.rb index 225d601e4..007bf5ff2 100644 --- a/db/migrate/20120202154114_upgrade_devise.rb +++ b/db/migrate/20120202154114_upgrade_devise.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class UpgradeDevise < ActiveRecord::Migration def up remove_column :users, :remember_token if User.column_names.include?('remember_token') diff --git a/db/migrate/20120206225130_change_commentable_id_to_decimal.rb b/db/migrate/20120206225130_change_commentable_id_to_decimal.rb index 3d075a04e..799e1f8d9 100644 --- a/db/migrate/20120206225130_change_commentable_id_to_decimal.rb +++ b/db/migrate/20120206225130_change_commentable_id_to_decimal.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ChangeCommentableIdToDecimal < ActiveRecord::Migration def up add_column :comments, :commentable_id_tmp, :decimal, :precision => 50, :scale => 0 diff --git a/db/migrate/20120209135822_create_register_requests.rb b/db/migrate/20120209135822_create_register_requests.rb index 2b63ae302..6ae743fa7 100644 --- a/db/migrate/20120209135822_create_register_requests.rb +++ b/db/migrate/20120209135822_create_register_requests.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateRegisterRequests < ActiveRecord::Migration def self.up create_table :register_requests do |t| diff --git a/db/migrate/20120210141153_add_more_fields_to_register_requests.rb b/db/migrate/20120210141153_add_more_fields_to_register_requests.rb index 285f37c9c..cbe0dc71a 100644 --- a/db/migrate/20120210141153_add_more_fields_to_register_requests.rb +++ b/db/migrate/20120210141153_add_more_fields_to_register_requests.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddMoreFieldsToRegisterRequests < ActiveRecord::Migration def self.up add_column :register_requests, :interest, :string diff --git a/db/migrate/20120214021626_change_subscribeable_id_to_decimal.rb b/db/migrate/20120214021626_change_subscribeable_id_to_decimal.rb index cda54884c..177244e40 100644 --- a/db/migrate/20120214021626_change_subscribeable_id_to_decimal.rb +++ b/db/migrate/20120214021626_change_subscribeable_id_to_decimal.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ChangeSubscribeableIdToDecimal < ActiveRecord::Migration def up add_column :subscribes, :subscribeable_id_tmp, :decimal, :precision => 50, :scale => 0 diff --git a/db/migrate/20120219161749_add_creator_to_issue.rb b/db/migrate/20120219161749_add_creator_to_issue.rb index ccf0a1ef8..54a3ba492 100644 --- a/db/migrate/20120219161749_add_creator_to_issue.rb +++ b/db/migrate/20120219161749_add_creator_to_issue.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddCreatorToIssue < ActiveRecord::Migration def change add_column :issues, :creator_id, :integer diff --git a/db/migrate/20120220131333_add_default_branch_to_projects.rb b/db/migrate/20120220131333_add_default_branch_to_projects.rb index cb3a75c09..977441b11 100644 --- a/db/migrate/20120220131333_add_default_branch_to_projects.rb +++ b/db/migrate/20120220131333_add_default_branch_to_projects.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddDefaultBranchToProjects < ActiveRecord::Migration def change add_column :projects, :default_branch, :string, :default => 'master' diff --git a/db/migrate/20120220175615_create_labels.rb b/db/migrate/20120220175615_create_labels.rb index ea91650c6..b10b80ea7 100644 --- a/db/migrate/20120220175615_create_labels.rb +++ b/db/migrate/20120220175615_create_labels.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CreateLabels < ActiveRecord::Migration def change create_table :labels do |t| diff --git a/db/migrate/20120220185458_remove_repositories_owner.rb b/db/migrate/20120220185458_remove_repositories_owner.rb index 79d0d3e58..88c85a855 100644 --- a/db/migrate/20120220185458_remove_repositories_owner.rb +++ b/db/migrate/20120220185458_remove_repositories_owner.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class RemoveRepositoriesOwner < ActiveRecord::Migration def self.up remove_column :repositories, :owner_id diff --git a/db/migrate/20120224122738_add_is_rpm_to_projects.rb b/db/migrate/20120224122738_add_is_rpm_to_projects.rb index cffdd7c9f..1df769ab8 100644 --- a/db/migrate/20120224122738_add_is_rpm_to_projects.rb +++ b/db/migrate/20120224122738_add_is_rpm_to_projects.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddIsRpmToProjects < ActiveRecord::Migration def change add_column :projects, :is_rpm, :boolean, :default => true diff --git a/db/migrate/20120228094721_add_closed_at_to_issue.rb b/db/migrate/20120228094721_add_closed_at_to_issue.rb index e0fe478a4..91948e2af 100644 --- a/db/migrate/20120228094721_add_closed_at_to_issue.rb +++ b/db/migrate/20120228094721_add_closed_at_to_issue.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddClosedAtToIssue < ActiveRecord::Migration def change add_column :issues, :closed_at, :datetime diff --git a/db/migrate/20120228100121_add_closed_by_to_issue.rb b/db/migrate/20120228100121_add_closed_by_to_issue.rb index d0f815d70..9da79b29b 100644 --- a/db/migrate/20120228100121_add_closed_by_to_issue.rb +++ b/db/migrate/20120228100121_add_closed_by_to_issue.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddClosedByToIssue < ActiveRecord::Migration def change add_column :issues, :closed_by, :integer diff --git a/db/migrate/20120229163054_add_description_to_groups.rb b/db/migrate/20120229163054_add_description_to_groups.rb index 481c855c5..16662758f 100644 --- a/db/migrate/20120229163054_add_description_to_groups.rb +++ b/db/migrate/20120229163054_add_description_to_groups.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddDescriptionToGroups < ActiveRecord::Migration def change add_column :groups, :description, :text diff --git a/db/migrate/20120229182356_add_default_values_to_is_rpm_for_projects.rb b/db/migrate/20120229182356_add_default_values_to_is_rpm_for_projects.rb index 46fc6a7f4..4c223d2db 100644 --- a/db/migrate/20120229182356_add_default_values_to_is_rpm_for_projects.rb +++ b/db/migrate/20120229182356_add_default_values_to_is_rpm_for_projects.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddDefaultValuesToIsRpmForProjects < ActiveRecord::Migration def change Project.update_all(:is_rpm => true) diff --git a/db/migrate/20120302102734_remove_name_from_groups.rb b/db/migrate/20120302102734_remove_name_from_groups.rb index 2740878a9..f7f33ae48 100644 --- a/db/migrate/20120302102734_remove_name_from_groups.rb +++ b/db/migrate/20120302102734_remove_name_from_groups.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class RemoveNameFromGroups < ActiveRecord::Migration def up remove_column :groups, :name diff --git a/db/migrate/20120302114735_add_professional_experience_to_users.rb b/db/migrate/20120302114735_add_professional_experience_to_users.rb index 1c3828533..69ba2d342 100644 --- a/db/migrate/20120302114735_add_professional_experience_to_users.rb +++ b/db/migrate/20120302114735_add_professional_experience_to_users.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddProfessionalExperienceToUsers < ActiveRecord::Migration def change add_column :users, :professional_experience, :text diff --git a/db/migrate/20120303062601_add_site_company_and_location_to_users.rb b/db/migrate/20120303062601_add_site_company_and_location_to_users.rb index 8fc2939fe..cb8f608db 100644 --- a/db/migrate/20120303062601_add_site_company_and_location_to_users.rb +++ b/db/migrate/20120303062601_add_site_company_and_location_to_users.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddSiteCompanyAndLocationToUsers < ActiveRecord::Migration def change add_column :users, :site, :string diff --git a/db/migrate/20120303171802_add_avatar_to_users.rb b/db/migrate/20120303171802_add_avatar_to_users.rb index a237076b3..19ba567c7 100644 --- a/db/migrate/20120303171802_add_avatar_to_users.rb +++ b/db/migrate/20120303171802_add_avatar_to_users.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddAvatarToUsers < ActiveRecord::Migration def change change_table :users do |t| diff --git a/db/migrate/20120306212914_add_project_to_comment.rb b/db/migrate/20120306212914_add_project_to_comment.rb index 1e8ef5abe..14e40abd9 100644 --- a/db/migrate/20120306212914_add_project_to_comment.rb +++ b/db/migrate/20120306212914_add_project_to_comment.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddProjectToComment < ActiveRecord::Migration def up add_column :comments, :project_id, :integer diff --git a/db/migrate/20120313130930_delete_dublicate_subscribes.rb b/db/migrate/20120313130930_delete_dublicate_subscribes.rb index 2ec50ad80..7f1fcc6b9 100644 --- a/db/migrate/20120313130930_delete_dublicate_subscribes.rb +++ b/db/migrate/20120313130930_delete_dublicate_subscribes.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class DeleteDublicateSubscribes < ActiveRecord::Migration def up execute <<-SQL diff --git a/db/migrate/20120314151558_truncate_activity_feed.rb b/db/migrate/20120314151558_truncate_activity_feed.rb index 5484c71bf..aea3a87fd 100644 --- a/db/migrate/20120314151558_truncate_activity_feed.rb +++ b/db/migrate/20120314151558_truncate_activity_feed.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class TruncateActivityFeed < ActiveRecord::Migration def up ActivityFeed.destroy_all diff --git a/db/migrate/20120314162313_add_description_to_products.rb b/db/migrate/20120314162313_add_description_to_products.rb index 68d22d552..3a54c661a 100644 --- a/db/migrate/20120314162313_add_description_to_products.rb +++ b/db/migrate/20120314162313_add_description_to_products.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddDescriptionToProducts < ActiveRecord::Migration def self.up add_column :products, :description, :text diff --git a/db/migrate/20120314223151_remove_is_template_from_products.rb b/db/migrate/20120314223151_remove_is_template_from_products.rb index c29ba1d01..b130c4f1a 100644 --- a/db/migrate/20120314223151_remove_is_template_from_products.rb +++ b/db/migrate/20120314223151_remove_is_template_from_products.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class RemoveIsTemplateFromProducts < ActiveRecord::Migration def up remove_column :products, :is_template diff --git a/db/migrate/20120320102912_add_build_list_priority.rb b/db/migrate/20120320102912_add_build_list_priority.rb index 55e5fd81a..48c650f19 100644 --- a/db/migrate/20120320102912_add_build_list_priority.rb +++ b/db/migrate/20120320102912_add_build_list_priority.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddBuildListPriority < ActiveRecord::Migration def self.up add_column :build_lists, :priority, :integer, :null => false, :default => 0 diff --git a/db/migrate/20120321130436_add_devise_lockable.rb b/db/migrate/20120321130436_add_devise_lockable.rb index 2a82c94a6..0d242536d 100644 --- a/db/migrate/20120321130436_add_devise_lockable.rb +++ b/db/migrate/20120321130436_add_devise_lockable.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class AddDeviseLockable < ActiveRecord::Migration def change add_column :users, :failed_attempts, :integer, :default => 0 # Only if lock strategy is :failed_attempts diff --git a/db/migrate/20120326142636_confirm_all_registered_users.rb b/db/migrate/20120326142636_confirm_all_registered_users.rb index 01d28a683..7140f8847 100644 --- a/db/migrate/20120326142636_confirm_all_registered_users.rb +++ b/db/migrate/20120326142636_confirm_all_registered_users.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ConfirmAllRegisteredUsers < ActiveRecord::Migration def up User.all.each { |user| user.confirm! } diff --git a/db/migrate/20120329181830_remove_auto_build_list.rb b/db/migrate/20120329181830_remove_auto_build_list.rb index 4c2faf71e..9fd5db61f 100644 --- a/db/migrate/20120329181830_remove_auto_build_list.rb +++ b/db/migrate/20120329181830_remove_auto_build_list.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class RemoveAutoBuildList < ActiveRecord::Migration def self.up drop_table :auto_build_lists diff --git a/db/migrate/20120329182602_delete_categories.rb b/db/migrate/20120329182602_delete_categories.rb index c02664b7c..21d2bb7da 100644 --- a/db/migrate/20120329182602_delete_categories.rb +++ b/db/migrate/20120329182602_delete_categories.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class DeleteCategories < ActiveRecord::Migration def self.up remove_column :projects, :category_id diff --git a/db/migrate/20120330201229_remove_containers_and_rpms.rb b/db/migrate/20120330201229_remove_containers_and_rpms.rb index 65dcc4d40..ac1dca3b8 100644 --- a/db/migrate/20120330201229_remove_containers_and_rpms.rb +++ b/db/migrate/20120330201229_remove_containers_and_rpms.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class RemoveContainersAndRpms < ActiveRecord::Migration def up drop_table :containers diff --git a/db/migrate/20120331180541_customize_platform.rb b/db/migrate/20120331180541_customize_platform.rb index 6b5aa53ed..013e15e26 100644 --- a/db/migrate/20120331180541_customize_platform.rb +++ b/db/migrate/20120331180541_customize_platform.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class CustomizePlatform < ActiveRecord::Migration def self.up change_column_null :platforms, :name, false diff --git a/db/migrate/20120403110931_clear_product.rb b/db/migrate/20120403110931_clear_product.rb index 4de34445b..2db0348ed 100644 --- a/db/migrate/20120403110931_clear_product.rb +++ b/db/migrate/20120403110931_clear_product.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class ClearProduct < ActiveRecord::Migration def self.up remove_column :products, :build_status diff --git a/db/seeds.rb b/db/seeds.rb index 25fcb79af..48ee83908 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- ARCHES = %w(i386 i586 x86_64) ARCHES.each do |arch| Arch.find_or_create_by_name arch diff --git a/doc/downloads/download.rb b/doc/downloads/download.rb index bbdcbfa6e..6d0630bbf 100644 --- a/doc/downloads/download.rb +++ b/doc/downloads/download.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Download < ActiveRecord::Base PREV_LOG_FILE = "#{ APP_CONFIG['nginx_log'] }.0" diff --git a/lib/abf_worker/build_lists_publish_task_manager.rb b/lib/abf_worker/build_lists_publish_task_manager.rb index dc731f2dc..130ac2c39 100644 --- a/lib/abf_worker/build_lists_publish_task_manager.rb +++ b/lib/abf_worker/build_lists_publish_task_manager.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- module AbfWorker class BuildListsPublishTaskManager REDIS_MAIN_KEY = 'abf-worker::build-lists-publish-task-manager::' diff --git a/lib/ext/core/object.rb b/lib/ext/core/object.rb index cdd331d93..d2856a51c 100644 --- a/lib/ext/core/object.rb +++ b/lib/ext/core/object.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- class Object def with_skip begin diff --git a/lib/ext/core/string.rb b/lib/ext/core/string.rb index 608acc628..3266b0557 100644 --- a/lib/ext/core/string.rb +++ b/lib/ext/core/string.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- require 'charlock_holmes/string' class String diff --git a/lib/ext/git/gollum.rb b/lib/ext/git/gollum.rb index 3f8959ce0..2151b8406 100644 --- a/lib/ext/git/gollum.rb +++ b/lib/ext/git/gollum.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- module Gollum class Wiki # Public: Applies a reverse diff for a given page. If only 1 SHA is given, diff --git a/lib/ext/git/grit.rb b/lib/ext/git/grit.rb index 6200a079f..3f1d13b07 100644 --- a/lib/ext/git/grit.rb +++ b/lib/ext/git/grit.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- module Grit class Blob include Linguist::BlobHelper diff --git a/lib/ext/paperclip.rb b/lib/ext/paperclip.rb index 99746ae94..aec5f4242 100644 --- a/lib/ext/paperclip.rb +++ b/lib/ext/paperclip.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- # Patch to use paperclip with nginx upload module module Paperclip class Attachment diff --git a/lib/ext/preregistration.rb b/lib/ext/preregistration.rb index 5b07c5d88..aeb3fdb6c 100644 --- a/lib/ext/preregistration.rb +++ b/lib/ext/preregistration.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- module Preregistration module Devise module RegistrationsController diff --git a/lib/ext/rails/render_errors_in_forms.rb b/lib/ext/rails/render_errors_in_forms.rb index fb36c59ed..6010970d1 100644 --- a/lib/ext/rails/render_errors_in_forms.rb +++ b/lib/ext/rails/render_errors_in_forms.rb @@ -1,4 +1,3 @@ -# -*- encoding : utf-8 -*- ActionView::Base.field_error_proc = Proc.new do |html_tag, instance| if html_tag =~ /