acpc_dealer 1.0.3 → 1.0.4

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: 6c99bcc8eff168313d128988e842f3e46cf4f132
4
- data.tar.gz: 3c45b38a80da0a0ef974bdb3b3197a531043c42c
3
+ metadata.gz: 99789d5a03e5acbd540ef02990138777c06377ab
4
+ data.tar.gz: 2db48297e7b705c9978505bc3d6207d18e3ee08d
5
5
  SHA512:
6
- metadata.gz: 0b7c6d614e7c5dbaf1bed6fb7f80cece3bccc19da2ac3478ef447a2da361ed7ea4c91caad1cf832782282247ed6481ac3261653e61d98e0dd6c8e90d3dde4df1
7
- data.tar.gz: 12f6a383b9980041edce3fe54ffdc50646093fb3134dc3839f52cc282da62fa7ca31504e352599678439f5cd0c23393ab6547d77b3da27efcae07446bb278f48
6
+ metadata.gz: 8814b3620f48342049c6f1aa71f88e64f04d981def6341564ab5035cb99cc1dc74b6e64328946dbacc079e3f00f873a46e0cc5afdd63defb1c0f3054a8d66708
7
+ data.tar.gz: 0f3435a5493a3ee86172251340030c4b72436942757625a17c657b60083d88cc7f5114f8e757d1c225ca5275e5274cf784d31715a37117ef1bae53c6a6866d74
data/bin/acpc_dealer CHANGED
@@ -66,14 +66,14 @@ class AcpcDealerCli < Clive
66
66
 
67
67
  opt :l, :log_directory, 'Directory where logs will be placed', arg: '<log_directory>', as: String
68
68
 
69
- opt :t_response, 'Maximum time per response', arg: '<t_response_milliseconds>', as: Integer
69
+ opt :t_response, 'Maximum time per response', arg: '<t_response>', as: Integer
70
70
 
71
- opt :t_hand, 'Maximum player time per hand', arg: '<t_hand_milliseconds>', as: Integer
71
+ opt :t_hand, 'Maximum player time per hand', arg: '<t_hand>', as: Integer
72
72
 
73
- opt :t_per_hand, 'Maximum average player time for match', arg: '<t_per_hand_milliseconds>', as: Integer
73
+ opt :t_per_hand, 'Maximum average player time for match', arg: '<t_per_hand>', as: Integer
74
74
 
75
75
  desc 'Maximum time to wait for players to connect, defaults to no timeout'
76
- opt :start_timeout, arg: '<start_timeout_milliseconds>', as: Integer
76
+ opt :start_timeout, arg: '<start_timeout>', as: Integer
77
77
 
78
78
  action do
79
79
  AcpcDealerCli.print_usage(:dealer) unless get(:game_def)
@@ -114,16 +114,18 @@ class AcpcDealerCli < Clive
114
114
  }
115
115
 
116
116
  # Append to produce behavior of previous dealer version
117
- options = ['-a']
118
- options << "--t_response #{get(:t_response_milliseconds)}" if get(:t_response_milliseconds)
119
- options << "--t_hand #{get(:t_hand_milliseconds)}" if get(:t_hand_milliseconds)
120
- options << "--t_per_hand #{get(:t_per_hand_milliseconds)}" if get(:t_per_hand_milliseconds)
121
- options << "--start_timeout #{get(:start_timeout_milliseconds)}" if get(:start_timeout_milliseconds)
117
+ options = '-a'
118
+ options << " --t_response #{get(:t_response)}" if get(:t_response)
119
+ options << " --t_hand #{get(:t_hand)}" if get(:t_hand)
120
+ options << " --t_per_hand #{get(:t_per_hand)}" if get(:t_per_hand)
121
+ options << " --start_timeout #{get(:start_timeout)}" if get(:start_timeout)
122
122
 
123
123
  arguments[:options] = options
124
124
 
125
125
  AcpcDealerCli.run(['compile']) unless File.exists? AcpcDealer::DEALER_PATH
126
126
 
127
+ puts "Starting dealer with the following arguments: #{arguments}"
128
+
127
129
  dealer_result = AcpcDealer::DealerRunner.start(arguments, get(:log_directory))
128
130
  puts "Dealer pid: #{dealer_result[:pid]}, ports: #{dealer_result[:port_numbers].join(' ')}, log directory: #{dealer_result[:log_directory]}"
129
131
  end
@@ -1,3 +1,3 @@
1
1
  module AcpcDealer
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acpc_dealer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Morrill