da licença part 5

add consistent license headers to all source files
(ruby, coffeescript, javascript)

except for vendor files

Change-Id: If23fe3b449317df66cf4b0f52629d7fbe851e948
Reviewed-on: https://gerrit.instructure.com/110025
Tested-by: Jenkins
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
This commit is contained in:
Landon Wilkins 2017-04-27 13:39:07 -06:00
parent 9ce4be2701
commit e5ca22c923
65 changed files with 208 additions and 67 deletions

View File

@ -1,4 +1,5 @@
# Copyright (C) 2017 Instructure, Inc.
#
# Copyright (C) 2017 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2015 Instructure, Inc.
# Copyright (C) 2014 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2014 Instructure, Inc.
# Copyright (C) 2014 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2014 Instructure, Inc.
# Copyright (C) 2014 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 - 2014 Instructure, Inc.
# Copyright (C) 2015 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 - 2014 Instructure, Inc.
# Copyright (C) 2015 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2016 Instructure, Inc.
# Copyright (C) 2016 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2015 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you 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.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See 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 Login::ExternalAuthObserversController < ApplicationController
def redirect_login
if observer_email_taken?

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2015 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2015 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2015 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 - 2014 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2015 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2015 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 - 2014 Instructure, Inc.
# Copyright (C) 2015 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 - 2014 Instructure, Inc.
# Copyright (C) 2015 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 - 2014 Instructure, Inc.
# Copyright (C) 2015 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2015 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2015 Instructure, Inc.
# Copyright (C) 2015 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 - 2014 Instructure, Inc.
# Copyright (C) 2015 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2015 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you 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.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See 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 Login::Shared
def reset_session_for_login
reset_session_saving_keys(:return_to,

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2015 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 - 2015 Instructure, Inc.
# Copyright (C) 2015 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2017 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you 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.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See 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 Lti::Ims::AccessTokenHelper
def authorized_lti2_tool
validate_access_token!

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2017 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you 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.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See 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 'json/jwt'
module Lti

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2014 Instructure, Inc.
# Copyright (C) 2014 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,4 +1,5 @@
# Copyright (C) 2014 Instructure, Inc.
#
# Copyright (C) 2014 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,4 +1,5 @@
# Copyright (C) 2014 Instructure, Inc.
#
# Copyright (C) 2014 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,4 +1,5 @@
# Copyright (C) 2014 Instructure, Inc.
#
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,4 +1,5 @@
# Copyright (C) 2016 Instructure, Inc.
#
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2014 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 - 2016 Instructure, Inc.
# Copyright (C) 2017 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2017 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you 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.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See 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/>.
# @API Originality Reports
# @internal
#

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2017 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you 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.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See 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/>.
# @API Webhooks Subscriptions
# @internal
#

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2017 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you 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.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See 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 Lti
class SubscriptionsValidator
class InvalidContextType < StandardError

View File

@ -1,4 +1,5 @@
# Copyright (C) 2014 Instructure, Inc.
#
# Copyright (C) 2012 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2017 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you 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.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See 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/>.
# @API Blueprint Templates
# @beta
# Configure blueprint courses

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2012 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2012 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011-12 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2013 Instructure, Inc.
# Copyright (C) 2013 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,20 +1,19 @@
#
# Copyright (C) 2011 - 2012 Instructure, Inc.
# Copyright (C) 2015 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you 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.
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
# License for more details.
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See 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/>.
# 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/>.
#
# @API Moderated Grading

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2013 Instructure, Inc.
# Copyright (C) 2013 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 - 2015 Instructure, Inc.
# Copyright (C) 2015 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2015 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2012 Instructure, Inc.
# Copyright (C) 2012 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2013 Instructure, Inc.
# Copyright (C) 2013 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2012 Instructure, Inc.
# Copyright (C) 2012 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2012 Instructure, Inc.
# Copyright (C) 2015 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 - 2015 Instructure, Inc.
# Copyright (C) 2015 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2014 Instructure, Inc.
# Copyright (C) 2014 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2014 Instructure, Inc.
# Copyright (C) 2014 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2014 Instructure, Inc.
# Copyright (C) 2014 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2014 Instructure, Inc.
# Copyright (C) 2014 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2013 Instructure, Inc.
# Copyright (C) 2013 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 - 2015 Instructure, Inc.
# Copyright (C) 2015 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2011 - 2015 Instructure, Inc.
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#

View File

@ -1,5 +1,5 @@
# Copyright (C) 2011-2012 Instructure, Inc.
#
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#