diff options
author | 2010-08-19 19:59:17 +0200 | |
---|---|---|
committer | 2010-09-01 15:08:47 +0200 | |
commit | ddd715b3245808d726b3b6b1133b2eace6a96315 (patch) | |
tree | b4584594f96c51a0129507d1b0a522380f79517e | |
parent | Add AGPL licence (diff) | |
download | recruiting-webapp-ddd715b3245808d726b3b6b1133b2eace6a96315.tar.gz recruiting-webapp-ddd715b3245808d726b3b6b1133b2eace6a96315.tar.bz2 recruiting-webapp-ddd715b3245808d726b3b6b1133b2eace6a96315.zip |
Add copyright notice to *.rb files under lib/ and app/
39 files changed, 546 insertions, 0 deletions
diff --git a/app/controllers/answers_controller.rb b/app/controllers/answers_controller.rb index a8dc49e..a9febc7 100644 --- a/app/controllers/answers_controller.rb +++ b/app/controllers/answers_controller.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. class AnswersController < ApplicationController hobo_model_controller diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index d1623af..e7375e1 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. # Filters added to this controller apply to all controllers in the application. # Likewise, all the methods added will be available for all controllers. diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 5369f81..c02ae84 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. class CommentsController < ApplicationController hobo_model_controller diff --git a/app/controllers/front_controller.rb b/app/controllers/front_controller.rb index 86e3201..748f616 100644 --- a/app/controllers/front_controller.rb +++ b/app/controllers/front_controller.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. class FrontController < ApplicationController hobo_controller diff --git a/app/controllers/project_acceptances_controller.rb b/app/controllers/project_acceptances_controller.rb index cd6f8fe..d34f427 100644 --- a/app/controllers/project_acceptances_controller.rb +++ b/app/controllers/project_acceptances_controller.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. class ProjectAcceptancesController < ApplicationController hobo_model_controller diff --git a/app/controllers/question_categories_controller.rb b/app/controllers/question_categories_controller.rb index 428b174..ec63105 100644 --- a/app/controllers/question_categories_controller.rb +++ b/app/controllers/question_categories_controller.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. class QuestionCategoriesController < ApplicationController hobo_model_controller diff --git a/app/controllers/question_content_emails_controller.rb b/app/controllers/question_content_emails_controller.rb index 59e36e2..dcc7ce9 100644 --- a/app/controllers/question_content_emails_controller.rb +++ b/app/controllers/question_content_emails_controller.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. class QuestionContentEmailsController < ApplicationController hobo_model_controller diff --git a/app/controllers/question_content_multiple_choices_controller.rb b/app/controllers/question_content_multiple_choices_controller.rb index 666b364..1d7c0b4 100644 --- a/app/controllers/question_content_multiple_choices_controller.rb +++ b/app/controllers/question_content_multiple_choices_controller.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. class QuestionContentMultipleChoicesController < ApplicationController hobo_model_controller diff --git a/app/controllers/question_content_texts_controller.rb b/app/controllers/question_content_texts_controller.rb index 50810a9..bf8277d 100644 --- a/app/controllers/question_content_texts_controller.rb +++ b/app/controllers/question_content_texts_controller.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. class QuestionContentTextsController < ApplicationController hobo_model_controller diff --git a/app/controllers/question_groups_controller.rb b/app/controllers/question_groups_controller.rb index e189f04..4408fc4 100644 --- a/app/controllers/question_groups_controller.rb +++ b/app/controllers/question_groups_controller.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. class QuestionGroupsController < ApplicationController hobo_model_controller diff --git a/app/controllers/questions_controller.rb b/app/controllers/questions_controller.rb index d58f322..ae35065 100644 --- a/app/controllers/questions_controller.rb +++ b/app/controllers/questions_controller.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. class QuestionsController < ApplicationController hobo_model_controller diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index d4d7644..bdadc3a 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. class UsersController < ApplicationController hobo_user_controller diff --git a/app/models/answer.rb b/app/models/answer.rb index 6e31c4d..f013547 100644 --- a/app/models/answer.rb +++ b/app/models/answer.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. require 'permissions/owned_model.rb' require 'permissions/set.rb' # Model storing answers for questions with text content. diff --git a/app/models/comment.rb b/app/models/comment.rb index e633605..83d5f9f 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. # Model storing comments mentors made for answers. class Comment < ActiveRecord::Base diff --git a/app/models/email_answer.rb b/app/models/email_answer.rb index 16c7b9c..f1bd4a5 100644 --- a/app/models/email_answer.rb +++ b/app/models/email_answer.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. # Model storing answers for questions with email content. # No user is allowed to do anything except viewing. class EmailAnswer < Answer diff --git a/app/models/guest.rb b/app/models/guest.rb index 2c01803..31d4870 100644 --- a/app/models/guest.rb +++ b/app/models/guest.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. # Model representing guest users. # It has methods that allow us to treat Guests as regular users. class Guest < Hobo::Guest diff --git a/app/models/multiple_choice_answer.rb b/app/models/multiple_choice_answer.rb index 6433f6d..a507878 100644 --- a/app/models/multiple_choice_answer.rb +++ b/app/models/multiple_choice_answer.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. # Model storing answers for questions with multiple choice content. class MultipleChoiceAnswer < Answer # Returns RichTypes::CheckList describing given answer diff --git a/app/models/option.rb b/app/models/option.rb index 6a9801d..f6ffa97 100644 --- a/app/models/option.rb +++ b/app/models/option.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. # Hobo model storing options for multiple choice questions. # Inherits permissions from option_owner. class Option < ActiveRecord::Base diff --git a/app/models/project_acceptance.rb b/app/models/project_acceptance.rb index bf170f3..b3e7077 100644 --- a/app/models/project_acceptance.rb +++ b/app/models/project_acceptance.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. require 'permissions/set.rb' class ProjectAcceptance < ActiveRecord::Base diff --git a/app/models/question.rb b/app/models/question.rb index be00a84..084f826 100644 --- a/app/models/question.rb +++ b/app/models/question.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. # TODO: probably broken scope unanswered(user) # Model storing answers for questions with text content. # Hooks: diff --git a/app/models/question_category.rb b/app/models/question_category.rb index 7c4b78f..e67810c 100644 --- a/app/models/question_category.rb +++ b/app/models/question_category.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. # Questions are arranged in categories. Recruit should answer question in some # categories. class QuestionCategory < ActiveRecord::Base diff --git a/app/models/question_content_email.rb b/app/models/question_content_email.rb index f10fcc1..7e38d92 100644 --- a/app/models/question_content_email.rb +++ b/app/models/question_content_email.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. require 'permissions/inherit.rb' # TODO: all QuestionContents in one table(?) # TODO: use standard serialization, not custom one (?) diff --git a/app/models/question_content_multiple_choice.rb b/app/models/question_content_multiple_choice.rb index cd1d277..3fea434 100644 --- a/app/models/question_content_multiple_choice.rb +++ b/app/models/question_content_multiple_choice.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. require 'permissions/inherit.rb' # Multiple choice content for question. class QuestionContentMultipleChoice < ActiveRecord::Base diff --git a/app/models/question_content_text.rb b/app/models/question_content_text.rb index 37540e2..6052ad4 100644 --- a/app/models/question_content_text.rb +++ b/app/models/question_content_text.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. require 'permissions/inherit.rb' class QuestionContentText < ActiveRecord::Base diff --git a/app/models/question_group.rb b/app/models/question_group.rb index 5c2ed3b..81d738b 100644 --- a/app/models/question_group.rb +++ b/app/models/question_group.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. # Users should answer only one question from each group. The question recruit # should answer is randomly chosen from group by application. Unless user is # recruit [s]he can't view grouped questions [s]he is not supposed to answer. diff --git a/app/models/user.rb b/app/models/user.rb index 828840f..071c708 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. #TODO: merge before_creation hooks # Model representing signed up users. # Hooks: diff --git a/app/models/user_category.rb b/app/models/user_category.rb index d641268..3f60283 100644 --- a/app/models/user_category.rb +++ b/app/models/user_category.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. require 'permissions/set.rb' # Associates users with question categories # Hooks: diff --git a/app/models/user_mailer.rb b/app/models/user_mailer.rb index cdd572e..1263e58 100644 --- a/app/models/user_mailer.rb +++ b/app/models/user_mailer.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. class UserMailer < ActionMailer::Base def common(user, subject) @recipients = user.email_address diff --git a/app/models/user_question_group.rb b/app/models/user_question_group.rb index 5c5f537..e3b29f0 100644 --- a/app/models/user_question_group.rb +++ b/app/models/user_question_group.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. # Associates user with grouped question. No user can do anything to it - # application manages those internally. class UserQuestionGroup < ActiveRecord::Base diff --git a/app/rich_types/role.rb b/app/rich_types/role.rb index c69627d..ae9b129 100644 --- a/app/rich_types/role.rb +++ b/app/rich_types/role.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. module RichTypes Role = HoboFields::EnumString.for(:recruit, :mentor, :recruiter) end diff --git a/app/viewhints/project_acceptance_hints.rb b/app/viewhints/project_acceptance_hints.rb index e9c1629..3bc6244 100644 --- a/app/viewhints/project_acceptance_hints.rb +++ b/app/viewhints/project_acceptance_hints.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. class ProjectAcceptanceHints < Hobo::ViewHints field_names :accepting_nick => "Accepting Project Lead", :user => "Recruit being accepted" end diff --git a/app/viewhints/question_content_email_hints.rb b/app/viewhints/question_content_email_hints.rb index 37189ea..9e95274 100644 --- a/app/viewhints/question_content_email_hints.rb +++ b/app/viewhints/question_content_email_hints.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. class QuestionContentEmailHints < Hobo::ViewHints field_help :req_text => "Enter one requirement per line. Each requirement should be 'Field : regexp to match' (including spaces around colon). diff --git a/app/viewhints/user_hints.rb b/app/viewhints/user_hints.rb index eb6c2a3..91e3516 100644 --- a/app/viewhints/user_hints.rb +++ b/app/viewhints/user_hints.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. class UserHints < Hobo::ViewHints children :answers, :question_categories, :project_acceptances end diff --git a/lib/permissions/anyone_can_view_admin_can_change.rb b/lib/permissions/anyone_can_view_admin_can_change.rb index f323a51..4cea8dd 100644 --- a/lib/permissions/anyone_can_view_admin_can_change.rb +++ b/lib/permissions/anyone_can_view_admin_can_change.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. require 'permissions/set' # Modules helping to manage permissions module Permissions diff --git a/lib/permissions/anyone_can_view_recruiter_can_change.rb b/lib/permissions/anyone_can_view_recruiter_can_change.rb index 89984a9..e40440c 100644 --- a/lib/permissions/anyone_can_view_recruiter_can_change.rb +++ b/lib/permissions/anyone_can_view_recruiter_can_change.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. require 'permissions/set' module Permissions # If you include this recruiters will be allowed to do everything, diff --git a/lib/permissions/inherit.rb b/lib/permissions/inherit.rb index 2617d82..91fbf54 100644 --- a/lib/permissions/inherit.rb +++ b/lib/permissions/inherit.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. require 'permissions/set.rb' # If you call this in your model it will have exactly the same permissions as # source. diff --git a/lib/permissions/owned_model.rb b/lib/permissions/owned_model.rb index 695add7..ae2f14a 100644 --- a/lib/permissions/owned_model.rb +++ b/lib/permissions/owned_model.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. module Permissions # Please don't include this directly - use owned_model method module OwnedModel diff --git a/lib/permissions/set.rb b/lib/permissions/set.rb index 0038995..b10a2c4 100644 --- a/lib/permissions/set.rb +++ b/lib/permissions/set.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. AllPermissions = [:create, :update, :destroy, :view, :edit] # Block will be used to determine chosen permission diff --git a/lib/rich_types/check_list.rb b/lib/rich_types/check_list.rb index 5b948fa..9821368 100644 --- a/lib/rich_types/check_list.rb +++ b/lib/rich_types/check_list.rb @@ -1,3 +1,17 @@ +# Gentoo Recruiters Web App - to help Gentoo recruiters do their job better +# Copyright (C) 2010 Joachim Filip Bartosik +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, version 3 of the License +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. # This module includes non-basic types used in models module RichTypes # Stores information on which options were selected. |