From eed53cd0eb2f39576a552837d3a59c8115633540 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Sun, 11 Mar 2018 07:31:15 +0000 Subject: [PATCH] Downgrade therubyracer for Kali and Parrot OS --- Gemfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 5d426bc53..480664ab8 100644 --- a/Gemfile +++ b/Gemfile @@ -26,7 +26,11 @@ gem 'nokogiri', '>= 1.7' gem 'rake' if RUBY_PLATFORM.downcase.include?('linux') - gem 'therubyracer', '~> 0.12.2', '<= 0.12.2' + if File.readlines('/etc/os-release').grep(/^ID=(kali|parrot)/).any? + gem 'therubyracer', '0.12.2' + else + gem 'therubyracer', '0.12.3' + end end # SQLite support