BoardGameGem 0.1.4 → 0.1.5

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
  SHA1:
3
- metadata.gz: 6088b77d174526172a32299b9a2844fec8c63562
4
- data.tar.gz: 9b5b1af1199cc41a53c0bccfcdb0a78893107ecb
3
+ metadata.gz: 595da194a9ed8fd8cf200463247c600a87e29e79
4
+ data.tar.gz: 7a2292976753fde54678aa9d25e19ee351df971b
5
5
  SHA512:
6
- metadata.gz: b6e26cfb4c2564f854ea5ef3f772cca890989962dca5bea88eed9eeb769a0780668e966e945394f7679323c4da3f6871f76349e3d3a07504bf3535f9b2904cb4
7
- data.tar.gz: a0481eafd9837e5800a73f2e182675f1c80f62a57f592a676fb17240db60655d6267fdaee47ce88d1df6a7f5f5c6c6d7c03bd467514ba1707eaf64af9da014eb
6
+ metadata.gz: 71b49cf8e32632ff33f65cea8fc42aacaa6cb13e2498c8d96ae1c3f49f69ecb686078d47d9ba18c67e4444758652526824d052561e35c848e0ba36461ff36d8c
7
+ data.tar.gz: e6bd6af6413e4cbf44be2baca02c31df14b71724bb70f82bc9405b5c560ab3d9eed584f1ac9a1381c5fb9cd07b0d138e5481b7b39145787bed4d6c859b22b16c
data/lib/bgg_item.rb CHANGED
@@ -7,6 +7,7 @@ module BoardGameGem
7
7
  def initialize(xml)
8
8
  @id = get_integer(xml, "item", "id")
9
9
  @type = get_string(xml, "item", "type")
10
+ @image = get_string(xml, "image")
10
11
  @thumbnail = get_string(xml, "thumbnail")
11
12
  @name = get_string(xml, "name[type='primary']", "value")
12
13
  @alternate_names = get_strings(xml, "name[type='alternate']", "value")
@@ -28,6 +29,7 @@ module BoardGameGem
28
29
  rank_data = {}
29
30
  rank_data[:type] = rank["type"]
30
31
  rank_data[:name] = rank["name"]
32
+ rank_data[:friendly_name] = rank["friendlyname"]
31
33
  rank_data[:value] = rank["value"].to_i
32
34
  rank_data[:bayes] = rank["bayesaverage"].to_f
33
35
  @statistics[:ranks].push(rank_data)
@@ -1,3 +1,3 @@
1
1
  module BoardGameGem
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: BoardGameGem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Roussel