The Ruby Analizer provides an API wrapper for JacobNinja's exercism-analysis project (codeminer).
Start the application on port 8989:
rackup -p 8989
Send a POST request to the /analyze/:language
endpoint. E.g.
$ curl "http://localhost:8989/analyze/ruby" -H "Content-Type: application/json" -d '{
"code": "class Thing\n def stuff\n end\nend"
}'
Note: to get a string that is formatted nicely, paste a heredoc into IRB and copy the string that is returned. It will be escaped correctly.
To lean on default configurations:
- Run exercism.io on port 4567
- Run the ruby analyzer on port 8989
- Run redis (just use the default port, 6379)
- Run rikki with no arguments
- Submit a problematic piece of code.