A ruby program that creates an SQLite3 database containing Magic: The Gathering card information collected from The Gatherer.
Installation
Install it yourself as:
$ gem install mtg_db
Usage
mtg_db create NAME # create an MtG sqlite3 Db with the given NAME
mtg_db help [COMMAND] # Describe available commands or one specific command
Testing
To run all tests
rake test
To run a specific test
rake test TESTOPTS="--name=test_2_db_created"
Notes
Downloading card information from The Gatherer can take a long time. Be prepared to wait a while when creating the db.
Misc
- Schema for the Db is in sql/db.schema.sql
- bundle exec bin/mtg_db help
Contributing
- 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