Skip to content

A ruby gem to create a SQLite3 database of Magic: The Gathering cards from the official Gatherer website

License

Notifications You must be signed in to change notification settings

Hammit/mtg-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MtgDb Build Status

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

  1. Fork it ( https://github.com/Hammit/mtg-database/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

A ruby gem to create a SQLite3 database of Magic: The Gathering cards from the official Gatherer website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages