openra 0.2.0 → 0.3.0

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: 3b2745c6650b2d19d7d86501604c5a9d21be2f49
4
- data.tar.gz: 8cba338497c93da033f472dd0bcb9bfbfd6e2765
3
+ metadata.gz: d4b0cd4fc230f79bfb083fb98c4adba801016c57
4
+ data.tar.gz: 6e69e56820305fd0868b959b9787e0b15e52b50b
5
5
  SHA512:
6
- metadata.gz: 7723efc3646a9bca3fe9c473b78def3c1e7fcbac8dac2a7a9653c5e72ecea44a6041e356e0fbbd834bcef87b521d74fc33e590fc453bcbc2d82e0ff168671253
7
- data.tar.gz: 76ef7c3987df77ef67b84a777af3919aa2b17bbbfe6b61247ba565fc510f249f27132f33bf50ef3bfebf1a6120a2f4171e6d48f135c6b328bb2b861d29a09fb1
6
+ metadata.gz: 8a5b42b78584c3b2a5ca4afbbd53e793c0bf0e357df0e250ff0e1801c731928eb97cabb8f84e04662128a770b6c44a0af759e06a073f15606fec1087a33b21aa
7
+ data.tar.gz: 440ce52d27cc21c42b18d399b550b5ae22580c5e1fbd50f70256333426dfaac5af0bbb34239cc99f0d22597513cc07a4baef739568c8095af46f0477a68a657a
@@ -1,5 +1,14 @@
1
1
  ## Unreleased
2
2
 
3
+ ## Fixed
4
+
5
+ * [replay-data] Fix "type" output when no teams set ([AMHOL](https://github.com/AMHOL))
6
+ * [replay-data] Fix error uninitialized constant Openra::CLI::Commands::ReplayData::SecureRandom ([AMHOL](https://github.com/AMHOL))
7
+
8
+ [Compare v0.2.0...HEAD](https://github.com/AMHOL/openra-ruby/compare/v0.2.0...HEAD)
9
+
10
+ ## v0.2.0
11
+
3
12
  ## Added
4
13
 
5
14
  * [replay-data] Show chosen and actual faction ([AMHOL](https://github.com/AMHOL))
@@ -9,7 +18,7 @@
9
18
 
10
19
  * [replay-data] Fetch team from replay metadata players hash ([AMHOL](https://github.com/AMHOL))
11
20
 
12
- [Compare v0.1.0...HEAD](https://github.com/AMHOL/openra-ruby/compare/v0.1.0...HEAD)
21
+ [Compare v0.1.0...v0.2.0](https://github.com/AMHOL/openra-ruby/compare/v0.1.0...v0.2.0)
13
22
 
14
23
  ## v0.1.0
15
24
 
@@ -1,4 +1,5 @@
1
1
  require 'json'
2
+ require 'securerandom'
2
3
 
3
4
  module Openra
4
5
  class CLI
@@ -30,7 +31,7 @@ module Openra
30
31
  end
31
32
  player_teams = players.map { |player| player['Team'] }
32
33
  team_alignment = player_teams.each_with_object({}) do |team, hash|
33
- if team == 0
34
+ if team.to_s == '0'
34
35
  hash[SecureRandom.uuid] = 1
35
36
  else
36
37
  hash[team] ||= 0
@@ -1,3 +1,3 @@
1
1
  module Openra
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Holland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-29 00:00:00.000000000 Z
11
+ date: 2018-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata