Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
portalmec
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
PortalMEC
portalmec
Commits
0fe9f3f8
Commit
0fe9f3f8
authored
Jul 06, 2017
by
bfs15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added agpl headers
parent
c677e1f7
Changes
517
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
517 changed files
with
9823 additions
and
0 deletions
+9823
-0
learning_object_builder.rb
app/builders/learning_object_builder.rb
+19
-0
application_controller.rb
app/controllers/application_controller.rb
+19
-0
deleted_objects_controller.rb
app/controllers/concerns/deleted_objects_controller.rb
+19
-0
downloadable_controller.rb
app/controllers/concerns/downloadable_controller.rb
+19
-0
followable_controller.rb
app/controllers/concerns/followable_controller.rb
+19
-0
highlights_controller.rb
app/controllers/concerns/highlights_controller.rb
+19
-0
paginator.rb
app/controllers/concerns/paginator.rb
+19
-0
publisher_controller.rb
app/controllers/concerns/publisher_controller.rb
+19
-0
resource_model.rb
app/controllers/concerns/resource_model.rb
+19
-0
reviewable_controller.rb
app/controllers/concerns/reviewable_controller.rb
+19
-0
sociable_controller.rb
app/controllers/concerns/sociable_controller.rb
+19
-0
stageable_controller.rb
app/controllers/concerns/stageable_controller.rb
+19
-0
subjectable_controller.rb
app/controllers/concerns/subjectable_controller.rb
+19
-0
taggable_controller.rb
app/controllers/concerns/taggable_controller.rb
+19
-0
activities_controller.rb
app/controllers/v1/activities_controller.rb
+19
-0
collections_controller.rb
app/controllers/v1/collections_controller.rb
+19
-0
complaints_controller.rb
app/controllers/v1/complaints_controller.rb
+19
-0
contacts_controller.rb
app/controllers/v1/contacts_controller.rb
+19
-0
educational_stages_controller.rb
app/controllers/v1/educational_stages_controller.rb
+19
-0
feed_controller.rb
app/controllers/v1/feed_controller.rb
+19
-0
institutions_controller.rb
app/controllers/v1/institutions_controller.rb
+19
-0
languages_controller.rb
app/controllers/v1/languages_controller.rb
+19
-0
attachment_controller.rb
app/controllers/v1/learning_objects/attachment_controller.rb
+19
-0
chunks_controller.rb
app/controllers/v1/learning_objects/chunks_controller.rb
+19
-0
publishes_controller.rb
app/controllers/v1/learning_objects/publishes_controller.rb
+19
-0
uploads_controller.rb
app/controllers/v1/learning_objects/uploads_controller.rb
+19
-0
learning_objects_controller.rb
app/controllers/v1/learning_objects_controller.rb
+19
-0
licenses_controller.rb
app/controllers/v1/licenses_controller.rb
+19
-0
mime_types_controller.rb
app/controllers/v1/mime_types_controller.rb
+19
-0
object_types_controller.rb
app/controllers/v1/object_types_controller.rb
+19
-0
omniauth_callbacks_controller.rb
app/controllers/v1/omniauth_callbacks_controller.rb
+19
-0
packages_controller.rb
app/controllers/v1/packages_controller.rb
+19
-0
ratings_controller.rb
app/controllers/v1/ratings_controller.rb
+19
-0
reviews_controller.rb
app/controllers/v1/reviews_controller.rb
+19
-0
roles_controller.rb
app/controllers/v1/roles_controller.rb
+19
-0
scores_controller.rb
app/controllers/v1/scores_controller.rb
+19
-0
search_controller.rb
app/controllers/v1/search_controller.rb
+19
-0
statistics_controller.rb
app/controllers/v1/statistics_controller.rb
+19
-0
subjects_controller.rb
app/controllers/v1/subjects_controller.rb
+19
-0
suggestions_controller.rb
app/controllers/v1/suggestions_controller.rb
+19
-0
bookmarks_controller.rb
app/controllers/v1/users/bookmarks_controller.rb
+19
-0
users_controller.rb
app/controllers/v1/users_controller.rb
+19
-0
versions_controller.rb
app/controllers/v1/versions_controller.rb
+19
-0
application_job.rb
app/jobs/application_job.rb
+19
-0
application_mailer.rb
app/mailers/application_mailer.rb
+19
-0
contacts_mailer.rb
app/mailers/contacts_mailer.rb
+19
-0
suggestions_mailer.rb
app/mailers/suggestions_mailer.rb
+19
-0
application.rb
app/models/application.rb
+19
-0
application_record.rb
app/models/application_record.rb
+19
-0
bookmark.rb
app/models/bookmark.rb
+19
-0
bug.rb
app/models/bug.rb
+19
-0
carousel.rb
app/models/carousel.rb
+19
-0
collection.rb
app/models/collection.rb
+19
-0
collection_item.rb
app/models/collection_item.rb
+19
-0
complaint.rb
app/models/complaint.rb
+19
-0
complaint_reason.rb
app/models/complaint_reason.rb
+19
-0
complainable.rb
app/models/concerns/complainable.rb
+19
-0
downloadable.rb
app/models/concerns/downloadable.rb
+19
-0
followable.rb
app/models/concerns/followable.rb
+19
-0
highlights.rb
app/models/concerns/highlights.rb
+19
-0
metadatable.rb
app/models/concerns/metadatable.rb
+19
-0
publisher.rb
app/models/concerns/publisher.rb
+19
-0
reputationable.rb
app/models/concerns/reputationable.rb
+19
-0
reviewable.rb
app/models/concerns/reviewable.rb
+19
-0
scoreable.rb
app/models/concerns/scoreable.rb
+19
-0
sociable.rb
app/models/concerns/sociable.rb
+19
-0
stageable.rb
app/models/concerns/stageable.rb
+19
-0
stateful.rb
app/models/concerns/stateful.rb
+19
-0
subjectable.rb
app/models/concerns/subjectable.rb
+19
-0
taggable.rb
app/models/concerns/taggable.rb
+19
-0
tagger.rb
app/models/concerns/tagger.rb
+19
-0
thumbnailable.rb
app/models/concerns/thumbnailable.rb
+19
-0
trackable.rb
app/models/concerns/trackable.rb
+19
-0
contact.rb
app/models/contact.rb
+19
-0
download.rb
app/models/download.rb
+19
-0
educational_stage.rb
app/models/educational_stage.rb
+19
-0
follow.rb
app/models/follow.rb
+19
-0
institution.rb
app/models/institution.rb
+19
-0
language.rb
app/models/language.rb
+19
-0
learning_object.rb
app/models/learning_object.rb
+19
-0
attachment.rb
app/models/learning_object/attachment.rb
+19
-0
license.rb
app/models/license.rb
+19
-0
like.rb
app/models/like.rb
+19
-0
mime_type.rb
app/models/mime_type.rb
+19
-0
object_type.rb
app/models/object_type.rb
+19
-0
package.rb
app/models/package.rb
+19
-0
package_item.rb
app/models/package_item.rb
+19
-0
rate.rb
app/models/rate.rb
+19
-0
rating.rb
app/models/rating.rb
+19
-0
review.rb
app/models/review.rb
+19
-0
review_rating.rb
app/models/review_rating.rb
+19
-0
role.rb
app/models/role.rb
+19
-0
score.rb
app/models/score.rb
+19
-0
score_user_category.rb
app/models/score_user_category.rb
+19
-0
search.rb
app/models/search.rb
+19
-0
share.rb
app/models/share.rb
+19
-0
stage_relation.rb
app/models/stage_relation.rb
+19
-0
subject.rb
app/models/subject.rb
+19
-0
subject_relation.rb
app/models/subject_relation.rb
+19
-0
suggestion.rb
app/models/suggestion.rb
+19
-0
tag.rb
app/models/tag.rb
+19
-0
tagging.rb
app/models/tagging.rb
+19
-0
user.rb
app/models/user.rb
+19
-0
user_category.rb
app/models/user_category.rb
+19
-0
view.rb
app/models/view.rb
+19
-0
activity_policy.rb
app/policies/activity_policy.rb
+19
-0
application_policy.rb
app/policies/application_policy.rb
+19
-0
bookmark_policy.rb
app/policies/bookmark_policy.rb
+19
-0
collection_policy.rb
app/policies/collection_policy.rb
+19
-0
complaint_policy.rb
app/policies/complaint_policy.rb
+19
-0
followable_policy.rb
app/policies/followable_policy.rb
+19
-0
institution_policy.rb
app/policies/institution_policy.rb
+19
-0
language_policy.rb
app/policies/language_policy.rb
+19
-0
learning_object_policy.rb
app/policies/learning_object_policy.rb
+19
-0
license_policy.rb
app/policies/license_policy.rb
+19
-0
mime_type_policy.rb
app/policies/mime_type_policy.rb
+19
-0
object_type_policy.rb
app/policies/object_type_policy.rb
+19
-0
publisher_policy.rb
app/policies/publisher_policy.rb
+19
-0
rating_policy.rb
app/policies/rating_policy.rb
+19
-0
reportable_policy.rb
app/policies/reportable_policy.rb
+19
-0
review_policy.rb
app/policies/review_policy.rb
+19
-0
role_policy.rb
app/policies/role_policy.rb
+19
-0
search_policy.rb
app/policies/search_policy.rb
+19
-0
sociable_policy.rb
app/policies/sociable_policy.rb
+19
-0
stageable_policy.rb
app/policies/stageable_policy.rb
+19
-0
subjectable_policy.rb
app/policies/subjectable_policy.rb
+19
-0
taggable_policy.rb
app/policies/taggable_policy.rb
+19
-0
user_policy.rb
app/policies/user_policy.rb
+19
-0
welcome_policy.rb
app/policies/welcome_policy.rb
+19
-0
array_serializer.rb
app/serializers/array_serializer.rb
+19
-0
collection_item_serializer.rb
app/serializers/collection_item_serializer.rb
+19
-0
collection_min_serializer.rb
app/serializers/collection_min_serializer.rb
+19
-0
collection_serializer.rb
app/serializers/collection_serializer.rb
+19
-0
contact_serializer.rb
app/serializers/contact_serializer.rb
+19
-0
follow_serializer.rb
app/serializers/follow_serializer.rb
+19
-0
institution_serializer.rb
app/serializers/institution_serializer.rb
+19
-0
language_serializer.rb
app/serializers/language_serializer.rb
+19
-0
attachment_serializer.rb
app/serializers/learning_object/attachment_serializer.rb
+19
-0
learning_object_obaa_serializer.rb
app/serializers/learning_object_obaa_serializer.rb
+19
-0
learning_object_serializer.rb
app/serializers/learning_object_serializer.rb
+19
-0
license_serializer.rb
app/serializers/license_serializer.rb
+19
-0
mime_type_serializer.rb
app/serializers/mime_type_serializer.rb
+19
-0
object_type_serializer.rb
app/serializers/object_type_serializer.rb
+19
-0
version_serializer.rb
app/serializers/paper_trail/version_serializer.rb
+19
-0
activity_serializer.rb
app/serializers/public_activity/activity_serializer.rb
+19
-0
rate_serializer.rb
app/serializers/rate_serializer.rb
+19
-0
review_rating_serializer.rb
app/serializers/review_rating_serializer.rb
+19
-0
review_serializer.rb
app/serializers/review_serializer.rb
+19
-0
role_serializer.rb
app/serializers/role_serializer.rb
+19
-0
score_serializer.rb
app/serializers/score_serializer.rb
+19
-0
suggestion_serializer.rb
app/serializers/suggestion_serializer.rb
+19
-0
tag_serializer.rb
app/serializers/tag_serializer.rb
+19
-0
user_devise_serializer.rb
app/serializers/user_devise_serializer.rb
+19
-0
user_serializer.rb
app/serializers/user_serializer.rb
+19
-0
activities_filter_service.rb
app/services/activities_filter_service.rb
+19
-0
application_creation_service.rb
app/services/application_creation_service.rb
+19
-0
app_id_generate_service.rb
app/services/applications/app_id_generate_service.rb
+19
-0
attachment_cache_service.rb
app/services/attachment_cache_service.rb
+19
-0
attachment_mapper.rb
app/services/dspace/attachment_mapper.rb
+19
-0
learning_object_importer.rb
app/services/dspace/learning_object_importer.rb
+19
-0
dspace_service.rb
app/services/dspace_service.rb
+19
-0
feedback_service.rb
app/services/feedback_service.rb
+19
-0
gitlab_bugreporter_service.rb
app/services/gitlab_bugreporter_service.rb
+19
-0
institution_importer.rb
app/services/institution_importer.rb
+19
-0
learning_object_publisher.rb
app/services/learning_object_publisher.rb
+19
-0
package_service.rb
app/services/package_service.rb
+19
-0
generator.rb
app/services/package_service/generator.rb
+19
-0
link.rb
app/services/package_service/link.rb
+19
-0
create_review_service.rb
app/services/reviews/create_review_service.rb
+19
-0
safe_object_type_destroy_service.rb
app/services/safe_object_type_destroy_service.rb
+19
-0
sanitization_service.rb
app/services/sanitization_service.rb
+19
-0
score_calculator_service.rb
app/services/score_calculator_service.rb
+19
-0
search_service.rb
app/services/search_service.rb
+19
-0
collection.rb
app/services/search_service/collection.rb
+19
-0
learning_object.rb
app/services/search_service/learning_object.rb
+19
-0
model.rb
app/services/search_service/model.rb
+19
-0
user.rb
app/services/search_service/user.rb
+19
-0
tags_importer.rb
app/services/tags_importer.rb
+19
-0
thumbnail_service.rb
app/services/thumbnail_service.rb
+19
-0
attachment_cache_worker.rb
app/workers/attachment_cache_worker.rb
+19
-0
bitstream_mime_worker.rb
app/workers/bitstream_mime_worker.rb
+19
-0
convert_video_worker.rb
app/workers/convert_video_worker.rb
+19
-0
delete_bitstream_worker.rb
app/workers/delete_bitstream_worker.rb
+19
-0
dspace_upload_worker.rb
app/workers/dspace_upload_worker.rb
+19
-0
package_worker.rb
app/workers/package_worker.rb
+19
-0
review_average_calculator_worker.rb
app/workers/review_average_calculator_worker.rb
+19
-0
score_calculator_worker.rb
app/workers/score_calculator_worker.rb
+19
-0
thumbnail_generate_worker.rb
app/workers/thumbnail_generate_worker.rb
+19
-0
config.ru
config.ru
+19
-0
application.rb
config/application.rb
+19
-0
boot.rb
config/boot.rb
+19
-0
cable.yml
config/cable.yml
+19
-0
deploy.rb
config/deploy.rb
+19
-0
database.yml
config/docker/database.yml
+19
-0
sidekiq.yml
config/docker/sidekiq.yml
+19
-0
dspace.yml
config/dspace.yml
+19
-0
env_vars.sh
config/env_vars.sh
+19
-0
environment.rb
config/environment.rb
+19
-0
development.rb
config/environments/development.rb
+19
-0
production.rb
config/environments/production.rb
+19
-0
test.rb
config/environments/test.rb
+19
-0
feature.yml
config/feature.yml
+19
-0
active_record_belongs_to_required_by_default.rb
...tializers/active_record_belongs_to_required_by_default.rb
+19
-0
application_controller_renderer.rb
config/initializers/application_controller_renderer.rb
+19
-0
assets.rb
config/initializers/assets.rb
+19
-0
backtrace_silencers.rb
config/initializers/backtrace_silencers.rb
+19
-0
callback_terminator.rb
config/initializers/callback_terminator.rb
+19
-0
cookies_serializer.rb
config/initializers/cookies_serializer.rb
+19
-0
devise.rb
config/initializers/devise.rb
+19
-0
devise_token_auth.rb
config/initializers/devise_token_auth.rb
+19
-0
eager_load.rb
config/initializers/eager_load.rb
+19
-0
elasticsearch.rb
config/initializers/elasticsearch.rb
+19
-0
feature.rb
config/initializers/feature.rb
+19
-0
filter_parameter_logging.rb
config/initializers/filter_parameter_logging.rb
+19
-0
gitlab.rb
config/initializers/gitlab.rb
+19
-0
inflections.rb
config/initializers/inflections.rb
+19
-0
mime_types.rb
config/initializers/mime_types.rb
+19
-0
new_framework_defaults.rb
config/initializers/new_framework_defaults.rb
+19
-0
omniauth.rb
config/initializers/omniauth.rb
+19
-0
paper_trail.rb
config/initializers/paper_trail.rb
+19
-0
postgresql_database_tasks.rb
config/initializers/postgresql_database_tasks.rb
+19
-0
rack-attack.rb
config/initializers/rack-attack.rb
+19
-0
session_store.rb
config/initializers/session_store.rb
+19
-0
sidekiq.rb
config/initializers/sidekiq.rb
+19
-0
wrap_parameters.rb
config/initializers/wrap_parameters.rb
+19
-0
activerecord.pt-BR.yml
config/locales/activerecord.pt-BR.yml
+19
-0
devise.en.yml
config/locales/devise.en.yml
+19
-0
devise.pt-BR.yml
config/locales/devise.pt-BR.yml
+19
-0
en.yml
config/locales/en.yml
+19
-0
pt-BR.yml
config/locales/pt-BR.yml
+19
-0
puma.rb
config/puma.rb
+19
-0
routes.rb
config/routes.rb
+19
-0
schedule.rb
config/schedule.rb
+19
-0
secrets.yml
config/secrets.yml
+19
-0
sidekiq.yml
config/sidekiq.yml
+19
-0
spring.rb
config/spring.rb
+19
-0
20150731225848_devise_create_users.rb
db/migrate/20150731225848_devise_create_users.rb
+19
-0
20150828140933_devise_token_auth_create_users.rb
db/migrate/20150828140933_devise_token_auth_create_users.rb
+19
-0
20150904134929_create_roles.rb
db/migrate/20150904134929_create_roles.rb
+19
-0
20150904141558_create_join_table_users_roles.rb
db/migrate/20150904141558_create_join_table_users_roles.rb
+19
-0
20150909135745_add_name_column_to_users.rb
db/migrate/20150909135745_add_name_column_to_users.rb
+19
-0
20150921132848_add_attachment_avatar_to_users.rb
db/migrate/20150921132848_add_attachment_avatar_to_users.rb
+19
-0
20150922141008_create_carousels.rb
db/migrate/20150922141008_create_carousels.rb
+19
-0
20150922141009_add_image_column_to_carousels.rb
db/migrate/20150922141009_add_image_column_to_carousels.rb
+19
-0
20160124114036_create_languages.rb
db/migrate/20160124114036_create_languages.rb
+19
-0
20160124145100_create_object_types.rb
db/migrate/20160124145100_create_object_types.rb
+19
-0
20160125120915_create_learning_objects.rb
db/migrate/20160125120915_create_learning_objects.rb
+19
-0
20160125121603_create_topics.rb
db/migrate/20160125121603_create_topics.rb
+19
-0
20160125122642_learning_objects_topics.rb
db/migrate/20160125122642_learning_objects_topics.rb
+19
-0
20160125122943_create_institutions.rb
db/migrate/20160125122943_create_institutions.rb
+19
-0
20160125123423_create_collections.rb
db/migrate/20160125123423_create_collections.rb
+19
-0
20160125124125_institutions_users.rb
db/migrate/20160125124125_institutions_users.rb
+19
-0
20160125124500_create_complaint_reasons.rb
db/migrate/20160125124500_create_complaint_reasons.rb
+19
-0
20160125124508_create_complaints.rb
db/migrate/20160125124508_create_complaints.rb
+19
-0
20160125132447_create_bookmarks.rb
db/migrate/20160125132447_create_bookmarks.rb
+19
-0
20160127135807_create_reviews.rb
db/migrate/20160127135807_create_reviews.rb
+19
-0
20160128115107_create_views.rb
db/migrate/20160128115107_create_views.rb
+19
-0
20160128115428_create_downloads.rb
db/migrate/20160128115428_create_downloads.rb
+19
-0
20160128115555_create_likes.rb
db/migrate/20160128115555_create_likes.rb
+19
-0
20160128115721_create_shares.rb
db/migrate/20160128115721_create_shares.rb
+19
-0
20160128122557_create_ratings.rb
db/migrate/20160128122557_create_ratings.rb
+19
-0
20160128123028_create_review_ratings.rb
db/migrate/20160128123028_create_review_ratings.rb
+19
-0
20160128123901_create_follows.rb
db/migrate/20160128123901_create_follows.rb
+19
-0
20160128125336_create_collection_items.rb
db/migrate/20160128125336_create_collection_items.rb
+19
-0
20160129191739_create_topic_highlights.rb
db/migrate/20160129191739_create_topic_highlights.rb
+19
-0
20160130191533_create_topic_relationships.rb
db/migrate/20160130191533_create_topic_relationships.rb
+19
-0
20160131115733_add_counter_to_view_like_share_download.rb
...20160131115733_add_counter_to_view_like_share_download.rb
+19
-0
20160201135415_create_learning_object_attachments.rb
...rate/20160201135415_create_learning_object_attachments.rb
+19
-0
20160201140345_remove_bitstreams_column_from_learning_objects.rb
...1140345_remove_bitstreams_column_from_learning_objects.rb
+19
-0
20160202121737_add_state_column_for_learning_objects.rb
...e/20160202121737_add_state_column_for_learning_objects.rb
+19
-0
20160202134938_add_id_dspace_column_for_attachments.rb
...te/20160202134938_add_id_dspace_column_for_attachments.rb
+19
-0
20160215113900_add_description_column_for_ratings.rb
...rate/20160215113900_add_description_column_for_ratings.rb
+19
-0
20160217111317_create_rates.rb
db/migrate/20160217111317_create_rates.rb
+19
-0
20160217122253_create_default_column_for_topics.rb
...igrate/20160217122253_create_default_column_for_topics.rb
+19
-0
20160218100700_add_counter_to_rate.rb
db/migrate/20160218100700_add_counter_to_rate.rb
+19
-0
20160219132305_remove_string_thumbnail.rb
db/migrate/20160219132305_remove_string_thumbnail.rb
+19
-0
20160219132533_add_paperclip_thumbnail.rb
db/migrate/20160219132533_add_paperclip_thumbnail.rb
+19
-0
20160222102900_create_code_column_for_languages.rb
...igrate/20160222102900_create_code_column_for_languages.rb
+19
-0
20160222144157_create_scores.rb
db/migrate/20160222144157_create_scores.rb
+19
-0
20160222144216_create_user_categories.rb
db/migrate/20160222144216_create_user_categories.rb
+19
-0
20160222144259_create_score_user_categories.rb
db/migrate/20160222144259_create_score_user_categories.rb
+19
-0
20160225101700_change_users_add_score.rb
db/migrate/20160225101700_change_users_add_score.rb
+19
-0
20160229164600_change_users_add_score_foreign_key.rb
...rate/20160229164600_change_users_add_score_foreign_key.rb
+19
-0
20160229205701_add_keys.rb
db/migrate/20160229205701_add_keys.rb
+19
-0
20160301103500_change_collections_add_score.rb
db/migrate/20160301103500_change_collections_add_score.rb
+19
-0
20160301103501_add_paperclip_to_attachments.rb
db/migrate/20160301103501_add_paperclip_to_attachments.rb
+19
-0
20160302102500_change_scores_add_score_type.rb
db/migrate/20160302102500_change_scores_add_score_type.rb
+19
-0
20160303120433_add_counter_to_user_collection.rb
db/migrate/20160303120433_add_counter_to_user_collection.rb
+19
-0
20160303181501_add_column_mime_type_for_object_types.rb
...e/20160303181501_add_column_mime_type_for_object_types.rb
+19
-0
20160304100533_change_learning_object_score.rb
db/migrate/20160304100533_change_learning_object_score.rb
+19
-0
20160304102333_add_thumbnail_for_collections.rb
db/migrate/20160304102333_add_thumbnail_for_collections.rb
+19
-0
20160309101900_add_attachment_for_learning_objects.rb
...ate/20160309101900_add_attachment_for_learning_objects.rb
+19
-0
20160310121839_create_mime_types.rb
db/migrate/20160310121839_create_mime_types.rb
+19
-0
20160310124058_remove_mime_types_from_object_types.rb
...ate/20160310124058_remove_mime_types_from_object_types.rb
+19
-0
20160310124059_add_associations_to_object_types_and_mime_types.rb
...124059_add_associations_to_object_types_and_mime_types.rb
+19
-0
20160313192800_add_cache_link_to_attachment.rb
db/migrate/20160313192800_add_cache_link_to_attachment.rb
+19
-0
20160415004548_drop_table_topics.rb
db/migrate/20160415004548_drop_table_topics.rb
+19
-0
20160415004803_drop_table_topic_relationships.rb
db/migrate/20160415004803_drop_table_topic_relationships.rb
+19
-0
20160415005006_drop_table_topic_highlights.rb
db/migrate/20160415005006_drop_table_topic_highlights.rb
+19
-0
20160426144714_create_tags.rb
db/migrate/20160426144714_create_tags.rb
+19
-0
20160426144833_create_taggings.rb
db/migrate/20160426144833_create_taggings.rb
+19
-0
20160503140557_create_activities.rb
db/migrate/20160503140557_create_activities.rb
+19
-0
20160512135942_add_deleted_at_to_learning_objects.rb
...rate/20160512135942_add_deleted_at_to_learning_objects.rb
+19
-0
20160512140101_add_deleted_at_to_collections.rb
db/migrate/20160512140101_add_deleted_at_to_collections.rb
+19
-0
20160512140142_add_deleted_at_to_complaints.rb
db/migrate/20160512140142_add_deleted_at_to_complaints.rb
+19
-0
20160512140201_add_deleted_at_to_institutions.rb
db/migrate/20160512140201_add_deleted_at_to_institutions.rb
+19
-0
20160512140234_add_deleted_at_to_reviews.rb
db/migrate/20160512140234_add_deleted_at_to_reviews.rb
+19
-0
20160512140321_add_deleted_at_to_users.rb
db/migrate/20160512140321_add_deleted_at_to_users.rb
+19
-0
20160512140322_ensure_versions_table_is_deleted.rb
...igrate/20160512140322_ensure_versions_table_is_deleted.rb
+19
-0
20160512143532_create_versions.rb
db/migrate/20160512143532_create_versions.rb
+19
-0
20160516125724_create_licenses.rb
db/migrate/20160516125724_create_licenses.rb
+19
-0
20160516125800_add_license_to_learning_objects.rb
db/migrate/20160516125800_add_license_to_learning_objects.rb
+19
-0
20160517140326_create_applications.rb
db/migrate/20160517140326_create_applications.rb
+19
-0
20160519122525_change_state_type_in_learning_objects.rb
...e/20160519122525_change_state_type_in_learning_objects.rb
+19
-0
20161018123459_add_index_to_collection.rb
db/migrate/20161018123459_add_index_to_collection.rb
+19
-0
20161024160053_create_subjects.rb
db/migrate/20161024160053_create_subjects.rb
+19
-0
20161024160126_create_educational_stages.rb
db/migrate/20161024160126_create_educational_stages.rb
+19
-0
20161026114123_change_complaints_columns_names.rb
db/migrate/20161026114123_change_complaints_columns_names.rb
+19
-0
20161026134028_create_subject_relations.rb
db/migrate/20161026134028_create_subject_relations.rb
+19
-0
20161026163027_change_learning_object.rb
db/migrate/20161026163027_change_learning_object.rb
+19
-0
20161027134827_add_index_to_taggings.rb
db/migrate/20161027134827_add_index_to_taggings.rb
+19
-0
20161027141322_create_stage_relations.rb
db/migrate/20161027141322_create_stage_relations.rb
+19
-0
20161107130535_add_description_column_to_users.rb
db/migrate/20161107130535_add_description_column_to_users.rb
+19
-0
20161121115115_add_review_average_to_learning_object.rb
...e/20161121115115_add_review_average_to_learning_object.rb
+19
-0
20161123114102_add_privacy_to_activities.rb
db/migrate/20161123114102_add_privacy_to_activities.rb
+19
-0
20161125134057_add_counts_to_user.rb
db/migrate/20161125134057_add_counts_to_user.rb
+19
-0
20161125153200_add_review_average_to_collection.rb
...igrate/20161125153200_add_review_average_to_collection.rb
+19
-0
20161128122731_change_collection_item_column_name.rb
...rate/20161128122731_change_collection_item_column_name.rb
+19
-0
20170109133754_add_nickname_to_user.rb
db/migrate/20170109133754_add_nickname_to_user.rb
+19
-0
20170207122721_create_contacts.rb
db/migrate/20170207122721_create_contacts.rb
+19
-0
20170208111714_create_suggestions.rb
db/migrate/20170208111714_create_suggestions.rb
+19
-0
20170215113455_add_ip_to_downloads.rb
db/migrate/20170215113455_add_ip_to_downloads.rb
+19
-0
20170215121042_add_index_to_downloads.rb
db/migrate/20170215121042_add_index_to_downloads.rb
+19
-0
20170223132327_create_packages.rb
db/migrate/20170223132327_create_packages.rb
+19
-0
20170223132838_create_package_items.rb
db/migrate/20170223132838_create_package_items.rb
+19
-0
20170224145548_add_filepath_to_package.rb
db/migrate/20170224145548_add_filepath_to_package.rb
+19
-0
20170307133059_add_attachment_cover_to_users.rb
db/migrate/20170307133059_add_attachment_cover_to_users.rb
+19
-0
20170307133405_add_education_to_users.rb
db/migrate/20170307133405_add_education_to_users.rb
+19
-0
20170503134230_add_attachment_avatar_to_institutions.rb
...e/20170503134230_add_attachment_avatar_to_institutions.rb
+19
-0
20170511161146_add_curator_to_learning_object.rb
db/migrate/20170511161146_add_curator_to_learning_object.rb
+19
-0
20170512092359_add_magnetlink_to_learning_object.rb
...grate/20170512092359_add_magnetlink_to_learning_object.rb
+19
-0
20170516111857_add_deleted_at_to_collection_items.rb
...rate/20170516111857_add_deleted_at_to_collection_items.rb
+19
-0
20170518120936_add_curator_to_collection.rb
db/migrate/20170518120936_add_curator_to_collection.rb
+19
-0
20170525120237_add_learning_objects_count_to_institutions.rb
...70525120237_add_learning_objects_count_to_institutions.rb
+19
-0
seeds.rb
db/seeds.rb
+19
-0
complaints.rb
db/seeds/complaints.rb
+19
-0
educational_stages.rb
db/seeds/educational_stages.rb
+19
-0
institutions.rb
db/seeds/institutions.rb
+19
-0
languages.rb
db/seeds/languages.rb
+19
-0
licenses.rb
db/seeds/licenses.rb
+19
-0
object_types.rb
db/seeds/object_types.rb
+19
-0
ratings.rb
db/seeds/ratings.rb
+19
-0
scores.rb
db/seeds/scores.rb
+19
-0
subjects.rb
db/seeds/subjects.rb
+19
-0
docker-compose.yml
docker-compose.yml
+19
-0
insert_header.rb
insert_header.rb
+19
-0
database_logger.rb
lib/log/database_logger.rb
+19
-0
logging.rb
lib/log/logging.rb
+19
-0
sociable_tests.rb
lib/portalmec/sociable_tests.rb
+19
-0
string.rb
lib/string.rb
+19
-0
attachment.rake
lib/tasks/attachment.rake
+19
-0
attachment_maintaining_service.rake
lib/tasks/attachment_maintaining_service.rake
+19
-0
attachments.rake
lib/tasks/attachments.rake
+19
-0
convert_video.rake
lib/tasks/convert_video.rake
+19
-0
db.rake
lib/tasks/db.rake
+19
-0
educational_stage.rake
lib/tasks/import/educational_stage.rake
+19
-0
institutions.rake
lib/tasks/import/institutions.rake
+19
-0
learning_objects.rake
lib/tasks/import/learning_objects.rake
+19
-0
subject.rake
lib/tasks/import/subject.rake
+19
-0
tags.rake
lib/tasks/import/tags.rake
+19
-0
language.rake
lib/tasks/language.rake
+19
-0
object_type.rake
lib/tasks/object_type.rake
+19
-0
portalmec.rake
lib/tasks/portalmec.rake
+19
-0
score.rake
lib/tasks/score.rake
+19
-0
tags.rake
lib/tasks/tags.rake
+19
-0
thumbnail.rake
lib/tasks/thumbnail.rake
+19
-0
generatable_strategy.rb
lib/thumbnail/generatable_strategy.rb
+19
-0
image_thumbnail_generator.rb
lib/thumbnail/strategies/image_thumbnail_generator.rb
+19
-0
pdf_thumbnail_generator.rb
lib/thumbnail/strategies/pdf_thumbnail_generator.rb
+19
-0
url_thumbnail_generator.rb
lib/thumbnail/strategies/url_thumbnail_generator.rb
+19
-0
video_thumbnail_generator.rb
lib/thumbnail/strategies/video_thumbnail_generator.rb
+19
-0
puma.sh
puma.sh
+19
-0
sidekiq.sh
sidekiq.sh
+19
-0
activities_spec.rb
spec/acceptance/activities_spec.rb
+19
-0
bookmarks_spec.rb
spec/acceptance/bookmarks_spec.rb
+19
-0
collections_spec.rb
spec/acceptance/collections_spec.rb
+19
-0
complaints_spec.rb
spec/acceptance/complaints_spec.rb
+19
-0
contacts_spec.rb
spec/acceptance/contacts_spec.rb
+19
-0
downloads_spec.rb
spec/acceptance/downloads_spec.rb
+19
-0
educational_stages_spec.rb
spec/acceptance/educational_stages_spec.rb
+19
-0
follows_spec.rb
spec/acceptance/follows_spec.rb
+19
-0
institutions_spec.rb
spec/acceptance/institutions_spec.rb
+19
-0
languages_spec.rb
spec/acceptance/languages_spec.rb
+19
-0
learning_objects_spec.rb
spec/acceptance/learning_objects_spec.rb
+19
-0
mime_types_spec.rb
spec/acceptance/mime_types_spec.rb
+19
-0
object_types_spec.rb
spec/acceptance/object_types_spec.rb
+19
-0
reviews_spec.rb
spec/acceptance/reviews_spec.rb
+19
-0
searches_spec.rb
spec/acceptance/searches_spec.rb
+19
-0
statistics_spec.rb
spec/acceptance/statistics_spec.rb
+19
-0
subjects_spec.rb
spec/acceptance/subjects_spec.rb
+19
-0
suggestions_spec.rb
spec/acceptance/suggestions_spec.rb
+19
-0
tags_spec.rb
spec/acceptance/tags_spec.rb
+19
-0
users_spec.rb
spec/acceptance/users_spec.rb
+19
-0
acceptance_helpers.rb
spec/acceptance_helpers.rb
+19
-0
controller_helpers.rb
spec/controller_helpers.rb
+19
-0
collections_controller_spec.rb
spec/controllers/v1/collections_controller_spec.rb
+19
-0
omniauth_callbacks_controller_spec.rb
spec/controllers/v1/omniauth_callbacks_controller_spec.rb
+19
-0
statistics_controller_spec.rb
spec/controllers/v1/statistics_controller_spec.rb
+19
-0
applications.rb
spec/factories/applications.rb
+19
-0
attachments.rb
spec/factories/attachments.rb
+19
-0
bookmarks.rb
spec/factories/bookmarks.rb
+19
-0
collection_items.rb
spec/factories/collection_items.rb
+19
-0
collections.rb
spec/factories/collections.rb
+19
-0
complaint_reasons.rb
spec/factories/complaint_reasons.rb
+19
-0
complaints.rb
spec/factories/complaints.rb
+19
-0
contacts.rb
spec/factories/contacts.rb
+19
-0
downloads.rb
spec/factories/downloads.rb
+19
-0
educational_stages.rb
spec/factories/educational_stages.rb
+19
-0
follows.rb
spec/factories/follows.rb
+19
-0
institutions.rb
spec/factories/institutions.rb
+19
-0
languages.rb
spec/factories/languages.rb
+19
-0
learning_objects.rb
spec/factories/learning_objects.rb
+19
-0
likes.rb
spec/factories/likes.rb
+19
-0
mime_types.rb
spec/factories/mime_types.rb
+19
-0
object_types.rb
spec/factories/object_types.rb
+19
-0
ratings.rb
spec/factories/ratings.rb
+19
-0
review_ratings.rb
spec/factories/review_ratings.rb
+19
-0
reviews.rb
spec/factories/reviews.rb
+19
-0
roles.rb
spec/factories/roles.rb
+19
-0
stages_relation.rb
spec/factories/stages_relation.rb
+19
-0
subjects.rb
spec/factories/subjects.rb
+19
-0
subjects_relation.rb
spec/factories/subjects_relation.rb
+19
-0
suggestions.rb
spec/factories/suggestions.rb
+19
-0
taggings.rb
spec/factories/taggings.rb
+19
-0
tags.rb
spec/factories/tags.rb
+19
-0
users.rb
spec/factories/users.rb
+19
-0
application_spec.rb
spec/models/application_spec.rb
+19
-0
rails_helper.rb
spec/rails_helper.rb
+19
-0
contexts.rb
spec/shared/contexts.rb
+19
-0
examples.rb
spec/shared/examples.rb
+19
-0
spec_helper.rb
spec/spec_helper.rb
+19
-0
start_puma.sh
start_puma.sh
+19
-0
stop_puma.sh
stop_puma.sh
+19
-0
collections_controller_test.rb
test/controllers/v1/collections_controller_test.rb
+19
-0
complaints_controller_test.rb
test/controllers/v1/complaints_controller_test.rb
+19
-0
feed_controller_test.rb
test/controllers/v1/feed_controller_test.rb
+19
-0
institutions_controller_test.rb
test/controllers/v1/institutions_controller_test.rb
+19
-0
languages_controller_test.rb
test/controllers/v1/languages_controller_test.rb
+19
-0
learning_objects_controller_test.rb
test/controllers/v1/learning_objects_controller_test.rb
+19
-0
licenses_controller_test.rb
test/controllers/v1/licenses_controller_test.rb
+19
-0
mime_types_controller_test.rb
test/controllers/v1/mime_types_controller_test.rb
+19
-0
object_types_controller_test.rb
test/controllers/v1/object_types_controller_test.rb
+19
-0
ratings_controller_test.rb
test/controllers/v1/ratings_controller_test.rb
+19
-0
reviews_controller_test.rb
test/controllers/v1/reviews_controller_test.rb
+19
-0
scores_controller_test.rb
test/controllers/v1/scores_controller_test.rb
+19
-0
search_controller_test.rb
test/controllers/v1/search_controller_test.rb
+19
-0
bookmarks_controller_test.rb
test/controllers/v1/users/bookmarks_controller_test.rb
+19
-0
users_controller_test.rb
test/controllers/v1/users_controller_test.rb
+19
-0
applications.yml
test/fixtures/applications.yml
+19
-0
collection_item.yml
test/fixtures/collection_item.yml
+19
-0
collections.yml
test/fixtures/collections.yml
+19
-0
complaint_reasons.yml
test/fixtures/complaint_reasons.yml
+19
-0
educational_stages.yml
test/fixtures/educational_stages.yml
+19
-0
institutions.yml
test/fixtures/institutions.yml
+19
-0
languages.yml
test/fixtures/languages.yml
+19
-0
learning_objects.yml
test/fixtures/learning_objects.yml
+19
-0
licenses.yml
test/fixtures/licenses.yml
+19
-0
mime_types.yml
test/fixtures/mime_types.yml
+19
-0
object_types.yml
test/fixtures/object_types.yml
+19
-0
ratings.yml
test/fixtures/ratings.yml
+19
-0
review_ratings.yml
test/fixtures/review_ratings.yml
+19
-0
reviews.yml
test/fixtures/reviews.yml
+19
-0
roles.yml
test/fixtures/roles.yml
+19
-0
score_user_categories.yml
test/fixtures/score_user_categories.yml
+19
-0
scores.yml
test/fixtures/scores.yml
+19
-0
subjects.yml
test/fixtures/subjects.yml
+19
-0
taggings.yml
test/fixtures/taggings.yml
+19
-0
tags.yml
test/fixtures/tags.yml
+19
-0
user_categories.yml
test/fixtures/user_categories.yml
+19
-0
users.yml
test/fixtures/users.yml
+19
-0
application_test.rb
test/models/application_test.rb
+19
-0
bookmark_test.rb
test/models/bookmark_test.rb
+19
-0
carousel_test.rb
test/models/carousel_test.rb
+19
-0
collection_item_test.rb
test/models/collection_item_test.rb
+19
-0
collection_test.rb
test/models/collection_test.rb
+19
-0
complaint_reason_test.rb
test/models/complaint_reason_test.rb
+19
-0
complaint_test.rb
test/models/complaint_test.rb
+19
-0
download_test.rb
test/models/download_test.rb
+19
-0
follow_test.rb
test/models/follow_test.rb
+19
-0
institution_test.rb
test/models/institution_test.rb
+19
-0
language_test.rb
test/models/language_test.rb
+19
-0
attachment_test.rb
test/models/learning_object/attachment_test.rb
+19
-0
learning_object_test.rb
test/models/learning_object_test.rb
+19
-0
license_test.rb
test/models/license_test.rb
+19
-0
like_test.rb
test/models/like_test.rb
+19
-0
object_type_test.rb
test/models/object_type_test.rb
+19
-0
rate_test.rb
test/models/rate_test.rb
+19
-0
rating_test.rb
test/models/rating_test.rb
+19
-0
review_rating_test.rb
test/models/review_rating_test.rb
+19
-0
review_test.rb
test/models/review_test.rb
+19
-0
role_test.rb
test/models/role_test.rb
+19
-0
score_test.rb
test/models/score_test.rb
+19
-0
score_user_category_test.rb
test/models/score_user_category_test.rb
+19
-0
search_test.rb
test/models/search_test.rb
+19
-0
share_test.rb
test/models/share_test.rb
+19
-0
stage_relation_test.rb
test/models/stage_relation_test.rb
+19
-0
subject_test.rb
test/models/subject_test.rb
+19
-0
tag_test.rb
test/models/tag_test.rb
+19
-0
tagging_test.rb
test/models/tagging_test.rb
+19
-0
user_category_test.rb
test/models/user_category_test.rb
+19
-0
user_test.rb
test/models/user_test.rb
+19
-0
view_test.rb
test/models/view_test.rb
+19
-0
feedback_service_test.rb
test/services/feedback_service_test.rb
+19
-0
institution_importer_test.rb
test/services/institution_importer_test.rb
+19
-0
score_calculator_service_test.rb
test/services/score_calculator_service_test.rb
+19
-0
search_service_test.rb
test/services/search_service_test.rb
+19
-0
test_helper.rb
test/test_helper.rb
+19
-0
No files found.
app/builders/learning_object_builder.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
(
...
...
app/controllers/application_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/concerns/deleted_objects_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/concerns/downloadable_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/concerns/followable_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/concerns/highlights_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/concerns/paginator.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/concerns/publisher_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/concerns/resource_model.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/concerns/reviewable_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/concerns/sociable_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/concerns/stageable_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/concerns/subjectable_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/concerns/taggable_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/v1/activities_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/v1/collections_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/v1/complaints_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/v1/contacts_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/v1/educational_stages_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/v1/feed_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/v1/institutions_controller.rb
View file @
0fe9f3f8
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# 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
...
...
app/controllers/v1/languages_controller.rb
View file @
0fe9f3f8
# Copyright (C)