Repository navigation
therubyracer gem is now added to the Gemfile on systems that do not have... - #4405
brentsowers1 wants to merge 2 commits into
Conversation
…ave a Javascript runtime (Linux without node js). Without this gem an error is reported by execjs
|
I tried a similar approach but some Core members are against (and I agree) the complexity added in the method to detect multiple runtimes under multiple OS. |
|
The thing is, right now on Linux, when you run Until the asset pipeline, it was always true that I think currently, this is a fairly frustrating thing for newbies, their first experience with rails is an error message, leading them to a web page that can be somewhat confusing for the newbie. Added complexity? I think improving the experience to what it used to be -- I wonder how many of the people who are against this routinely develop on linux, where it's an issue. |
|
(Ideally, I think it might add a comment to the Gemfile explaining that |
|
See #3619 for discussion |
|
See my pull request for this same change on the 3.1 branch, tenderlove made a comment and I responded. #4407 @jrochkind I'm totally on board with you. rails new should give you an app that can run immediately. New users are already overwhelmed by all of the pieces of Ruby and Rails (bundle, rake, gems, these are all totally new concepts to them). Forcing them to go to the github page for execjs, pick one of the options listed there, and figure out how |
…ks, always require therubyracer gem on Linux regardless of whether node.js is installed
... a Javascript runtime (Linux without node js). Without this gem an error is reported by execjs
Issues #412 and #4020
I've tested this on Ubuntu with and without nodejs, and on Windows, and it works correctly, the Gemfile contains a line for therubyracer only on Ubuntu without nodejs