From 2c06766c9ed315777b9599170d1bb03ec7f37349 Mon Sep 17 00:00:00 2001 From: evazion Date: Sun, 24 Jan 2021 19:26:25 -0600 Subject: [PATCH] gems: workaround meta_request failure in Rails 6.1. meta_request fails in Rails 6.1 with a `SystemStackError: stack level too deep` error. Switch to a patched fork until the mainline gem is fixed. * hxxps://www.github.com/dejan/rails_panel/pull/177 * hxxps://www.github.com/dejan/rails_panel/issues/178 --- Gemfile | 2 +- Gemfile.lock | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 7ecbcc737..98e4f14c8 100644 --- a/Gemfile +++ b/Gemfile @@ -60,7 +60,7 @@ end group :development do gem 'rubocop' gem 'rubocop-rails' - # gem 'meta_request' # hangs on Rails 6.1 + gem 'meta_request', git: "https://github.com/alpaca-tc/rails_panel", branch: "support_rails6_1" gem 'rack-mini-profiler' gem 'stackprof' gem 'flamegraph' diff --git a/Gemfile.lock b/Gemfile.lock index d42216dd5..dbf366486 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,12 @@ +GIT + remote: https://github.com/alpaca-tc/rails_panel + revision: 4133c4ee18d5bf6a98c5893c8cbe09c26b78a9de + branch: support_rails6_1 + specs: + meta_request (0.7.2) + rack-contrib (>= 1.1, < 3) + railties (>= 3.0.0, < 7) + GIT remote: https://github.com/danbooru/http-cookie revision: 382d8a641e4df226e0e7b0d2bfaeadb2fe71dd84 @@ -258,6 +267,8 @@ GEM activesupport (>= 3.0.0) racc (1.5.2) rack (2.2.3) + rack-contrib (2.3.0) + rack (~> 2.0) rack-mini-profiler (2.3.0) rack (>= 1.2.0) rack-proxy (0.6.5) @@ -429,6 +440,7 @@ DEPENDENCIES mail memoist memory_profiler + meta_request! minitest-ci minitest-reporters mocha