From 0fe9f3f86001bfee14320aebd8761ac0534e864f Mon Sep 17 00:00:00 2001 From: bfs15 <bruno.serbena@gmail.com> Date: Thu, 6 Jul 2017 09:22:25 -0300 Subject: [PATCH] Added agpl headers --- app/builders/learning_object_builder.rb | 19 +++++++++++++++++++ app/controllers/application_controller.rb | 19 +++++++++++++++++++ .../concerns/deleted_objects_controller.rb | 19 +++++++++++++++++++ .../concerns/downloadable_controller.rb | 19 +++++++++++++++++++ .../concerns/followable_controller.rb | 19 +++++++++++++++++++ .../concerns/highlights_controller.rb | 19 +++++++++++++++++++ app/controllers/concerns/paginator.rb | 19 +++++++++++++++++++ .../concerns/publisher_controller.rb | 19 +++++++++++++++++++ app/controllers/concerns/resource_model.rb | 19 +++++++++++++++++++ .../concerns/reviewable_controller.rb | 19 +++++++++++++++++++ .../concerns/sociable_controller.rb | 19 +++++++++++++++++++ .../concerns/stageable_controller.rb | 19 +++++++++++++++++++ .../concerns/subjectable_controller.rb | 19 +++++++++++++++++++ .../concerns/taggable_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/activities_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/collections_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/complaints_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/contacts_controller.rb | 19 +++++++++++++++++++ .../v1/educational_stages_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/feed_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/institutions_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/languages_controller.rb | 19 +++++++++++++++++++ .../learning_objects/attachment_controller.rb | 19 +++++++++++++++++++ .../v1/learning_objects/chunks_controller.rb | 19 +++++++++++++++++++ .../learning_objects/publishes_controller.rb | 19 +++++++++++++++++++ .../v1/learning_objects/uploads_controller.rb | 19 +++++++++++++++++++ .../v1/learning_objects_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/licenses_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/mime_types_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/object_types_controller.rb | 19 +++++++++++++++++++ .../v1/omniauth_callbacks_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/packages_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/ratings_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/reviews_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/roles_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/scores_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/search_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/statistics_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/subjects_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/suggestions_controller.rb | 19 +++++++++++++++++++ .../v1/users/bookmarks_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/users_controller.rb | 19 +++++++++++++++++++ app/controllers/v1/versions_controller.rb | 19 +++++++++++++++++++ app/jobs/application_job.rb | 19 +++++++++++++++++++ app/mailers/application_mailer.rb | 19 +++++++++++++++++++ app/mailers/contacts_mailer.rb | 19 +++++++++++++++++++ app/mailers/suggestions_mailer.rb | 19 +++++++++++++++++++ app/models/application.rb | 19 +++++++++++++++++++ app/models/application_record.rb | 19 +++++++++++++++++++ app/models/bookmark.rb | 19 +++++++++++++++++++ app/models/bug.rb | 19 +++++++++++++++++++ app/models/carousel.rb | 19 +++++++++++++++++++ app/models/collection.rb | 19 +++++++++++++++++++ app/models/collection_item.rb | 19 +++++++++++++++++++ app/models/complaint.rb | 19 +++++++++++++++++++ app/models/complaint_reason.rb | 19 +++++++++++++++++++ app/models/concerns/complainable.rb | 19 +++++++++++++++++++ app/models/concerns/downloadable.rb | 19 +++++++++++++++++++ app/models/concerns/followable.rb | 19 +++++++++++++++++++ app/models/concerns/highlights.rb | 19 +++++++++++++++++++ app/models/concerns/metadatable.rb | 19 +++++++++++++++++++ app/models/concerns/publisher.rb | 19 +++++++++++++++++++ app/models/concerns/reputationable.rb | 19 +++++++++++++++++++ app/models/concerns/reviewable.rb | 19 +++++++++++++++++++ app/models/concerns/scoreable.rb | 19 +++++++++++++++++++ app/models/concerns/sociable.rb | 19 +++++++++++++++++++ app/models/concerns/stageable.rb | 19 +++++++++++++++++++ app/models/concerns/stateful.rb | 19 +++++++++++++++++++ app/models/concerns/subjectable.rb | 19 +++++++++++++++++++ app/models/concerns/taggable.rb | 19 +++++++++++++++++++ app/models/concerns/tagger.rb | 19 +++++++++++++++++++ app/models/concerns/thumbnailable.rb | 19 +++++++++++++++++++ app/models/concerns/trackable.rb | 19 +++++++++++++++++++ app/models/contact.rb | 19 +++++++++++++++++++ app/models/download.rb | 19 +++++++++++++++++++ app/models/educational_stage.rb | 19 +++++++++++++++++++ app/models/follow.rb | 19 +++++++++++++++++++ app/models/institution.rb | 19 +++++++++++++++++++ app/models/language.rb | 19 +++++++++++++++++++ app/models/learning_object.rb | 19 +++++++++++++++++++ app/models/learning_object/attachment.rb | 19 +++++++++++++++++++ app/models/license.rb | 19 +++++++++++++++++++ app/models/like.rb | 19 +++++++++++++++++++ app/models/mime_type.rb | 19 +++++++++++++++++++ app/models/object_type.rb | 19 +++++++++++++++++++ app/models/package.rb | 19 +++++++++++++++++++ app/models/package_item.rb | 19 +++++++++++++++++++ app/models/rate.rb | 19 +++++++++++++++++++ app/models/rating.rb | 19 +++++++++++++++++++ app/models/review.rb | 19 +++++++++++++++++++ app/models/review_rating.rb | 19 +++++++++++++++++++ app/models/role.rb | 19 +++++++++++++++++++ app/models/score.rb | 19 +++++++++++++++++++ app/models/score_user_category.rb | 19 +++++++++++++++++++ app/models/search.rb | 19 +++++++++++++++++++ app/models/share.rb | 19 +++++++++++++++++++ app/models/stage_relation.rb | 19 +++++++++++++++++++ app/models/subject.rb | 19 +++++++++++++++++++ app/models/subject_relation.rb | 19 +++++++++++++++++++ app/models/suggestion.rb | 19 +++++++++++++++++++ app/models/tag.rb | 19 +++++++++++++++++++ app/models/tagging.rb | 19 +++++++++++++++++++ app/models/user.rb | 19 +++++++++++++++++++ app/models/user_category.rb | 19 +++++++++++++++++++ app/models/view.rb | 19 +++++++++++++++++++ app/policies/activity_policy.rb | 19 +++++++++++++++++++ app/policies/application_policy.rb | 19 +++++++++++++++++++ app/policies/bookmark_policy.rb | 19 +++++++++++++++++++ app/policies/collection_policy.rb | 19 +++++++++++++++++++ app/policies/complaint_policy.rb | 19 +++++++++++++++++++ app/policies/followable_policy.rb | 19 +++++++++++++++++++ app/policies/institution_policy.rb | 19 +++++++++++++++++++ app/policies/language_policy.rb | 19 +++++++++++++++++++ app/policies/learning_object_policy.rb | 19 +++++++++++++++++++ app/policies/license_policy.rb | 19 +++++++++++++++++++ app/policies/mime_type_policy.rb | 19 +++++++++++++++++++ app/policies/object_type_policy.rb | 19 +++++++++++++++++++ app/policies/publisher_policy.rb | 19 +++++++++++++++++++ app/policies/rating_policy.rb | 19 +++++++++++++++++++ app/policies/reportable_policy.rb | 19 +++++++++++++++++++ app/policies/review_policy.rb | 19 +++++++++++++++++++ app/policies/role_policy.rb | 19 +++++++++++++++++++ app/policies/search_policy.rb | 19 +++++++++++++++++++ app/policies/sociable_policy.rb | 19 +++++++++++++++++++ app/policies/stageable_policy.rb | 19 +++++++++++++++++++ app/policies/subjectable_policy.rb | 19 +++++++++++++++++++ app/policies/taggable_policy.rb | 19 +++++++++++++++++++ app/policies/user_policy.rb | 19 +++++++++++++++++++ app/policies/welcome_policy.rb | 19 +++++++++++++++++++ app/serializers/array_serializer.rb | 19 +++++++++++++++++++ app/serializers/collection_item_serializer.rb | 19 +++++++++++++++++++ app/serializers/collection_min_serializer.rb | 19 +++++++++++++++++++ app/serializers/collection_serializer.rb | 19 +++++++++++++++++++ app/serializers/contact_serializer.rb | 19 +++++++++++++++++++ app/serializers/follow_serializer.rb | 19 +++++++++++++++++++ app/serializers/institution_serializer.rb | 19 +++++++++++++++++++ app/serializers/language_serializer.rb | 19 +++++++++++++++++++ .../learning_object/attachment_serializer.rb | 19 +++++++++++++++++++ .../learning_object_obaa_serializer.rb | 19 +++++++++++++++++++ app/serializers/learning_object_serializer.rb | 19 +++++++++++++++++++ app/serializers/license_serializer.rb | 19 +++++++++++++++++++ app/serializers/mime_type_serializer.rb | 19 +++++++++++++++++++ app/serializers/object_type_serializer.rb | 19 +++++++++++++++++++ .../paper_trail/version_serializer.rb | 19 +++++++++++++++++++ .../public_activity/activity_serializer.rb | 19 +++++++++++++++++++ app/serializers/rate_serializer.rb | 19 +++++++++++++++++++ app/serializers/review_rating_serializer.rb | 19 +++++++++++++++++++ app/serializers/review_serializer.rb | 19 +++++++++++++++++++ app/serializers/role_serializer.rb | 19 +++++++++++++++++++ app/serializers/score_serializer.rb | 19 +++++++++++++++++++ app/serializers/suggestion_serializer.rb | 19 +++++++++++++++++++ app/serializers/tag_serializer.rb | 19 +++++++++++++++++++ app/serializers/user_devise_serializer.rb | 19 +++++++++++++++++++ app/serializers/user_serializer.rb | 19 +++++++++++++++++++ app/services/activities_filter_service.rb | 19 +++++++++++++++++++ app/services/application_creation_service.rb | 19 +++++++++++++++++++ .../applications/app_id_generate_service.rb | 19 +++++++++++++++++++ app/services/attachment_cache_service.rb | 19 +++++++++++++++++++ app/services/dspace/attachment_mapper.rb | 19 +++++++++++++++++++ .../dspace/learning_object_importer.rb | 19 +++++++++++++++++++ app/services/dspace_service.rb | 19 +++++++++++++++++++ app/services/feedback_service.rb | 19 +++++++++++++++++++ app/services/gitlab_bugreporter_service.rb | 19 +++++++++++++++++++ app/services/institution_importer.rb | 19 +++++++++++++++++++ app/services/learning_object_publisher.rb | 19 +++++++++++++++++++ app/services/package_service.rb | 19 +++++++++++++++++++ app/services/package_service/generator.rb | 19 +++++++++++++++++++ app/services/package_service/link.rb | 19 +++++++++++++++++++ app/services/reviews/create_review_service.rb | 19 +++++++++++++++++++ .../safe_object_type_destroy_service.rb | 19 +++++++++++++++++++ app/services/sanitization_service.rb | 19 +++++++++++++++++++ app/services/score_calculator_service.rb | 19 +++++++++++++++++++ app/services/search_service.rb | 19 +++++++++++++++++++ app/services/search_service/collection.rb | 19 +++++++++++++++++++ .../search_service/learning_object.rb | 19 +++++++++++++++++++ app/services/search_service/model.rb | 19 +++++++++++++++++++ app/services/search_service/user.rb | 19 +++++++++++++++++++ app/services/tags_importer.rb | 19 +++++++++++++++++++ app/services/thumbnail_service.rb | 19 +++++++++++++++++++ app/workers/attachment_cache_worker.rb | 19 +++++++++++++++++++ app/workers/bitstream_mime_worker.rb | 19 +++++++++++++++++++ app/workers/convert_video_worker.rb | 19 +++++++++++++++++++ app/workers/delete_bitstream_worker.rb | 19 +++++++++++++++++++ app/workers/dspace_upload_worker.rb | 19 +++++++++++++++++++ app/workers/package_worker.rb | 19 +++++++++++++++++++ .../review_average_calculator_worker.rb | 19 +++++++++++++++++++ app/workers/score_calculator_worker.rb | 19 +++++++++++++++++++ app/workers/thumbnail_generate_worker.rb | 19 +++++++++++++++++++ config.ru | 19 +++++++++++++++++++ config/application.rb | 19 +++++++++++++++++++ config/boot.rb | 19 +++++++++++++++++++ config/cable.yml | 19 +++++++++++++++++++ config/deploy.rb | 19 +++++++++++++++++++ config/docker/database.yml | 19 +++++++++++++++++++ config/docker/sidekiq.yml | 19 +++++++++++++++++++ config/dspace.yml | 19 +++++++++++++++++++ config/env_vars.sh | 19 +++++++++++++++++++ config/environment.rb | 19 +++++++++++++++++++ config/environments/development.rb | 19 +++++++++++++++++++ config/environments/production.rb | 19 +++++++++++++++++++ config/environments/test.rb | 19 +++++++++++++++++++ config/feature.yml | 19 +++++++++++++++++++ ...e_record_belongs_to_required_by_default.rb | 19 +++++++++++++++++++ .../application_controller_renderer.rb | 19 +++++++++++++++++++ config/initializers/assets.rb | 19 +++++++++++++++++++ config/initializers/backtrace_silencers.rb | 19 +++++++++++++++++++ config/initializers/callback_terminator.rb | 19 +++++++++++++++++++ config/initializers/cookies_serializer.rb | 19 +++++++++++++++++++ config/initializers/devise.rb | 19 +++++++++++++++++++ config/initializers/devise_token_auth.rb | 19 +++++++++++++++++++ config/initializers/eager_load.rb | 19 +++++++++++++++++++ config/initializers/elasticsearch.rb | 19 +++++++++++++++++++ config/initializers/feature.rb | 19 +++++++++++++++++++ .../initializers/filter_parameter_logging.rb | 19 +++++++++++++++++++ config/initializers/gitlab.rb | 19 +++++++++++++++++++ config/initializers/inflections.rb | 19 +++++++++++++++++++ config/initializers/mime_types.rb | 19 +++++++++++++++++++ config/initializers/new_framework_defaults.rb | 19 +++++++++++++++++++ config/initializers/omniauth.rb | 19 +++++++++++++++++++ config/initializers/paper_trail.rb | 19 +++++++++++++++++++ .../initializers/postgresql_database_tasks.rb | 19 +++++++++++++++++++ config/initializers/rack-attack.rb | 19 +++++++++++++++++++ config/initializers/session_store.rb | 19 +++++++++++++++++++ config/initializers/sidekiq.rb | 19 +++++++++++++++++++ config/initializers/wrap_parameters.rb | 19 +++++++++++++++++++ config/locales/activerecord.pt-BR.yml | 19 +++++++++++++++++++ config/locales/devise.en.yml | 19 +++++++++++++++++++ config/locales/devise.pt-BR.yml | 19 +++++++++++++++++++ config/locales/en.yml | 19 +++++++++++++++++++ config/locales/pt-BR.yml | 19 +++++++++++++++++++ config/puma.rb | 19 +++++++++++++++++++ config/routes.rb | 19 +++++++++++++++++++ config/schedule.rb | 19 +++++++++++++++++++ config/secrets.yml | 19 +++++++++++++++++++ config/sidekiq.yml | 19 +++++++++++++++++++ config/spring.rb | 19 +++++++++++++++++++ .../20150731225848_devise_create_users.rb | 19 +++++++++++++++++++ ...28140933_devise_token_auth_create_users.rb | 19 +++++++++++++++++++ db/migrate/20150904134929_create_roles.rb | 19 +++++++++++++++++++ ...904141558_create_join_table_users_roles.rb | 19 +++++++++++++++++++ ...20150909135745_add_name_column_to_users.rb | 19 +++++++++++++++++++ ...21132848_add_attachment_avatar_to_users.rb | 19 +++++++++++++++++++ db/migrate/20150922141008_create_carousels.rb | 19 +++++++++++++++++++ ...922141009_add_image_column_to_carousels.rb | 19 +++++++++++++++++++ db/migrate/20160124114036_create_languages.rb | 19 +++++++++++++++++++ .../20160124145100_create_object_types.rb | 19 +++++++++++++++++++ .../20160125120915_create_learning_objects.rb | 19 +++++++++++++++++++ db/migrate/20160125121603_create_topics.rb | 19 +++++++++++++++++++ .../20160125122642_learning_objects_topics.rb | 19 +++++++++++++++++++ .../20160125122943_create_institutions.rb | 19 +++++++++++++++++++ .../20160125123423_create_collections.rb | 19 +++++++++++++++++++ .../20160125124125_institutions_users.rb | 19 +++++++++++++++++++ ...20160125124500_create_complaint_reasons.rb | 19 +++++++++++++++++++ .../20160125124508_create_complaints.rb | 19 +++++++++++++++++++ db/migrate/20160125132447_create_bookmarks.rb | 19 +++++++++++++++++++ db/migrate/20160127135807_create_reviews.rb | 19 +++++++++++++++++++ db/migrate/20160128115107_create_views.rb | 19 +++++++++++++++++++ db/migrate/20160128115428_create_downloads.rb | 19 +++++++++++++++++++ db/migrate/20160128115555_create_likes.rb | 19 +++++++++++++++++++ db/migrate/20160128115721_create_shares.rb | 19 +++++++++++++++++++ db/migrate/20160128122557_create_ratings.rb | 19 +++++++++++++++++++ .../20160128123028_create_review_ratings.rb | 19 +++++++++++++++++++ db/migrate/20160128123901_create_follows.rb | 19 +++++++++++++++++++ .../20160128125336_create_collection_items.rb | 19 +++++++++++++++++++ .../20160129191739_create_topic_highlights.rb | 19 +++++++++++++++++++ ...160130191533_create_topic_relationships.rb | 19 +++++++++++++++++++ ...add_counter_to_view_like_share_download.rb | 19 +++++++++++++++++++ ...5415_create_learning_object_attachments.rb | 19 +++++++++++++++++++ ...bitstreams_column_from_learning_objects.rb | 19 +++++++++++++++++++ ...7_add_state_column_for_learning_objects.rb | 19 +++++++++++++++++++ ...38_add_id_dspace_column_for_attachments.rb | 19 +++++++++++++++++++ ...3900_add_description_column_for_ratings.rb | 19 +++++++++++++++++++ db/migrate/20160217111317_create_rates.rb | 19 +++++++++++++++++++ ...122253_create_default_column_for_topics.rb | 19 +++++++++++++++++++ .../20160218100700_add_counter_to_rate.rb | 19 +++++++++++++++++++ .../20160219132305_remove_string_thumbnail.rb | 19 +++++++++++++++++++ .../20160219132533_add_paperclip_thumbnail.rb | 19 +++++++++++++++++++ ...102900_create_code_column_for_languages.rb | 19 +++++++++++++++++++ db/migrate/20160222144157_create_scores.rb | 19 +++++++++++++++++++ .../20160222144216_create_user_categories.rb | 19 +++++++++++++++++++ ...0222144259_create_score_user_categories.rb | 19 +++++++++++++++++++ .../20160225101700_change_users_add_score.rb | 19 +++++++++++++++++++ ...4600_change_users_add_score_foreign_key.rb | 19 +++++++++++++++++++ db/migrate/20160229205701_add_keys.rb | 19 +++++++++++++++++++ ...0301103500_change_collections_add_score.rb | 19 +++++++++++++++++++ ...0301103501_add_paperclip_to_attachments.rb | 19 +++++++++++++++++++ ...0302102500_change_scores_add_score_type.rb | 19 +++++++++++++++++++ ...03120433_add_counter_to_user_collection.rb | 19 +++++++++++++++++++ ...1_add_column_mime_type_for_object_types.rb | 19 +++++++++++++++++++ ...0304100533_change_learning_object_score.rb | 19 +++++++++++++++++++ ...304102333_add_thumbnail_for_collections.rb | 19 +++++++++++++++++++ ...900_add_attachment_for_learning_objects.rb | 19 +++++++++++++++++++ .../20160310121839_create_mime_types.rb | 19 +++++++++++++++++++ ...058_remove_mime_types_from_object_types.rb | 19 +++++++++++++++++++ ...ciations_to_object_types_and_mime_types.rb | 19 +++++++++++++++++++ ...0313192800_add_cache_link_to_attachment.rb | 19 +++++++++++++++++++ .../20160415004548_drop_table_topics.rb | 19 +++++++++++++++++++ ...15004803_drop_table_topic_relationships.rb | 19 +++++++++++++++++++ ...60415005006_drop_table_topic_highlights.rb | 19 +++++++++++++++++++ db/migrate/20160426144714_create_tags.rb | 19 +++++++++++++++++++ db/migrate/20160426144833_create_taggings.rb | 19 +++++++++++++++++++ .../20160503140557_create_activities.rb | 19 +++++++++++++++++++ ...5942_add_deleted_at_to_learning_objects.rb | 19 +++++++++++++++++++ ...512140101_add_deleted_at_to_collections.rb | 19 +++++++++++++++++++ ...0512140142_add_deleted_at_to_complaints.rb | 19 +++++++++++++++++++ ...12140201_add_deleted_at_to_institutions.rb | 19 +++++++++++++++++++ ...0160512140234_add_deleted_at_to_reviews.rb | 19 +++++++++++++++++++ .../20160512140321_add_deleted_at_to_users.rb | 19 +++++++++++++++++++ ...140322_ensure_versions_table_is_deleted.rb | 19 +++++++++++++++++++ db/migrate/20160512143532_create_versions.rb | 19 +++++++++++++++++++ db/migrate/20160516125724_create_licenses.rb | 19 +++++++++++++++++++ ...6125800_add_license_to_learning_objects.rb | 19 +++++++++++++++++++ .../20160517140326_create_applications.rb | 19 +++++++++++++++++++ ...5_change_state_type_in_learning_objects.rb | 19 +++++++++++++++++++ .../20161018123459_add_index_to_collection.rb | 19 +++++++++++++++++++ db/migrate/20161024160053_create_subjects.rb | 19 +++++++++++++++++++ ...0161024160126_create_educational_stages.rb | 19 +++++++++++++++++++ ...6114123_change_complaints_columns_names.rb | 19 +++++++++++++++++++ ...20161026134028_create_subject_relations.rb | 19 +++++++++++++++++++ .../20161026163027_change_learning_object.rb | 19 +++++++++++++++++++ .../20161027134827_add_index_to_taggings.rb | 19 +++++++++++++++++++ .../20161027141322_create_stage_relations.rb | 19 +++++++++++++++++++ ...7130535_add_description_column_to_users.rb | 19 +++++++++++++++++++ ...5_add_review_average_to_learning_object.rb | 19 +++++++++++++++++++ ...0161123114102_add_privacy_to_activities.rb | 19 +++++++++++++++++++ .../20161125134057_add_counts_to_user.rb | 19 +++++++++++++++++++ ...153200_add_review_average_to_collection.rb | 19 +++++++++++++++++++ ...2731_change_collection_item_column_name.rb | 19 +++++++++++++++++++ .../20170109133754_add_nickname_to_user.rb | 19 +++++++++++++++++++ db/migrate/20170207122721_create_contacts.rb | 19 +++++++++++++++++++ .../20170208111714_create_suggestions.rb | 19 +++++++++++++++++++ .../20170215113455_add_ip_to_downloads.rb | 19 +++++++++++++++++++ .../20170215121042_add_index_to_downloads.rb | 19 +++++++++++++++++++ db/migrate/20170223132327_create_packages.rb | 19 +++++++++++++++++++ .../20170223132838_create_package_items.rb | 19 +++++++++++++++++++ .../20170224145548_add_filepath_to_package.rb | 19 +++++++++++++++++++ ...307133059_add_attachment_cover_to_users.rb | 19 +++++++++++++++++++ .../20170307133405_add_education_to_users.rb | 19 +++++++++++++++++++ ...0_add_attachment_avatar_to_institutions.rb | 19 +++++++++++++++++++ ...11161146_add_curator_to_learning_object.rb | 19 +++++++++++++++++++ ...92359_add_magnetlink_to_learning_object.rb | 19 +++++++++++++++++++ ...1857_add_deleted_at_to_collection_items.rb | 19 +++++++++++++++++++ ...0170518120936_add_curator_to_collection.rb | 19 +++++++++++++++++++ ..._learning_objects_count_to_institutions.rb | 19 +++++++++++++++++++ db/seeds.rb | 19 +++++++++++++++++++ db/seeds/complaints.rb | 19 +++++++++++++++++++ db/seeds/educational_stages.rb | 19 +++++++++++++++++++ db/seeds/institutions.rb | 19 +++++++++++++++++++ db/seeds/languages.rb | 19 +++++++++++++++++++ db/seeds/licenses.rb | 19 +++++++++++++++++++ db/seeds/object_types.rb | 19 +++++++++++++++++++ db/seeds/ratings.rb | 19 +++++++++++++++++++ db/seeds/scores.rb | 19 +++++++++++++++++++ db/seeds/subjects.rb | 19 +++++++++++++++++++ docker-compose.yml | 19 +++++++++++++++++++ insert_header.rb | 19 +++++++++++++++++++ lib/log/database_logger.rb | 19 +++++++++++++++++++ lib/log/logging.rb | 19 +++++++++++++++++++ lib/portalmec/sociable_tests.rb | 19 +++++++++++++++++++ lib/string.rb | 19 +++++++++++++++++++ lib/tasks/attachment.rake | 19 +++++++++++++++++++ lib/tasks/attachment_maintaining_service.rake | 19 +++++++++++++++++++ lib/tasks/attachments.rake | 19 +++++++++++++++++++ lib/tasks/convert_video.rake | 19 +++++++++++++++++++ lib/tasks/db.rake | 19 +++++++++++++++++++ lib/tasks/import/educational_stage.rake | 19 +++++++++++++++++++ lib/tasks/import/institutions.rake | 19 +++++++++++++++++++ lib/tasks/import/learning_objects.rake | 19 +++++++++++++++++++ lib/tasks/import/subject.rake | 19 +++++++++++++++++++ lib/tasks/import/tags.rake | 19 +++++++++++++++++++ lib/tasks/language.rake | 19 +++++++++++++++++++ lib/tasks/object_type.rake | 19 +++++++++++++++++++ lib/tasks/portalmec.rake | 19 +++++++++++++++++++ lib/tasks/score.rake | 19 +++++++++++++++++++ lib/tasks/tags.rake | 19 +++++++++++++++++++ lib/tasks/thumbnail.rake | 19 +++++++++++++++++++ lib/thumbnail/generatable_strategy.rb | 19 +++++++++++++++++++ .../strategies/image_thumbnail_generator.rb | 19 +++++++++++++++++++ .../strategies/pdf_thumbnail_generator.rb | 19 +++++++++++++++++++ .../strategies/url_thumbnail_generator.rb | 19 +++++++++++++++++++ .../strategies/video_thumbnail_generator.rb | 19 +++++++++++++++++++ puma.sh | 19 +++++++++++++++++++ sidekiq.sh | 19 +++++++++++++++++++ spec/acceptance/activities_spec.rb | 19 +++++++++++++++++++ spec/acceptance/bookmarks_spec.rb | 19 +++++++++++++++++++ spec/acceptance/collections_spec.rb | 19 +++++++++++++++++++ spec/acceptance/complaints_spec.rb | 19 +++++++++++++++++++ spec/acceptance/contacts_spec.rb | 19 +++++++++++++++++++ spec/acceptance/downloads_spec.rb | 19 +++++++++++++++++++ spec/acceptance/educational_stages_spec.rb | 19 +++++++++++++++++++ spec/acceptance/follows_spec.rb | 19 +++++++++++++++++++ spec/acceptance/institutions_spec.rb | 19 +++++++++++++++++++ spec/acceptance/languages_spec.rb | 19 +++++++++++++++++++ spec/acceptance/learning_objects_spec.rb | 19 +++++++++++++++++++ spec/acceptance/mime_types_spec.rb | 19 +++++++++++++++++++ spec/acceptance/object_types_spec.rb | 19 +++++++++++++++++++ spec/acceptance/reviews_spec.rb | 19 +++++++++++++++++++ spec/acceptance/searches_spec.rb | 19 +++++++++++++++++++ spec/acceptance/statistics_spec.rb | 19 +++++++++++++++++++ spec/acceptance/subjects_spec.rb | 19 +++++++++++++++++++ spec/acceptance/suggestions_spec.rb | 19 +++++++++++++++++++ spec/acceptance/tags_spec.rb | 19 +++++++++++++++++++ spec/acceptance/users_spec.rb | 19 +++++++++++++++++++ spec/acceptance_helpers.rb | 19 +++++++++++++++++++ spec/controller_helpers.rb | 19 +++++++++++++++++++ .../v1/collections_controller_spec.rb | 19 +++++++++++++++++++ .../v1/omniauth_callbacks_controller_spec.rb | 19 +++++++++++++++++++ .../v1/statistics_controller_spec.rb | 19 +++++++++++++++++++ spec/factories/applications.rb | 19 +++++++++++++++++++ spec/factories/attachments.rb | 19 +++++++++++++++++++ spec/factories/bookmarks.rb | 19 +++++++++++++++++++ spec/factories/collection_items.rb | 19 +++++++++++++++++++ spec/factories/collections.rb | 19 +++++++++++++++++++ spec/factories/complaint_reasons.rb | 19 +++++++++++++++++++ spec/factories/complaints.rb | 19 +++++++++++++++++++ spec/factories/contacts.rb | 19 +++++++++++++++++++ spec/factories/downloads.rb | 19 +++++++++++++++++++ spec/factories/educational_stages.rb | 19 +++++++++++++++++++ spec/factories/follows.rb | 19 +++++++++++++++++++ spec/factories/institutions.rb | 19 +++++++++++++++++++ spec/factories/languages.rb | 19 +++++++++++++++++++ spec/factories/learning_objects.rb | 19 +++++++++++++++++++ spec/factories/likes.rb | 19 +++++++++++++++++++ spec/factories/mime_types.rb | 19 +++++++++++++++++++ spec/factories/object_types.rb | 19 +++++++++++++++++++ spec/factories/ratings.rb | 19 +++++++++++++++++++ spec/factories/review_ratings.rb | 19 +++++++++++++++++++ spec/factories/reviews.rb | 19 +++++++++++++++++++ spec/factories/roles.rb | 19 +++++++++++++++++++ spec/factories/stages_relation.rb | 19 +++++++++++++++++++ spec/factories/subjects.rb | 19 +++++++++++++++++++ spec/factories/subjects_relation.rb | 19 +++++++++++++++++++ spec/factories/suggestions.rb | 19 +++++++++++++++++++ spec/factories/taggings.rb | 19 +++++++++++++++++++ spec/factories/tags.rb | 19 +++++++++++++++++++ spec/factories/users.rb | 19 +++++++++++++++++++ spec/models/application_spec.rb | 19 +++++++++++++++++++ spec/rails_helper.rb | 19 +++++++++++++++++++ spec/shared/contexts.rb | 19 +++++++++++++++++++ spec/shared/examples.rb | 19 +++++++++++++++++++ spec/spec_helper.rb | 19 +++++++++++++++++++ start_puma.sh | 19 +++++++++++++++++++ stop_puma.sh | 19 +++++++++++++++++++ .../v1/collections_controller_test.rb | 19 +++++++++++++++++++ .../v1/complaints_controller_test.rb | 19 +++++++++++++++++++ test/controllers/v1/feed_controller_test.rb | 19 +++++++++++++++++++ .../v1/institutions_controller_test.rb | 19 +++++++++++++++++++ .../v1/languages_controller_test.rb | 19 +++++++++++++++++++ .../v1/learning_objects_controller_test.rb | 19 +++++++++++++++++++ .../v1/licenses_controller_test.rb | 19 +++++++++++++++++++ .../v1/mime_types_controller_test.rb | 19 +++++++++++++++++++ .../v1/object_types_controller_test.rb | 19 +++++++++++++++++++ .../controllers/v1/ratings_controller_test.rb | 19 +++++++++++++++++++ .../controllers/v1/reviews_controller_test.rb | 19 +++++++++++++++++++ test/controllers/v1/scores_controller_test.rb | 19 +++++++++++++++++++ test/controllers/v1/search_controller_test.rb | 19 +++++++++++++++++++ .../v1/users/bookmarks_controller_test.rb | 19 +++++++++++++++++++ test/controllers/v1/users_controller_test.rb | 19 +++++++++++++++++++ test/fixtures/applications.yml | 19 +++++++++++++++++++ test/fixtures/collection_item.yml | 19 +++++++++++++++++++ test/fixtures/collections.yml | 19 +++++++++++++++++++ test/fixtures/complaint_reasons.yml | 19 +++++++++++++++++++ test/fixtures/educational_stages.yml | 19 +++++++++++++++++++ test/fixtures/institutions.yml | 19 +++++++++++++++++++ test/fixtures/languages.yml | 19 +++++++++++++++++++ test/fixtures/learning_objects.yml | 19 +++++++++++++++++++ test/fixtures/licenses.yml | 19 +++++++++++++++++++ test/fixtures/mime_types.yml | 19 +++++++++++++++++++ test/fixtures/object_types.yml | 19 +++++++++++++++++++ test/fixtures/ratings.yml | 19 +++++++++++++++++++ test/fixtures/review_ratings.yml | 19 +++++++++++++++++++ test/fixtures/reviews.yml | 19 +++++++++++++++++++ test/fixtures/roles.yml | 19 +++++++++++++++++++ test/fixtures/score_user_categories.yml | 19 +++++++++++++++++++ test/fixtures/scores.yml | 19 +++++++++++++++++++ test/fixtures/subjects.yml | 19 +++++++++++++++++++ test/fixtures/taggings.yml | 19 +++++++++++++++++++ test/fixtures/tags.yml | 19 +++++++++++++++++++ test/fixtures/user_categories.yml | 19 +++++++++++++++++++ test/fixtures/users.yml | 19 +++++++++++++++++++ test/models/application_test.rb | 19 +++++++++++++++++++ test/models/bookmark_test.rb | 19 +++++++++++++++++++ test/models/carousel_test.rb | 19 +++++++++++++++++++ test/models/collection_item_test.rb | 19 +++++++++++++++++++ test/models/collection_test.rb | 19 +++++++++++++++++++ test/models/complaint_reason_test.rb | 19 +++++++++++++++++++ test/models/complaint_test.rb | 19 +++++++++++++++++++ test/models/download_test.rb | 19 +++++++++++++++++++ test/models/follow_test.rb | 19 +++++++++++++++++++ test/models/institution_test.rb | 19 +++++++++++++++++++ test/models/language_test.rb | 19 +++++++++++++++++++ .../models/learning_object/attachment_test.rb | 19 +++++++++++++++++++ test/models/learning_object_test.rb | 19 +++++++++++++++++++ test/models/license_test.rb | 19 +++++++++++++++++++ test/models/like_test.rb | 19 +++++++++++++++++++ test/models/object_type_test.rb | 19 +++++++++++++++++++ test/models/rate_test.rb | 19 +++++++++++++++++++ test/models/rating_test.rb | 19 +++++++++++++++++++ test/models/review_rating_test.rb | 19 +++++++++++++++++++ test/models/review_test.rb | 19 +++++++++++++++++++ test/models/role_test.rb | 19 +++++++++++++++++++ test/models/score_test.rb | 19 +++++++++++++++++++ test/models/score_user_category_test.rb | 19 +++++++++++++++++++ test/models/search_test.rb | 19 +++++++++++++++++++ test/models/share_test.rb | 19 +++++++++++++++++++ test/models/stage_relation_test.rb | 19 +++++++++++++++++++ test/models/subject_test.rb | 19 +++++++++++++++++++ test/models/tag_test.rb | 19 +++++++++++++++++++ test/models/tagging_test.rb | 19 +++++++++++++++++++ test/models/user_category_test.rb | 19 +++++++++++++++++++ test/models/user_test.rb | 19 +++++++++++++++++++ test/models/view_test.rb | 19 +++++++++++++++++++ test/services/feedback_service_test.rb | 19 +++++++++++++++++++ test/services/institution_importer_test.rb | 19 +++++++++++++++++++ .../services/score_calculator_service_test.rb | 19 +++++++++++++++++++ test/services/search_service_test.rb | 19 +++++++++++++++++++ test/test_helper.rb | 19 +++++++++++++++++++ 517 files changed, 9823 insertions(+) diff --git a/app/builders/learning_object_builder.rb b/app/builders/learning_object_builder.rb index c986f3c70..9428e0796 100644 --- a/app/builders/learning_object_builder.rb +++ b/app/builders/learning_object_builder.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class LearningObjectBuilder def self.build_from_dspace(item) lo = LearningObject.new( diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 922e314b7..7ee83c03c 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ApplicationController < ActionController::API include ActionController::Serialization include DeviseTokenAuth::Concerns::SetUserByToken diff --git a/app/controllers/concerns/deleted_objects_controller.rb b/app/controllers/concerns/deleted_objects_controller.rb index 2eeee836d..cdd7ba080 100644 --- a/app/controllers/concerns/deleted_objects_controller.rb +++ b/app/controllers/concerns/deleted_objects_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module DeletedObjectsController extend ActiveSupport::Concern diff --git a/app/controllers/concerns/downloadable_controller.rb b/app/controllers/concerns/downloadable_controller.rb index accb20d6c..2cf5cd2cb 100644 --- a/app/controllers/concerns/downloadable_controller.rb +++ b/app/controllers/concerns/downloadable_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module DownloadableController extend ActiveSupport::Concern diff --git a/app/controllers/concerns/followable_controller.rb b/app/controllers/concerns/followable_controller.rb index 40cd9139c..cfa3876b5 100644 --- a/app/controllers/concerns/followable_controller.rb +++ b/app/controllers/concerns/followable_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + ## This concern has +follow+ and +unfollow+ controller actions ## When you use it, be sure that +set_followable+ method is implemented in your controller, otherwise an fatal error will raise. module FollowableController diff --git a/app/controllers/concerns/highlights_controller.rb b/app/controllers/concerns/highlights_controller.rb index 8ff30cc97..f2d399365 100644 --- a/app/controllers/concerns/highlights_controller.rb +++ b/app/controllers/concerns/highlights_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module HighlightsController extend ActiveSupport::Concern diff --git a/app/controllers/concerns/paginator.rb b/app/controllers/concerns/paginator.rb index 28d230f6e..f855a13d2 100644 --- a/app/controllers/concerns/paginator.rb +++ b/app/controllers/concerns/paginator.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Paginator extend ActiveSupport::Concern diff --git a/app/controllers/concerns/publisher_controller.rb b/app/controllers/concerns/publisher_controller.rb index dd385d9ae..dbfcd2f1e 100644 --- a/app/controllers/concerns/publisher_controller.rb +++ b/app/controllers/concerns/publisher_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module PublisherController extend ActiveSupport::Concern diff --git a/app/controllers/concerns/resource_model.rb b/app/controllers/concerns/resource_model.rb index e8763ac79..43d605575 100644 --- a/app/controllers/concerns/resource_model.rb +++ b/app/controllers/concerns/resource_model.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module ResourceModel extend ActiveSupport::Concern diff --git a/app/controllers/concerns/reviewable_controller.rb b/app/controllers/concerns/reviewable_controller.rb index d90752ca9..4b3eabe81 100644 --- a/app/controllers/concerns/reviewable_controller.rb +++ b/app/controllers/concerns/reviewable_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + ## This concern has all default resource methods for CRUD operations ## When you use it, be sure that +reviewable+ method is implemented in your controller, otherwise an fatal error will raise. module ReviewableController diff --git a/app/controllers/concerns/sociable_controller.rb b/app/controllers/concerns/sociable_controller.rb index 2bdc8081e..82a96c832 100644 --- a/app/controllers/concerns/sociable_controller.rb +++ b/app/controllers/concerns/sociable_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + ## This concern has +like+, +unlike+ controller actions ## When you use it, be sure that +set_sociable+ method is implemented in your controller, otherwise an fatal error will raise. module SociableController diff --git a/app/controllers/concerns/stageable_controller.rb b/app/controllers/concerns/stageable_controller.rb index c10593ebf..5c5c9625d 100644 --- a/app/controllers/concerns/stageable_controller.rb +++ b/app/controllers/concerns/stageable_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module StageableController extend ActiveSupport::Concern diff --git a/app/controllers/concerns/subjectable_controller.rb b/app/controllers/concerns/subjectable_controller.rb index 9e712be0f..5e904e351 100644 --- a/app/controllers/concerns/subjectable_controller.rb +++ b/app/controllers/concerns/subjectable_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module SubjectableController extend ActiveSupport::Concern diff --git a/app/controllers/concerns/taggable_controller.rb b/app/controllers/concerns/taggable_controller.rb index b451e2aa7..0c7a2635d 100644 --- a/app/controllers/concerns/taggable_controller.rb +++ b/app/controllers/concerns/taggable_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module TaggableController extend ActiveSupport::Concern diff --git a/app/controllers/v1/activities_controller.rb b/app/controllers/v1/activities_controller.rb index e8de993b7..dd473e801 100644 --- a/app/controllers/v1/activities_controller.rb +++ b/app/controllers/v1/activities_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::ActivitiesController < ApplicationController include ::ResourceModel include ::Paginator diff --git a/app/controllers/v1/collections_controller.rb b/app/controllers/v1/collections_controller.rb index de2f898e9..ebc014ece 100644 --- a/app/controllers/v1/collections_controller.rb +++ b/app/controllers/v1/collections_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::CollectionsController < ApplicationController include ::SociableController include ::DownloadableController diff --git a/app/controllers/v1/complaints_controller.rb b/app/controllers/v1/complaints_controller.rb index b7803f0a6..5015fb5c7 100644 --- a/app/controllers/v1/complaints_controller.rb +++ b/app/controllers/v1/complaints_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::ComplaintsController < ApplicationController include ::DeletedObjectsController include ::Paginator diff --git a/app/controllers/v1/contacts_controller.rb b/app/controllers/v1/contacts_controller.rb index 37246084f..ff67f711e 100644 --- a/app/controllers/v1/contacts_controller.rb +++ b/app/controllers/v1/contacts_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::ContactsController < ApplicationController include ::Paginator diff --git a/app/controllers/v1/educational_stages_controller.rb b/app/controllers/v1/educational_stages_controller.rb index 48fe33458..4647e9e39 100644 --- a/app/controllers/v1/educational_stages_controller.rb +++ b/app/controllers/v1/educational_stages_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::EducationalStagesController < ApplicationController include ::Paginator diff --git a/app/controllers/v1/feed_controller.rb b/app/controllers/v1/feed_controller.rb index 365474469..04eabf5f0 100644 --- a/app/controllers/v1/feed_controller.rb +++ b/app/controllers/v1/feed_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::FeedController < ApplicationController include ::Paginator include ActivitiesFilterService diff --git a/app/controllers/v1/institutions_controller.rb b/app/controllers/v1/institutions_controller.rb index 3d8627f77..06186a9c5 100644 --- a/app/controllers/v1/institutions_controller.rb +++ b/app/controllers/v1/institutions_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::InstitutionsController < ApplicationController include ::DeletedObjectsController include ::Paginator diff --git a/app/controllers/v1/languages_controller.rb b/app/controllers/v1/languages_controller.rb index d35da0812..f3c474415 100644 --- a/app/controllers/v1/languages_controller.rb +++ b/app/controllers/v1/languages_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::LanguagesController < ApplicationController include ::Paginator diff --git a/app/controllers/v1/learning_objects/attachment_controller.rb b/app/controllers/v1/learning_objects/attachment_controller.rb index cc71c6d0f..21c7b3925 100644 --- a/app/controllers/v1/learning_objects/attachment_controller.rb +++ b/app/controllers/v1/learning_objects/attachment_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::LearningObjects::AttachmentController < ApplicationController before_action :set_objects before_action :authorize! diff --git a/app/controllers/v1/learning_objects/chunks_controller.rb b/app/controllers/v1/learning_objects/chunks_controller.rb index a65e77f3d..76007f866 100644 --- a/app/controllers/v1/learning_objects/chunks_controller.rb +++ b/app/controllers/v1/learning_objects/chunks_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::LearningObjects::ChunksController < ApplicationController before_action :authorize! diff --git a/app/controllers/v1/learning_objects/publishes_controller.rb b/app/controllers/v1/learning_objects/publishes_controller.rb index 2686c5ebd..75efb858a 100644 --- a/app/controllers/v1/learning_objects/publishes_controller.rb +++ b/app/controllers/v1/learning_objects/publishes_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::LearningObjects::PublishesController < ApplicationController before_action :set_learning_object before_action :authorize! diff --git a/app/controllers/v1/learning_objects/uploads_controller.rb b/app/controllers/v1/learning_objects/uploads_controller.rb index f2a51afee..6da88208a 100644 --- a/app/controllers/v1/learning_objects/uploads_controller.rb +++ b/app/controllers/v1/learning_objects/uploads_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::LearningObjects::UploadsController < ApplicationController before_action :set_learning_object before_action :authorize! diff --git a/app/controllers/v1/learning_objects_controller.rb b/app/controllers/v1/learning_objects_controller.rb index 2b274844e..eda09d0a9 100644 --- a/app/controllers/v1/learning_objects_controller.rb +++ b/app/controllers/v1/learning_objects_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'uri' class V1::LearningObjectsController < ApplicationController diff --git a/app/controllers/v1/licenses_controller.rb b/app/controllers/v1/licenses_controller.rb index a97356de6..18d0f6167 100644 --- a/app/controllers/v1/licenses_controller.rb +++ b/app/controllers/v1/licenses_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::LicensesController < ApplicationController before_action :authenticate_user!, only: [:create, :update, :destroy] before_action :set_license, only: [:show, :update, :destroy] diff --git a/app/controllers/v1/mime_types_controller.rb b/app/controllers/v1/mime_types_controller.rb index e51e6f878..d551dc4da 100644 --- a/app/controllers/v1/mime_types_controller.rb +++ b/app/controllers/v1/mime_types_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::MimeTypesController < ApplicationController include ::Paginator diff --git a/app/controllers/v1/object_types_controller.rb b/app/controllers/v1/object_types_controller.rb index c09775a85..6aeb0f776 100644 --- a/app/controllers/v1/object_types_controller.rb +++ b/app/controllers/v1/object_types_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::ObjectTypesController < ApplicationController include ::Paginator diff --git a/app/controllers/v1/omniauth_callbacks_controller.rb b/app/controllers/v1/omniauth_callbacks_controller.rb index 0ba43f3f6..d64c7ed05 100644 --- a/app/controllers/v1/omniauth_callbacks_controller.rb +++ b/app/controllers/v1/omniauth_callbacks_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'open-uri' class V1::OmniauthCallbacksController < DeviseTokenAuth::ApplicationController diff --git a/app/controllers/v1/packages_controller.rb b/app/controllers/v1/packages_controller.rb index d6d94adba..e10c72aca 100644 --- a/app/controllers/v1/packages_controller.rb +++ b/app/controllers/v1/packages_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::PackagesController < ApplicationController before_action :set_objects diff --git a/app/controllers/v1/ratings_controller.rb b/app/controllers/v1/ratings_controller.rb index d32fdea57..1a2827acf 100644 --- a/app/controllers/v1/ratings_controller.rb +++ b/app/controllers/v1/ratings_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::RatingsController < ApplicationController include ::DeletedObjectsController diff --git a/app/controllers/v1/reviews_controller.rb b/app/controllers/v1/reviews_controller.rb index 136adbc0f..9f8fe1559 100644 --- a/app/controllers/v1/reviews_controller.rb +++ b/app/controllers/v1/reviews_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::ReviewsController < ApplicationController include ::DeletedObjectsController include ::ResourceModel diff --git a/app/controllers/v1/roles_controller.rb b/app/controllers/v1/roles_controller.rb index e846d8be8..108103916 100644 --- a/app/controllers/v1/roles_controller.rb +++ b/app/controllers/v1/roles_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::RolesController < ApplicationController include ::Paginator diff --git a/app/controllers/v1/scores_controller.rb b/app/controllers/v1/scores_controller.rb index 5045a8654..0ca1708f4 100644 --- a/app/controllers/v1/scores_controller.rb +++ b/app/controllers/v1/scores_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::ScoresController < ApplicationController before_action :set_score, only: [:show,:update] before_action :authenticate_user!, only: [:update] diff --git a/app/controllers/v1/search_controller.rb b/app/controllers/v1/search_controller.rb index fa764f21b..adb52cd86 100644 --- a/app/controllers/v1/search_controller.rb +++ b/app/controllers/v1/search_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::SearchController < ApplicationController before_action :set_search diff --git a/app/controllers/v1/statistics_controller.rb b/app/controllers/v1/statistics_controller.rb index c40445715..275499f3d 100644 --- a/app/controllers/v1/statistics_controller.rb +++ b/app/controllers/v1/statistics_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::StatisticsController < ApplicationController # GET v1/statistics # GET v1/statistics.json diff --git a/app/controllers/v1/subjects_controller.rb b/app/controllers/v1/subjects_controller.rb index 0908c10a0..82f239ed6 100644 --- a/app/controllers/v1/subjects_controller.rb +++ b/app/controllers/v1/subjects_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::SubjectsController < ApplicationController include ::Paginator diff --git a/app/controllers/v1/suggestions_controller.rb b/app/controllers/v1/suggestions_controller.rb index 79dfacdbd..35672b4ce 100644 --- a/app/controllers/v1/suggestions_controller.rb +++ b/app/controllers/v1/suggestions_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::SuggestionsController < ApplicationController include ::Paginator diff --git a/app/controllers/v1/users/bookmarks_controller.rb b/app/controllers/v1/users/bookmarks_controller.rb index 0f92db501..ac3c8a211 100644 --- a/app/controllers/v1/users/bookmarks_controller.rb +++ b/app/controllers/v1/users/bookmarks_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::Users::BookmarksController < ApplicationController before_action :authenticate_user! before_action :set_user diff --git a/app/controllers/v1/users_controller.rb b/app/controllers/v1/users_controller.rb index 6405a2a8f..ca63b2aec 100644 --- a/app/controllers/v1/users_controller.rb +++ b/app/controllers/v1/users_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::UsersController < ApplicationController include ::FollowableController include ::DeletedObjectsController diff --git a/app/controllers/v1/versions_controller.rb b/app/controllers/v1/versions_controller.rb index f1a9c9a99..60e2b1523 100644 --- a/app/controllers/v1/versions_controller.rb +++ b/app/controllers/v1/versions_controller.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class V1::VersionsController < ApplicationController include ::ResourceModel diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb index a009ace51..a36cc5d31 100644 --- a/app/jobs/application_job.rb +++ b/app/jobs/application_job.rb @@ -1,2 +1,21 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ApplicationJob < ActiveJob::Base end diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index 4ff71b5d3..5ccf1d194 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ApplicationMailer < ActionMailer::Base default to: 'portalmec_tec@inf.ufpr.br' default from: 'portalmec@inf.ufpr.br' diff --git a/app/mailers/contacts_mailer.rb b/app/mailers/contacts_mailer.rb index e485608d2..5c32f58d2 100644 --- a/app/mailers/contacts_mailer.rb +++ b/app/mailers/contacts_mailer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ContactsMailer < ApplicationMailer def new_contact_received(contact) diff --git a/app/mailers/suggestions_mailer.rb b/app/mailers/suggestions_mailer.rb index b6545b69c..acce598da 100644 --- a/app/mailers/suggestions_mailer.rb +++ b/app/mailers/suggestions_mailer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class SuggestionsMailer < ApplicationMailer def new_suggestion_received(suggestion) diff --git a/app/models/application.rb b/app/models/application.rb index 8156eaddb..3d9ce2683 100644 --- a/app/models/application.rb +++ b/app/models/application.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class Application < ApplicationRecord belongs_to :user diff --git a/app/models/application_record.rb b/app/models/application_record.rb index 10a4cba84..627ee4157 100644 --- a/app/models/application_record.rb +++ b/app/models/application_record.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ApplicationRecord < ActiveRecord::Base self.abstract_class = true end diff --git a/app/models/bookmark.rb b/app/models/bookmark.rb index c912a2dcb..c9a303e56 100644 --- a/app/models/bookmark.rb +++ b/app/models/bookmark.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: bookmarks diff --git a/app/models/bug.rb b/app/models/bug.rb index d87a20468..e50c18195 100644 --- a/app/models/bug.rb +++ b/app/models/bug.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + ##Represents a software issue class Bug include ActiveModel::Model diff --git a/app/models/carousel.rb b/app/models/carousel.rb index 066dc5ed1..a28dff39a 100644 --- a/app/models/carousel.rb +++ b/app/models/carousel.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: carousels diff --git a/app/models/collection.rb b/app/models/collection.rb index cecb90f16..00620bfc3 100644 --- a/app/models/collection.rb +++ b/app/models/collection.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: collections diff --git a/app/models/collection_item.rb b/app/models/collection_item.rb index 101e61d5b..9b421358d 100644 --- a/app/models/collection_item.rb +++ b/app/models/collection_item.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: collection_items diff --git a/app/models/complaint.rb b/app/models/complaint.rb index f6ce9aa45..475988fe3 100644 --- a/app/models/complaint.rb +++ b/app/models/complaint.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: complaints diff --git a/app/models/complaint_reason.rb b/app/models/complaint_reason.rb index 9a94b7005..b9ccaac1c 100644 --- a/app/models/complaint_reason.rb +++ b/app/models/complaint_reason.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: complaint_reasons diff --git a/app/models/concerns/complainable.rb b/app/models/concerns/complainable.rb index 52fe06422..fc26fe3ee 100644 --- a/app/models/concerns/complainable.rb +++ b/app/models/concerns/complainable.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Complainable extend ActiveSupport::Concern diff --git a/app/models/concerns/downloadable.rb b/app/models/concerns/downloadable.rb index b813ac837..bc9e35b8b 100644 --- a/app/models/concerns/downloadable.rb +++ b/app/models/concerns/downloadable.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Downloadable extend ActiveSupport::Concern diff --git a/app/models/concerns/followable.rb b/app/models/concerns/followable.rb index d24840009..39c037ace 100644 --- a/app/models/concerns/followable.rb +++ b/app/models/concerns/followable.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Followable extend ActiveSupport::Concern diff --git a/app/models/concerns/highlights.rb b/app/models/concerns/highlights.rb index bb336eaf9..752bffcb7 100644 --- a/app/models/concerns/highlights.rb +++ b/app/models/concerns/highlights.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Highlights extend ActiveSupport::Concern diff --git a/app/models/concerns/metadatable.rb b/app/models/concerns/metadatable.rb index 9ec32689c..688c5feab 100644 --- a/app/models/concerns/metadatable.rb +++ b/app/models/concerns/metadatable.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + ## Metadatable concern for models which have metadata # This concern will include some methods to handle @metadata attr of application models module Metadatable diff --git a/app/models/concerns/publisher.rb b/app/models/concerns/publisher.rb index 80d91408a..4a52da21e 100644 --- a/app/models/concerns/publisher.rb +++ b/app/models/concerns/publisher.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Publisher extend ActiveSupport::Concern diff --git a/app/models/concerns/reputationable.rb b/app/models/concerns/reputationable.rb index f452af019..7df113a0d 100644 --- a/app/models/concerns/reputationable.rb +++ b/app/models/concerns/reputationable.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Reputationable extend ActiveSupport::Concern diff --git a/app/models/concerns/reviewable.rb b/app/models/concerns/reviewable.rb index 27875b925..7f76b4603 100644 --- a/app/models/concerns/reviewable.rb +++ b/app/models/concerns/reviewable.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Reviewable extend ActiveSupport::Concern diff --git a/app/models/concerns/scoreable.rb b/app/models/concerns/scoreable.rb index 0e101ecdb..9e9ca9e39 100644 --- a/app/models/concerns/scoreable.rb +++ b/app/models/concerns/scoreable.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Scoreable extend ActiveSupport::Concern diff --git a/app/models/concerns/sociable.rb b/app/models/concerns/sociable.rb index 2bc9fcb05..e199ac7bc 100644 --- a/app/models/concerns/sociable.rb +++ b/app/models/concerns/sociable.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Sociable extend ActiveSupport::Concern diff --git a/app/models/concerns/stageable.rb b/app/models/concerns/stageable.rb index fa6329663..f6acd144a 100644 --- a/app/models/concerns/stageable.rb +++ b/app/models/concerns/stageable.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Stageable extend ActiveSupport::Concern diff --git a/app/models/concerns/stateful.rb b/app/models/concerns/stateful.rb index 7ca2f0747..ef79f6b2e 100644 --- a/app/models/concerns/stateful.rb +++ b/app/models/concerns/stateful.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Stateful extend ActiveSupport::Concern diff --git a/app/models/concerns/subjectable.rb b/app/models/concerns/subjectable.rb index 07a49f72a..c18c23290 100644 --- a/app/models/concerns/subjectable.rb +++ b/app/models/concerns/subjectable.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Subjectable extend ActiveSupport::Concern diff --git a/app/models/concerns/taggable.rb b/app/models/concerns/taggable.rb index bf62302ea..10d166804 100644 --- a/app/models/concerns/taggable.rb +++ b/app/models/concerns/taggable.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Taggable extend ActiveSupport::Concern diff --git a/app/models/concerns/tagger.rb b/app/models/concerns/tagger.rb index 06798e532..3127a0673 100644 --- a/app/models/concerns/tagger.rb +++ b/app/models/concerns/tagger.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Tagger extend ActiveSupport::Concern diff --git a/app/models/concerns/thumbnailable.rb b/app/models/concerns/thumbnailable.rb index dae374fa5..746079c56 100644 --- a/app/models/concerns/thumbnailable.rb +++ b/app/models/concerns/thumbnailable.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Thumbnailable extend ActiveSupport::Concern diff --git a/app/models/concerns/trackable.rb b/app/models/concerns/trackable.rb index 44ba3eee9..44289aee7 100644 --- a/app/models/concerns/trackable.rb +++ b/app/models/concerns/trackable.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Trackable extend ActiveSupport::Concern include PublicActivity::Common diff --git a/app/models/contact.rb b/app/models/contact.rb index 4d63e8192..298bab6b2 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: contacts diff --git a/app/models/download.rb b/app/models/download.rb index 8b5dae1ad..7f7d8d8bc 100644 --- a/app/models/download.rb +++ b/app/models/download.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: downloads diff --git a/app/models/educational_stage.rb b/app/models/educational_stage.rb index 52a178be7..0f9068523 100644 --- a/app/models/educational_stage.rb +++ b/app/models/educational_stage.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class EducationalStage < ApplicationRecord has_many :stage_relations validates_presence_of :name diff --git a/app/models/follow.rb b/app/models/follow.rb index 602fb95dc..f6236a43e 100644 --- a/app/models/follow.rb +++ b/app/models/follow.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: follows diff --git a/app/models/institution.rb b/app/models/institution.rb index cd6d6909f..2be4bf24d 100644 --- a/app/models/institution.rb +++ b/app/models/institution.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: institutions diff --git a/app/models/language.rb b/app/models/language.rb index 4b91ae32e..6913d1d36 100644 --- a/app/models/language.rb +++ b/app/models/language.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: languages diff --git a/app/models/learning_object.rb b/app/models/learning_object.rb index 1b43fe470..2652f556a 100644 --- a/app/models/learning_object.rb +++ b/app/models/learning_object.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: learning_objects diff --git a/app/models/learning_object/attachment.rb b/app/models/learning_object/attachment.rb index 532fb009e..dae5e2426 100644 --- a/app/models/learning_object/attachment.rb +++ b/app/models/learning_object/attachment.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: learning_object_attachments diff --git a/app/models/license.rb b/app/models/license.rb index fd0060301..2044fbec2 100644 --- a/app/models/license.rb +++ b/app/models/license.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class License < ApplicationRecord validates :name, presence: true end diff --git a/app/models/like.rb b/app/models/like.rb index 9b57efdd6..8cd755c0c 100644 --- a/app/models/like.rb +++ b/app/models/like.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: likes diff --git a/app/models/mime_type.rb b/app/models/mime_type.rb index 6de9f9040..8b52ee5c3 100644 --- a/app/models/mime_type.rb +++ b/app/models/mime_type.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: mime_types diff --git a/app/models/object_type.rb b/app/models/object_type.rb index e652def2c..ba466c126 100644 --- a/app/models/object_type.rb +++ b/app/models/object_type.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ObjectType < ApplicationRecord has_many :learning_objects has_and_belongs_to_many :mime_types diff --git a/app/models/package.rb b/app/models/package.rb index 3586b5012..3acede537 100644 --- a/app/models/package.rb +++ b/app/models/package.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: packages diff --git a/app/models/package_item.rb b/app/models/package_item.rb index 30952f09b..b75f2ad6b 100644 --- a/app/models/package_item.rb +++ b/app/models/package_item.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: package_items diff --git a/app/models/rate.rb b/app/models/rate.rb index 32e0eb83c..52f4af694 100644 --- a/app/models/rate.rb +++ b/app/models/rate.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: rates diff --git a/app/models/rating.rb b/app/models/rating.rb index 20f4b8e17..076ab3f04 100644 --- a/app/models/rating.rb +++ b/app/models/rating.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: ratings diff --git a/app/models/review.rb b/app/models/review.rb index 8e21690ae..ee8b9796c 100644 --- a/app/models/review.rb +++ b/app/models/review.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: reviews diff --git a/app/models/review_rating.rb b/app/models/review_rating.rb index 223d58ba5..cec331ae5 100644 --- a/app/models/review_rating.rb +++ b/app/models/review_rating.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: review_ratings diff --git a/app/models/role.rb b/app/models/role.rb index cfca39dab..0ae8eebe3 100644 --- a/app/models/role.rb +++ b/app/models/role.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: roles diff --git a/app/models/score.rb b/app/models/score.rb index 64a3340a7..7450e22de 100644 --- a/app/models/score.rb +++ b/app/models/score.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: scores diff --git a/app/models/score_user_category.rb b/app/models/score_user_category.rb index 29eb10b19..1909b8691 100644 --- a/app/models/score_user_category.rb +++ b/app/models/score_user_category.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: score_user_categories diff --git a/app/models/search.rb b/app/models/search.rb index cb88cb4b1..c30afe65b 100644 --- a/app/models/search.rb +++ b/app/models/search.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class Search include ActiveModel::Model attr_accessor :page, :results_per_page, :order, :query, :search_class, :tags, :subjects, :educational_stages, :object_types diff --git a/app/models/share.rb b/app/models/share.rb index c9f92a8d8..f8b074178 100644 --- a/app/models/share.rb +++ b/app/models/share.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: shares diff --git a/app/models/stage_relation.rb b/app/models/stage_relation.rb index f729c6c2d..4fbe7bd5c 100644 --- a/app/models/stage_relation.rb +++ b/app/models/stage_relation.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class StageRelation < ApplicationRecord belongs_to :educational_stage belongs_to :stageable, polymorphic: true diff --git a/app/models/subject.rb b/app/models/subject.rb index c6327c69b..f43502476 100644 --- a/app/models/subject.rb +++ b/app/models/subject.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class Subject < ApplicationRecord has_many :subject_relations validates_presence_of :name diff --git a/app/models/subject_relation.rb b/app/models/subject_relation.rb index fe1f206c2..e2770f9da 100644 --- a/app/models/subject_relation.rb +++ b/app/models/subject_relation.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class SubjectRelation < ApplicationRecord belongs_to :subject belongs_to :subjectable, polymorphic: true diff --git a/app/models/suggestion.rb b/app/models/suggestion.rb index a528f4326..3ac84cc85 100644 --- a/app/models/suggestion.rb +++ b/app/models/suggestion.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: suggestions diff --git a/app/models/tag.rb b/app/models/tag.rb index d2745a06e..34a3f28c6 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class Tag < ApplicationRecord has_many :taggings validates_presence_of :name diff --git a/app/models/tagging.rb b/app/models/tagging.rb index e42b96b01..3b0d9d40c 100644 --- a/app/models/tagging.rb +++ b/app/models/tagging.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class Tagging < ApplicationRecord # *current_user* tag *taggable* with *tag* include Trackable diff --git a/app/models/user.rb b/app/models/user.rb index 1399f3b6c..f913694f7 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: users diff --git a/app/models/user_category.rb b/app/models/user_category.rb index cef5ad9cd..c923e90d2 100644 --- a/app/models/user_category.rb +++ b/app/models/user_category.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: user_categories diff --git a/app/models/view.rb b/app/models/view.rb index c79ef6273..2e2d995e5 100644 --- a/app/models/view.rb +++ b/app/models/view.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: views diff --git a/app/policies/activity_policy.rb b/app/policies/activity_policy.rb index bdb94fe88..1592b3f39 100644 --- a/app/policies/activity_policy.rb +++ b/app/policies/activity_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ActivityPolicy < ApplicationPolicy class Scope < Scope include ActivitiesFilterService diff --git a/app/policies/application_policy.rb b/app/policies/application_policy.rb index 8445518d3..84a418d6f 100644 --- a/app/policies/application_policy.rb +++ b/app/policies/application_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ApplicationPolicy attr_reader :user, :record diff --git a/app/policies/bookmark_policy.rb b/app/policies/bookmark_policy.rb index 9e88edd4e..fca92306e 100644 --- a/app/policies/bookmark_policy.rb +++ b/app/policies/bookmark_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class BookmarkPolicy < ApplicationPolicy def index? diff --git a/app/policies/collection_policy.rb b/app/policies/collection_policy.rb index 972140851..de0e62bc7 100644 --- a/app/policies/collection_policy.rb +++ b/app/policies/collection_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CollectionPolicy < ApplicationPolicy include SociablePolicy include FollowablePolicy diff --git a/app/policies/complaint_policy.rb b/app/policies/complaint_policy.rb index 81482c381..f3edcece4 100644 --- a/app/policies/complaint_policy.rb +++ b/app/policies/complaint_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ComplaintPolicy < ApplicationPolicy def create? diff --git a/app/policies/followable_policy.rb b/app/policies/followable_policy.rb index c3b5870e6..d094202e3 100644 --- a/app/policies/followable_policy.rb +++ b/app/policies/followable_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module FollowablePolicy def follow? diff --git a/app/policies/institution_policy.rb b/app/policies/institution_policy.rb index 185b3eff6..7728b76a5 100644 --- a/app/policies/institution_policy.rb +++ b/app/policies/institution_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class InstitutionPolicy < ApplicationPolicy def create? record if user_can_moderate? diff --git a/app/policies/language_policy.rb b/app/policies/language_policy.rb index cae7a10e0..503655751 100644 --- a/app/policies/language_policy.rb +++ b/app/policies/language_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class LanguagePolicy < ApplicationPolicy def index? record diff --git a/app/policies/learning_object_policy.rb b/app/policies/learning_object_policy.rb index b223bcaaf..8450227a3 100644 --- a/app/policies/learning_object_policy.rb +++ b/app/policies/learning_object_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class LearningObjectPolicy < ApplicationPolicy include SociablePolicy include ReportablePolicy diff --git a/app/policies/license_policy.rb b/app/policies/license_policy.rb index de80c911f..53bb36df7 100644 --- a/app/policies/license_policy.rb +++ b/app/policies/license_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class LicensePolicy < ApplicationPolicy def index? record diff --git a/app/policies/mime_type_policy.rb b/app/policies/mime_type_policy.rb index 1ae252514..5501f5968 100644 --- a/app/policies/mime_type_policy.rb +++ b/app/policies/mime_type_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class MimeTypePolicy < ApplicationPolicy def index? record diff --git a/app/policies/object_type_policy.rb b/app/policies/object_type_policy.rb index 22633e549..d8eb36562 100644 --- a/app/policies/object_type_policy.rb +++ b/app/policies/object_type_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ObjectTypePolicy < ApplicationPolicy def index? record diff --git a/app/policies/publisher_policy.rb b/app/policies/publisher_policy.rb index 24158d587..41e3bafd7 100644 --- a/app/policies/publisher_policy.rb +++ b/app/policies/publisher_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module PublisherPolicy class Scope < ApplicationPolicy::Scope diff --git a/app/policies/rating_policy.rb b/app/policies/rating_policy.rb index bd3c49072..57faf5627 100644 --- a/app/policies/rating_policy.rb +++ b/app/policies/rating_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class RatingPolicy < ApplicationPolicy def index? diff --git a/app/policies/reportable_policy.rb b/app/policies/reportable_policy.rb index e7a36a5d7..635abffdc 100644 --- a/app/policies/reportable_policy.rb +++ b/app/policies/reportable_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module ReportablePolicy def report_object? diff --git a/app/policies/review_policy.rb b/app/policies/review_policy.rb index 41fd8967b..2db480345 100644 --- a/app/policies/review_policy.rb +++ b/app/policies/review_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ReviewPolicy < ApplicationPolicy def create? diff --git a/app/policies/role_policy.rb b/app/policies/role_policy.rb index d6fcd4b35..7c25ad266 100644 --- a/app/policies/role_policy.rb +++ b/app/policies/role_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class RolePolicy < ApplicationPolicy def index? record diff --git a/app/policies/search_policy.rb b/app/policies/search_policy.rb index 7a3d58086..2708e76e8 100644 --- a/app/policies/search_policy.rb +++ b/app/policies/search_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class SearchPolicy < ApplicationPolicy class Scope < Scope def resolve diff --git a/app/policies/sociable_policy.rb b/app/policies/sociable_policy.rb index 392f37939..8be1756ce 100644 --- a/app/policies/sociable_policy.rb +++ b/app/policies/sociable_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module SociablePolicy def like? diff --git a/app/policies/stageable_policy.rb b/app/policies/stageable_policy.rb index 62618be71..53c4519fa 100644 --- a/app/policies/stageable_policy.rb +++ b/app/policies/stageable_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module StageablePolicy def add_stages? diff --git a/app/policies/subjectable_policy.rb b/app/policies/subjectable_policy.rb index 4133417c4..60ceb7b0e 100644 --- a/app/policies/subjectable_policy.rb +++ b/app/policies/subjectable_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module SubjectablePolicy def subjecting? diff --git a/app/policies/taggable_policy.rb b/app/policies/taggable_policy.rb index 6df900f2b..0406a631a 100644 --- a/app/policies/taggable_policy.rb +++ b/app/policies/taggable_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module TaggablePolicy def tagging? diff --git a/app/policies/user_policy.rb b/app/policies/user_policy.rb index 1deecdaa6..66dc67288 100644 --- a/app/policies/user_policy.rb +++ b/app/policies/user_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class UserPolicy < ApplicationPolicy include FollowablePolicy include PublisherPolicy diff --git a/app/policies/welcome_policy.rb b/app/policies/welcome_policy.rb index 5062601c3..aa4b93c6e 100644 --- a/app/policies/welcome_policy.rb +++ b/app/policies/welcome_policy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class WelcomePolicy < ApplicationPolicy class Scope < Scope def resolve diff --git a/app/serializers/array_serializer.rb b/app/serializers/array_serializer.rb index 1cd374781..8b4866742 100644 --- a/app/serializers/array_serializer.rb +++ b/app/serializers/array_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ArraySerializer def self.dump(array) array.to_json diff --git a/app/serializers/collection_item_serializer.rb b/app/serializers/collection_item_serializer.rb index 5bb19b6e9..d7c981589 100644 --- a/app/serializers/collection_item_serializer.rb +++ b/app/serializers/collection_item_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CollectionItemSerializer < ActiveModel::Serializer cache key: 'collection_item', expires_in: 24.hours diff --git a/app/serializers/collection_min_serializer.rb b/app/serializers/collection_min_serializer.rb index ed64ea51b..c000ee025 100644 --- a/app/serializers/collection_min_serializer.rb +++ b/app/serializers/collection_min_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CollectionMinSerializer < ActiveModel::Serializer cache key: 'collection', expires_in: 4.hours, except: [:likes_count, :liked, :reviewed, :complained] diff --git a/app/serializers/collection_serializer.rb b/app/serializers/collection_serializer.rb index f945282c2..0f4a4514c 100644 --- a/app/serializers/collection_serializer.rb +++ b/app/serializers/collection_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CollectionSerializer < ActiveModel::Serializer cache key: 'collection', expires_in: 4.hours, except: [:likes_count, :liked, :reviewed, :complained, :followed] diff --git a/app/serializers/contact_serializer.rb b/app/serializers/contact_serializer.rb index b3eca6681..7ec38ee69 100644 --- a/app/serializers/contact_serializer.rb +++ b/app/serializers/contact_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ContactSerializer < ActiveModel::Serializer cache key: 'contact', expires_in: 24.hours attributes :id, :name, :email, :message diff --git a/app/serializers/follow_serializer.rb b/app/serializers/follow_serializer.rb index ba5ee0682..013f10b1f 100644 --- a/app/serializers/follow_serializer.rb +++ b/app/serializers/follow_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class FollowSerializer < ActiveModel::Serializer cache key: 'follow', expires_in: 24.hours diff --git a/app/serializers/institution_serializer.rb b/app/serializers/institution_serializer.rb index 8b7d169d6..a66210527 100644 --- a/app/serializers/institution_serializer.rb +++ b/app/serializers/institution_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class InstitutionSerializer < ActiveModel::Serializer cache key: 'institution', expires_in: 4.hours attributes :id, :name, :description, :address, :city, :country, :avatar, :created_at, :updated_at diff --git a/app/serializers/language_serializer.rb b/app/serializers/language_serializer.rb index 4160a8e0d..a2d004d69 100644 --- a/app/serializers/language_serializer.rb +++ b/app/serializers/language_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class LanguageSerializer < ActiveModel::Serializer cache key: 'language', expires_in: 24.hours attributes :id, :name, :code diff --git a/app/serializers/learning_object/attachment_serializer.rb b/app/serializers/learning_object/attachment_serializer.rb index 8e6cda998..63c078b23 100644 --- a/app/serializers/learning_object/attachment_serializer.rb +++ b/app/serializers/learning_object/attachment_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class LearningObject::AttachmentSerializer < ActiveModel::Serializer cache key: 'attachment', expires_in: 24.hours attributes :id, :name, :retrieve_link, :description, :format, :mime_type, :size, :bundle_name, :learning_object_id, :created_at, :updated_at, :id_dspace, :thumbnail, :cache_link diff --git a/app/serializers/learning_object_obaa_serializer.rb b/app/serializers/learning_object_obaa_serializer.rb index 424957d1a..a1d9d8d24 100644 --- a/app/serializers/learning_object_obaa_serializer.rb +++ b/app/serializers/learning_object_obaa_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class LearningObjectObaaSerializer < ActiveModel::Serializer cache key: 'learning_object_obaa', expires_in: 4.hours # "educational": { diff --git a/app/serializers/learning_object_serializer.rb b/app/serializers/learning_object_serializer.rb index dbf2316da..f8754b337 100644 --- a/app/serializers/learning_object_serializer.rb +++ b/app/serializers/learning_object_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class LearningObjectSerializer < ActiveModel::Serializer cache key: 'learning_object', expires_in: 4.hours, except: [:likes_count, :liked, :reviewed, :complained] diff --git a/app/serializers/license_serializer.rb b/app/serializers/license_serializer.rb index 8e7e06300..ccd722914 100644 --- a/app/serializers/license_serializer.rb +++ b/app/serializers/license_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class LicenseSerializer < ActiveModel::Serializer cache key: 'license', expires_in: 24.hours attributes :id, :name, :description, :url, :image_url diff --git a/app/serializers/mime_type_serializer.rb b/app/serializers/mime_type_serializer.rb index a82cd49fd..85f695891 100644 --- a/app/serializers/mime_type_serializer.rb +++ b/app/serializers/mime_type_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class MimeTypeSerializer < ActiveModel::Serializer cache key: 'mime_type', expires_in: 24.hours attributes :id, :extension, :mime_type diff --git a/app/serializers/object_type_serializer.rb b/app/serializers/object_type_serializer.rb index 91561d0a2..4264a6ac4 100644 --- a/app/serializers/object_type_serializer.rb +++ b/app/serializers/object_type_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ObjectTypeSerializer < ActiveModel::Serializer cache key: 'object_type', expires_in: 24.hours attributes :id, :name diff --git a/app/serializers/paper_trail/version_serializer.rb b/app/serializers/paper_trail/version_serializer.rb index 4bde8cb97..7b397a68d 100644 --- a/app/serializers/paper_trail/version_serializer.rb +++ b/app/serializers/paper_trail/version_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class PaperTrail::VersionSerializer < ActiveModel::Serializer cache key: 'papertrail_version', expires_in: 24.hours attributes :id, :item, :event, :whodunnit, :created_at, :object diff --git a/app/serializers/public_activity/activity_serializer.rb b/app/serializers/public_activity/activity_serializer.rb index 107b52983..e1c4a730a 100644 --- a/app/serializers/public_activity/activity_serializer.rb +++ b/app/serializers/public_activity/activity_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class PublicActivity::ActivitySerializer < ActiveModel::Serializer def activity object.key diff --git a/app/serializers/rate_serializer.rb b/app/serializers/rate_serializer.rb index db65de638..1c645dfe7 100644 --- a/app/serializers/rate_serializer.rb +++ b/app/serializers/rate_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class RateSerializer < ActiveModel::Serializer cache key: 'rate', expires_in: 24.hours attributes :id, :approves, :user, :review, :created_at, :updated_at diff --git a/app/serializers/review_rating_serializer.rb b/app/serializers/review_rating_serializer.rb index 033bf6aed..a54f11c4a 100644 --- a/app/serializers/review_rating_serializer.rb +++ b/app/serializers/review_rating_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ReviewRatingSerializer < ActiveModel::Serializer cache key: 'review_rating', expires_in: 24.hours diff --git a/app/serializers/review_serializer.rb b/app/serializers/review_serializer.rb index 22ecf92e7..fc6322b7a 100644 --- a/app/serializers/review_serializer.rb +++ b/app/serializers/review_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ReviewSerializer < ActiveModel::Serializer cache key: 'review', expires_in: 24.hours diff --git a/app/serializers/role_serializer.rb b/app/serializers/role_serializer.rb index e33a40eb4..238666f9c 100644 --- a/app/serializers/role_serializer.rb +++ b/app/serializers/role_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class RoleSerializer < ActiveModel::Serializer cache key: 'role', expires_in: 24.hours attributes :id, :name, :description diff --git a/app/serializers/score_serializer.rb b/app/serializers/score_serializer.rb index 5b4383c53..ff87b2d9d 100644 --- a/app/serializers/score_serializer.rb +++ b/app/serializers/score_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ScoreSerializer < ActiveModel::Serializer cache key: 'score', expires_in: 24.hours attributes :id, :name, :created_at, :updated_at, :code, :weight, :active, :score_type diff --git a/app/serializers/suggestion_serializer.rb b/app/serializers/suggestion_serializer.rb index d362e9188..43a08a97e 100644 --- a/app/serializers/suggestion_serializer.rb +++ b/app/serializers/suggestion_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class SuggestionSerializer < ActiveModel::Serializer attributes :id, :name, :link, :description, :status end diff --git a/app/serializers/tag_serializer.rb b/app/serializers/tag_serializer.rb index 705ceb0e0..2aa280d08 100644 --- a/app/serializers/tag_serializer.rb +++ b/app/serializers/tag_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class TagSerializer < ActiveModel::Serializer cache key: 'tag', expires_in: 24.hours attributes :id, :name, :created_at, :updated_at diff --git a/app/serializers/user_devise_serializer.rb b/app/serializers/user_devise_serializer.rb index c2547fc44..ba5c76afa 100644 --- a/app/serializers/user_devise_serializer.rb +++ b/app/serializers/user_devise_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class UserDeviseSerializer < ActiveModel::Serializer def avatar_file_name diff --git a/app/serializers/user_serializer.rb b/app/serializers/user_serializer.rb index 8a840883f..aeda4fdd9 100644 --- a/app/serializers/user_serializer.rb +++ b/app/serializers/user_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class UserSerializer < ActiveModel::Serializer cache key: 'user', expires_in: 4.hours, except: [ :complained, :followed ] diff --git a/app/services/activities_filter_service.rb b/app/services/activities_filter_service.rb index b12585b5a..99c8b54ad 100644 --- a/app/services/activities_filter_service.rb +++ b/app/services/activities_filter_service.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module ActivitiesFilterService def activities_filtered diff --git a/app/services/application_creation_service.rb b/app/services/application_creation_service.rb index efec80480..7d74da17a 100644 --- a/app/services/application_creation_service.rb +++ b/app/services/application_creation_service.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ApplicationCreationService def initialize(app_id_generate_service) diff --git a/app/services/applications/app_id_generate_service.rb b/app/services/applications/app_id_generate_service.rb index 8b3fd08c8..62cf3de4c 100644 --- a/app/services/applications/app_id_generate_service.rb +++ b/app/services/applications/app_id_generate_service.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'securerandom' module Applications diff --git a/app/services/attachment_cache_service.rb b/app/services/attachment_cache_service.rb index cbd73a81a..50c54f794 100644 --- a/app/services/attachment_cache_service.rb +++ b/app/services/attachment_cache_service.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AttachmentCacheService def initialize(attachment) @attachment = attachment diff --git a/app/services/dspace/attachment_mapper.rb b/app/services/dspace/attachment_mapper.rb index 36995ccd5..8b95413df 100644 --- a/app/services/dspace/attachment_mapper.rb +++ b/app/services/dspace/attachment_mapper.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class Dspace::AttachmentMapper ##Map Dspace::Bitstream to Attachment model compatible hash diff --git a/app/services/dspace/learning_object_importer.rb b/app/services/dspace/learning_object_importer.rb index d57517435..103119661 100644 --- a/app/services/dspace/learning_object_importer.rb +++ b/app/services/dspace/learning_object_importer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class Dspace::LearningObjectImporter def initialize(items) diff --git a/app/services/dspace_service.rb b/app/services/dspace_service.rb index 9943e36a1..38da88c9a 100644 --- a/app/services/dspace_service.rb +++ b/app/services/dspace_service.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'dspace' class DspaceService diff --git a/app/services/feedback_service.rb b/app/services/feedback_service.rb index 8e3a21612..14ad06f36 100644 --- a/app/services/feedback_service.rb +++ b/app/services/feedback_service.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + ## # The Feedback service abstract two actions: report_bug, that delegates behavior for a BugReporter service; and send_feedback, that stores a user review of the system. class FeedbackService diff --git a/app/services/gitlab_bugreporter_service.rb b/app/services/gitlab_bugreporter_service.rb index 43200a0e4..52b4a0e5c 100644 --- a/app/services/gitlab_bugreporter_service.rb +++ b/app/services/gitlab_bugreporter_service.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + ## # This service represents the Gitlab Bug Reporter # The client can report a bug, that will be created an issue for PortalMEC project. diff --git a/app/services/institution_importer.rb b/app/services/institution_importer.rb index d10efddd9..e83588ab9 100644 --- a/app/services/institution_importer.rb +++ b/app/services/institution_importer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class InstitutionImporter attr_accessor :items diff --git a/app/services/learning_object_publisher.rb b/app/services/learning_object_publisher.rb index c646d533d..5b4554333 100644 --- a/app/services/learning_object_publisher.rb +++ b/app/services/learning_object_publisher.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'dspace' class LearningObjectPublisher diff --git a/app/services/package_service.rb b/app/services/package_service.rb index 12928d0ad..94032fe6d 100644 --- a/app/services/package_service.rb +++ b/app/services/package_service.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module PackageService def self.link(objects) Link.new(objects).link diff --git a/app/services/package_service/generator.rb b/app/services/package_service/generator.rb index 330bc58c7..adfdaa29a 100644 --- a/app/services/package_service/generator.rb +++ b/app/services/package_service/generator.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module PackageService class Generator diff --git a/app/services/package_service/link.rb b/app/services/package_service/link.rb index 433aeab02..9ad34857a 100644 --- a/app/services/package_service/link.rb +++ b/app/services/package_service/link.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module PackageService class Link def initialize(objects) diff --git a/app/services/reviews/create_review_service.rb b/app/services/reviews/create_review_service.rb index 3e4c5ab72..3c21f16fd 100644 --- a/app/services/reviews/create_review_service.rb +++ b/app/services/reviews/create_review_service.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class Reviews::CreateReviewService def execute(review, rates = []) diff --git a/app/services/safe_object_type_destroy_service.rb b/app/services/safe_object_type_destroy_service.rb index ab0bb89a4..e73eefe28 100644 --- a/app/services/safe_object_type_destroy_service.rb +++ b/app/services/safe_object_type_destroy_service.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class SafeObjectTypeDestroyService def self.execute(object_type) diff --git a/app/services/sanitization_service.rb b/app/services/sanitization_service.rb index abb320069..69504f3c5 100644 --- a/app/services/sanitization_service.rb +++ b/app/services/sanitization_service.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module SanitizationService def self.filename(name) name.strip! diff --git a/app/services/score_calculator_service.rb b/app/services/score_calculator_service.rb index 7cfe47797..7f1391c46 100644 --- a/app/services/score_calculator_service.rb +++ b/app/services/score_calculator_service.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ScoreCalculatorService def initialize(object) @object = object diff --git a/app/services/search_service.rb b/app/services/search_service.rb index f66d9a2ba..3dfa8870f 100644 --- a/app/services/search_service.rb +++ b/app/services/search_service.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module SearchService SEARCH_CLASSES = %w(LearningObject Collection User).freeze diff --git a/app/services/search_service/collection.rb b/app/services/search_service/collection.rb index a66407af6..c312d01a9 100644 --- a/app/services/search_service/collection.rb +++ b/app/services/search_service/collection.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module SearchService class Collection < Model def search diff --git a/app/services/search_service/learning_object.rb b/app/services/search_service/learning_object.rb index 6ae89d3ed..a3700cfb6 100644 --- a/app/services/search_service/learning_object.rb +++ b/app/services/search_service/learning_object.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module SearchService class LearningObject < Model def search diff --git a/app/services/search_service/model.rb b/app/services/search_service/model.rb index 20ca0ad58..cd2babadf 100644 --- a/app/services/search_service/model.rb +++ b/app/services/search_service/model.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module SearchService class Model def initialize(search, user) diff --git a/app/services/search_service/user.rb b/app/services/search_service/user.rb index 03898bdc3..9c56994ca 100644 --- a/app/services/search_service/user.rb +++ b/app/services/search_service/user.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module SearchService class User < Model def search diff --git a/app/services/tags_importer.rb b/app/services/tags_importer.rb index 49c417919..f6e821def 100644 --- a/app/services/tags_importer.rb +++ b/app/services/tags_importer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class TagsImporter attr_accessor :items diff --git a/app/services/thumbnail_service.rb b/app/services/thumbnail_service.rb index 4c919aa5b..c9ee20696 100644 --- a/app/services/thumbnail_service.rb +++ b/app/services/thumbnail_service.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ThumbnailService def initialize(strategies = []) diff --git a/app/workers/attachment_cache_worker.rb b/app/workers/attachment_cache_worker.rb index 5e8bb82d8..5333d5acc 100644 --- a/app/workers/attachment_cache_worker.rb +++ b/app/workers/attachment_cache_worker.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AttachmentCacheWorker include Sidekiq::Worker diff --git a/app/workers/bitstream_mime_worker.rb b/app/workers/bitstream_mime_worker.rb index 3daaf4fb7..7c50b8092 100644 --- a/app/workers/bitstream_mime_worker.rb +++ b/app/workers/bitstream_mime_worker.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class BitstreamMimeWorker include Sidekiq::Worker diff --git a/app/workers/convert_video_worker.rb b/app/workers/convert_video_worker.rb index 6dc44a590..ca21419e0 100644 --- a/app/workers/convert_video_worker.rb +++ b/app/workers/convert_video_worker.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ConvertVideoWorker include Sidekiq::Worker diff --git a/app/workers/delete_bitstream_worker.rb b/app/workers/delete_bitstream_worker.rb index b19d59654..dac885961 100644 --- a/app/workers/delete_bitstream_worker.rb +++ b/app/workers/delete_bitstream_worker.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require_dependency 'dspace' class DeleteBitstreamWorker diff --git a/app/workers/dspace_upload_worker.rb b/app/workers/dspace_upload_worker.rb index e7f64b155..7913bb6b1 100644 --- a/app/workers/dspace_upload_worker.rb +++ b/app/workers/dspace_upload_worker.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require_dependency 'dspace' class DspaceUploadWorker diff --git a/app/workers/package_worker.rb b/app/workers/package_worker.rb index 427166f47..20a2fd34b 100644 --- a/app/workers/package_worker.rb +++ b/app/workers/package_worker.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require_dependency 'dspace' require 'rails' class PackageWorker diff --git a/app/workers/review_average_calculator_worker.rb b/app/workers/review_average_calculator_worker.rb index e86b11536..3c5c4c225 100644 --- a/app/workers/review_average_calculator_worker.rb +++ b/app/workers/review_average_calculator_worker.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ReviewAverageCalculatorWorker include Sidekiq::Worker sidekiq_options queue: :review diff --git a/app/workers/score_calculator_worker.rb b/app/workers/score_calculator_worker.rb index 50aaf6935..98dd83152 100644 --- a/app/workers/score_calculator_worker.rb +++ b/app/workers/score_calculator_worker.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ScoreCalculatorWorker include Sidekiq::Worker sidekiq_options queue: :score diff --git a/app/workers/thumbnail_generate_worker.rb b/app/workers/thumbnail_generate_worker.rb index ea06727e5..331ce57d1 100644 --- a/app/workers/thumbnail_generate_worker.rb +++ b/app/workers/thumbnail_generate_worker.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ThumbnailGenerateWorker include Sidekiq::Worker diff --git a/config.ru b/config.ru index bd83b2541..534271150 100644 --- a/config.ru +++ b/config.ru @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) diff --git a/config/application.rb b/config/application.rb index 0289ffbb6..a60586938 100644 --- a/config/application.rb +++ b/config/application.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require_relative 'boot' require 'rails' diff --git a/config/boot.rb b/config/boot.rb index 30f5120df..f56eeb924 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/config/cable.yml b/config/cable.yml index 0bbde6f74..f6556a143 100644 --- a/config/cable.yml +++ b/config/cable.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + development: adapter: async diff --git a/config/deploy.rb b/config/deploy.rb index 7322170f5..b6cfa25a2 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'mina/bundler' require 'mina/rails' require 'mina/git' diff --git a/config/docker/database.yml b/config/docker/database.yml index 9698fdbf7..5851a95c0 100644 --- a/config/docker/database.yml +++ b/config/docker/database.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + default: &defaults adapter: postgresql encoding: unicode diff --git a/config/docker/sidekiq.yml b/config/docker/sidekiq.yml index 9b3e3c8ec..44d190958 100644 --- a/config/docker/sidekiq.yml +++ b/config/docker/sidekiq.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # # IMPORTANT: # If you plan to run workers on different machines, use the full hostname, diff --git a/config/dspace.yml b/config/dspace.yml index c637885bc..1fb7991e6 100644 --- a/config/dspace.yml +++ b/config/dspace.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + development: host: mecdb3.c3sl.ufpr.br port: 8443 diff --git a/config/env_vars.sh b/config/env_vars.sh index bae8a9886..ee42a44d2 100644 --- a/config/env_vars.sh +++ b/config/env_vars.sh @@ -1,4 +1,23 @@ #!/bin/bash + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + export SECRET_TOKEN=$(rake secret) export SECRET_KEY_BASE=$(rake secret) diff --git a/config/environment.rb b/config/environment.rb index 426333bb4..41ac40809 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Load the Rails application. require_relative 'application' diff --git a/config/environments/development.rb b/config/environments/development.rb index 9a835b03c..692e9bd41 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + Rails.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 25fb84be8..b1be05235 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + Rails.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 360824697..8bf536813 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. diff --git a/config/feature.yml b/config/feature.yml index 96a072cd0..e38fdd0a1 100644 --- a/config/feature.yml +++ b/config/feature.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + development: features: allow_client_application: false diff --git a/config/initializers/active_record_belongs_to_required_by_default.rb b/config/initializers/active_record_belongs_to_required_by_default.rb index 6ee4b37e3..8451cbdfc 100644 --- a/config/initializers/active_record_belongs_to_required_by_default.rb +++ b/config/initializers/active_record_belongs_to_required_by_default.rb @@ -1 +1,20 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + Rails.application.config.active_record.belongs_to_required_by_default = true diff --git a/config/initializers/application_controller_renderer.rb b/config/initializers/application_controller_renderer.rb index 51639b67a..ee42e81bf 100644 --- a/config/initializers/application_controller_renderer.rb +++ b/config/initializers/application_controller_renderer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Be sure to restart your server when you modify this file. # ApplicationController.renderer.defaults.merge!( diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index ff2d2299a..e481b99d5 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Be sure to restart your server when you modify this file. # Version of your assets, change this if you want to expire all your assets. diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb index 59385cdf3..1a23a3e5c 100644 --- a/config/initializers/backtrace_silencers.rb +++ b/config/initializers/backtrace_silencers.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # 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/callback_terminator.rb b/config/initializers/callback_terminator.rb index de64962d2..15c47256e 100644 --- a/config/initializers/callback_terminator.rb +++ b/config/initializers/callback_terminator.rb @@ -1 +1,20 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + ActiveSupport.halt_callback_chains_on_return_false = false diff --git a/config/initializers/cookies_serializer.rb b/config/initializers/cookies_serializer.rb index 1389e86a3..ee47a2190 100644 --- a/config/initializers/cookies_serializer.rb +++ b/config/initializers/cookies_serializer.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Be sure to restart your server when you modify this file. # Specify a serializer for the signed and encrypted cookie jars. diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index 7a19e1847..cfc6ce62b 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Use this hook to configure devise mailer, warden hooks and so forth. # Many of these configuration options can be set straight in your model. Devise.setup do |config| diff --git a/config/initializers/devise_token_auth.rb b/config/initializers/devise_token_auth.rb index cbc318d55..c8458243e 100644 --- a/config/initializers/devise_token_auth.rb +++ b/config/initializers/devise_token_auth.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + DeviseTokenAuth.setup do |config| # By default the authorization headers will change after each request. The # client is responsible for keeping track of the changing tokens. Change diff --git a/config/initializers/eager_load.rb b/config/initializers/eager_load.rb index fdc103ee0..ef15c6e45 100644 --- a/config/initializers/eager_load.rb +++ b/config/initializers/eager_load.rb @@ -1 +1,20 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + Rails.application.eager_load! unless Rails.env.test? diff --git a/config/initializers/elasticsearch.rb b/config/initializers/elasticsearch.rb index e591a06b2..7f76e7fb5 100644 --- a/config/initializers/elasticsearch.rb +++ b/config/initializers/elasticsearch.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + Searchkick.client = Elasticsearch::Client.new( url: 'localhost:9200', diff --git a/config/initializers/feature.rb b/config/initializers/feature.rb index 7b7ca605f..f132f81a3 100644 --- a/config/initializers/feature.rb +++ b/config/initializers/feature.rb @@ -1 +1,20 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + Feature.set_repository Feature::Repository::YamlRepository.new("#{Rails.root}/config/feature.yml", Rails.env) \ No newline at end of file diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb index 4a994e1e7..577a8187d 100644 --- a/config/initializers/filter_parameter_logging.rb +++ b/config/initializers/filter_parameter_logging.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Be sure to restart your server when you modify this file. # Configure sensitive parameters which will be filtered from the log file. diff --git a/config/initializers/gitlab.rb b/config/initializers/gitlab.rb index 2d43fcef0..c6becf23f 100644 --- a/config/initializers/gitlab.rb +++ b/config/initializers/gitlab.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + Gitlab.configure do |config| config.endpoint = 'https://gitlab.c3sl.ufpr.br/api/v3' config.private_token = ENV['GITLAB_PORTALMEC_PRIVATE_TOKEN'] diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index ac033bf9d..4e5aba270 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb index dc1899682..2c2c531a7 100644 --- a/config/initializers/mime_types.rb +++ b/config/initializers/mime_types.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # 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/new_framework_defaults.rb b/config/initializers/new_framework_defaults.rb index 9c2499594..1202fa9d2 100644 --- a/config/initializers/new_framework_defaults.rb +++ b/config/initializers/new_framework_defaults.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Be sure to restart your server when you modify this file. # # This file contains migration options to ease your Rails 5.0 upgrade. diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb index 1ed6c505f..64f5e0105 100644 --- a/config/initializers/omniauth.rb +++ b/config/initializers/omniauth.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + Rails.application.config.middleware.use OmniAuth::Builder do provider :twitter, ENV['TWITTER_KEY'], ENV['TWITTER_SECRET'] provider :facebook, ENV['FACEBOOK_KEY'], ENV['FACEBOOK_SECRET'], secure_image_url: true diff --git a/config/initializers/paper_trail.rb b/config/initializers/paper_trail.rb index 442b5f789..a89d92112 100644 --- a/config/initializers/paper_trail.rb +++ b/config/initializers/paper_trail.rb @@ -1 +1,20 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + PaperTrail.config.track_associations = false \ No newline at end of file diff --git a/config/initializers/postgresql_database_tasks.rb b/config/initializers/postgresql_database_tasks.rb index 8883701bb..192d73e09 100644 --- a/config/initializers/postgresql_database_tasks.rb +++ b/config/initializers/postgresql_database_tasks.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module ActiveRecord module Tasks class PostgreSQLDatabaseTasks diff --git a/config/initializers/rack-attack.rb b/config/initializers/rack-attack.rb index 7310dbe4d..2b1b053be 100644 --- a/config/initializers/rack-attack.rb +++ b/config/initializers/rack-attack.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class Rack::Attack ### Configure Cache ### diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index 9c1c1695c..c7f59a442 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Be sure to restart your server when you modify this file. # Rails.application.config.session_store :cookie_store, key: '_portalmec_session' diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index 56cb1b72c..f6fd51257 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + url = ENV['REDIS_HOST'] if url.nil? diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb index bbfc3961b..3cec59d1f 100644 --- a/config/initializers/wrap_parameters.rb +++ b/config/initializers/wrap_parameters.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Be sure to restart your server when you modify this file. # This file contains settings for ActionController::ParamsWrapper which diff --git a/config/locales/activerecord.pt-BR.yml b/config/locales/activerecord.pt-BR.yml index 5113bb00e..434d30c8e 100644 --- a/config/locales/activerecord.pt-BR.yml +++ b/config/locales/activerecord.pt-BR.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # source (2016/11/25): https://raw.githubusercontent.com/svenfuchs/rails-i18n/master/rails/locale/pt-BR.yml pt-BR: activerecord: diff --git a/config/locales/devise.en.yml b/config/locales/devise.en.yml index 26a10f292..6089bf7b8 100644 --- a/config/locales/devise.en.yml +++ b/config/locales/devise.en.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Additional translations at https://github.com/plataformatec/devise/wiki/I18n en: diff --git a/config/locales/devise.pt-BR.yml b/config/locales/devise.pt-BR.yml index 0119d4400..cfe52c1c6 100644 --- a/config/locales/devise.pt-BR.yml +++ b/config/locales/devise.pt-BR.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Additional translations at https://github.com/plataformatec/devise/wiki/I18n # Utilize-o em 'config/locales/', com o nome de 'devise.pt-BR.yml'. diff --git a/config/locales/en.yml b/config/locales/en.yml index 065395716..66b4b0fc9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Files in the config/locales directory are used for internationalization # and are automatically loaded by Rails. If you want to use locales other # than English, add the necessary files in this directory. diff --git a/config/locales/pt-BR.yml b/config/locales/pt-BR.yml index 39a28047a..b58b7cafd 100644 --- a/config/locales/pt-BR.yml +++ b/config/locales/pt-BR.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + pt-BR: activerecord: models: diff --git a/config/puma.rb b/config/puma.rb index f4d68e83b..53f7ee7ad 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Puma can serve each request in a thread from an internal thread pool. # The `threads` method setting takes two numbers a minimum and maximum. # Any libraries that use thread pools should be configured to match diff --git a/config/routes.rb b/config/routes.rb index 2ef9a747b..4be4bc612 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + Rails.application.routes.draw do # require 'sidekiq/web' diff --git a/config/schedule.rb b/config/schedule.rb index 286554bd2..510a0b600 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Use this file to easily define all of your cron jobs. # # It's helpful, but not entirely necessary to understand cron before proceeding. diff --git a/config/secrets.yml b/config/secrets.yml index 423e8835c..54ab27ce6 100644 --- a/config/secrets.yml +++ b/config/secrets.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Be sure to restart your server when you modify this file. # Your secret key is used for verifying the integrity of signed cookies. diff --git a/config/sidekiq.yml b/config/sidekiq.yml index d186d608c..9ee55b136 100644 --- a/config/sidekiq.yml +++ b/config/sidekiq.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # # IMPORTANT: # If you plan to run workers on different machines, use the full hostname, diff --git a/config/spring.rb b/config/spring.rb index c9119b40c..463d784ff 100644 --- a/config/spring.rb +++ b/config/spring.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + %w( .ruby-version .rbenv-vars diff --git a/db/migrate/20150731225848_devise_create_users.rb b/db/migrate/20150731225848_devise_create_users.rb index 83d51c942..3f42108dc 100644 --- a/db/migrate/20150731225848_devise_create_users.rb +++ b/db/migrate/20150731225848_devise_create_users.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class DeviseCreateUsers < ActiveRecord::Migration[4.2] def change create_table(:users) do |t| diff --git a/db/migrate/20150828140933_devise_token_auth_create_users.rb b/db/migrate/20150828140933_devise_token_auth_create_users.rb index 2f4967f0e..f07558864 100644 --- a/db/migrate/20150828140933_devise_token_auth_create_users.rb +++ b/db/migrate/20150828140933_devise_token_auth_create_users.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class DeviseTokenAuthCreateUsers < ActiveRecord::Migration[4.2] def change change_table(:users) do |t| diff --git a/db/migrate/20150904134929_create_roles.rb b/db/migrate/20150904134929_create_roles.rb index 4bd7601a0..38e1e8b3b 100644 --- a/db/migrate/20150904134929_create_roles.rb +++ b/db/migrate/20150904134929_create_roles.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateRoles < ActiveRecord::Migration[4.2] def change create_table :roles do |t| diff --git a/db/migrate/20150904141558_create_join_table_users_roles.rb b/db/migrate/20150904141558_create_join_table_users_roles.rb index 6e7b71910..12b84fecb 100644 --- a/db/migrate/20150904141558_create_join_table_users_roles.rb +++ b/db/migrate/20150904141558_create_join_table_users_roles.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateJoinTableUsersRoles < ActiveRecord::Migration[4.2] def change create_join_table :users, :roles do |t| diff --git a/db/migrate/20150909135745_add_name_column_to_users.rb b/db/migrate/20150909135745_add_name_column_to_users.rb index 215b114a4..17adc4550 100644 --- a/db/migrate/20150909135745_add_name_column_to_users.rb +++ b/db/migrate/20150909135745_add_name_column_to_users.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddNameColumnToUsers < ActiveRecord::Migration[4.2] def change add_column :users, :name, :string diff --git a/db/migrate/20150921132848_add_attachment_avatar_to_users.rb b/db/migrate/20150921132848_add_attachment_avatar_to_users.rb index e27d8e947..d863c5692 100644 --- a/db/migrate/20150921132848_add_attachment_avatar_to_users.rb +++ b/db/migrate/20150921132848_add_attachment_avatar_to_users.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddAttachmentAvatarToUsers < ActiveRecord::Migration[4.2] def self.up change_table :users do |t| diff --git a/db/migrate/20150922141008_create_carousels.rb b/db/migrate/20150922141008_create_carousels.rb index 934e785c7..60131243c 100644 --- a/db/migrate/20150922141008_create_carousels.rb +++ b/db/migrate/20150922141008_create_carousels.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateCarousels < ActiveRecord::Migration[4.2] def change create_table :carousels do |t| diff --git a/db/migrate/20150922141009_add_image_column_to_carousels.rb b/db/migrate/20150922141009_add_image_column_to_carousels.rb index 6e6854419..87a8b1898 100644 --- a/db/migrate/20150922141009_add_image_column_to_carousels.rb +++ b/db/migrate/20150922141009_add_image_column_to_carousels.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddImageColumnToCarousels < ActiveRecord::Migration[4.2] def up add_attachment :carousels, :image diff --git a/db/migrate/20160124114036_create_languages.rb b/db/migrate/20160124114036_create_languages.rb index 96560f9ac..9afa02fd3 100644 --- a/db/migrate/20160124114036_create_languages.rb +++ b/db/migrate/20160124114036_create_languages.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateLanguages < ActiveRecord::Migration[4.2] def change create_table :languages do |t| diff --git a/db/migrate/20160124145100_create_object_types.rb b/db/migrate/20160124145100_create_object_types.rb index 4c5892021..f5035bec4 100644 --- a/db/migrate/20160124145100_create_object_types.rb +++ b/db/migrate/20160124145100_create_object_types.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateObjectTypes < ActiveRecord::Migration[4.2] def change create_table :object_types do |t| diff --git a/db/migrate/20160125120915_create_learning_objects.rb b/db/migrate/20160125120915_create_learning_objects.rb index fc3a3f583..59b9675ef 100644 --- a/db/migrate/20160125120915_create_learning_objects.rb +++ b/db/migrate/20160125120915_create_learning_objects.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateLearningObjects < ActiveRecord::Migration[4.2] def change create_table :learning_objects do |t| diff --git a/db/migrate/20160125121603_create_topics.rb b/db/migrate/20160125121603_create_topics.rb index f11f42e8e..e4bd1bcea 100644 --- a/db/migrate/20160125121603_create_topics.rb +++ b/db/migrate/20160125121603_create_topics.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateTopics < ActiveRecord::Migration[4.2] def change create_table :topics do |t| diff --git a/db/migrate/20160125122642_learning_objects_topics.rb b/db/migrate/20160125122642_learning_objects_topics.rb index 560119025..b910de148 100644 --- a/db/migrate/20160125122642_learning_objects_topics.rb +++ b/db/migrate/20160125122642_learning_objects_topics.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class LearningObjectsTopics < ActiveRecord::Migration[4.2] def change create_table :learning_objects_topics do |t| diff --git a/db/migrate/20160125122943_create_institutions.rb b/db/migrate/20160125122943_create_institutions.rb index 1ffe207f9..f5b5df47e 100644 --- a/db/migrate/20160125122943_create_institutions.rb +++ b/db/migrate/20160125122943_create_institutions.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateInstitutions < ActiveRecord::Migration[4.2] def change create_table :institutions do |t| diff --git a/db/migrate/20160125123423_create_collections.rb b/db/migrate/20160125123423_create_collections.rb index 83d4c921d..974f2b842 100644 --- a/db/migrate/20160125123423_create_collections.rb +++ b/db/migrate/20160125123423_create_collections.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateCollections < ActiveRecord::Migration[4.2] def change create_table :collections do |t| diff --git a/db/migrate/20160125124125_institutions_users.rb b/db/migrate/20160125124125_institutions_users.rb index 63cc19b5c..d367589ce 100644 --- a/db/migrate/20160125124125_institutions_users.rb +++ b/db/migrate/20160125124125_institutions_users.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class InstitutionsUsers < ActiveRecord::Migration[4.2] def change create_table :institutions_users do |t| diff --git a/db/migrate/20160125124500_create_complaint_reasons.rb b/db/migrate/20160125124500_create_complaint_reasons.rb index 87e5ee9bb..b6a04f588 100644 --- a/db/migrate/20160125124500_create_complaint_reasons.rb +++ b/db/migrate/20160125124500_create_complaint_reasons.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateComplaintReasons < ActiveRecord::Migration[4.2] def change create_table :complaint_reasons do |t| diff --git a/db/migrate/20160125124508_create_complaints.rb b/db/migrate/20160125124508_create_complaints.rb index 48f108bb7..0cc1712b6 100644 --- a/db/migrate/20160125124508_create_complaints.rb +++ b/db/migrate/20160125124508_create_complaints.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateComplaints < ActiveRecord::Migration[4.2] def change create_table :complaints do |t| diff --git a/db/migrate/20160125132447_create_bookmarks.rb b/db/migrate/20160125132447_create_bookmarks.rb index 47bc47fca..2197cbbad 100644 --- a/db/migrate/20160125132447_create_bookmarks.rb +++ b/db/migrate/20160125132447_create_bookmarks.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateBookmarks < ActiveRecord::Migration[4.2] def change create_table :bookmarks do |t| diff --git a/db/migrate/20160127135807_create_reviews.rb b/db/migrate/20160127135807_create_reviews.rb index 38989b87c..74917d662 100644 --- a/db/migrate/20160127135807_create_reviews.rb +++ b/db/migrate/20160127135807_create_reviews.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateReviews < ActiveRecord::Migration[4.2] def change create_table :reviews do |t| diff --git a/db/migrate/20160128115107_create_views.rb b/db/migrate/20160128115107_create_views.rb index f0fb349f0..65593f748 100644 --- a/db/migrate/20160128115107_create_views.rb +++ b/db/migrate/20160128115107_create_views.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateViews < ActiveRecord::Migration[4.2] def change create_table :views do |t| diff --git a/db/migrate/20160128115428_create_downloads.rb b/db/migrate/20160128115428_create_downloads.rb index 8f73ad90d..c0085dd0d 100644 --- a/db/migrate/20160128115428_create_downloads.rb +++ b/db/migrate/20160128115428_create_downloads.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateDownloads < ActiveRecord::Migration[4.2] def change create_table :downloads do |t| diff --git a/db/migrate/20160128115555_create_likes.rb b/db/migrate/20160128115555_create_likes.rb index a24c4cce7..09880d69f 100644 --- a/db/migrate/20160128115555_create_likes.rb +++ b/db/migrate/20160128115555_create_likes.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateLikes < ActiveRecord::Migration[4.2] def change create_table :likes do |t| diff --git a/db/migrate/20160128115721_create_shares.rb b/db/migrate/20160128115721_create_shares.rb index 37b2a7353..f35e08c06 100644 --- a/db/migrate/20160128115721_create_shares.rb +++ b/db/migrate/20160128115721_create_shares.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateShares < ActiveRecord::Migration[4.2] def change create_table :shares do |t| diff --git a/db/migrate/20160128122557_create_ratings.rb b/db/migrate/20160128122557_create_ratings.rb index fe10b2100..0e3c5a3b6 100644 --- a/db/migrate/20160128122557_create_ratings.rb +++ b/db/migrate/20160128122557_create_ratings.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateRatings < ActiveRecord::Migration[4.2] def change create_table :ratings do |t| diff --git a/db/migrate/20160128123028_create_review_ratings.rb b/db/migrate/20160128123028_create_review_ratings.rb index e2923ed7f..aaa382e35 100644 --- a/db/migrate/20160128123028_create_review_ratings.rb +++ b/db/migrate/20160128123028_create_review_ratings.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateReviewRatings < ActiveRecord::Migration[4.2] def change create_table :review_ratings do |t| diff --git a/db/migrate/20160128123901_create_follows.rb b/db/migrate/20160128123901_create_follows.rb index f26daef59..32cb6bdb0 100644 --- a/db/migrate/20160128123901_create_follows.rb +++ b/db/migrate/20160128123901_create_follows.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateFollows < ActiveRecord::Migration[4.2] def change create_table :follows do |t| diff --git a/db/migrate/20160128125336_create_collection_items.rb b/db/migrate/20160128125336_create_collection_items.rb index 33ea1a2ae..acedb8ff0 100644 --- a/db/migrate/20160128125336_create_collection_items.rb +++ b/db/migrate/20160128125336_create_collection_items.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateCollectionItems < ActiveRecord::Migration[4.2] def change create_table :collection_items do |t| diff --git a/db/migrate/20160129191739_create_topic_highlights.rb b/db/migrate/20160129191739_create_topic_highlights.rb index 4a4871b9c..4840e871e 100644 --- a/db/migrate/20160129191739_create_topic_highlights.rb +++ b/db/migrate/20160129191739_create_topic_highlights.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateTopicHighlights < ActiveRecord::Migration[4.2] def change create_table :topic_highlights do |t| diff --git a/db/migrate/20160130191533_create_topic_relationships.rb b/db/migrate/20160130191533_create_topic_relationships.rb index 9b7e16544..723813464 100644 --- a/db/migrate/20160130191533_create_topic_relationships.rb +++ b/db/migrate/20160130191533_create_topic_relationships.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateTopicRelationships < ActiveRecord::Migration[4.2] def change create_table :topic_relationships do |t| diff --git a/db/migrate/20160131115733_add_counter_to_view_like_share_download.rb b/db/migrate/20160131115733_add_counter_to_view_like_share_download.rb index daf9ff96d..c1caf10d3 100644 --- a/db/migrate/20160131115733_add_counter_to_view_like_share_download.rb +++ b/db/migrate/20160131115733_add_counter_to_view_like_share_download.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddCounterToViewLikeShareDownload < ActiveRecord::Migration[4.2] def change add_column :learning_objects, :views_count, :integer, default: 0 diff --git a/db/migrate/20160201135415_create_learning_object_attachments.rb b/db/migrate/20160201135415_create_learning_object_attachments.rb index 32130af75..7f8201c33 100644 --- a/db/migrate/20160201135415_create_learning_object_attachments.rb +++ b/db/migrate/20160201135415_create_learning_object_attachments.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateLearningObjectAttachments < ActiveRecord::Migration[4.2] def change create_table :learning_object_attachments do |t| diff --git a/db/migrate/20160201140345_remove_bitstreams_column_from_learning_objects.rb b/db/migrate/20160201140345_remove_bitstreams_column_from_learning_objects.rb index d4216eeca..a8c28e545 100644 --- a/db/migrate/20160201140345_remove_bitstreams_column_from_learning_objects.rb +++ b/db/migrate/20160201140345_remove_bitstreams_column_from_learning_objects.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class RemoveBitstreamsColumnFromLearningObjects < ActiveRecord::Migration[4.2] def change remove_column :learning_objects, :bitstreams diff --git a/db/migrate/20160202121737_add_state_column_for_learning_objects.rb b/db/migrate/20160202121737_add_state_column_for_learning_objects.rb index 5d8027ab7..01bfcc8b6 100644 --- a/db/migrate/20160202121737_add_state_column_for_learning_objects.rb +++ b/db/migrate/20160202121737_add_state_column_for_learning_objects.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddStateColumnForLearningObjects < ActiveRecord::Migration[4.2] def change add_column :learning_objects, :state, :string, default: 'published' diff --git a/db/migrate/20160202134938_add_id_dspace_column_for_attachments.rb b/db/migrate/20160202134938_add_id_dspace_column_for_attachments.rb index b881aa15f..23f5fb375 100644 --- a/db/migrate/20160202134938_add_id_dspace_column_for_attachments.rb +++ b/db/migrate/20160202134938_add_id_dspace_column_for_attachments.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddIdDspaceColumnForAttachments < ActiveRecord::Migration[4.2] def change add_column :learning_object_attachments, :id_dspace, :integer diff --git a/db/migrate/20160215113900_add_description_column_for_ratings.rb b/db/migrate/20160215113900_add_description_column_for_ratings.rb index c643fbd96..92bfd579c 100644 --- a/db/migrate/20160215113900_add_description_column_for_ratings.rb +++ b/db/migrate/20160215113900_add_description_column_for_ratings.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddDescriptionColumnForRatings < ActiveRecord::Migration[4.2] def change add_column :ratings, :description, :string diff --git a/db/migrate/20160217111317_create_rates.rb b/db/migrate/20160217111317_create_rates.rb index b8bb06170..3f5d8573a 100644 --- a/db/migrate/20160217111317_create_rates.rb +++ b/db/migrate/20160217111317_create_rates.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateRates < ActiveRecord::Migration[4.2] def change create_table :rates do |t| diff --git a/db/migrate/20160217122253_create_default_column_for_topics.rb b/db/migrate/20160217122253_create_default_column_for_topics.rb index 024a1286f..792d9705d 100644 --- a/db/migrate/20160217122253_create_default_column_for_topics.rb +++ b/db/migrate/20160217122253_create_default_column_for_topics.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateDefaultColumnForTopics < ActiveRecord::Migration[4.2] def change add_column :topics, :default, :boolean, default: false diff --git a/db/migrate/20160218100700_add_counter_to_rate.rb b/db/migrate/20160218100700_add_counter_to_rate.rb index 776bcd0a4..a039d3fa6 100644 --- a/db/migrate/20160218100700_add_counter_to_rate.rb +++ b/db/migrate/20160218100700_add_counter_to_rate.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddCounterToRate < ActiveRecord::Migration[4.2] def change add_column :reviews, :rates_count, :integer, default: 0 diff --git a/db/migrate/20160219132305_remove_string_thumbnail.rb b/db/migrate/20160219132305_remove_string_thumbnail.rb index 619f1975e..e4edd6ba1 100644 --- a/db/migrate/20160219132305_remove_string_thumbnail.rb +++ b/db/migrate/20160219132305_remove_string_thumbnail.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class RemoveStringThumbnail < ActiveRecord::Migration[4.2] def change remove_column :learning_objects, :thumbnail, :string diff --git a/db/migrate/20160219132533_add_paperclip_thumbnail.rb b/db/migrate/20160219132533_add_paperclip_thumbnail.rb index 42762bb62..80220f0e8 100644 --- a/db/migrate/20160219132533_add_paperclip_thumbnail.rb +++ b/db/migrate/20160219132533_add_paperclip_thumbnail.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddPaperclipThumbnail < ActiveRecord::Migration[4.2] def up add_attachment :learning_objects, :thumbnail diff --git a/db/migrate/20160222102900_create_code_column_for_languages.rb b/db/migrate/20160222102900_create_code_column_for_languages.rb index 6e5bcd1c8..0a17c5c02 100644 --- a/db/migrate/20160222102900_create_code_column_for_languages.rb +++ b/db/migrate/20160222102900_create_code_column_for_languages.rb @@ -1,4 +1,23 @@ +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + + class CreateCodeColumnForLanguages < ActiveRecord::Migration[4.2] def change add_column :languages, :code, :string diff --git a/db/migrate/20160222144157_create_scores.rb b/db/migrate/20160222144157_create_scores.rb index 5dd6d463c..4011b2cf9 100644 --- a/db/migrate/20160222144157_create_scores.rb +++ b/db/migrate/20160222144157_create_scores.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateScores < ActiveRecord::Migration[4.2] def change create_table :scores do |t| diff --git a/db/migrate/20160222144216_create_user_categories.rb b/db/migrate/20160222144216_create_user_categories.rb index 9bb19e204..61777e19a 100644 --- a/db/migrate/20160222144216_create_user_categories.rb +++ b/db/migrate/20160222144216_create_user_categories.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateUserCategories < ActiveRecord::Migration[4.2] def change create_table :user_categories do |t| diff --git a/db/migrate/20160222144259_create_score_user_categories.rb b/db/migrate/20160222144259_create_score_user_categories.rb index 3fd68f490..55fac6190 100644 --- a/db/migrate/20160222144259_create_score_user_categories.rb +++ b/db/migrate/20160222144259_create_score_user_categories.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateScoreUserCategories < ActiveRecord::Migration[4.2] def change create_table :score_user_categories do |t| diff --git a/db/migrate/20160225101700_change_users_add_score.rb b/db/migrate/20160225101700_change_users_add_score.rb index 849913d06..e54dcf186 100644 --- a/db/migrate/20160225101700_change_users_add_score.rb +++ b/db/migrate/20160225101700_change_users_add_score.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ChangeUsersAddScore < ActiveRecord::Migration[4.2] def change add_reference :users, :user_category, index: true diff --git a/db/migrate/20160229164600_change_users_add_score_foreign_key.rb b/db/migrate/20160229164600_change_users_add_score_foreign_key.rb index f113a6f6a..3bd0d3918 100644 --- a/db/migrate/20160229164600_change_users_add_score_foreign_key.rb +++ b/db/migrate/20160229164600_change_users_add_score_foreign_key.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ChangeUsersAddScoreForeignKey < ActiveRecord::Migration[4.2] def change add_foreign_key :users, :user_categories diff --git a/db/migrate/20160229205701_add_keys.rb b/db/migrate/20160229205701_add_keys.rb index 6717131b9..20183f73c 100644 --- a/db/migrate/20160229205701_add_keys.rb +++ b/db/migrate/20160229205701_add_keys.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddKeys < ActiveRecord::Migration[4.2] def change add_foreign_key "learning_objects_topics", "learning_objects", name: "learning_objects_topics_learning_object_id_fk" diff --git a/db/migrate/20160301103500_change_collections_add_score.rb b/db/migrate/20160301103500_change_collections_add_score.rb index e8029900a..ec1df2eff 100644 --- a/db/migrate/20160301103500_change_collections_add_score.rb +++ b/db/migrate/20160301103500_change_collections_add_score.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ChangeCollectionsAddScore < ActiveRecord::Migration[4.2] def change add_column :collections, :score, :float, default: 0 diff --git a/db/migrate/20160301103501_add_paperclip_to_attachments.rb b/db/migrate/20160301103501_add_paperclip_to_attachments.rb index 6f8158268..68c387c1d 100644 --- a/db/migrate/20160301103501_add_paperclip_to_attachments.rb +++ b/db/migrate/20160301103501_add_paperclip_to_attachments.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddPaperclipToAttachments < ActiveRecord::Migration[4.2] def up add_attachment :learning_object_attachments, :thumbnail diff --git a/db/migrate/20160302102500_change_scores_add_score_type.rb b/db/migrate/20160302102500_change_scores_add_score_type.rb index fcc537565..dc9bbfd48 100644 --- a/db/migrate/20160302102500_change_scores_add_score_type.rb +++ b/db/migrate/20160302102500_change_scores_add_score_type.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ChangeScoresAddScoreType < ActiveRecord::Migration[4.2] def change add_column :scores, :score_type, :string, array: true, default: [] diff --git a/db/migrate/20160303120433_add_counter_to_user_collection.rb b/db/migrate/20160303120433_add_counter_to_user_collection.rb index 762391114..0e5808827 100644 --- a/db/migrate/20160303120433_add_counter_to_user_collection.rb +++ b/db/migrate/20160303120433_add_counter_to_user_collection.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddCounterToUserCollection < ActiveRecord::Migration[4.2] def change add_column :collections, :follows_count, :integer, default: 0 diff --git a/db/migrate/20160303181501_add_column_mime_type_for_object_types.rb b/db/migrate/20160303181501_add_column_mime_type_for_object_types.rb index f1bc08493..e42cab9a8 100644 --- a/db/migrate/20160303181501_add_column_mime_type_for_object_types.rb +++ b/db/migrate/20160303181501_add_column_mime_type_for_object_types.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddColumnMimeTypeForObjectTypes < ActiveRecord::Migration[4.2] def change add_column :object_types, :mime_type, :string diff --git a/db/migrate/20160304100533_change_learning_object_score.rb b/db/migrate/20160304100533_change_learning_object_score.rb index 3779d0a17..a0e99e155 100644 --- a/db/migrate/20160304100533_change_learning_object_score.rb +++ b/db/migrate/20160304100533_change_learning_object_score.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ChangeLearningObjectScore < ActiveRecord::Migration[4.2] def change change_column :learning_objects, :score, :float, default: 0.0 diff --git a/db/migrate/20160304102333_add_thumbnail_for_collections.rb b/db/migrate/20160304102333_add_thumbnail_for_collections.rb index 10659aad7..bdf34d145 100644 --- a/db/migrate/20160304102333_add_thumbnail_for_collections.rb +++ b/db/migrate/20160304102333_add_thumbnail_for_collections.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddThumbnailForCollections < ActiveRecord::Migration[4.2] def change add_attachment :collections, :thumbnail diff --git a/db/migrate/20160309101900_add_attachment_for_learning_objects.rb b/db/migrate/20160309101900_add_attachment_for_learning_objects.rb index 4a6eb60df..61edfeb66 100644 --- a/db/migrate/20160309101900_add_attachment_for_learning_objects.rb +++ b/db/migrate/20160309101900_add_attachment_for_learning_objects.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddAttachmentForLearningObjects < ActiveRecord::Migration[4.2] def change add_column :learning_objects, :attachment_id, :integer diff --git a/db/migrate/20160310121839_create_mime_types.rb b/db/migrate/20160310121839_create_mime_types.rb index 7ed0464cf..477fc1a58 100644 --- a/db/migrate/20160310121839_create_mime_types.rb +++ b/db/migrate/20160310121839_create_mime_types.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateMimeTypes < ActiveRecord::Migration[4.2] def change create_table :mime_types do |t| diff --git a/db/migrate/20160310124058_remove_mime_types_from_object_types.rb b/db/migrate/20160310124058_remove_mime_types_from_object_types.rb index 8ba41939e..bd44d0709 100644 --- a/db/migrate/20160310124058_remove_mime_types_from_object_types.rb +++ b/db/migrate/20160310124058_remove_mime_types_from_object_types.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class RemoveMimeTypesFromObjectTypes < ActiveRecord::Migration[4.2] def change remove_column :object_types, :mime_type, :string diff --git a/db/migrate/20160310124059_add_associations_to_object_types_and_mime_types.rb b/db/migrate/20160310124059_add_associations_to_object_types_and_mime_types.rb index dcb71a406..d1bf54b10 100644 --- a/db/migrate/20160310124059_add_associations_to_object_types_and_mime_types.rb +++ b/db/migrate/20160310124059_add_associations_to_object_types_and_mime_types.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddAssociationsToObjectTypesAndMimeTypes < ActiveRecord::Migration[4.2] def change create_table :mime_types_object_types do |t| diff --git a/db/migrate/20160313192800_add_cache_link_to_attachment.rb b/db/migrate/20160313192800_add_cache_link_to_attachment.rb index d93cfb523..847f5d91d 100644 --- a/db/migrate/20160313192800_add_cache_link_to_attachment.rb +++ b/db/migrate/20160313192800_add_cache_link_to_attachment.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddCacheLinkToAttachment < ActiveRecord::Migration[4.2] def change add_column :learning_object_attachments, :cache_link, :string diff --git a/db/migrate/20160415004548_drop_table_topics.rb b/db/migrate/20160415004548_drop_table_topics.rb index 340ee6344..07e9b686c 100644 --- a/db/migrate/20160415004548_drop_table_topics.rb +++ b/db/migrate/20160415004548_drop_table_topics.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class DropTableTopics < ActiveRecord::Migration[4.2] def change drop_table :topics, force: :cascade diff --git a/db/migrate/20160415004803_drop_table_topic_relationships.rb b/db/migrate/20160415004803_drop_table_topic_relationships.rb index 8d42fa83f..7d32db362 100644 --- a/db/migrate/20160415004803_drop_table_topic_relationships.rb +++ b/db/migrate/20160415004803_drop_table_topic_relationships.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class DropTableTopicRelationships < ActiveRecord::Migration[4.2] def change drop_table :topic_relationships, force: :cascade diff --git a/db/migrate/20160415005006_drop_table_topic_highlights.rb b/db/migrate/20160415005006_drop_table_topic_highlights.rb index c9d00d1f6..5d30af55e 100644 --- a/db/migrate/20160415005006_drop_table_topic_highlights.rb +++ b/db/migrate/20160415005006_drop_table_topic_highlights.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class DropTableTopicHighlights < ActiveRecord::Migration[4.2] def change drop_table :topic_highlights, force: :cascade diff --git a/db/migrate/20160426144714_create_tags.rb b/db/migrate/20160426144714_create_tags.rb index c7e2bd24e..b8a204673 100644 --- a/db/migrate/20160426144714_create_tags.rb +++ b/db/migrate/20160426144714_create_tags.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateTags < ActiveRecord::Migration[4.2] def change create_table :tags do |t| diff --git a/db/migrate/20160426144833_create_taggings.rb b/db/migrate/20160426144833_create_taggings.rb index 35c6a7113..c5c6675ff 100644 --- a/db/migrate/20160426144833_create_taggings.rb +++ b/db/migrate/20160426144833_create_taggings.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateTaggings < ActiveRecord::Migration[4.2] def change create_table :taggings do |t| diff --git a/db/migrate/20160503140557_create_activities.rb b/db/migrate/20160503140557_create_activities.rb index d96e1511d..4b4d7ee30 100644 --- a/db/migrate/20160503140557_create_activities.rb +++ b/db/migrate/20160503140557_create_activities.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Migration responsible for creating a table with activities class CreateActivities < ActiveRecord::Migration[4.2] # Create table diff --git a/db/migrate/20160512135942_add_deleted_at_to_learning_objects.rb b/db/migrate/20160512135942_add_deleted_at_to_learning_objects.rb index a0f9505d5..3797c03cb 100644 --- a/db/migrate/20160512135942_add_deleted_at_to_learning_objects.rb +++ b/db/migrate/20160512135942_add_deleted_at_to_learning_objects.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddDeletedAtToLearningObjects < ActiveRecord::Migration[4.2] def change add_column :learning_objects, :deleted_at, :datetime diff --git a/db/migrate/20160512140101_add_deleted_at_to_collections.rb b/db/migrate/20160512140101_add_deleted_at_to_collections.rb index 928066b4b..ce634b5ab 100644 --- a/db/migrate/20160512140101_add_deleted_at_to_collections.rb +++ b/db/migrate/20160512140101_add_deleted_at_to_collections.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddDeletedAtToCollections < ActiveRecord::Migration[4.2] def change add_column :collections, :deleted_at, :datetime diff --git a/db/migrate/20160512140142_add_deleted_at_to_complaints.rb b/db/migrate/20160512140142_add_deleted_at_to_complaints.rb index a7220cd01..1f7fe42aa 100644 --- a/db/migrate/20160512140142_add_deleted_at_to_complaints.rb +++ b/db/migrate/20160512140142_add_deleted_at_to_complaints.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddDeletedAtToComplaints < ActiveRecord::Migration[4.2] def change add_column :complaints, :deleted_at, :datetime diff --git a/db/migrate/20160512140201_add_deleted_at_to_institutions.rb b/db/migrate/20160512140201_add_deleted_at_to_institutions.rb index 1aa9ed738..58ee40509 100644 --- a/db/migrate/20160512140201_add_deleted_at_to_institutions.rb +++ b/db/migrate/20160512140201_add_deleted_at_to_institutions.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddDeletedAtToInstitutions < ActiveRecord::Migration[4.2] def change add_column :institutions, :deleted_at, :datetime diff --git a/db/migrate/20160512140234_add_deleted_at_to_reviews.rb b/db/migrate/20160512140234_add_deleted_at_to_reviews.rb index 9bb2c514d..b390901b0 100644 --- a/db/migrate/20160512140234_add_deleted_at_to_reviews.rb +++ b/db/migrate/20160512140234_add_deleted_at_to_reviews.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddDeletedAtToReviews < ActiveRecord::Migration[4.2] def change add_column :reviews, :deleted_at, :datetime diff --git a/db/migrate/20160512140321_add_deleted_at_to_users.rb b/db/migrate/20160512140321_add_deleted_at_to_users.rb index 669ac0f65..144ae4a99 100644 --- a/db/migrate/20160512140321_add_deleted_at_to_users.rb +++ b/db/migrate/20160512140321_add_deleted_at_to_users.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddDeletedAtToUsers < ActiveRecord::Migration[4.2] def change add_column :users, :deleted_at, :datetime diff --git a/db/migrate/20160512140322_ensure_versions_table_is_deleted.rb b/db/migrate/20160512140322_ensure_versions_table_is_deleted.rb index 74cccd639..60f98af5f 100644 --- a/db/migrate/20160512140322_ensure_versions_table_is_deleted.rb +++ b/db/migrate/20160512140322_ensure_versions_table_is_deleted.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class EnsureVersionsTableIsDeleted < ActiveRecord::Migration[4.2] def change table = :versions diff --git a/db/migrate/20160512143532_create_versions.rb b/db/migrate/20160512143532_create_versions.rb index 19d853de8..d23847bde 100644 --- a/db/migrate/20160512143532_create_versions.rb +++ b/db/migrate/20160512143532_create_versions.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # This migration creates the `versions` table, the only schema PT requires. # All other migrations PT provides are optional. class CreateVersions < ActiveRecord::Migration[4.2] diff --git a/db/migrate/20160516125724_create_licenses.rb b/db/migrate/20160516125724_create_licenses.rb index 156f9009d..18f9340d4 100644 --- a/db/migrate/20160516125724_create_licenses.rb +++ b/db/migrate/20160516125724_create_licenses.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateLicenses < ActiveRecord::Migration[4.2] def change create_table :licenses do |t| diff --git a/db/migrate/20160516125800_add_license_to_learning_objects.rb b/db/migrate/20160516125800_add_license_to_learning_objects.rb index 3723daa31..0ba5c78ce 100644 --- a/db/migrate/20160516125800_add_license_to_learning_objects.rb +++ b/db/migrate/20160516125800_add_license_to_learning_objects.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddLicenseToLearningObjects < ActiveRecord::Migration[4.2] def change add_reference :learning_objects, :license, index: true diff --git a/db/migrate/20160517140326_create_applications.rb b/db/migrate/20160517140326_create_applications.rb index 4ee609929..ea20ba389 100644 --- a/db/migrate/20160517140326_create_applications.rb +++ b/db/migrate/20160517140326_create_applications.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateApplications < ActiveRecord::Migration[4.2] def change create_table :applications do |t| diff --git a/db/migrate/20160519122525_change_state_type_in_learning_objects.rb b/db/migrate/20160519122525_change_state_type_in_learning_objects.rb index 50c0919f2..0b91f359f 100644 --- a/db/migrate/20160519122525_change_state_type_in_learning_objects.rb +++ b/db/migrate/20160519122525_change_state_type_in_learning_objects.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ChangeStateTypeInLearningObjects < ActiveRecord::Migration[4.2] def change add_column :learning_objects, :statenew, :integer, default: 0 diff --git a/db/migrate/20161018123459_add_index_to_collection.rb b/db/migrate/20161018123459_add_index_to_collection.rb index bba72851d..93267fb0d 100644 --- a/db/migrate/20161018123459_add_index_to_collection.rb +++ b/db/migrate/20161018123459_add_index_to_collection.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddIndexToCollection < ActiveRecord::Migration[5.0] def change add_index :collection_items, [:collection_id,:collectionable_id, :collectionable_type], unique: true, name: 'collection_item_and_collectionable' diff --git a/db/migrate/20161024160053_create_subjects.rb b/db/migrate/20161024160053_create_subjects.rb index 86aac891c..918965979 100644 --- a/db/migrate/20161024160053_create_subjects.rb +++ b/db/migrate/20161024160053_create_subjects.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateSubjects < ActiveRecord::Migration[5.0] def change create_table :subjects do |t| diff --git a/db/migrate/20161024160126_create_educational_stages.rb b/db/migrate/20161024160126_create_educational_stages.rb index 76fc0d48c..819e36119 100644 --- a/db/migrate/20161024160126_create_educational_stages.rb +++ b/db/migrate/20161024160126_create_educational_stages.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateEducationalStages < ActiveRecord::Migration[5.0] def change create_table :educational_stages do |t| diff --git a/db/migrate/20161026114123_change_complaints_columns_names.rb b/db/migrate/20161026114123_change_complaints_columns_names.rb index 7371830fe..af3da1c4d 100644 --- a/db/migrate/20161026114123_change_complaints_columns_names.rb +++ b/db/migrate/20161026114123_change_complaints_columns_names.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ChangeComplaintsColumnsNames < ActiveRecord::Migration[5.0] def change rename_column :complaints, :complaintable_id, :complainable_id diff --git a/db/migrate/20161026134028_create_subject_relations.rb b/db/migrate/20161026134028_create_subject_relations.rb index 78e028bdf..e75f6d977 100644 --- a/db/migrate/20161026134028_create_subject_relations.rb +++ b/db/migrate/20161026134028_create_subject_relations.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateSubjectRelations < ActiveRecord::Migration[5.0] def change create_table :subject_relations do |t| diff --git a/db/migrate/20161026163027_change_learning_object.rb b/db/migrate/20161026163027_change_learning_object.rb index 7ffdc74ee..643c78150 100644 --- a/db/migrate/20161026163027_change_learning_object.rb +++ b/db/migrate/20161026163027_change_learning_object.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ChangeLearningObject < ActiveRecord::Migration[5.0] def change add_column :learning_objects, :link, :string diff --git a/db/migrate/20161027134827_add_index_to_taggings.rb b/db/migrate/20161027134827_add_index_to_taggings.rb index 858527008..971fdd7e1 100644 --- a/db/migrate/20161027134827_add_index_to_taggings.rb +++ b/db/migrate/20161027134827_add_index_to_taggings.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddIndexToTaggings < ActiveRecord::Migration[5.0] def change add_index :taggings, [:tag_id, :tagger_id, :tagger_type, :taggable_id, :taggable_type], unique: true, name: 'tag_and_taggable' diff --git a/db/migrate/20161027141322_create_stage_relations.rb b/db/migrate/20161027141322_create_stage_relations.rb index 295ca07b7..974ca555e 100644 --- a/db/migrate/20161027141322_create_stage_relations.rb +++ b/db/migrate/20161027141322_create_stage_relations.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateStageRelations < ActiveRecord::Migration[5.0] def change create_table :stage_relations do |t| diff --git a/db/migrate/20161107130535_add_description_column_to_users.rb b/db/migrate/20161107130535_add_description_column_to_users.rb index 3946ea744..8ea7d7209 100644 --- a/db/migrate/20161107130535_add_description_column_to_users.rb +++ b/db/migrate/20161107130535_add_description_column_to_users.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddDescriptionColumnToUsers < ActiveRecord::Migration[5.0] def change add_column :users, :description, :text diff --git a/db/migrate/20161121115115_add_review_average_to_learning_object.rb b/db/migrate/20161121115115_add_review_average_to_learning_object.rb index cab8a095f..8bd22a7c3 100644 --- a/db/migrate/20161121115115_add_review_average_to_learning_object.rb +++ b/db/migrate/20161121115115_add_review_average_to_learning_object.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddReviewAverageToLearningObject < ActiveRecord::Migration[5.0] def change add_column :learning_objects, :review_average, :float, default: 0.0 diff --git a/db/migrate/20161123114102_add_privacy_to_activities.rb b/db/migrate/20161123114102_add_privacy_to_activities.rb index fc2f91a7c..e60f095d6 100644 --- a/db/migrate/20161123114102_add_privacy_to_activities.rb +++ b/db/migrate/20161123114102_add_privacy_to_activities.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddPrivacyToActivities < ActiveRecord::Migration[5.0] def change add_column :activities, :privacy, :string diff --git a/db/migrate/20161125134057_add_counts_to_user.rb b/db/migrate/20161125134057_add_counts_to_user.rb index 5da4a078c..50e8e0d48 100644 --- a/db/migrate/20161125134057_add_counts_to_user.rb +++ b/db/migrate/20161125134057_add_counts_to_user.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddCountsToUser < ActiveRecord::Migration[5.0] def change add_column :users, :likes_count, :integer, default: 0 diff --git a/db/migrate/20161125153200_add_review_average_to_collection.rb b/db/migrate/20161125153200_add_review_average_to_collection.rb index 538338d71..3895f03ed 100644 --- a/db/migrate/20161125153200_add_review_average_to_collection.rb +++ b/db/migrate/20161125153200_add_review_average_to_collection.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddReviewAverageToCollection < ActiveRecord::Migration[5.0] def change add_column :collections, :review_average, :float, default: 0.0 diff --git a/db/migrate/20161128122731_change_collection_item_column_name.rb b/db/migrate/20161128122731_change_collection_item_column_name.rb index bf7ff604f..34085cbf4 100644 --- a/db/migrate/20161128122731_change_collection_item_column_name.rb +++ b/db/migrate/20161128122731_change_collection_item_column_name.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class ChangeCollectionItemColumnName < ActiveRecord::Migration[5.0] def change rename_column :collection_items, :order, :position diff --git a/db/migrate/20170109133754_add_nickname_to_user.rb b/db/migrate/20170109133754_add_nickname_to_user.rb index 37f4c21bd..179c2c1e4 100644 --- a/db/migrate/20170109133754_add_nickname_to_user.rb +++ b/db/migrate/20170109133754_add_nickname_to_user.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddNicknameToUser < ActiveRecord::Migration[5.0] def change add_column :users, :nickname, :string diff --git a/db/migrate/20170207122721_create_contacts.rb b/db/migrate/20170207122721_create_contacts.rb index 7c7f4d52e..987729a5b 100644 --- a/db/migrate/20170207122721_create_contacts.rb +++ b/db/migrate/20170207122721_create_contacts.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateContacts < ActiveRecord::Migration[5.0] def change create_table :contacts do |t| diff --git a/db/migrate/20170208111714_create_suggestions.rb b/db/migrate/20170208111714_create_suggestions.rb index c59188a82..fd94feb30 100644 --- a/db/migrate/20170208111714_create_suggestions.rb +++ b/db/migrate/20170208111714_create_suggestions.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreateSuggestions < ActiveRecord::Migration[5.0] def change create_table :suggestions do |t| diff --git a/db/migrate/20170215113455_add_ip_to_downloads.rb b/db/migrate/20170215113455_add_ip_to_downloads.rb index 843359238..0b891aced 100644 --- a/db/migrate/20170215113455_add_ip_to_downloads.rb +++ b/db/migrate/20170215113455_add_ip_to_downloads.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddIpToDownloads < ActiveRecord::Migration[5.0] def change add_column :downloads, :ip, :string, null: false diff --git a/db/migrate/20170215121042_add_index_to_downloads.rb b/db/migrate/20170215121042_add_index_to_downloads.rb index 62859d288..72c3eea6f 100644 --- a/db/migrate/20170215121042_add_index_to_downloads.rb +++ b/db/migrate/20170215121042_add_index_to_downloads.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddIndexToDownloads < ActiveRecord::Migration[5.0] def change add_index :downloads, [:user_id, :ip, :downloadable_type, :downloadable_id], unique: true, name: 'user_ip_and_downloadable' diff --git a/db/migrate/20170223132327_create_packages.rb b/db/migrate/20170223132327_create_packages.rb index c2e22f458..ece08e545 100644 --- a/db/migrate/20170223132327_create_packages.rb +++ b/db/migrate/20170223132327_create_packages.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreatePackages < ActiveRecord::Migration[5.0] def change create_table :packages do |t| diff --git a/db/migrate/20170223132838_create_package_items.rb b/db/migrate/20170223132838_create_package_items.rb index 14352c19c..448736054 100644 --- a/db/migrate/20170223132838_create_package_items.rb +++ b/db/migrate/20170223132838_create_package_items.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class CreatePackageItems < ActiveRecord::Migration[5.0] def change create_table :package_items do |t| diff --git a/db/migrate/20170224145548_add_filepath_to_package.rb b/db/migrate/20170224145548_add_filepath_to_package.rb index 4ebbf5091..f288688cb 100644 --- a/db/migrate/20170224145548_add_filepath_to_package.rb +++ b/db/migrate/20170224145548_add_filepath_to_package.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddFilepathToPackage < ActiveRecord::Migration[5.0] def change add_column :packages, :file_path, :string diff --git a/db/migrate/20170307133059_add_attachment_cover_to_users.rb b/db/migrate/20170307133059_add_attachment_cover_to_users.rb index 2218f8b7e..33d4f2d77 100644 --- a/db/migrate/20170307133059_add_attachment_cover_to_users.rb +++ b/db/migrate/20170307133059_add_attachment_cover_to_users.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddAttachmentCoverToUsers < ActiveRecord::Migration def self.up change_table :users do |t| diff --git a/db/migrate/20170307133405_add_education_to_users.rb b/db/migrate/20170307133405_add_education_to_users.rb index 14b303429..970aaf76f 100644 --- a/db/migrate/20170307133405_add_education_to_users.rb +++ b/db/migrate/20170307133405_add_education_to_users.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddEducationToUsers < ActiveRecord::Migration[5.0] def change add_column :users, :education, :string diff --git a/db/migrate/20170503134230_add_attachment_avatar_to_institutions.rb b/db/migrate/20170503134230_add_attachment_avatar_to_institutions.rb index fee56386d..bbd60d843 100644 --- a/db/migrate/20170503134230_add_attachment_avatar_to_institutions.rb +++ b/db/migrate/20170503134230_add_attachment_avatar_to_institutions.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddAttachmentAvatarToInstitutions < ActiveRecord::Migration def self.up change_table :institutions do |t| diff --git a/db/migrate/20170511161146_add_curator_to_learning_object.rb b/db/migrate/20170511161146_add_curator_to_learning_object.rb index d722347d4..5d0c86dd7 100644 --- a/db/migrate/20170511161146_add_curator_to_learning_object.rb +++ b/db/migrate/20170511161146_add_curator_to_learning_object.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddCuratorToLearningObject < ActiveRecord::Migration[5.0] def change add_column :learning_objects, :curator, :string diff --git a/db/migrate/20170512092359_add_magnetlink_to_learning_object.rb b/db/migrate/20170512092359_add_magnetlink_to_learning_object.rb index 6ee102f5d..cfe51bbf2 100644 --- a/db/migrate/20170512092359_add_magnetlink_to_learning_object.rb +++ b/db/migrate/20170512092359_add_magnetlink_to_learning_object.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddMagnetlinkToLearningObject < ActiveRecord::Migration[5.0] def change add_column :learning_objects, :magnetlink, :string diff --git a/db/migrate/20170516111857_add_deleted_at_to_collection_items.rb b/db/migrate/20170516111857_add_deleted_at_to_collection_items.rb index abbe878fe..7ebbd255a 100644 --- a/db/migrate/20170516111857_add_deleted_at_to_collection_items.rb +++ b/db/migrate/20170516111857_add_deleted_at_to_collection_items.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddDeletedAtToCollectionItems < ActiveRecord::Migration[5.0] def change add_column :collection_items, :deleted_at, :datetime diff --git a/db/migrate/20170518120936_add_curator_to_collection.rb b/db/migrate/20170518120936_add_curator_to_collection.rb index 29f69c17c..018b82396 100644 --- a/db/migrate/20170518120936_add_curator_to_collection.rb +++ b/db/migrate/20170518120936_add_curator_to_collection.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddCuratorToCollection < ActiveRecord::Migration[5.0] def change add_column :collections, :curator, :string diff --git a/db/migrate/20170525120237_add_learning_objects_count_to_institutions.rb b/db/migrate/20170525120237_add_learning_objects_count_to_institutions.rb index e8f42351b..e90bebd77 100644 --- a/db/migrate/20170525120237_add_learning_objects_count_to_institutions.rb +++ b/db/migrate/20170525120237_add_learning_objects_count_to_institutions.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class AddLearningObjectsCountToInstitutions < ActiveRecord::Migration[5.0] def change add_column :institutions, :learning_objects_count, :integer, default: 0 diff --git a/db/seeds.rb b/db/seeds.rb index 0a4ba3ef4..d71285d6b 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # diff --git a/db/seeds/complaints.rb b/db/seeds/complaints.rb index 94b7a3a55..0fca5079f 100644 --- a/db/seeds/complaints.rb +++ b/db/seeds/complaints.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + ComplaintReason.create(reason: "Objeto viola direitos autorais") ComplaintReason.create(reason: "Comtém conteúdo ofensivo/abusivo") ComplaintReason.create(reason: "Esta é uma conta falsa") diff --git a/db/seeds/educational_stages.rb b/db/seeds/educational_stages.rb index 66c975e40..9ae92a9c3 100644 --- a/db/seeds/educational_stages.rb +++ b/db/seeds/educational_stages.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + def stages [ {name:'Educação Infantil'}, diff --git a/db/seeds/institutions.rb b/db/seeds/institutions.rb index 535c7659c..12a8cb16b 100644 --- a/db/seeds/institutions.rb +++ b/db/seeds/institutions.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + Institution.create(name: 'C3SL/UFPR', address: 'Centro Politécnico', city: 'Curitiba', country: 'Brasil', description: 'Centro de Computação Científica e Software Livre') Institution.create(name: 'University of Colorado at Boulder, Physics Education Technology (PhET)') Institution.create(name: 'TV Escola') diff --git a/db/seeds/languages.rb b/db/seeds/languages.rb index 1af892134..fabf152c5 100644 --- a/db/seeds/languages.rb +++ b/db/seeds/languages.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + def languages [ {name: 'Português', code: 'pt'}, diff --git a/db/seeds/licenses.rb b/db/seeds/licenses.rb index b670e4583..c81f3f188 100644 --- a/db/seeds/licenses.rb +++ b/db/seeds/licenses.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + License.create(name: 'CC BY', description: 'Creative Commons Atribuição', url: 'https://creativecommons.org/licenses/by/4.0/deed.pt_BR', image_url: 'https://licensebuttons.net/l/by/3.0/88x31.png') License.create(name: 'CC BY-SA', description: 'Creative Commons Atribuição-CompartilhaIgual', url: 'https://creativecommons.org/licenses/by-sa/4.0/deed.pt_BR', image_url: 'https://licensebuttons.net/l/by-sa/3.0/88x31.png') License.create(name: 'CC BY-ND', description: 'Creative Commons Atribuição-SemDerivações', url: 'https://creativecommons.org/licenses/by-nd/4.0/deed.pt_BR', image_url: 'https://licensebuttons.net/l/by-nd/3.0/88x31.png') diff --git a/db/seeds/object_types.rb b/db/seeds/object_types.rb index 529b8a19e..09f71d902 100644 --- a/db/seeds/object_types.rb +++ b/db/seeds/object_types.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + def types [ {name:'Imagem'}, diff --git a/db/seeds/ratings.rb b/db/seeds/ratings.rb index 12aa07243..bb806dcd7 100644 --- a/db/seeds/ratings.rb +++ b/db/seeds/ratings.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + Rating.create(name: 'Contexto de Aplicação', description: 'Nível de formação proposto é adequado; Nível de dificuldade; Ambiente de Uso;') # Rating.create(name: 'Conteúdo', description: 'Claro e conciso; Altamente relevante; Demonstra conceitos básicos; Descreve bem os conceitos; Apresenta informações precisas e atuais; Apresenta alta qualidade (redação e edição);') # Rating.create(name: 'Didática', description: 'Define claramente os objetivos de aprendizagem; Identifica os pré-requisitos; Reforça conceitos progressivamente; Demonstra relacionamento entre conceitos; Apresenta os conceitos de forma contextualizada; Faz bom uso dos recursos multimídia (som, imagens e vídeo);') diff --git a/db/seeds/scores.rb b/db/seeds/scores.rb index 5b37a9134..3d75c8c20 100644 --- a/db/seeds/scores.rb +++ b/db/seeds/scores.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # objects Score.create(name: 'Média das avaliações', code: 'normalized_review_average', weight: 10, active: true, score_type: ['LearningObject', 'Collection']) Score.create(name: 'Thumbnail', code: 'normalized_thumbnail', weight: 3, active: true, score_type: ['LearningObject', 'Collection']) diff --git a/db/seeds/subjects.rb b/db/seeds/subjects.rb index 53f8ea95d..b259b475d 100644 --- a/db/seeds/subjects.rb +++ b/db/seeds/subjects.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + def subjects [ {name:'Arte'}, diff --git a/docker-compose.yml b/docker-compose.yml index 30949bc2f..107fbac4b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + web: build: . volumes: diff --git a/insert_header.rb b/insert_header.rb index 8e4339c0b..3559e6ff5 100644 --- a/insert_header.rb +++ b/insert_header.rb @@ -1,5 +1,24 @@ #!/usr/bin/env ruby +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + + require 'fileutils' # array of tuples diff --git a/lib/log/database_logger.rb b/lib/log/database_logger.rb index aafd1aea4..dcb093a6a 100644 --- a/lib/log/database_logger.rb +++ b/lib/log/database_logger.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Log class DatabaseLogger < Logger diff --git a/lib/log/logging.rb b/lib/log/logging.rb index 13577bef8..303801083 100644 --- a/lib/log/logging.rb +++ b/lib/log/logging.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Log module Logging diff --git a/lib/portalmec/sociable_tests.rb b/lib/portalmec/sociable_tests.rb index 822eff0d8..6eda3d5aa 100644 --- a/lib/portalmec/sociable_tests.rb +++ b/lib/portalmec/sociable_tests.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'active_support' module Portalmec::SociableTests diff --git a/lib/string.rb b/lib/string.rb index 8b79f87d5..f220ae59c 100644 --- a/lib/string.rb +++ b/lib/string.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + class String def to_bool diff --git a/lib/tasks/attachment.rake b/lib/tasks/attachment.rake index c63407518..2d4ae4c14 100644 --- a/lib/tasks/attachment.rake +++ b/lib/tasks/attachment.rake @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + namespace :attachment do desc 'Change learning object\' default attachment to mp4' task video_mp4: :environment do diff --git a/lib/tasks/attachment_maintaining_service.rake b/lib/tasks/attachment_maintaining_service.rake index 13e3f6a29..9ca73882a 100644 --- a/lib/tasks/attachment_maintaining_service.rake +++ b/lib/tasks/attachment_maintaining_service.rake @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'fileutils' namespace :attachment_maintaining_service do diff --git a/lib/tasks/attachments.rake b/lib/tasks/attachments.rake index 5cfcca9f4..895a2f208 100644 --- a/lib/tasks/attachments.rake +++ b/lib/tasks/attachments.rake @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + namespace :attachment do desc 'Set mime type where is unknown' task set_unknown: :environment do diff --git a/lib/tasks/convert_video.rake b/lib/tasks/convert_video.rake index 3f7de8bea..8f5ac63ff 100644 --- a/lib/tasks/convert_video.rake +++ b/lib/tasks/convert_video.rake @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + namespace :convert do desc "Convert videos to mp4" diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake index 086e22b35..68772c93b 100644 --- a/lib/tasks/db.rake +++ b/lib/tasks/db.rake @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + namespace :db do desc 'Dumps the database to backups' task :dump, [:filename] => :environment do |_task, args| diff --git a/lib/tasks/import/educational_stage.rake b/lib/tasks/import/educational_stage.rake index 818e9adab..a22429b08 100644 --- a/lib/tasks/import/educational_stage.rake +++ b/lib/tasks/import/educational_stage.rake @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'rainbow' require 'logger' diff --git a/lib/tasks/import/institutions.rake b/lib/tasks/import/institutions.rake index 13e3615f0..d2f1ef2e4 100644 --- a/lib/tasks/import/institutions.rake +++ b/lib/tasks/import/institutions.rake @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'rainbow' namespace :import do diff --git a/lib/tasks/import/learning_objects.rake b/lib/tasks/import/learning_objects.rake index 1002ba94b..0b9ae5583 100644 --- a/lib/tasks/import/learning_objects.rake +++ b/lib/tasks/import/learning_objects.rake @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + namespace :import do desc 'import learning objects from dspace' diff --git a/lib/tasks/import/subject.rake b/lib/tasks/import/subject.rake index 866ded322..e8c2165a3 100644 --- a/lib/tasks/import/subject.rake +++ b/lib/tasks/import/subject.rake @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'rainbow' require 'logger' diff --git a/lib/tasks/import/tags.rake b/lib/tasks/import/tags.rake index ee3a84f1b..eb581d065 100644 --- a/lib/tasks/import/tags.rake +++ b/lib/tasks/import/tags.rake @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'rainbow' namespace :import do diff --git a/lib/tasks/language.rake b/lib/tasks/language.rake index ae99b5a92..b0764658d 100644 --- a/lib/tasks/language.rake +++ b/lib/tasks/language.rake @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + namespace :language do desc 'Clean languages that fail the validations' task :clean => :environment do diff --git a/lib/tasks/object_type.rake b/lib/tasks/object_type.rake index 05f0d8e8b..f0d09f024 100644 --- a/lib/tasks/object_type.rake +++ b/lib/tasks/object_type.rake @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + namespace :object_type do desc 'Destroy the types that are not defaults' task :restart => :environment do diff --git a/lib/tasks/portalmec.rake b/lib/tasks/portalmec.rake index aa60378c6..efa8e3050 100644 --- a/lib/tasks/portalmec.rake +++ b/lib/tasks/portalmec.rake @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + namespace :portalmec do desc 'setup initial environment' task :setup do diff --git a/lib/tasks/score.rake b/lib/tasks/score.rake index 784815eac..da9ff84bd 100644 --- a/lib/tasks/score.rake +++ b/lib/tasks/score.rake @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + namespace :score do desc 'calculate all objects async' task calculate_all: :environment do diff --git a/lib/tasks/tags.rake b/lib/tasks/tags.rake index e87482c4a..d6e8e5e22 100644 --- a/lib/tasks/tags.rake +++ b/lib/tasks/tags.rake @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + namespace :tag do desc "Define topics" diff --git a/lib/tasks/thumbnail.rake b/lib/tasks/thumbnail.rake index 79c5b8de6..4ab597b73 100644 --- a/lib/tasks/thumbnail.rake +++ b/lib/tasks/thumbnail.rake @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'rainbow' namespace :thumbnail do diff --git a/lib/thumbnail/generatable_strategy.rb b/lib/thumbnail/generatable_strategy.rb index 24ebc3bde..185ba4e46 100644 --- a/lib/thumbnail/generatable_strategy.rb +++ b/lib/thumbnail/generatable_strategy.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'mimemagic' ## diff --git a/lib/thumbnail/strategies/image_thumbnail_generator.rb b/lib/thumbnail/strategies/image_thumbnail_generator.rb index 62b75b5b4..a5f7533d8 100644 --- a/lib/thumbnail/strategies/image_thumbnail_generator.rb +++ b/lib/thumbnail/strategies/image_thumbnail_generator.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Thumbnail module Strategies class ImageThumbnailGenerator < ::Thumbnail::GeneratableStrategy diff --git a/lib/thumbnail/strategies/pdf_thumbnail_generator.rb b/lib/thumbnail/strategies/pdf_thumbnail_generator.rb index 0358707e3..736c3925f 100644 --- a/lib/thumbnail/strategies/pdf_thumbnail_generator.rb +++ b/lib/thumbnail/strategies/pdf_thumbnail_generator.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module Thumbnail module Strategies class PdfThumbnailGenerator < ::Thumbnail::GeneratableStrategy diff --git a/lib/thumbnail/strategies/url_thumbnail_generator.rb b/lib/thumbnail/strategies/url_thumbnail_generator.rb index 7cac3f8be..e8a9dbb96 100644 --- a/lib/thumbnail/strategies/url_thumbnail_generator.rb +++ b/lib/thumbnail/strategies/url_thumbnail_generator.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'screencap' module Thumbnail diff --git a/lib/thumbnail/strategies/video_thumbnail_generator.rb b/lib/thumbnail/strategies/video_thumbnail_generator.rb index 953b69d28..4f0ea0bf2 100644 --- a/lib/thumbnail/strategies/video_thumbnail_generator.rb +++ b/lib/thumbnail/strategies/video_thumbnail_generator.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'streamio-ffmpeg' module Thumbnail diff --git a/puma.sh b/puma.sh index de64b5f9e..a84c29d72 100644 --- a/puma.sh +++ b/puma.sh @@ -1,4 +1,23 @@ #!/bin/bash + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + source /home/.rvm/scripts/rvm export PUMA_APP_DIR=/portalmec diff --git a/sidekiq.sh b/sidekiq.sh index a4234e9e2..b3af90219 100644 --- a/sidekiq.sh +++ b/sidekiq.sh @@ -1,4 +1,23 @@ #!/bin/bash + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + source /home/.rvm/scripts/rvm export PUMA_APP_DIR=/portalmec diff --git a/spec/acceptance/activities_spec.rb b/spec/acceptance/activities_spec.rb index d20694caa..47fec44ab 100644 --- a/spec/acceptance/activities_spec.rb +++ b/spec/acceptance/activities_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' require 'shared/contexts' diff --git a/spec/acceptance/bookmarks_spec.rb b/spec/acceptance/bookmarks_spec.rb index dec741614..5838be7fa 100644 --- a/spec/acceptance/bookmarks_spec.rb +++ b/spec/acceptance/bookmarks_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' require 'shared/contexts' diff --git a/spec/acceptance/collections_spec.rb b/spec/acceptance/collections_spec.rb index f53cf13d6..39227a819 100644 --- a/spec/acceptance/collections_spec.rb +++ b/spec/acceptance/collections_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' require 'shared/examples' require 'shared/contexts' diff --git a/spec/acceptance/complaints_spec.rb b/spec/acceptance/complaints_spec.rb index c3a1d9c50..ca26a39f1 100644 --- a/spec/acceptance/complaints_spec.rb +++ b/spec/acceptance/complaints_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' resource 'Complaints' do diff --git a/spec/acceptance/contacts_spec.rb b/spec/acceptance/contacts_spec.rb index dfbe7b4c1..5fed52ad0 100644 --- a/spec/acceptance/contacts_spec.rb +++ b/spec/acceptance/contacts_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' resource 'Contacts' do diff --git a/spec/acceptance/downloads_spec.rb b/spec/acceptance/downloads_spec.rb index 635261733..948910cd1 100644 --- a/spec/acceptance/downloads_spec.rb +++ b/spec/acceptance/downloads_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' require 'shared/contexts' diff --git a/spec/acceptance/educational_stages_spec.rb b/spec/acceptance/educational_stages_spec.rb index 31358de60..acfb826ed 100644 --- a/spec/acceptance/educational_stages_spec.rb +++ b/spec/acceptance/educational_stages_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' resource 'Educational Stages' do diff --git a/spec/acceptance/follows_spec.rb b/spec/acceptance/follows_spec.rb index 640b6fcee..7d137f670 100644 --- a/spec/acceptance/follows_spec.rb +++ b/spec/acceptance/follows_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' require 'shared/contexts' diff --git a/spec/acceptance/institutions_spec.rb b/spec/acceptance/institutions_spec.rb index dd64f0630..4c32acd04 100644 --- a/spec/acceptance/institutions_spec.rb +++ b/spec/acceptance/institutions_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' resource 'Institutions' do diff --git a/spec/acceptance/languages_spec.rb b/spec/acceptance/languages_spec.rb index e1a836b24..3d907a023 100644 --- a/spec/acceptance/languages_spec.rb +++ b/spec/acceptance/languages_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' resource 'Languages' do diff --git a/spec/acceptance/learning_objects_spec.rb b/spec/acceptance/learning_objects_spec.rb index 13a8a4f20..f49e95bf1 100644 --- a/spec/acceptance/learning_objects_spec.rb +++ b/spec/acceptance/learning_objects_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' require 'shared/contexts' diff --git a/spec/acceptance/mime_types_spec.rb b/spec/acceptance/mime_types_spec.rb index 5ba38318a..db3fb204b 100644 --- a/spec/acceptance/mime_types_spec.rb +++ b/spec/acceptance/mime_types_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' resource 'Mime Types' do diff --git a/spec/acceptance/object_types_spec.rb b/spec/acceptance/object_types_spec.rb index 35bb936fa..58ec17c74 100644 --- a/spec/acceptance/object_types_spec.rb +++ b/spec/acceptance/object_types_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' resource 'Object Type' do diff --git a/spec/acceptance/reviews_spec.rb b/spec/acceptance/reviews_spec.rb index cc53d363d..95cdd2fca 100644 --- a/spec/acceptance/reviews_spec.rb +++ b/spec/acceptance/reviews_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' require 'shared/contexts' diff --git a/spec/acceptance/searches_spec.rb b/spec/acceptance/searches_spec.rb index 967a2cab9..483f75a04 100644 --- a/spec/acceptance/searches_spec.rb +++ b/spec/acceptance/searches_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' resource 'Searches' do diff --git a/spec/acceptance/statistics_spec.rb b/spec/acceptance/statistics_spec.rb index bc1ece8e1..46c4f2a38 100644 --- a/spec/acceptance/statistics_spec.rb +++ b/spec/acceptance/statistics_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' require 'shared/contexts' diff --git a/spec/acceptance/subjects_spec.rb b/spec/acceptance/subjects_spec.rb index 0919110bb..db4b3e617 100644 --- a/spec/acceptance/subjects_spec.rb +++ b/spec/acceptance/subjects_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' resource 'Subjects' do diff --git a/spec/acceptance/suggestions_spec.rb b/spec/acceptance/suggestions_spec.rb index 9ed9a4493..dbff23814 100644 --- a/spec/acceptance/suggestions_spec.rb +++ b/spec/acceptance/suggestions_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' resource 'Suggestions' do diff --git a/spec/acceptance/tags_spec.rb b/spec/acceptance/tags_spec.rb index 96948d838..f6a1e4afc 100644 --- a/spec/acceptance/tags_spec.rb +++ b/spec/acceptance/tags_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' resource 'Tags' do diff --git a/spec/acceptance/users_spec.rb b/spec/acceptance/users_spec.rb index 47879acd8..1bca1353f 100644 --- a/spec/acceptance/users_spec.rb +++ b/spec/acceptance/users_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'acceptance_helpers' require 'shared/contexts' diff --git a/spec/acceptance_helpers.rb b/spec/acceptance_helpers.rb index 7c13a0819..7854ea494 100644 --- a/spec/acceptance_helpers.rb +++ b/spec/acceptance_helpers.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'rails_helper' require 'rspec_api_documentation' require 'rspec_api_documentation/dsl' diff --git a/spec/controller_helpers.rb b/spec/controller_helpers.rb index 50b1e4f11..c2aa74ba6 100644 --- a/spec/controller_helpers.rb +++ b/spec/controller_helpers.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + module ControllerHelpers def auth_application(app) request.headers['PortalMEC-AppID'] = app.application_id diff --git a/spec/controllers/v1/collections_controller_spec.rb b/spec/controllers/v1/collections_controller_spec.rb index 7f4d4ef05..9b56ab238 100644 --- a/spec/controllers/v1/collections_controller_spec.rb +++ b/spec/controllers/v1/collections_controller_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'rails_helper' RSpec.describe V1::CollectionsController, type: :controller do diff --git a/spec/controllers/v1/omniauth_callbacks_controller_spec.rb b/spec/controllers/v1/omniauth_callbacks_controller_spec.rb index a7bb409ed..5bf2c325b 100644 --- a/spec/controllers/v1/omniauth_callbacks_controller_spec.rb +++ b/spec/controllers/v1/omniauth_callbacks_controller_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'rails_helper' RSpec.describe V1::OmniauthCallbacksController, type: :controller do diff --git a/spec/controllers/v1/statistics_controller_spec.rb b/spec/controllers/v1/statistics_controller_spec.rb index 933e8f29b..84c360611 100644 --- a/spec/controllers/v1/statistics_controller_spec.rb +++ b/spec/controllers/v1/statistics_controller_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'rails_helper' RSpec.describe StatisticsController, type: :controller do diff --git a/spec/factories/applications.rb b/spec/factories/applications.rb index badcbdbec..8cb1c27e6 100644 --- a/spec/factories/applications.rb +++ b/spec/factories/applications.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :application do |f| diff --git a/spec/factories/attachments.rb b/spec/factories/attachments.rb index 4141d1e64..e8826fb61 100644 --- a/spec/factories/attachments.rb +++ b/spec/factories/attachments.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :attachment, class: LearningObject::Attachment do |f| diff --git a/spec/factories/bookmarks.rb b/spec/factories/bookmarks.rb index 2f3ec57c9..662edfe62 100644 --- a/spec/factories/bookmarks.rb +++ b/spec/factories/bookmarks.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :bookmark do bookmarkable diff --git a/spec/factories/collection_items.rb b/spec/factories/collection_items.rb index 74a11af8d..b426b4b90 100644 --- a/spec/factories/collection_items.rb +++ b/spec/factories/collection_items.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :collection_item do collection diff --git a/spec/factories/collections.rb b/spec/factories/collections.rb index e54dded5c..c3ad4022a 100644 --- a/spec/factories/collections.rb +++ b/spec/factories/collections.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :collection do |f| owner diff --git a/spec/factories/complaint_reasons.rb b/spec/factories/complaint_reasons.rb index 3ac8f64da..0401ef1a3 100644 --- a/spec/factories/complaint_reasons.rb +++ b/spec/factories/complaint_reasons.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :complaint_reason do reason { Faker::Lorem.sentence } diff --git a/spec/factories/complaints.rb b/spec/factories/complaints.rb index 8ae27a464..60acea27b 100644 --- a/spec/factories/complaints.rb +++ b/spec/factories/complaints.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :complaint do user diff --git a/spec/factories/contacts.rb b/spec/factories/contacts.rb index 040d4ba85..cfb889a1c 100644 --- a/spec/factories/contacts.rb +++ b/spec/factories/contacts.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :contact do |f| f.name { Faker::Name.name } diff --git a/spec/factories/downloads.rb b/spec/factories/downloads.rb index c4019c9f9..07c04bc1c 100644 --- a/spec/factories/downloads.rb +++ b/spec/factories/downloads.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :download do |f| diff --git a/spec/factories/educational_stages.rb b/spec/factories/educational_stages.rb index 2220d4a01..638dbf844 100644 --- a/spec/factories/educational_stages.rb +++ b/spec/factories/educational_stages.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :educational_stage do sequence(:name) { |i| "EducationalStage #{i}" } diff --git a/spec/factories/follows.rb b/spec/factories/follows.rb index 1610730f1..5345c6229 100644 --- a/spec/factories/follows.rb +++ b/spec/factories/follows.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :follow do user diff --git a/spec/factories/institutions.rb b/spec/factories/institutions.rb index 734bf3b97..30ebe300e 100644 --- a/spec/factories/institutions.rb +++ b/spec/factories/institutions.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :institution do name { Faker::Name.name } diff --git a/spec/factories/languages.rb b/spec/factories/languages.rb index 9c027beee..805d86ca6 100644 --- a/spec/factories/languages.rb +++ b/spec/factories/languages.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :language do |l| l.name { Faker::Address.country } diff --git a/spec/factories/learning_objects.rb b/spec/factories/learning_objects.rb index bc966b466..7214dd5d4 100644 --- a/spec/factories/learning_objects.rb +++ b/spec/factories/learning_objects.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :learning_object, aliases: [:complainable, :downloadable, :reviewable, :stageable, :subjectable, :likeable, :collectionable, :bookmarkable] do sequence(:name) { |i| "LearningObject #{i}" } diff --git a/spec/factories/likes.rb b/spec/factories/likes.rb index efa337e8d..662728114 100644 --- a/spec/factories/likes.rb +++ b/spec/factories/likes.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :like do likeable diff --git a/spec/factories/mime_types.rb b/spec/factories/mime_types.rb index b10761335..5c69ca7fa 100644 --- a/spec/factories/mime_types.rb +++ b/spec/factories/mime_types.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :mime_type do |m| m.mime_type { Faker::File.mime_type} diff --git a/spec/factories/object_types.rb b/spec/factories/object_types.rb index 015e4801f..71f185b2d 100644 --- a/spec/factories/object_types.rb +++ b/spec/factories/object_types.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :object_type do |m| m.name { Faker::Name::name} diff --git a/spec/factories/ratings.rb b/spec/factories/ratings.rb index 299a31ddd..a90a75d0c 100644 --- a/spec/factories/ratings.rb +++ b/spec/factories/ratings.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :rating do name { Faker::Lorem.word } diff --git a/spec/factories/review_ratings.rb b/spec/factories/review_ratings.rb index 4a3e9ba48..811afdbb9 100644 --- a/spec/factories/review_ratings.rb +++ b/spec/factories/review_ratings.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :review_rating do rating diff --git a/spec/factories/reviews.rb b/spec/factories/reviews.rb index e0d3b49d4..8a6955a5d 100644 --- a/spec/factories/reviews.rb +++ b/spec/factories/reviews.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :review do user diff --git a/spec/factories/roles.rb b/spec/factories/roles.rb index 575d1a846..6a40c66b8 100644 --- a/spec/factories/roles.rb +++ b/spec/factories/roles.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :teacher_role, class: Role do |r| r.name 'teacher' diff --git a/spec/factories/stages_relation.rb b/spec/factories/stages_relation.rb index 2d98ac131..99d9e7fb8 100644 --- a/spec/factories/stages_relation.rb +++ b/spec/factories/stages_relation.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :stage_relation do stageable diff --git a/spec/factories/subjects.rb b/spec/factories/subjects.rb index 33b6d8950..7703552bb 100644 --- a/spec/factories/subjects.rb +++ b/spec/factories/subjects.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :subject do name { Faker::Name.name } diff --git a/spec/factories/subjects_relation.rb b/spec/factories/subjects_relation.rb index c33487bc4..f4ad39257 100644 --- a/spec/factories/subjects_relation.rb +++ b/spec/factories/subjects_relation.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :subject_relation do subjectable diff --git a/spec/factories/suggestions.rb b/spec/factories/suggestions.rb index 9b5eb5835..3e740fb39 100644 --- a/spec/factories/suggestions.rb +++ b/spec/factories/suggestions.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :suggestion do |f| f.name { Faker::Lorem.word } diff --git a/spec/factories/taggings.rb b/spec/factories/taggings.rb index 5225d2fa4..4b07f5898 100644 --- a/spec/factories/taggings.rb +++ b/spec/factories/taggings.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :tagging do tag diff --git a/spec/factories/tags.rb b/spec/factories/tags.rb index 3ed954937..f0ebfbdc8 100644 --- a/spec/factories/tags.rb +++ b/spec/factories/tags.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :tag do sequence(:name) { |i| "Tag #{i}" } diff --git a/spec/factories/users.rb b/spec/factories/users.rb index cb315165c..2a6965dd8 100644 --- a/spec/factories/users.rb +++ b/spec/factories/users.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + FactoryGirl.define do factory :user, aliases: [:owner, :publisher, :tagger, :followable] do name { Faker::Name.name } diff --git a/spec/models/application_spec.rb b/spec/models/application_spec.rb index eb2897f98..a4d5ce73e 100644 --- a/spec/models/application_spec.rb +++ b/spec/models/application_spec.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'rails_helper' RSpec.describe Application, type: :model do diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 638e54fe5..b77afee32 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # This file is copied to spec/ when you run 'rails generate rspec:install' ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../../config/environment', __FILE__) diff --git a/spec/shared/contexts.rb b/spec/shared/contexts.rb index 6fe0df567..18feed17f 100644 --- a/spec/shared/contexts.rb +++ b/spec/shared/contexts.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'rails_helper' require 'rspec_api_documentation' require 'rspec_api_documentation/dsl' diff --git a/spec/shared/examples.rb b/spec/shared/examples.rb index 130901e0e..09a2f49aa 100644 --- a/spec/shared/examples.rb +++ b/spec/shared/examples.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + RSpec.shared_examples "a list" do |url, object, klass| get url do parameter :limit, 'Limit of #{object}' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index af81652b1..8e3e5fb6e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'devise' require 'public_activity/testing' diff --git a/start_puma.sh b/start_puma.sh index 056882f3d..3cbfc0cfa 100644 --- a/start_puma.sh +++ b/start_puma.sh @@ -1,4 +1,23 @@ #!/bin/bash + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + source $PUMA_APP_DIR/config/env_vars.sh cd $PUMA_APP_DIR diff --git a/stop_puma.sh b/stop_puma.sh index 3d0833f24..a7e192031 100644 --- a/stop_puma.sh +++ b/stop_puma.sh @@ -1,4 +1,23 @@ #!/bin/bash +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + + cd $PUMA_APP_DIR pumactl -P shared/sockets/pumactl.sock stop diff --git a/test/controllers/v1/collections_controller_test.rb b/test/controllers/v1/collections_controller_test.rb index 69faa2d01..b3e4c483a 100644 --- a/test/controllers/v1/collections_controller_test.rb +++ b/test/controllers/v1/collections_controller_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class V1::CollectionsControllerTest < ActionController::TestCase diff --git a/test/controllers/v1/complaints_controller_test.rb b/test/controllers/v1/complaints_controller_test.rb index 0af89bdb7..48da14334 100644 --- a/test/controllers/v1/complaints_controller_test.rb +++ b/test/controllers/v1/complaints_controller_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class V1::ComplaintControllerTest < ActionController::TestCase diff --git a/test/controllers/v1/feed_controller_test.rb b/test/controllers/v1/feed_controller_test.rb index 84ff5f191..9331a5370 100644 --- a/test/controllers/v1/feed_controller_test.rb +++ b/test/controllers/v1/feed_controller_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class V1::FeedControllerTest < ActionController::TestCase diff --git a/test/controllers/v1/institutions_controller_test.rb b/test/controllers/v1/institutions_controller_test.rb index d1f9d0e20..a8a3b3bc9 100644 --- a/test/controllers/v1/institutions_controller_test.rb +++ b/test/controllers/v1/institutions_controller_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class V1::InstitutionControllerTest < ActionController::TestCase diff --git a/test/controllers/v1/languages_controller_test.rb b/test/controllers/v1/languages_controller_test.rb index 7afb0fd1f..3c024a8d8 100644 --- a/test/controllers/v1/languages_controller_test.rb +++ b/test/controllers/v1/languages_controller_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class V1::LanguagesControllerTest < ActionController::TestCase diff --git a/test/controllers/v1/learning_objects_controller_test.rb b/test/controllers/v1/learning_objects_controller_test.rb index 850a0d112..12accaaaf 100644 --- a/test/controllers/v1/learning_objects_controller_test.rb +++ b/test/controllers/v1/learning_objects_controller_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class V1::LearningObjectsControllerTest < ActionController::TestCase diff --git a/test/controllers/v1/licenses_controller_test.rb b/test/controllers/v1/licenses_controller_test.rb index 514866324..9fffd5a93 100644 --- a/test/controllers/v1/licenses_controller_test.rb +++ b/test/controllers/v1/licenses_controller_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class V1::LicensesControllerTest < ActionController::TestCase diff --git a/test/controllers/v1/mime_types_controller_test.rb b/test/controllers/v1/mime_types_controller_test.rb index 4eb92d28d..22f723b66 100644 --- a/test/controllers/v1/mime_types_controller_test.rb +++ b/test/controllers/v1/mime_types_controller_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class V1::MimeTypesControllerTest < ActionController::TestCase diff --git a/test/controllers/v1/object_types_controller_test.rb b/test/controllers/v1/object_types_controller_test.rb index 0f478ddcf..a96ccd9d9 100644 --- a/test/controllers/v1/object_types_controller_test.rb +++ b/test/controllers/v1/object_types_controller_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class V1::ObjectTypesControllerTest < ActionController::TestCase diff --git a/test/controllers/v1/ratings_controller_test.rb b/test/controllers/v1/ratings_controller_test.rb index d4cbbab0e..de2a84af3 100644 --- a/test/controllers/v1/ratings_controller_test.rb +++ b/test/controllers/v1/ratings_controller_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class V1::RatingControllerTest < ActionController::TestCase diff --git a/test/controllers/v1/reviews_controller_test.rb b/test/controllers/v1/reviews_controller_test.rb index bc641f444..f21467d47 100644 --- a/test/controllers/v1/reviews_controller_test.rb +++ b/test/controllers/v1/reviews_controller_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class V1::ReviewsControllerTest < ActionController::TestCase diff --git a/test/controllers/v1/scores_controller_test.rb b/test/controllers/v1/scores_controller_test.rb index 43a110db1..631bcad46 100644 --- a/test/controllers/v1/scores_controller_test.rb +++ b/test/controllers/v1/scores_controller_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class V1::ScoresControllerTest < ActionController::TestCase diff --git a/test/controllers/v1/search_controller_test.rb b/test/controllers/v1/search_controller_test.rb index a752ea6b8..0d671ec4d 100644 --- a/test/controllers/v1/search_controller_test.rb +++ b/test/controllers/v1/search_controller_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class V1::SearchControllerTest < ActionController::TestCase diff --git a/test/controllers/v1/users/bookmarks_controller_test.rb b/test/controllers/v1/users/bookmarks_controller_test.rb index 933fb8ba3..8ce1e26fc 100644 --- a/test/controllers/v1/users/bookmarks_controller_test.rb +++ b/test/controllers/v1/users/bookmarks_controller_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class V1::Users::BookmarksControllerTest < ActionController::TestCase diff --git a/test/controllers/v1/users_controller_test.rb b/test/controllers/v1/users_controller_test.rb index 6de53ae53..c050a5505 100644 --- a/test/controllers/v1/users_controller_test.rb +++ b/test/controllers/v1/users_controller_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class V1::UsersControllerTest < ActionController::TestCase diff --git a/test/fixtures/applications.yml b/test/fixtures/applications.yml index 190a8c980..881e2ec48 100644 --- a/test/fixtures/applications.yml +++ b/test/fixtures/applications.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + test_app: name: 'test app' domain: 'test.host' diff --git a/test/fixtures/collection_item.yml b/test/fixtures/collection_item.yml index 2a2af3f09..0b2ba1966 100644 --- a/test/fixtures/collection_item.yml +++ b/test/fixtures/collection_item.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + item1: collectionable_id: :user_lo.id (User) collectionable_type: 'LearningObject' diff --git a/test/fixtures/collections.yml b/test/fixtures/collections.yml index 2b0c62981..be81dfa54 100644 --- a/test/fixtures/collections.yml +++ b/test/fixtures/collections.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + ufpr: name: 'UFPR collection' owner: john (User) diff --git a/test/fixtures/complaint_reasons.yml b/test/fixtures/complaint_reasons.yml index 133500e5f..ff35dffba 100644 --- a/test/fixtures/complaint_reasons.yml +++ b/test/fixtures/complaint_reasons.yml @@ -1,2 +1,21 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + reason_1: reason: 'inapropriado' diff --git a/test/fixtures/educational_stages.yml b/test/fixtures/educational_stages.yml index 74f833f15..a1efd635d 100644 --- a/test/fixtures/educational_stages.yml +++ b/test/fixtures/educational_stages.yml @@ -1,2 +1,21 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + stage_teste: name: "teste" diff --git a/test/fixtures/institutions.yml b/test/fixtures/institutions.yml index 788243377..435b8ce0f 100644 --- a/test/fixtures/institutions.yml +++ b/test/fixtures/institutions.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + ufpr: name: 'UFPR institution' address: 'politecnico' diff --git a/test/fixtures/languages.yml b/test/fixtures/languages.yml index bec61bf35..90d250779 100644 --- a/test/fixtures/languages.yml +++ b/test/fixtures/languages.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + portuguese: name: 'Português' code: 'pt_BR' \ No newline at end of file diff --git a/test/fixtures/learning_objects.yml b/test/fixtures/learning_objects.yml index 1dec107ce..053f7b23b 100644 --- a/test/fixtures/learning_objects.yml +++ b/test/fixtures/learning_objects.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: learning_objects diff --git a/test/fixtures/licenses.yml b/test/fixtures/licenses.yml index 0d9a9e479..23515d6e3 100644 --- a/test/fixtures/licenses.yml +++ b/test/fixtures/licenses.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html one: diff --git a/test/fixtures/mime_types.yml b/test/fixtures/mime_types.yml index 5da245b54..084c80261 100644 --- a/test/fixtures/mime_types.yml +++ b/test/fixtures/mime_types.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + jpg: extension: '.jpg' mime_type: 'image/jpg' diff --git a/test/fixtures/object_types.yml b/test/fixtures/object_types.yml index 83755e6b7..d7672dc69 100644 --- a/test/fixtures/object_types.yml +++ b/test/fixtures/object_types.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + image: name: 'Imagem' mime_types: jpg (MimeType) diff --git a/test/fixtures/ratings.yml b/test/fixtures/ratings.yml index b609fa706..1dbb1efb6 100644 --- a/test/fixtures/ratings.yml +++ b/test/fixtures/ratings.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + usability: name: 'usability' diff --git a/test/fixtures/review_ratings.yml b/test/fixtures/review_ratings.yml index ae063f108..450786515 100644 --- a/test/fixtures/review_ratings.yml +++ b/test/fixtures/review_ratings.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + one_collection_review_rating: review: collection (Review) rating: usability (Rating) diff --git a/test/fixtures/reviews.yml b/test/fixtures/reviews.yml index abde352da..53b151424 100644 --- a/test/fixtures/reviews.yml +++ b/test/fixtures/reviews.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + collection: name: 'my collection review' description: 'testing a review about collection' diff --git a/test/fixtures/roles.yml b/test/fixtures/roles.yml index bf6175cd0..b951e6657 100644 --- a/test/fixtures/roles.yml +++ b/test/fixtures/roles.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + teacher: name: 'teacher' diff --git a/test/fixtures/score_user_categories.yml b/test/fixtures/score_user_categories.yml index 12393cb65..01506650b 100644 --- a/test/fixtures/score_user_categories.yml +++ b/test/fixtures/score_user_categories.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: score_user_categories diff --git a/test/fixtures/scores.yml b/test/fixtures/scores.yml index 26565d3cc..f6fc54e97 100644 --- a/test/fixtures/scores.yml +++ b/test/fixtures/scores.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: scores diff --git a/test/fixtures/subjects.yml b/test/fixtures/subjects.yml index 2cbfceca3..294f9e54c 100644 --- a/test/fixtures/subjects.yml +++ b/test/fixtures/subjects.yml @@ -1,2 +1,21 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + subject_one: name: 'teste' diff --git a/test/fixtures/taggings.yml b/test/fixtures/taggings.yml index caf6e6396..1f670e4ae 100644 --- a/test/fixtures/taggings.yml +++ b/test/fixtures/taggings.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + tagging_one: tag: tag_one tagger: john (User) diff --git a/test/fixtures/tags.yml b/test/fixtures/tags.yml index e3ee9f4b9..4937b2a42 100644 --- a/test/fixtures/tags.yml +++ b/test/fixtures/tags.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + tag_one: name: 'Português' tag_two: diff --git a/test/fixtures/user_categories.yml b/test/fixtures/user_categories.yml index b3b825ff7..1ab7cb19c 100644 --- a/test/fixtures/user_categories.yml +++ b/test/fixtures/user_categories.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: user_categories diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml index daf0ffed5..b4d1a1d4f 100644 --- a/test/fixtures/users.yml +++ b/test/fixtures/users.yml @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + john: name: 'John' email: 'john@test.com' diff --git a/test/models/application_test.rb b/test/models/application_test.rb index f959b7a8b..da2a27f28 100644 --- a/test/models/application_test.rb +++ b/test/models/application_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class ApplicationTest < ActiveSupport::TestCase diff --git a/test/models/bookmark_test.rb b/test/models/bookmark_test.rb index 41533dbb3..416bc0203 100644 --- a/test/models/bookmark_test.rb +++ b/test/models/bookmark_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: bookmarks diff --git a/test/models/carousel_test.rb b/test/models/carousel_test.rb index 663ca53b1..f05dbb41d 100644 --- a/test/models/carousel_test.rb +++ b/test/models/carousel_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: carousels diff --git a/test/models/collection_item_test.rb b/test/models/collection_item_test.rb index 26cf5e857..2f51b589a 100644 --- a/test/models/collection_item_test.rb +++ b/test/models/collection_item_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: collection_items diff --git a/test/models/collection_test.rb b/test/models/collection_test.rb index 242f37dbf..f12719030 100644 --- a/test/models/collection_test.rb +++ b/test/models/collection_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: collections diff --git a/test/models/complaint_reason_test.rb b/test/models/complaint_reason_test.rb index e283642fe..1356a9953 100644 --- a/test/models/complaint_reason_test.rb +++ b/test/models/complaint_reason_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: complaint_reasons diff --git a/test/models/complaint_test.rb b/test/models/complaint_test.rb index 40bf03206..cbfdde9ea 100644 --- a/test/models/complaint_test.rb +++ b/test/models/complaint_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: complaints diff --git a/test/models/download_test.rb b/test/models/download_test.rb index 207c3afb3..08c4d084b 100644 --- a/test/models/download_test.rb +++ b/test/models/download_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: downloads diff --git a/test/models/follow_test.rb b/test/models/follow_test.rb index c4a512a8f..73c93c0a5 100644 --- a/test/models/follow_test.rb +++ b/test/models/follow_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: follows diff --git a/test/models/institution_test.rb b/test/models/institution_test.rb index 1fa31ccab..5ca28aee6 100644 --- a/test/models/institution_test.rb +++ b/test/models/institution_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: institutions diff --git a/test/models/language_test.rb b/test/models/language_test.rb index 03d2bdf92..6a1433625 100644 --- a/test/models/language_test.rb +++ b/test/models/language_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: languages diff --git a/test/models/learning_object/attachment_test.rb b/test/models/learning_object/attachment_test.rb index bc9898cd7..dcfe1b559 100644 --- a/test/models/learning_object/attachment_test.rb +++ b/test/models/learning_object/attachment_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: learning_object_attachments diff --git a/test/models/learning_object_test.rb b/test/models/learning_object_test.rb index 18a418a45..d90f4bf5b 100644 --- a/test/models/learning_object_test.rb +++ b/test/models/learning_object_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: learning_objects diff --git a/test/models/license_test.rb b/test/models/license_test.rb index c56bac9d4..3d0a69173 100644 --- a/test/models/license_test.rb +++ b/test/models/license_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class LicenseTest < ActiveSupport::TestCase diff --git a/test/models/like_test.rb b/test/models/like_test.rb index 3f9bf0015..ec489f729 100644 --- a/test/models/like_test.rb +++ b/test/models/like_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: likes diff --git a/test/models/object_type_test.rb b/test/models/object_type_test.rb index 3c230dbac..52e719b2a 100644 --- a/test/models/object_type_test.rb +++ b/test/models/object_type_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: object_types diff --git a/test/models/rate_test.rb b/test/models/rate_test.rb index 367e667c0..1bc6d9ba0 100644 --- a/test/models/rate_test.rb +++ b/test/models/rate_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: rates diff --git a/test/models/rating_test.rb b/test/models/rating_test.rb index b93e91847..e19beea2c 100644 --- a/test/models/rating_test.rb +++ b/test/models/rating_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: ratings diff --git a/test/models/review_rating_test.rb b/test/models/review_rating_test.rb index 97e231acd..d5ae313c7 100644 --- a/test/models/review_rating_test.rb +++ b/test/models/review_rating_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: review_ratings diff --git a/test/models/review_test.rb b/test/models/review_test.rb index df6d552ca..4e3174a56 100644 --- a/test/models/review_test.rb +++ b/test/models/review_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: reviews diff --git a/test/models/role_test.rb b/test/models/role_test.rb index ff22856a5..37a8c8619 100644 --- a/test/models/role_test.rb +++ b/test/models/role_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: roles diff --git a/test/models/score_test.rb b/test/models/score_test.rb index 36d870627..55a5fa18f 100644 --- a/test/models/score_test.rb +++ b/test/models/score_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: scores diff --git a/test/models/score_user_category_test.rb b/test/models/score_user_category_test.rb index 3eaa66bb8..ed33dd210 100644 --- a/test/models/score_user_category_test.rb +++ b/test/models/score_user_category_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: score_user_categories diff --git a/test/models/search_test.rb b/test/models/search_test.rb index 71d70c326..c538fb2de 100644 --- a/test/models/search_test.rb +++ b/test/models/search_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class SearchTest < ActiveSupport::TestCase diff --git a/test/models/share_test.rb b/test/models/share_test.rb index f4eaeb542..4f44835d0 100644 --- a/test/models/share_test.rb +++ b/test/models/share_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: shares diff --git a/test/models/stage_relation_test.rb b/test/models/stage_relation_test.rb index b21ecb05d..83807d20e 100644 --- a/test/models/stage_relation_test.rb +++ b/test/models/stage_relation_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class StageRelationTest < ActiveSupport::TestCase diff --git a/test/models/subject_test.rb b/test/models/subject_test.rb index d54e76f75..6fbc6c71a 100644 --- a/test/models/subject_test.rb +++ b/test/models/subject_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class SubjectTest < ActiveSupport::TestCase diff --git a/test/models/tag_test.rb b/test/models/tag_test.rb index e2ac6e698..65dc09cc2 100644 --- a/test/models/tag_test.rb +++ b/test/models/tag_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class TagTest < ActiveSupport::TestCase diff --git a/test/models/tagging_test.rb b/test/models/tagging_test.rb index 77dbeac45..87cb4e6f9 100644 --- a/test/models/tagging_test.rb +++ b/test/models/tagging_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class TaggingTest < ActiveSupport::TestCase diff --git a/test/models/user_category_test.rb b/test/models/user_category_test.rb index 379129a8f..9b3d0f9bc 100644 --- a/test/models/user_category_test.rb +++ b/test/models/user_category_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: user_categories diff --git a/test/models/user_test.rb b/test/models/user_test.rb index 86e0c5ce4..0904c45de 100644 --- a/test/models/user_test.rb +++ b/test/models/user_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: users diff --git a/test/models/view_test.rb b/test/models/view_test.rb index 201fae530..fdf88a6e0 100644 --- a/test/models/view_test.rb +++ b/test/models/view_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + # == Schema Information # # Table name: views diff --git a/test/services/feedback_service_test.rb b/test/services/feedback_service_test.rb index fedca7859..f84a200f0 100644 --- a/test/services/feedback_service_test.rb +++ b/test/services/feedback_service_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class FeedbackServiceTest < ActiveSupport::TestCase diff --git a/test/services/institution_importer_test.rb b/test/services/institution_importer_test.rb index 1679de0b8..ca3668c25 100644 --- a/test/services/institution_importer_test.rb +++ b/test/services/institution_importer_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class InstitutionImporterTest < ActiveSupport::TestCase diff --git a/test/services/score_calculator_service_test.rb b/test/services/score_calculator_service_test.rb index 92271545d..35f3b7613 100644 --- a/test/services/score_calculator_service_test.rb +++ b/test/services/score_calculator_service_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class ScoreCalculatorServiceTest < ActiveSupport::TestCase diff --git a/test/services/search_service_test.rb b/test/services/search_service_test.rb index 12eb1f883..5368c211c 100644 --- a/test/services/search_service_test.rb +++ b/test/services/search_service_test.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + require 'test_helper' class SearchServiceTest < ActiveSupport::TestCase diff --git a/test/test_helper.rb b/test/test_helper.rb index 60e26f4ca..eb89f935e 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,3 +1,22 @@ + +# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre +# Departamento de Informatica - Universidade Federal do Parana +# +# This file is part of portalmec. +# +# portalmec is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# portalmec is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with portalmec. If not, see <http://www.gnu.org/licenses/>. + ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' -- GitLab