diff --git a/Gemfile b/Gemfile index 094f9f82e..e2696e19e 100644 --- a/Gemfile +++ b/Gemfile @@ -183,9 +183,14 @@ begin gem 'stackprof', require: false, platform: [:mri_21, :mri_22, :mri_23] gem 'memory_profiler', require: false, platform: [:mri_21, :mri_22, :mri_23] rescue Bundler::GemfileError - STDERR.puts "You are running an old version of bundler, please upgrade bundler ASAP, if you are using Discourse docker, rebuild your container." - gem 'stackprof', require: false, platform: [:mri_21] - gem 'memory_profiler', require: false, platform: [:mri_21] + begin + STDERR.puts "You are running an old version of bundler, please upgrade bundler ASAP, if you are using Discourse docker, rebuild your container." + gem 'stackprof', require: false, platform: [:mri_21, :mri_22] + gem 'memory_profiler', require: false, platform: [:mri_21, :mri_22] + rescue Bundler::GemfileError + gem 'stackprof', require: false, platform: [:mri_21] + gem 'memory_profiler', require: false, platform: [:mri_21] + end end gem 'rmmseg-cpp', require: false