Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Outline

Playground

This directory stores a small web app that runs on heroku that when posted to will return the AST of the posted code.

Local

You can start it locally with:

bundle install
bundle exec rackup

This will start a local server on http://localhost:9292. You can then test it out by hitting it with curl, as in:

curl -X POST -d 'foo' http://localhost:9292

Remote

You can use the deployed version on heroku with the same curl command as above, but using the heroku URL, as in:

curl -X POST -d 'foo' https://prettier-ruby.herokuapp.com

Deploy

To deploy this app to heroku, use the playground/deploy bash script. Basically it just git pushs to heroku using the playground subtree, provided the playground/ripper.rb file is synced up with the one from src/ripper.rb.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.