da licença part 34

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

except for vendor files

Change-Id: Ic6b3be7861a2c91d76889c1740f964e401638e04
Reviewed-on: https://gerrit.instructure.com/110061
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 14:06:18 -06:00
parent 966f0c6ffb
commit e26843ff95
57 changed files with 345 additions and 39 deletions

View File

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

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2014 - 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 Scribd module Scribd
class Document class Document
def ==(o) def ==(o)

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2013 - 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 SearchTermHelper module SearchTermHelper
MIN_SEARCH_TERM_LENGTH = 3 MIN_SEARCH_TERM_LENGTH = 3

View File

@ -1,5 +1,5 @@
# #
# Copyright (C) 2011 Instructure, Inc. # Copyright (C) 2011 - present Instructure, Inc.
# #
# This file is part of Canvas. # 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/>.
require 'raven/base' require 'raven/base'
class SentryProxy class SentryProxy

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2016 - 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 Services module Services
class AddressBook class AddressBook
# regarding these methods' parameters or options, generally: # regarding these methods' parameters or options, generally:

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 Services module Services
class LiveEventsSubscriptionService class LiveEventsSubscriptionService
class << self class << self

View File

@ -1,5 +1,5 @@
# #
# Copyright (C) 2014-2016 Instructure, Inc. # Copyright (C) 2016 - present Instructure, Inc.
# #
# This file is part of Canvas. # 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 Services module Services
class RichContent class RichContent
def self.env_for(root_account, risk_level: :highrisk, user: nil, domain: nil, real_user: nil, context: nil) def self.env_for(root_account, risk_level: :highrisk, user: nil, domain: nil, real_user: nil, context: nil)

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2013 - 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 SimpleStats module SimpleStats
def variance(items, type = :population) def variance(items, type = :population)
return 0 if items.size < 2 return 0 if items.size < 2

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2012 - 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 SimpleTags module SimpleTags
module ReaderInstanceMethods module ReaderInstanceMethods
def tags def tags

View File

@ -1,5 +1,5 @@
# #
# Copyright (C) 2011 Instructure, Inc. # Copyright (C) 2011 - present Instructure, Inc.
# #
# This file is part of Canvas. # 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. # 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. # 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. # 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. # 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. # 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. # 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. # 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. # 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. # 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. # 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. # 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. # 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. # 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. # 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. # This file is part of Canvas.
# #

View File

@ -1,5 +1,5 @@
# #
# Copyright (C) 2011 - 2013 Instructure, Inc. # Copyright (C) 2011 - present Instructure, Inc.
# #
# This file is part of Canvas. # 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. # 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. # This file is part of Canvas.
# #

View File

@ -1,5 +1,5 @@
# #
# Copyright (C) 2016 Instructure, Inc. # Copyright (C) 2011 - present Instructure, Inc.
# #
# This file is part of Canvas. # 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. # 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. # 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. # 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. # 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. # 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 SIS module SIS
module Models module Models
class Enrollment class Enrollment

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 SIS module SIS
module Models module Models
class User class User

View File

@ -1,5 +1,5 @@
# #
# Copyright (C) 2011 - 2015 Instructure, Inc. # Copyright (C) 2011 - present Instructure, Inc.
# #
# This file is part of Canvas. # 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. # 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. # 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. # 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. # This file is part of Canvas.
# #

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2012 - 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 SortsAssignments class SortsAssignments
VALID_BUCKETS = [:past, :overdue, :undated, :ungraded, :unsubmitted, :upcoming, :future] VALID_BUCKETS = [:past, :overdue, :undated, :ungraded, :unsubmitted, :upcoming, :future]

View File

@ -1,5 +1,5 @@
# #
# Copyright (C) 2011 Instructure, Inc. # Copyright (C) 2011 - present Instructure, Inc.
# #
# This file is part of Canvas. # 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. # 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. # This file is part of Canvas.
# #

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2013 - 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 GlobalLookups module GlobalLookups
unless singleton_class.method_defined?(:enabled?) unless singleton_class.method_defined?(:enabled?)
def self.enabled? def self.enabled?

View File

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

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2016 - 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 Submittable module Submittable
def self.included(klass) def self.included(klass)
klass.belongs_to :assignment klass.belongs_to :assignment

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2016 - 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 SubmittablesGradingPeriodProtection module SubmittablesGradingPeriodProtection
def grading_periods_allow_submittable_create?(submittable, submittable_params, flash_message: false) def grading_periods_allow_submittable_create?(submittable, submittable_params, flash_message: false)
apply_grading_params(submittable, submittable_params) apply_grading_params(submittable, submittable_params)

View File

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

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2016 - 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 SupportHelpers module SupportHelpers
module ControllerHelpers module ControllerHelpers

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2016 - 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 SupportHelpers module SupportHelpers
module Crocodoc module Crocodoc
class CrocodocFixer < Fixer class CrocodocFixer < Fixer

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2016 - 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 SupportHelpers module SupportHelpers
class Fixer class Fixer
attr_reader :job_id attr_reader :job_id

View File

@ -1,3 +1,20 @@
#
# Copyright (C) 2016 - 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 SupportHelpers module SupportHelpers
module Tii module Tii
class TiiFixer < Fixer class TiiFixer < Fixer

View File

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