acpc_poker_basic_proxy 3.0.4 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4487c7cfc5b113506d5ff5a3e2a431c738b2b85
4
- data.tar.gz: c59b0b3b0f6e6d218f5bf2645581c272c8517556
3
+ metadata.gz: a3a4ee0ad518308c5f8c6afeb5abba9dfeabc82e
4
+ data.tar.gz: 011e125a088c577e4b9160e067080b91aa9fca18
5
5
  SHA512:
6
- metadata.gz: 581e6749227aaa1b65a4478763815d83498ca9dcb1b1a6caa9ccb3f1f056233cffed60a057b8153341449ef68a43378d4536ab8c2dd60c2f951666e64b148ca1
7
- data.tar.gz: f80f9b1885b84c9bfd54bc70c819aacc54b08caa0ed1a5f03585436a49705bcd459ea0550d547731fbeadb5f775be69b122823dddcf4f7e492a76b2d19241f97
6
+ metadata.gz: 89af9c8eff08c6c2141cd8267d7b953201d3097a579f919c8fd91042c18f36255620e99f246393c308264a94cdf3c47584f48f3c2756a7badd807dc570cb1c40
7
+ data.tar.gz: 33ba7dc3ab6de100f51b5bcf6a440bbb7fb89b9cba1d0584dfb28f30edd1aae6651eb5d8de34351974a53855ab094683d03bcb40111224d6ffb221ac0dcabffa
@@ -16,9 +16,9 @@ module AcpcPokerBasicProxy
16
16
  # Sends the given +action+ to through the given +connection+ in the ACPC
17
17
  # format.
18
18
  # @param [#write, #ready_to_write?] connection The connection through which the +action+
19
- # should be sent.
19
+ # should send.
20
20
  # @param [#to_s] match_state The current match state.
21
- # @param [#to_s] action The action to be sent through the +connection+.
21
+ # @param [#to_s] action The action to send through the +connection+.
22
22
  # @return [Integer] The number of bytes written.
23
23
  # @raise (see #validate_match_state)
24
24
  # @raise (see #validate_action)
@@ -29,6 +29,15 @@ module AcpcPokerBasicProxy
29
29
  connection.write full_action
30
30
  end
31
31
 
32
+ # Sends a comment the given +connection+.
33
+ # @param [#write, #ready_to_write?] connection The connection through which the +action+
34
+ # should send.
35
+ # @param [#to_s] comment The comment to send through the +connection+.
36
+ # @return [Integer] The number of bytes written.
37
+ def self.send_comment(connection, comment)
38
+ connection.write comment
39
+ end
40
+
32
41
  # @raise IllegalActionFormat
33
42
  def self.validate_action(action)
34
43
  raise IllegalActionFormat unless self.valid_action?(action)
@@ -47,18 +56,24 @@ module AcpcPokerBasicProxy
47
56
  )
48
57
  end
49
58
 
50
- # @param [PokerAction] action The action to be sent.
51
- # @return (see ActionSender#send_action)
59
+ # @param [PokerAction] action The action to send.
60
+ # @return (see BasicProxy#send_action)
52
61
  # @raise InitialMatchStateNotYetReceived
53
- # @raise (see ActionSender#send_action)
62
+ # @raise (see BasicProxy#send_action)
54
63
  def send_action(action)
55
64
  raise InitialMatchStateNotYetReceived unless @match_state
56
65
  BasicProxy.send_action @dealer_communicator, @match_state, action
57
66
  end
58
67
 
68
+ # @param [#to_s] comment The comment to send.
69
+ # @return (see BasicProxy#send_action)
70
+ def send_comment(comment)
71
+ BasicProxy.send_comment @dealer_communicator, comment
72
+ end
73
+
59
74
  # @see MatchStateReceiver#receive_match_state
60
75
  def receive_match_state!
61
76
  @match_state = AcpcPokerTypes::MatchState.receive @dealer_communicator
62
77
  end
63
78
  end
64
- end
79
+ end
@@ -1,3 +1,3 @@
1
1
  module AcpcPokerBasicProxy
2
- VERSION = "3.0.4"
2
+ VERSION = "3.1.0"
3
3
  end
metadata CHANGED
@@ -1,125 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acpc_poker_basic_proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Morrill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-07 00:00:00.000000000 Z
11
+ date: 2016-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acpc_poker_types
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '7.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '7.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: contextual_exceptions
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '4.7'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '4.7'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mocha
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0.13'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.13'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: awesome_print
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '1.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pry-rescue
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: simplecov
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0.7'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0.7'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: acpc_dealer
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: '2.0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '2.0'
125
125
  description: Basic proxy to connect to the ACPC Dealer.
@@ -129,24 +129,24 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
- - lib/acpc_poker_basic_proxy/dealer_stream.rb
133
- - lib/acpc_poker_basic_proxy/version.rb
134
- - lib/acpc_poker_basic_proxy/basic_proxy.rb
135
- - lib/acpc_poker_basic_proxy.rb
132
+ - README.md
136
133
  - Rakefile
137
134
  - acpc_poker_basic_proxy.gemspec
138
- - README.md
135
+ - lib/acpc_poker_basic_proxy.rb
136
+ - lib/acpc_poker_basic_proxy/basic_proxy.rb
137
+ - lib/acpc_poker_basic_proxy/dealer_stream.rb
138
+ - lib/acpc_poker_basic_proxy/version.rb
139
139
  - spec/basic_proxy_spec.rb
140
140
  - spec/dealer_stream_spec.rb
141
- - spec/support/spec_helper.rb
142
- - spec/support/dealer_logs/3p.limit.h1000.r0.log
143
- - spec/support/dealer_logs/2p.nolimit.h1000.r0.log
144
- - spec/support/dealer_logs/2p.nolimit.h1000.r0.actions.log
145
- - spec/support/dealer_logs/3p.nolimit.h1000.r0.log
141
+ - spec/support/dealer_logs/2p.limit.h1000.r0.actions.log
146
142
  - spec/support/dealer_logs/2p.limit.h1000.r0.log
147
- - spec/support/dealer_logs/3p.nolimit.h1000.r0.actions.log
143
+ - spec/support/dealer_logs/2p.nolimit.h1000.r0.actions.log
144
+ - spec/support/dealer_logs/2p.nolimit.h1000.r0.log
148
145
  - spec/support/dealer_logs/3p.limit.h1000.r0.actions.log
149
- - spec/support/dealer_logs/2p.limit.h1000.r0.actions.log
146
+ - spec/support/dealer_logs/3p.limit.h1000.r0.log
147
+ - spec/support/dealer_logs/3p.nolimit.h1000.r0.actions.log
148
+ - spec/support/dealer_logs/3p.nolimit.h1000.r0.log
149
+ - spec/support/spec_helper.rb
150
150
  homepage: https://github.com/dmorrill10/acpc_poker_basic_proxy
151
151
  licenses: []
152
152
  metadata: {}
@@ -156,30 +156,30 @@ require_paths:
156
156
  - lib
157
157
  required_ruby_version: !ruby/object:Gem::Requirement
158
158
  requirements:
159
- - - '>='
159
+ - - ">="
160
160
  - !ruby/object:Gem::Version
161
161
  version: '0'
162
162
  required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
168
  rubyforge_project: acpc_poker_basic_proxy
169
- rubygems_version: 2.0.3
169
+ rubygems_version: 2.5.1
170
170
  signing_key:
171
171
  specification_version: 4
172
172
  summary: ACPC Poker Basic Proxy
173
173
  test_files:
174
174
  - spec/basic_proxy_spec.rb
175
175
  - spec/dealer_stream_spec.rb
176
- - spec/support/spec_helper.rb
177
- - spec/support/dealer_logs/3p.limit.h1000.r0.log
178
- - spec/support/dealer_logs/2p.nolimit.h1000.r0.log
179
- - spec/support/dealer_logs/2p.nolimit.h1000.r0.actions.log
180
- - spec/support/dealer_logs/3p.nolimit.h1000.r0.log
176
+ - spec/support/dealer_logs/2p.limit.h1000.r0.actions.log
181
177
  - spec/support/dealer_logs/2p.limit.h1000.r0.log
182
- - spec/support/dealer_logs/3p.nolimit.h1000.r0.actions.log
178
+ - spec/support/dealer_logs/2p.nolimit.h1000.r0.actions.log
179
+ - spec/support/dealer_logs/2p.nolimit.h1000.r0.log
183
180
  - spec/support/dealer_logs/3p.limit.h1000.r0.actions.log
184
- - spec/support/dealer_logs/2p.limit.h1000.r0.actions.log
181
+ - spec/support/dealer_logs/3p.limit.h1000.r0.log
182
+ - spec/support/dealer_logs/3p.nolimit.h1000.r0.actions.log
183
+ - spec/support/dealer_logs/3p.nolimit.h1000.r0.log
184
+ - spec/support/spec_helper.rb
185
185
  has_rdoc: