A ruby program that creates an SQLite3 database containing Magic: The Gathering card information collected from The Gatherer.
Install it yourself as:
$ gem install mtg_db
mtg_db create NAME # create an MtG sqlite3 Db with the given NAME
mtg_db help [COMMAND] # Describe available commands or one specific command
To run all tests
rake test
To run a specific test
rake test TESTOPTS="--name=test_2_db_created"
Downloading card information from The Gatherer can take a long time. Be prepared to wait a while when creating the db.
- Schema for the Db is in sql/db.schema.sql
- bundle exec bin/mtg_db help
- Fork it ( https://github.com/Hammit/mtg-database/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request