From 552f035609bc0908ec05bf8389f4da8b28fdb9f8 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Tue, 19 Dec 2023 14:59:09 +0800 Subject: [PATCH] DEV: Pin rbtrace gem to 0.4.14 (#24961) Why this change? rbtrace 0.5.0 has a bug which is preventing the rbtrace CLI from working. The bug has been fixed in https://github.com/tmm1/rbtrace/commit/1c674885694c6f2cb935eeccb0591feeb67679cf but we are waiting for a new version to be release with the fix. --- Gemfile | 7 ++++++- Gemfile.lock | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 9a9f577072b..8414961a6d4 100644 --- a/Gemfile +++ b/Gemfile @@ -196,7 +196,12 @@ gem "rack-mini-profiler", require: ["enable_rails_patches"] gem "unicorn", require: false, platform: :ruby gem "puma", require: false -gem "rbtrace", require: false, platform: :mri + +# Pin to 0.4.14 for now because 0.5.0 is broken. +# It has been fixed in https://github.com/tmm1/rbtrace/commit/1c674885694c6f2cb935eeccb0591feeb67679cf but we are waiting +# for a new release to be published. +gem "rbtrace", "0.4.14", require: false, platform: :mri + gem "gc_tracer", require: false, platform: :mri # required for feed importing and embedding diff --git a/Gemfile.lock b/Gemfile.lock index dad1b99d7b5..e63123dd6e8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -356,7 +356,7 @@ GEM rb-fsevent (0.11.2) rb-inotify (0.10.1) ffi (~> 1.0) - rbtrace (0.5.0) + rbtrace (0.4.14) ffi (>= 1.0.6) msgpack (>= 0.4.3) optimist (>= 3.0.0) @@ -627,7 +627,7 @@ DEPENDENCIES railties rake rb-fsevent - rbtrace + rbtrace (= 0.4.14) rchardet redcarpet redis