How to serve files with a local ruby webserver

If you need to make your local files accessible via http on your local machine you can spin up a ruby webserver in the directory of those files.

ruby -run -e httpd . -p 9090

Now if you visit http:localhost:9090/name_of_your_file.json in your browser you will be served that file.