acpc_table_manager 2.2.1 → 2.2.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
  SHA1:
3
- metadata.gz: 0b57b186ac75a02347f1790f356745754adcca3e
4
- data.tar.gz: 40be0ff71c526ebacd633082e91bdb58ef24e799
3
+ metadata.gz: 2e0dc3c1168638d75ff680ebca91f9140c4efb95
4
+ data.tar.gz: e07dae2c12b554c18c62a4cc30dfafa898c8695b
5
5
  SHA512:
6
- metadata.gz: 6c0efcbc8e8eb131735d27da3274d42a22e2ed27e5b5494c4a8ec3a0d80869febdbade787e4ae76c2a9b78c176b12335ee3d64107a9fb3a232678823987cdbd4
7
- data.tar.gz: 10a8e19bcec2bae144f8ce477720b76adfea2bc0571a87f6a45987cffb713a178b1b1b1d9291a237db3272a3b94e0d9a1bee2ffc7c72f0d51e28a13ec65a121a
6
+ metadata.gz: a0734de38447bb8eaaa7533b71550acc45d48ac3256af866ce6e2ac5709659e4699607699d2c6fdecc442b4ade2b414fe5896cba175d91d3276077c1cbe53738
7
+ data.tar.gz: 28b835192d3356b9be4acc784d80e0d53073c93f3b4fddcbddc326199ce9b0504540712896bf9556922e20a5d963dbb6c7d8bd1ceeeaa3c578fa69e49e897d08
@@ -106,13 +106,13 @@ class Proxy
106
106
 
107
107
  # Player action interface
108
108
  # @see PlayerProxy#play!
109
- def play!(action)
109
+ def play!(action, fast_forward = false)
110
110
  log __method__, action: action
111
111
 
112
112
  action = PokerAction.new(action) unless action.is_a?(PokerAction)
113
113
 
114
114
  @player_proxy.play! action do |players_at_the_table|
115
- update_database! players_at_the_table
115
+ update_database! players_at_the_table, fast_forward
116
116
 
117
117
  yield players_at_the_table if block_given?
118
118
  end
@@ -140,7 +140,8 @@ class Proxy
140
140
  AcpcPokerTypes::PokerAction::FOLD
141
141
  else
142
142
  AcpcPokerTypes::PokerAction::CALL
143
- end
143
+ end,
144
+ true
144
145
  )
145
146
  end
146
147
  self
@@ -175,10 +176,14 @@ class Proxy
175
176
 
176
177
  private
177
178
 
178
- def update_database!(players_at_the_table)
179
+ def update_database!(players_at_the_table, fast_forward = false)
179
180
  @match = Match.find(@match_id)
180
181
 
181
182
  begin
183
+ if fast_forward
184
+ @match.last_slice_viewed = @match.slices.length - 1
185
+ end
186
+
182
187
  MatchSlice.from_players_at_the_table!(
183
188
  players_at_the_table,
184
189
  match_ended?,
@@ -1,3 +1,3 @@
1
1
  module AcpcTableManager
2
- VERSION = "2.2.1"
2
+ VERSION = "2.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acpc_table_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Morrill