hive-stalker 0.1.1 → 0.1.2

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: 71756037aa0822c6179c5507f81b411b386961a6
4
- data.tar.gz: b9808700652144a3d3c5de54c1db41148ed52aad
3
+ metadata.gz: dbb396653951a206bca6b8e264ab0b01a3ba2fb9
4
+ data.tar.gz: 72e9a8e985965ca686ce62253efa42212cdb502c
5
5
  SHA512:
6
- metadata.gz: 4ce9e08a5c22d531e846c6de4303a2bfe480422778d0a18c9ef5cd86fea4441e99363a49729f6f5baf8c704e7af09d3a8a14a6b013e2b0742c5460910af0d865
7
- data.tar.gz: 4deef6d7875423aad51be08d84a99e8dd7a3471e4407daf9995db86a7cd7a92a2a10aeadce8ca5bba9a45e1ac302019e7bd2182f74ae240a3ab228f55ff62d1c
6
+ metadata.gz: f311d7d466dd2496ba2aba89f40abf5901e42719c5d8b10606b24ed236d8d6a4ff23a5c9db02067d2b2cb609a36c09272690dee7459b460258f706af39919c95
7
+ data.tar.gz: eac2cdf74f31757acae31e029a29fbd94bd3438e8271269a0ca1c60ed3e70dbb1fb29d90b4f9926ffa653cfd31cc20073d10e9a3aac4619f99c95477e27d5a78
@@ -18,12 +18,21 @@ glance - what to expact from upgrading to a new version.
18
18
 
19
19
  ### Removed
20
20
 
21
+
22
+ ## [0.1.2] - 2016-12-25
23
+
24
+ ### Changed
25
+
26
+ - The API client now converts skill values of pre-Hive2 players to an integer.
27
+
28
+
21
29
  ## [0.1.1] - 2016-12-22
22
30
 
23
31
  ### Fixed
24
32
 
25
33
  - PlayerData did not initialize `skill` and `alias` attributes.
26
34
 
35
+
27
36
  ## [0.1.0] - 2016-12-22
28
37
 
29
38
  ### Added
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "hive-stalker"
7
- spec.version = '0.1.1'
7
+ spec.version = '0.1.2'
8
8
  spec.authors = ["Michael Senn"]
9
9
  spec.email = ["michael@morrolan.ch"]
10
10
 
@@ -58,7 +58,11 @@ module HiveStalker
58
58
  experience: raw_data.fetch('xp'),
59
59
  badges_enabled: raw_data.fetch('badges_enabled'),
60
60
  badges: raw_data.fetch('badges') || [],
61
- skill: raw_data.fetch('skill'),
61
+ # With legacy users (who have not played since introduction of
62
+ # Hive2), skill can be a float value. Likely due to the
63
+ # normalization of skills, which happened shortly after Hive2 went
64
+ # live.
65
+ skill: raw_data.fetch('skill').to_i,
62
66
  time_total: raw_data.fetch('time_played'),
63
67
  time_marine: raw_data.fetch('marine_playtime'),
64
68
  time_alien: raw_data.fetch('alien_playtime'),
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hive-stalker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Senn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-22 00:00:00.000000000 Z
11
+ date: 2016-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus