Skip to content
This repository was archived by the owner on Aug 9, 2019. It is now read-only.

Latest commit

 

History

History
32 lines (22 loc) · 796 Bytes

File metadata and controls

32 lines (22 loc) · 796 Bytes

Rikki: Ruby Analyzer

The Ruby Analizer provides an API wrapper for JacobNinja's exercism-analysis project (codeminer).

Usage

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.

Testing locally

To lean on default configurations:

  1. Run exercism.io on port 4567
  2. Run the ruby analyzer on port 8989
  3. Run redis (just use the default port, 6379)
  4. Run rikki with no arguments
  5. Submit a problematic piece of code.