1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 source 'https://rubygems.org'
7 gem 'rails', '~> 7.0.0'
12 group :test, :development do
13 gem 'factory_bot_rails'
15 # Note: "require: false" here tells bunder not to automatically
16 # 'require' the packages during application startup. Installation is
18 gem 'test-unit', require: false
19 gem 'simplecov', require: false
20 gem 'simplecov-rcov', require: false
21 gem 'mocha', require: false
37 # Locking to 5.10.3 to workaround issue in 5.11.1 (https://github.com/seattlerb/minitest/issues/730)
38 gem 'minitest', '5.10.3'
44 gem 'themes_for_rails', git: 'https://github.com/arvados/themes_for_rails'
46 gem 'arvados', '~> 2.7.0.rc1'
55 gem 'rails-controller-testing'
59 gem 'mini_portile2', '~> 2.8', '>= 2.8.1'
61 # If we're running on Ruby 2.x, we'll go down the `else` branch below.
62 plugin 'bundler-override' if RUBY_VERSION >= "3.0"
63 if bundler_override_paths = Bundler::Plugin.index.load_paths("bundler-override")
64 require File.join(bundler_override_paths[0], "bundler-override")
65 # Ruby 3.4 drops base64 as a default gem. Because of this, various other gems
66 # are starting to declare base64 as a dependency. However, locking one
67 # specific version of base64 makes it more difficult to support older Rubies
68 # that still have it as a default. See <https://dev.arvados.org/issues/21583>.
69 # Because we are focused on supporting distros with those older Rubies, we
70 # drop base64 dependencies here. These overrides can go away once we shift to
71 # supporting Ruby 3.4+.
72 override 'faraday', drop: ['base64']
74 # The plugin is not available, either because Ruby is too old or Bundler
75 # is installing it this run. That's fine as long as Bundler isn't updating
76 # Gemfile.lock. Unfortunately we can't know that for sure here, because
77 # bundler needs to read Gemfile in order to figure out whether it's going
78 # to update Gemfile.lock. Flagging the situation for the user is the best
80 Bundler.ui.warn("bundler-override plugin not available - do NOT commit any changes to Gemfile.lock")
83 # Install any plugin gems
84 Dir.glob(File.join(File.dirname(__FILE__), 'lib', '**', "Gemfile")) do |f|
85 eval(IO.read(f), binding)