From 9a01221c5527a170c09bba5d9dd5a742200011e0 Mon Sep 17 00:00:00 2001 From: wilkie Date: Mon, 18 Feb 2013 20:39:17 -0500 Subject: [PATCH] Puts therubyracer in asset group and only install if on linux. --- Gemfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 18067d23..436930c5 100644 --- a/Gemfile +++ b/Gemfile @@ -11,6 +11,11 @@ group :assets do gem 'coffee-rails', "~> 3.2.2" gem 'uglifier', "~> 1.0.0" gem 'jquery-ui-rails', "~> 2.0.0" + + # Many Linux environments do not have a javascript environment which is + # required by the asset generators. However, windows and os x have one + # provided by the system. + gem "therubyracer", "~> 0.9.9" unless RUBY_PLATFORM.match(/darwin|mswin/) end gem "haml", "~> 3.1.4" @@ -68,5 +73,4 @@ end group :test do gem "webmock", "~> 1.6.4" - gem "therubyracer", "~> 0.9.9" end