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???
|
|
|
|
#
|
|
|
|
# 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-04-01 00:35:44 +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
|
2014-02-25 06:47:09 +08:00
|
|
|
source 'https://rubygems.org/'
|
2011-02-01 09:57:29 +08:00
|
|
|
|
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|
|
2017-10-12 02:10:24 +08:00
|
|
|
eval(File.read(file), nil, file)
|
|
|
|
end
|
|
|
|
|
2021-08-20 03:57:45 +08:00
|
|
|
require File.expand_path("../config/canvas_rails_switcher", __FILE__)
|
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|
|
2016-07-19 23:00:17 +08:00
|
|
|
eval(File.read(file), nil, file)
|
2017-10-12 02:10:24 +08:00
|
|
|
end
|