0.0
Low commit activity in last 3 years
No release in over a year
Legends of Runeterra deck code decoder & Data Dragon card data loader.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.14
~> 0.10.0
~> 13.0.1
~> 1.2
~> 0.9.25
~> 3.5.1

Runtime

~> 0.3.2
 Project Readme

Description

This library makes it easy to decode Legends of Runeterra deck codes, load Data Dragon metadata for cards, and perform operations on the data.

Deck code decoding is based on the specification documented by Riot Games. Metadata loading is designed to work with the metadata from Legends of Runeterra Data Dragon.

Documentation

Full API documentation including examples is available on Rubydoc. It is recommended to read it there rather than reading the docs on Github.

Installation

Add the following to your Gemfile:

gem 'runeterra_cards', '~> 0.7.0'

Or, if you're building a Gem, your .gemspec:

  spec.add_dependency 'runeterra_cards', '~> 0.7.0'

Development & Contributing

Contributions are welcomed, but it's a good idea to file an issue first to make sure your change isn't in progress elsewhere. That said PRs are still welcome without an issue first.

If you want a first issue to work on, adding more fields to CardMetadata would be an easy place to start.

Steps for developing:

  • Check out the repository
  • Install dependencies with Bundler
  • Run rake as you work to run quick incremental checks (unit tests, coverage, style)
  • Run rake all_checks before committing / pushing to run full checks

This library is fully unit tested with 100% coverage, as determined by mutation testing using mutant. This tool isn't very common in the Ruby ecosystem so if you are struggling to get the mutant check to pass, feel free to make a PR with it failing and ask for help.