runeterra_cards 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7a06c2e4f2c76ba4038979ac6215010fb95b763da60717bc18faec557d41dcb
4
- data.tar.gz: 1583f4620c7ccc60f3f2d18ed5646f2c9e2d38691cd191340dc70db9de9012ec
3
+ metadata.gz: e072725d1ac2b1af062cfa42826a5efd9eb991eb51f65d8897b90a5110fbf8c7
4
+ data.tar.gz: a3a260958b84602a94e53d0ccaa19f714fb7fbdccf036569d195419e13dbbc77
5
5
  SHA512:
6
- metadata.gz: 571ad2f19f35022cdc41f9b0195b7a87b70e6f6cb7f75438e16a6e7e891355c1615debf359dd59c0717abe7cb7125adfde5e8a54b076dcecf45389364df6827b
7
- data.tar.gz: b5414fa7da1d020f6ec6eec394e66fa1735f264a60e850be18e8f5dba303959e5f517a3bbb6d0edbb1734867d619b432c7cbeb5a6bebc461c33946d7634fc692
6
+ metadata.gz: f7c8a7b954a62793eb396e299e52ea104e8cf08b0d9d18c616b8d37bad973620c01981460dced44320f09bfc9f7a84423d1e5f6f8caba58db9c9ba35ec70ce01
7
+ data.tar.gz: ac21bf2ed0a0ee367771a33b0417456eb1986469998760484875e5d5871d03e7a720cfd1a2ef9a808e69eb42339cd92ecc10439755b4b6959e60ca36b4b510ea
@@ -0,0 +1,22 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [0.2.1] - 2020-08-29
8
+ ### Fixed
9
+ - Correctly packaged README and CHANGELOG in the Gem
10
+
11
+ ## [0.2.0] - 2020-08-29
12
+ ### Added
13
+ - Added support for the Mount Targon faction
14
+ - UnrecognizedVersionError#version returns the version number that wasn't recognized.
15
+ - UnrecognizedFactionError, which is raised by CardAndCount#new (and by extension, CardSet#from_deck_code) if an unrecognized faction number is encountered.
16
+
17
+ ### Changed
18
+ - FACTION_IDENTIFIERS_FROM_INT is now a Hash instead of an Array. The API for looking up a faction identifier by integer should remain unchanged in most cases.
19
+
20
+ ## [0.1.0] - 2020-08-28
21
+ ### Added
22
+ - Initial public release, with support for loading deck codes (Bilgewater and earlier) and loading metadata from Legends of Runeterra Data Dragon.
@@ -0,0 +1,64 @@
1
+ <!-- This is the README file for the Gem documentation / online documentation. It should be thorough and authoritative for using the Gem, but not discuss development concerns, which belong in the Github README. -->
2
+
3
+ ## Description
4
+
5
+ This library makes it easy to decode Legends of Runeterra deck codes, load Data Dragon metadata for cards, and perform operations on the data.
6
+
7
+ ## Installation
8
+
9
+ Add the following to your `Gemfile`:
10
+
11
+ ```
12
+ gem 'runeterra_cards', '~> 0.2.0'
13
+ ```
14
+
15
+ Or, if you're building a Gem, your `.gemspec`:
16
+
17
+ ```
18
+ spec.add_dependency 'runeterra_cards', '~> 0.2.0'
19
+ ```
20
+
21
+ ## Updates & Versioning
22
+
23
+ This library will conform to [semantic versioning](https://semver.org/) once it hits 1.0. In the meantime, you can rely on the minor version (Y in x.Y.z) being bumped for backwards-incompatible changes.
24
+
25
+ All changes are documented in the {file:doc/CHANGELOG.md}.
26
+
27
+ ## Main Concepts
28
+
29
+ Your typical main entry points to this library will be {RuneterraCards::CardSet} for manipulating deck codes and/or {RuneterraCards::Metadata} for handling Data Dragon card data.
30
+
31
+ ## Examples
32
+
33
+ Load a deck code:
34
+
35
+ ```
36
+ require 'runeterra_cards'
37
+
38
+ deck_code = 'CEBAOAQGC4OSKJZJF44ACAQFBIBAIAQGAEPCYNIBAICQOAYCAECSOMADAIDAKGRWAEBAKAY'
39
+ deck = RuneterraCards::CardSet.from_deck_code(deck_code)
40
+
41
+ deck.count_for_card_code('02BW053') #=> 2
42
+
43
+ deck.cards.each do |card, count|
44
+ puts "#{card} x#{count}"
45
+ end
46
+ ```
47
+
48
+ Load metadata from Legends of Runeterra Data Dragon:
49
+
50
+ ```
51
+ require 'runeterra_cards'
52
+
53
+ metadata = RuneterraCards::Metadata.new
54
+
55
+ metadata.add_set_file 'set1-en_us.json'
56
+ metadata.add_set_file 'set2-en_us.json'
57
+
58
+ card = metadata.lookup_card '02BW053'
59
+ card.name #=> "Nautilus"
60
+ ```
61
+
62
+ ## Development & Contributing
63
+
64
+ See the [Github project](https://github.com/zofrex/runeterra_cards) for more details.
@@ -2,5 +2,5 @@
2
2
 
3
3
  module RuneterraCards
4
4
  # The version of this library
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runeterra_cards
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
- - zofrex
7
+ - James "zofrex" Sanderson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
@@ -178,7 +178,7 @@ dependencies:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
180
  version: 0.9.25
181
- description: Legends of Runeterra deck encoder/decoder and general purpose card info
181
+ description: Legends of Runeterra deck code decoder & Data Dragon card data loader.
182
182
  email:
183
183
  - zofrex@gmail.com
184
184
  executables: []
@@ -186,6 +186,8 @@ extensions: []
186
186
  extra_rdoc_files: []
187
187
  files:
188
188
  - LICENSE.txt
189
+ - doc/CHANGELOG.md
190
+ - doc/README.md
189
191
  - lib/runeterra_cards.rb
190
192
  - lib/runeterra_cards/card_and_count.rb
191
193
  - lib/runeterra_cards/card_metadata.rb
@@ -197,7 +199,11 @@ files:
197
199
  homepage:
198
200
  licenses:
199
201
  - MIT
200
- metadata: {}
202
+ metadata:
203
+ bug_tracker_uri: https://github.com/zofrex/runeterra_cards/issues
204
+ changelog_uri: https://www.rubydoc.info/gems/runeterra_cards/doc/CHANGELOG.md
205
+ mailing_list_uri: https://groups.example.com/bestgemever
206
+ source_code_uri: https://github.com/zofrex/runeterra_cards
201
207
  post_install_message:
202
208
  rdoc_options: []
203
209
  require_paths:
@@ -216,5 +222,5 @@ requirements: []
216
222
  rubygems_version: 3.1.4
217
223
  signing_key:
218
224
  specification_version: 4
219
- summary: Legends of Runeterra deck encoder/decoder and general purpose card info
225
+ summary: Legends of Runeterra deck code decoder & Data Dragon card data loader.
220
226
  test_files: []