Downgrade therubyracer for Kali and Parrot OS

This commit is contained in:
Brendan Coles
2018-03-11 07:31:15 +00:00
parent 30b0ec5f6e
commit eed53cd0eb

View File

@@ -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