forked from samvera/hyrax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGemfile
38 lines (35 loc) · 1.29 KB
/
Gemfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# frozen_string_literal: true
source 'https://rubygems.org'
# Please see hyrax.gemspec for dependency information.
gemspec
group :development, :test do
gem 'benchmark-ips'
gem 'easy_translate'
gem 'i18n-tasks'
gem 'okcomputer'
gem 'pry' unless ENV['CI']
gem 'pry-byebug' unless ENV['CI']
gem 'ruby-prof', require: false
gem "simplecov", require: false
end
test_app_path = ENV['RAILS_ROOT'] ||
ENV.fetch('ENGINE_CART_DESTINATION', File.expand_path('.internal_test_app', File.dirname(__FILE__)))
test_app_gemfile = File.expand_path('Gemfile', test_app_path)
# rubocop:disable Bundler/DuplicatedGem
if File.exist?(test_app_gemfile)
begin
Bundler.ui.info "[Hyrax] Including test application dependencies from #{test_app_gemfile}"
eval_gemfile test_app_gemfile
rescue Bundler::GemfileError => e
Bundler.ui.warn '[Hyrax] Skipping Rails application dependencies:'
Bundler.ui.warn e.message
end
elsif ENV['RAILS_VERSION'] == 'edge'
gem 'rails', github: 'rails/rails', source: 'https://rubygems.org'
ENV['ENGINE_CART_RAILS_OPTIONS'] = '--edge --skip-turbolinks'
elsif ENV['RAILS_VERSION']
gem 'rails', ENV['RAILS_VERSION'], source: 'https://rubygems.org'
else
Bundler.ui.warn '[Hyrax] Skipping all Rails dependency injection'
end
# rubocop:enable Bundler/DuplicatedGem