Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced therubyracer with ExecJS #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

daniel-rikowski
Copy link

No description provided.

@matiasgarciaisaia
Copy link
Member

CC: @eemi

@eemi
Copy link

eemi commented Mar 10, 2017

If it helps, we can test it tomorrow in our Windows 7 machines.

@matiasgarciaisaia
Copy link
Member

@daniel-rikowski thanks for the PR!

It Works on my Machine™, although it seems to be yielding different results - which, on first thought, I think it shouldn't. I'll come back later when I'm able to test it a little bit further.

As always, any comments will be appreciated 👍

@daniel-rikowski
Copy link
Author

I noticed that, too. Different JS engines produce different results, judging from a superficial glance in the editor.

I blamed it on internal differences in the JS interpreters, like different hash algorithms, string collations or other unspecified implementation details. I did not thoroughly check if the results were fundamentally different (like missing keywords and such)

@heathd
Copy link

heathd commented Nov 1, 2017

I've tested this branch locally. It fixes issues I was having with middleman hanging when running in dev mode (seems similar to middleman/middleman#1367).

I also generated the index with this branch and with middleman-search 0.10.0 and got the same output.

Would be great if this could be merged.

heathd added a commit to alphagov/middleman-search that referenced this pull request Nov 7, 2017
Pull in ExecJS based approach from this pull request:

manastech#24
@Jeeppler
Copy link

Please merge this PR. I have several issues installing therubyrace it would be really nice to be able to use Nodejs (through) execjs. Execjs and NodeJS are pre-packaged with most Linux distros.

MatMoore added a commit to alphagov/middleman-search that referenced this pull request Oct 12, 2018
This may be temporary, but we are going to publish our fork
to rubygems under another name.

This will allow us to include this version as a dependency in the
govuk_tech_docs gem we publish here:
https://rubygems.org/gems/govuk_tech_docs

The difference between this and upstream is a change from therubyracer
to execjs. This fixes problems with middleman hanging in dev mode.
See manastech#24 for more
details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants