A ruby wrapper for the game Schemaverse created by Abstrct, written by Sailias.
The Schemaverse is a space-based strategy game implemented entirely within a PostgreSQL database. Compete against other players using raw SQL commands to command your fleet. Or, if your PL/pgSQL-foo is strong, wield it to write AI and have your fleet command itself! Come to #Schemaverse on irc.freenode.net if you are looking for some help or friendly banter.
To play you must be a registered user on the database you are connecting to.
For the public database you can register at https://schemaverse.com.
This also assumes you have registered with Heroku (https://www.heroku.com) and you have downloaded their Heroku Toolbelt (https://toolbelt.herokuapp.com)
You can view the documentation here
git clone git:https://github.com/func-i/ruby-schemaverse.git ruby-schemaverse
cd ruby-schemaverse
heroku create
heroku config:add SCHEMAVERSE_USERNAME=<username>
heroku config:add DATABASE_URL=postgres:https://<username>:<password>@db.schemaverse.com/schemaverse
git push heroku master
heroku ps:scale worker=1
Uses RSpec to test the functions inside Schemaverse and their return functions. Unfortunately the easiest way to test this is by connecting as a user. This will eventually be changed and the functionality will be stubbed out.
Copy and rename the test.yml.example file and populate it with your or a fake account's credentials. This file is ignored in the .gitignore so don't worry about committing it.
Like any other rspec test
rspec spec/models/my_player_spec.rb
Feel free to enhance the tests and submit pull requests.