2021-03-30 06:08:46 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2014-03-27 06:41:23 +08:00
|
|
|
# What have they done to the Gemfile???
|
|
|
|
#
|
2021-09-21 00:20:02 +08:00
|
|
|
# Relax. Breathe deep. All the gems are still there; they're just loaded in
|
|
|
|
# various files in Gemfile.d/. This allows us to require gems locally that we
|
|
|
|
# might not want to commit to our public repo. We can maintain a customized
|
|
|
|
# list of gems for development and debuggery, without affecting our ability to
|
|
|
|
# merge with canvas-lms
|
2014-03-27 06:41:23 +08:00
|
|
|
#
|
2021-09-21 00:20:02 +08:00
|
|
|
# NOTE: some files in Gemfile.d/ will have certain required gems indented.
|
|
|
|
# While this may seem arbitrary, it actually has semantic significance. An
|
|
|
|
# indented gem required in Gemfile is a gem that is NOT directly used by
|
|
|
|
# Canvas, but required by a gem that is used by Canvas. We lock into specific
|
|
|
|
# versions of these gems to prevent regression, and the indentation serves to
|
|
|
|
# alert us to the relationship between the gem and canvas-lms
|
2011-02-01 09:57:29 +08:00
|
|
|
|
2021-09-21 00:20:02 +08:00
|
|
|
source "https://rubygems.org/"
|
2017-10-12 02:10:24 +08:00
|
|
|
|
2021-08-20 03:57:45 +08:00
|
|
|
Dir[File.join(File.dirname(__FILE__), "gems/plugins/*/Gemfile.d/_before.rb")].each do |file|
|
2021-09-21 00:20:02 +08:00
|
|
|
eval(File.read(file), nil, file) # rubocop:disable Security/Eval
|
2017-10-12 02:10:24 +08:00
|
|
|
end
|
|
|
|
|
2021-09-21 00:20:02 +08:00
|
|
|
require File.expand_path("config/canvas_rails_switcher", __dir__)
|
2014-07-02 02:32:06 +08:00
|
|
|
|
2021-08-20 03:57:45 +08:00
|
|
|
Dir.glob(File.join(File.dirname(__FILE__), "Gemfile.d", "*.rb")).sort.each do |file|
|
2021-09-21 00:20:02 +08:00
|
|
|
eval(File.read(file), nil, file) # rubocop:disable Security/Eval
|
2017-10-12 02:10:24 +08:00
|
|
|
end
|