acpc_dealer_data 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -187,16 +187,16 @@ class PokerMatchData
187
187
  end
188
188
 
189
189
  def player_acting_sequence
190
- return nil unless @hand_number
191
-
192
190
  sequence = [[]]
193
191
 
194
- return sequence if current_hand.turn_number < 1
192
+ if @hand_number.nil? || current_hand.turn_number.nil? || current_hand.turn_number < 1
193
+ return sequence
194
+ end
195
195
 
196
196
  turns_taken = current_hand.data[0..current_hand.turn_number-1]
197
197
  turns_taken.each_with_index do |turn, turn_index|
198
198
  next unless turn.action_message
199
-
199
+
200
200
  sequence[turn.action_message.state.round] << turn.action_message.seat
201
201
 
202
202
  if (
@@ -1,3 +1,3 @@
1
1
  module AcpcDealerData
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acpc_dealer_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  segments:
166
166
  - 0
167
- hash: -4118394275309926132
167
+ hash: 4107055564106518345
168
168
  required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  none: false
170
170
  requirements:
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  segments:
175
175
  - 0
176
- hash: -4118394275309926132
176
+ hash: 4107055564106518345
177
177
  requirements: []
178
178
  rubyforge_project:
179
179
  rubygems_version: 1.8.24