Use stackprof and memory_profiler under ruby 2.2

This commit is contained in:
Sam Saffron 2015-04-16 15:55:21 +10:00
parent 948f9b357e
commit 9baebcaf03
1 changed files with 7 additions and 2 deletions

View File

@ -244,8 +244,13 @@ gem 'simple-rss', require: false
# TODO mri_22 should be here, but bundler was real slow to pick it up
# not even in production bundler yet, monkey patching it in feels bad
gem 'gctools', require: false, platform: :mri_21
gem 'stackprof', require: false, platform: :mri_21
gem 'memory_profiler', require: false, platform: :mri_21
begin
gem 'stackprof', require: false, platform: [:mri_21, :mri_22]
gem 'memory_profiler', require: false, platform: [:mri_21, :mri_22]
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."
end
gem 'rmmseg-cpp', require: false