openra 1.2.0 → 1.3.0

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
  SHA1:
3
- metadata.gz: b4aa503f2dda6d282ec8bac4712589703d0be5ca
4
- data.tar.gz: 244a1b4a23b706868b9b76e699b3a933bfa6836b
3
+ metadata.gz: e435a258f43e132ede658598e55dd46091dfa6c4
4
+ data.tar.gz: 9fd69a87d614bb4eee87068de598c510d4cecf66
5
5
  SHA512:
6
- metadata.gz: d03fd2b0a66d2f4990de25c0e56b1b5f90028536c86db43410cab828493e4279ef1a38a140fd8c5a9700d787ed9a04f66d8f5d15571954df0de8bc8d67ed2575
7
- data.tar.gz: d73bc9568db824a77b259377052f423735d2a2fec980e0682c52cb9e9da5f8009a3553aadf71eb0c75b7404bbde1f822d9eb297824099c9aa5dd6a1c4c627e7f
6
+ metadata.gz: a1b0246d5e634ebb057422bc76b8ff369c9a57afccd9fd99a7b9e617742d9b659a43127a26246abd57aec3d1900b0e87468b18736c263db28a0ab02c43190336
7
+ data.tar.gz: 303ff9ff644f6cc3e8f076e66df3ccd1907b706b5b82dd9a6d6f2d5c901f4678cabe6625244f0bdf534670a3648f287eba73536836e6e9fe7f55b98b6867c02a
@@ -2,10 +2,19 @@
2
2
 
3
3
  ## Fixed
4
4
 
5
- [replay-data] Use SyncLobbyClients to get chat names ([AMHOL](https://github.com/AMHOL))
6
- [replay-data] Make client IP optional in client struct (fixes parsing replays with bots) ([AMHOL](https://github.com/AMHOL))
5
+ * [replay-data] Fix client IP by making it omittable ([AMHOL](https://github.com/AMHOL))
6
+ * [replay-data] utf8 encode chat names ([AMHOL](https://github.com/AMHOL))
7
7
 
8
- [Compare v1.1.0...HEAD](https://github.com/AMHOL/openra-ruby/compare/v1.1.0...HEAD)
8
+ [Compare v1.2.0...HEAD](https://github.com/AMHOL/openra-ruby/compare/v1.2.0...HEAD)
9
+
10
+ ## v1.2.0
11
+
12
+ ## Fixed
13
+
14
+ * [replay-data] Use SyncLobbyClients to get chat names ([AMHOL](https://github.com/AMHOL))
15
+ * [replay-data] Make client IP optional in client struct (fixes parsing replays with bots) ([AMHOL](https://github.com/AMHOL))
16
+
17
+ [Compare v1.1.0...v1.2.0](https://github.com/AMHOL/openra-ruby/compare/v1.1.0...v1.2.0)
9
18
 
10
19
  ## v1.1.0
11
20
 
@@ -113,13 +113,13 @@ module Openra
113
113
  when 'Chat'
114
114
  replay_data[:chat] << {
115
115
  channel: 'global',
116
- name: client.name,
116
+ name: utf8(client.name),
117
117
  message: utf8(order.target)
118
118
  }
119
119
  when 'TeamChat'
120
120
  replay_data[:chat] << {
121
121
  channel: client.team,
122
- name: client.name,
122
+ name: utf8(client.name),
123
123
  message: utf8(order.target)
124
124
  }
125
125
  end
@@ -8,7 +8,7 @@ module Openra
8
8
  attribute :faction_name, Types::Strict::String.meta(from: 'Faction')
9
9
  attribute :spawn_point, Types::Strict::String.meta(from: 'SpawnPoint')
10
10
  attribute :name, Types::Strict::String.meta(from: 'Name')
11
- attribute :ip, Types::Strict::String.meta(from: 'IpAddress').optional.default(nil)
11
+ attribute :ip, Types::Strict::String.meta(from: 'IpAddress', omittable: true)
12
12
  attribute :state, Types::Strict::String.meta(from: 'State')
13
13
  attribute :team, Types::Strict::String.meta(from: 'Team')
14
14
  attribute :slot, Types::Strict::String.meta(from: 'Slot', omittable: true)
@@ -1,3 +1,3 @@
1
1
  module Openra
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.3.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Holland