openra 1.2.0 → 1.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 +4 -4
- data/CHANGELOG.md +12 -3
- data/lib/openra/cli/commands/replay_data.rb +2 -2
- data/lib/openra/struct/client.rb +1 -1
- data/lib/openra/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e435a258f43e132ede658598e55dd46091dfa6c4
|
4
|
+
data.tar.gz: 9fd69a87d614bb4eee87068de598c510d4cecf66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1b0246d5e634ebb057422bc76b8ff369c9a57afccd9fd99a7b9e617742d9b659a43127a26246abd57aec3d1900b0e87468b18736c263db28a0ab02c43190336
|
7
|
+
data.tar.gz: 303ff9ff644f6cc3e8f076e66df3ccd1907b706b5b82dd9a6d6f2d5c901f4678cabe6625244f0bdf534670a3648f287eba73536836e6e9fe7f55b98b6867c02a
|
data/CHANGELOG.md
CHANGED
@@ -2,10 +2,19 @@
|
|
2
2
|
|
3
3
|
## Fixed
|
4
4
|
|
5
|
-
[replay-data]
|
6
|
-
[replay-data]
|
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.
|
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
|
data/lib/openra/struct/client.rb
CHANGED
@@ -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')
|
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)
|
data/lib/openra/version.rb
CHANGED