Releases: MagicTheGathering/mtg-sdk-ruby
Add color_identity
Added method: Set.where
Somehow, the Set.where method was never added. Whoops.
Version 3.0.0 - Updated dependencies, removed support for ruby 1.9
Ruby version 1.9 is no longer supported, and all package dependencies have been upgraded.
Two new fields added
Card
now has a set_name
field, and the foreign_names
field also includes an image_url
.
Dependencies Updated
Explicitly specifying gem dependencies now.
Bug Fix for #3
The 'names' property was not properly being set from the response. This has now been fixed.
'get' method removed, 'all' is now used to fetch data
Previously, you would use the 'get' method to fetch a specific page of data (does not automatically page through data). Now, the 'all' method will page through data for you, but also only fetch a specific page if the page parameter is specified. Example:
MTG::Card.where(page: 1).all
That will only return the first page of data.
Bug Fix: Added multi_xml as dependency
Bug fix for #1. 'multi_xml' now a dependency.
Added method 'all' to Card and Set.
You can now get all cards (pagination handled for you) via the following:
MTG::Card.all
You can even filter on fields with this method
MTG::Card.where(subtypes: 'elf,warrior').all
You can also get all sets
MTG::Set.all