Merge pull request #442 from jaydorsey/jay/mini_racer

Replace therubyracer with mini_racer
This commit is contained in:
Blake Erickson 2021-08-10 07:12:13 -06:00 committed by GitHub
commit 095906da58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 21 deletions

View File

@ -29,24 +29,6 @@ npm install
cd -
```
### Troubleshooting:
- `libv8` or `therubyracer` MacOS Catalina/Big Sur install issues:
```
An error occurred while installing libv8 (3.16.14.19), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.16.14.19' --source 'https://rubygems.org/'` succeeds before bundling.
An error occurred while installing therubyracer (0.12.3), and Bundler cannot continue.
Make sure that `gem install therubyracer -v '0.12.3' --source 'https://rubygems.org/'` succeeds before bundling.
```
Try, [reference](https://stackoverflow.com/a/62413041/7477016):
```
brew install v8@3.15
bundle config build.libv8 --with-system-v8
bundle config build.therubyracer --with-v8-dir=$(brew --prefix v8@3.15)
bundle
```
## Test
Initialize the rswag-ui repo with assets.
```
@ -75,11 +57,11 @@ Push to your fork and [submit a Pull Request][pr].
## Updating Swagger UI
Find the latest versions of swagger-ui here:
Find the latest versions of swagger-ui here:
https://github.com/swagger-api/swagger-ui/releases
Update the swagger-ui-dist version in the rswag-ui dependencies
```
```
./rswag-ui/package.json
```

View File

@ -43,7 +43,7 @@ group :development do
end
group :assets do
gem 'therubyracer'
gem 'mini_racer'
gem 'uglifier'
end