brawlhalla-api 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd5f75356908deb5622bce5aef9c000ab8a84e17b1bea09e1a7082e99fa9712e
4
- data.tar.gz: a67c0b680ef408ff83420900178baa0982b047b134ebf5a72e83d43f3bfa594f
3
+ metadata.gz: c9d490a8825d6161e6b12cc636ed5c330df837d57976e48c7376eea36dadcd01
4
+ data.tar.gz: 1e2c89d74edcdb3609fa84ce7e0569641328dd6adb639fe0255635f6c924db3b
5
5
  SHA512:
6
- metadata.gz: 35e7c6ca4148d7a69f5bcec35350041adbc5764cc6a127d331ab6b1eb23c0e1125c947d7342a1bf21ef473ab68aae8e6a0fbcc5cb5e85a81cf66a92efe94ade2
7
- data.tar.gz: 5ecf88b9e97c5002f8d41091cc210a2430d112f3cdcda54795762ecb4b830a1f8f10f76cfc8502854aba0f35a006c79d81eac204596ac3d6bfffb26657c1a8ef
6
+ metadata.gz: c7ae171c5ed8f4cc072399a9e5a7ae99fe2e9de050cbbd06980dcae5b541a092fe7edf657ff20c9d2520d0f248fb0a105d4c8515592b4d4da36f540598385ad4
7
+ data.tar.gz: adea4cc5da6d5215db2df57adba5fbfa82711bc61d31e974882ece20a5906f44c3a95363687e58db0e6600633d16495bac9b22425d8bcc02083cb7f535e3ad68
@@ -23,8 +23,11 @@ module Brawlhalla
23
23
  send("#{attr}=", json[attr])
24
24
  end
25
25
 
26
- @legend_rankings = json[:legends].map { |legend_json| LegendRanking.new(legend_json) }
27
- @doubles_rankings = json[:"2v2"].map { |doubles_json| DoublesRanking.new(doubles_json) }
26
+ legends = json[:legends] || []
27
+ doubles = json[:"2v2"] || []
28
+
29
+ @legend_rankings = legends.map { |legend_json| LegendRanking.new(legend_json) }
30
+ @doubles_rankings = doubles.map { |doubles_json| DoublesRanking.new(doubles_json) }
28
31
  end
29
32
  end
30
33
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Brawlhalla
4
4
  module API
5
- VERSION = '0.3.1'
5
+ VERSION = '0.3.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brawlhalla-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - rikas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-02 00:00:00.000000000 Z
11
+ date: 2018-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable