openra 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/openra/commands/replays/extract_data.rb +23 -11
- data/lib/openra/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9b7c45f11147948dc902fdca226050cec051fe3609dd5bd9c29a4d6bb8ce4a0
|
4
|
+
data.tar.gz: dbb255e98e93aa69dc8b0f151048ffbf6cdf95cb6e98dfed961620594ee012c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e3289948dc5b00ceca957328329a25b1bab4cb0798926cd73c6cc17a813eb1de74f411b2da501c2f002b40597a45fe544902ad1851943aa7a16d489f63c24d2
|
7
|
+
data.tar.gz: 8219fca24372f10f2186b12574263786ba5f6cbc4f70771446cacbe8df0213c556af6f486d4f00ac61ab59824a363c67ed606631cbb60adc4f36cabf0c6c1eb3
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
## Unreleased
|
2
2
|
|
3
|
-
[Compare v4.0.
|
3
|
+
[Compare v4.0.2...HEAD](https://github.com/AMHOL/openra-ruby/compare/v4.0.2...HEAD)
|
4
|
+
|
5
|
+
## v4.0.2
|
6
|
+
|
7
|
+
### Fixed
|
8
|
+
|
9
|
+
* [maint] Fix chat spectator channel ([AMHOL](https://github.com/AMHOL))
|
10
|
+
|
11
|
+
[Compare v4.0.1...v4.0.2](https://github.com/AMHOL/openra-ruby/compare/v4.0.1...v4.0.2)
|
4
12
|
|
5
13
|
## v4.0.1
|
6
14
|
|
@@ -137,17 +137,29 @@ module Openra
|
|
137
137
|
message: utf8(order.target)
|
138
138
|
}
|
139
139
|
when 'Chat'
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
140
|
+
if order.extra_data.zero?
|
141
|
+
data[:chat] << {
|
142
|
+
channel: 'global',
|
143
|
+
name: utf8(client.name),
|
144
|
+
message: utf8(order.target)
|
145
|
+
}
|
146
|
+
else
|
147
|
+
player = replay.player(client.index)
|
148
|
+
|
149
|
+
if player
|
150
|
+
data[:chat] << {
|
151
|
+
channel: player.team,
|
152
|
+
name: utf8(client.name),
|
153
|
+
message: utf8(order.target)
|
154
|
+
}
|
155
|
+
else
|
156
|
+
data[:chat] << {
|
157
|
+
channel: 'spectators',
|
158
|
+
name: utf8(client.name),
|
159
|
+
message: utf8(order.target)
|
160
|
+
}
|
161
|
+
end
|
162
|
+
end
|
151
163
|
end
|
152
164
|
end
|
153
165
|
|
data/lib/openra/version.rb
CHANGED
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: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Holland
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -136,7 +136,7 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
-
description:
|
139
|
+
description:
|
140
140
|
email:
|
141
141
|
- andyholland1991@aol.com
|
142
142
|
executables:
|
@@ -198,7 +198,7 @@ homepage: https://github.com/AMHOL/openra-ruby
|
|
198
198
|
licenses:
|
199
199
|
- MIT
|
200
200
|
metadata: {}
|
201
|
-
post_install_message:
|
201
|
+
post_install_message:
|
202
202
|
rdoc_options: []
|
203
203
|
require_paths:
|
204
204
|
- lib
|
@@ -213,8 +213,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
213
|
- !ruby/object:Gem::Version
|
214
214
|
version: '0'
|
215
215
|
requirements: []
|
216
|
-
rubygems_version: 3.
|
217
|
-
signing_key:
|
216
|
+
rubygems_version: 3.2.3
|
217
|
+
signing_key:
|
218
218
|
specification_version: 4
|
219
219
|
summary: Openra Rubygem
|
220
220
|
test_files: []
|