acpc_table_manager 3.0.15 → 3.0.16

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: bcc1ca241c2f9b0587f98ca33c636b6c1ad90e41
4
- data.tar.gz: 5f2a2b9a87ada229f0413840c738dd05ddb30577
3
+ metadata.gz: 695bfb5265fab1419cc3a35232d256454872e2fb
4
+ data.tar.gz: 3ce929cf26eb43480450719de0cb81ff3cee65b4
5
5
  SHA512:
6
- metadata.gz: c4d51f2a1a6ef20aa951c766c2d08e08247fdf6ad070a69556d819b77e4ef9aea1130af7b4373259da2d71252a0006fa3f4a46587b1b58c2fcb3ede589ade9d2
7
- data.tar.gz: dbc6222bf16af70c8027283f3a0d9f3d52ca298a64501243265832816ff5b41e3deab24e89797fae2b58f36cfd82f6d82f8a64238091a637bbd1f94d0887ed70
6
+ metadata.gz: 5bd61f46a19c3cfb6d9e219304397923e7c2ea1fbba42549ddffcb27bbe265683aa78a58ba956e0f635018d092a2250fd005adbdd73cc45740322795e86704db
7
+ data.tar.gz: 6f3ce017c3a6ba317b7c49d9ae91e61530e37864502fa406d9a82bf755e64ef894b1fb7d7893c9ff1f2d1960897f13e37472491f0e63921192bb748f606e6de5
@@ -175,13 +175,15 @@ class Proxy
175
175
  return true
176
176
  end
177
177
 
178
- (
179
- @player_proxy.match_ended? ||
180
- (
181
- @player_proxy.hand_ended? &&
182
- @player_proxy.match_state.hand_number >= @match.number_of_hands - 1
183
- )
184
- )
178
+ ended = if @player_proxy.stack_sizes
179
+ @player_proxy.players.any? do |player|
180
+ !((player.stack + player.winnings.to_f) > 0)
181
+ end
182
+ else
183
+ @player_proxy.match_state.hand_number >= @match.number_of_hands - 1
184
+ end
185
+
186
+ @player_proxy.match_ended? || (@player_proxy.hand_ended? && ended)
185
187
  end
186
188
 
187
189
  private
@@ -1,3 +1,3 @@
1
1
  module AcpcTableManager
2
- VERSION = '3.0.15'.freeze
2
+ VERSION = '3.0.16'.freeze
3
3
  end
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.15
4
+ version: 3.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Morrill
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-07 00:00:00.000000000 Z
11
+ date: 2017-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pony
@@ -337,4 +337,3 @@ signing_key:
337
337
  specification_version: 4
338
338
  summary: Backend components to the ACPC Poker GUI Client
339
339
  test_files: []
340
- has_rdoc: