acpc_table_manager 3.0.6 → 3.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/acpc_table_manager.gemspec +3 -0
- data/exe/acpc_proxy +9 -2
- data/lib/acpc_table_manager/proxy.rb +5 -4
- data/lib/acpc_table_manager/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16fe2f6ce11b47a3e2108497fbdfab6e75c072fe
|
4
|
+
data.tar.gz: 873167f87c427eaf23b10e577a0ac1c8c6679b24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebc69b97cd5c646858d61dca7f9854f6051361862fedf965e72097a91333d48913ab75f05e6ef4e80b06a9afb1774bedce6f778a98c1ce367b7ca9a5a8a86ac8
|
7
|
+
data.tar.gz: 47a7d2536ef01bff48a87fd77f44db9562696b1019b564988f36d2d7a657b3d3bb64abe44ade7a1d7df0ec90f5ab7640644eb419e0440d7112eeb21dc04eddf9
|
data/acpc_table_manager.gemspec
CHANGED
@@ -50,6 +50,9 @@ Gem::Specification.new do |spec|
|
|
50
50
|
# For sanitizing file names
|
51
51
|
spec.add_dependency 'zaru'
|
52
52
|
|
53
|
+
# For sanitizing file names in the match slice action log
|
54
|
+
spec.add_dependency 'hescape'
|
55
|
+
|
53
56
|
spec.add_development_dependency "bundler", "~> 1.10"
|
54
57
|
spec.add_development_dependency "rake", "~> 10.0"
|
55
58
|
spec.add_development_dependency "minitest"
|
data/exe/acpc_proxy
CHANGED
@@ -84,8 +84,15 @@ begin
|
|
84
84
|
)
|
85
85
|
)
|
86
86
|
)
|
87
|
-
|
88
|
-
|
87
|
+
if AcpcTableManager.config.on_proxy_timeout == 'fold'
|
88
|
+
proxy.play_check_fold!
|
89
|
+
else
|
90
|
+
match = AcpcTableManager::Match.find options[:match_id]
|
91
|
+
match.proxy_pid = nil
|
92
|
+
match.dealer_pid = nil
|
93
|
+
match.save!
|
94
|
+
exit
|
95
|
+
end
|
89
96
|
end
|
90
97
|
match = AcpcTableManager::Match.find options[:match_id]
|
91
98
|
if proxy.match_ended? or !match.dealer_running?
|
@@ -2,6 +2,7 @@ require_relative 'config'
|
|
2
2
|
require_relative 'match'
|
3
3
|
require_relative 'match_slice'
|
4
4
|
|
5
|
+
require 'hescape'
|
5
6
|
require 'acpc_poker_player_proxy'
|
6
7
|
require 'acpc_poker_types'
|
7
8
|
|
@@ -213,7 +214,7 @@ class Proxy
|
|
213
214
|
|
214
215
|
if ms.first_state_of_first_round?
|
215
216
|
new_slice.messages << hand_dealt_description(
|
216
|
-
@match.player_names,
|
217
|
+
@match.player_names.map { |n| Hescape.escape_html(n) },
|
217
218
|
ms.hand_number + 1,
|
218
219
|
players_at_the_table.game_def,
|
219
220
|
@match.number_of_hands
|
@@ -308,7 +309,7 @@ class Proxy
|
|
308
309
|
player.hand +
|
309
310
|
ms.community_cards.flatten
|
310
311
|
).to_poker_hand_description
|
311
|
-
new_slice.messages << "#{@match.player_names[i]} shows #{hd}"
|
312
|
+
new_slice.messages << "#{Hescape.escape_html(@match.player_names[i])} shows #{hd}"
|
312
313
|
end
|
313
314
|
end
|
314
315
|
winning_players = new_slice.players.select do |player|
|
@@ -316,7 +317,7 @@ class Proxy
|
|
316
317
|
end
|
317
318
|
if winning_players.length > 1
|
318
319
|
new_slice.messages << split_pot_description(
|
319
|
-
winning_players.map { |player| player['name'] },
|
320
|
+
winning_players.map { |player| Hescape.escape_html(player['name']) },
|
320
321
|
ms.pot(players_at_the_table.game_def)
|
321
322
|
)
|
322
323
|
else
|
@@ -330,7 +331,7 @@ class Proxy
|
|
330
331
|
end
|
331
332
|
|
332
333
|
new_slice.messages << hand_win_description(
|
333
|
-
winning_players.first['name'],
|
334
|
+
Hescape.escape_html(winning_players.first['name']),
|
334
335
|
winnings,
|
335
336
|
chip_balance - winnings
|
336
337
|
)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acpc_table_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dustin Morrill
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pony
|
@@ -192,6 +192,20 @@ dependencies:
|
|
192
192
|
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: hescape
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :runtime
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
195
209
|
- !ruby/object:Gem::Dependency
|
196
210
|
name: bundler
|
197
211
|
requirement: !ruby/object:Gem::Requirement
|