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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f78a7b23b3de1f8ff86b7da07a600488a25cbe70e3474f4da6d90842ff311ae
4
- data.tar.gz: 626f986c4fe746e1bbbc24668545f1f07ea821c6e6992268df3bb633ac159809
3
+ metadata.gz: c9b7c45f11147948dc902fdca226050cec051fe3609dd5bd9c29a4d6bb8ce4a0
4
+ data.tar.gz: dbb255e98e93aa69dc8b0f151048ffbf6cdf95cb6e98dfed961620594ee012c0
5
5
  SHA512:
6
- metadata.gz: 0a5b606ddfc95cf24786c87a4801eca3242becd9a82e3585a5df80e921f821bf174f4a8c9b30e70bfc39ae8732d49b077ecc82f77ed1403245eadb03d083dfbe
7
- data.tar.gz: b0c10b6128285503389c919c0db3cb0e587ce9d9cff7c6788fbebea06a1c303a2c82a2e4a601c0bc225a7fea34eca00ca84748657828fd7d88f8c9a95136c852
6
+ metadata.gz: 2e3289948dc5b00ceca957328329a25b1bab4cb0798926cd73c6cc17a813eb1de74f411b2da501c2f002b40597a45fe544902ad1851943aa7a16d489f63c24d2
7
+ data.tar.gz: 8219fca24372f10f2186b12574263786ba5f6cbc4f70771446cacbe8df0213c556af6f486d4f00ac61ab59824a363c67ed606631cbb60adc4f36cabf0c6c1eb3
@@ -1,6 +1,14 @@
1
1
  ## Unreleased
2
2
 
3
- [Compare v4.0.1...HEAD](https://github.com/AMHOL/openra-ruby/compare/v4.0.1...HEAD)
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
- data[:chat] << {
141
- channel: 'global',
142
- name: utf8(client.name),
143
- message: utf8(order.target)
144
- }
145
- when 'TeamChat'
146
- data[:chat] << {
147
- channel: client.team,
148
- name: utf8(client.name),
149
- message: utf8(order.target)
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Openra
4
- VERSION = '4.0.1'.freeze
4
+ VERSION = '4.0.2'.freeze
5
5
  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: 4.0.1
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-06 00:00:00.000000000 Z
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.1.2
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: []