acpc_dealer_data 0.3.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +2 -2
- data/acpc_dealer_data.gemspec +10 -8
- data/lib/acpc_dealer_data.rb +1 -0
- data/lib/acpc_dealer_data/action_messages.rb +32 -22
- data/lib/acpc_dealer_data/hand_data.rb +8 -8
- data/lib/acpc_dealer_data/hand_results.rb +20 -18
- data/lib/acpc_dealer_data/log_file.rb +3 -0
- data/lib/acpc_dealer_data/match_definition.rb +6 -10
- data/lib/acpc_dealer_data/poker_match_data.rb +73 -56
- data/lib/acpc_dealer_data/version.rb +2 -2
- data/spec/action_messages_spec.rb +79 -78
- data/spec/hand_data_spec.rb +34 -34
- data/spec/hand_results_spec.rb +20 -20
- data/spec/match_definition_spec.rb +24 -24
- data/spec/poker_match_data_spec.rb +156 -54
- data/spec/support/spec_helper.rb +14 -5
- metadata +78 -57
data/spec/support/spec_helper.rb
CHANGED
@@ -3,10 +3,10 @@ require 'simplecov'
|
|
3
3
|
SimpleCov.start
|
4
4
|
|
5
5
|
require 'minitest/spec'
|
6
|
-
require 'minitest/
|
6
|
+
require 'minitest/pride'
|
7
7
|
|
8
|
-
begin
|
9
|
-
require 'turn
|
8
|
+
begin
|
9
|
+
require 'turn'
|
10
10
|
|
11
11
|
Turn.config do |c|
|
12
12
|
# use one of output formats:
|
@@ -16,9 +16,18 @@ begin
|
|
16
16
|
# :pretty - new pretty reporter
|
17
17
|
# :marshal - dump output as YAML (normal run mode only)
|
18
18
|
# :cue - interactive testing
|
19
|
-
c.format = :
|
19
|
+
c.format = :dotted
|
20
20
|
# use humanized test names (works only with :outline format)
|
21
21
|
c.natural = true
|
22
22
|
end
|
23
|
+
|
24
|
+
require 'awesome_print'
|
25
|
+
module Minitest::Assertions
|
26
|
+
def mu_pp(obj)
|
27
|
+
obj.awesome_inspect
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
require 'pry-rescue/minitest'
|
23
32
|
rescue LoadError
|
24
|
-
end
|
33
|
+
end
|
metadata
CHANGED
@@ -1,128 +1,155 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acpc_dealer_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Dustin Morrill
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-05-04 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: acpc_dealer
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
19
|
+
version: '0.0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
26
|
+
version: '0.0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: acpc_poker_types
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ~>
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: '0'
|
33
|
+
version: '0.0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ~>
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
40
|
+
version: '0.0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: celluloid
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0'
|
47
|
+
version: '0.13'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
54
|
+
version: '0.13'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: dmorrill10-utils
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - ~>
|
68
60
|
- !ruby/object:Gem::Version
|
69
|
-
version: 1.0
|
61
|
+
version: '1.0'
|
70
62
|
type: :runtime
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - ~>
|
76
67
|
- !ruby/object:Gem::Version
|
77
|
-
version: 1.0
|
68
|
+
version: '1.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '4.7'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '4.7'
|
78
83
|
- !ruby/object:Gem::Dependency
|
79
84
|
name: mocha
|
80
85
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
86
|
requirements:
|
83
|
-
- -
|
87
|
+
- - ~>
|
84
88
|
- !ruby/object:Gem::Version
|
85
|
-
version: '0'
|
89
|
+
version: '0.13'
|
86
90
|
type: :development
|
87
91
|
prerelease: false
|
88
92
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
93
|
requirements:
|
91
|
-
- -
|
94
|
+
- - ~>
|
92
95
|
- !ruby/object:Gem::Version
|
93
|
-
version: '0'
|
96
|
+
version: '0.13'
|
94
97
|
- !ruby/object:Gem::Dependency
|
95
98
|
name: simplecov
|
96
99
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
100
|
requirements:
|
99
|
-
- -
|
101
|
+
- - ~>
|
100
102
|
- !ruby/object:Gem::Version
|
101
|
-
version: '0'
|
103
|
+
version: '0.7'
|
102
104
|
type: :development
|
103
105
|
prerelease: false
|
104
106
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
107
|
requirements:
|
107
|
-
- -
|
108
|
+
- - ~>
|
108
109
|
- !ruby/object:Gem::Version
|
109
|
-
version: '0'
|
110
|
+
version: '0.7'
|
110
111
|
- !ruby/object:Gem::Dependency
|
111
112
|
name: turn
|
112
113
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.9'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.9'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pry-rescue
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ~>
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '1.1'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ~>
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '1.1'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: awesome_print
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ~>
|
116
144
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
145
|
+
version: '1.1'
|
118
146
|
type: :development
|
119
147
|
prerelease: false
|
120
148
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
149
|
requirements:
|
123
|
-
- -
|
150
|
+
- - ~>
|
124
151
|
- !ruby/object:Gem::Version
|
125
|
-
version: '
|
152
|
+
version: '1.1'
|
126
153
|
description: ACPC Dealer data
|
127
154
|
email:
|
128
155
|
- morrill@ualberta.ca
|
@@ -141,6 +168,7 @@ files:
|
|
141
168
|
- lib/acpc_dealer_data/action_messages.rb
|
142
169
|
- lib/acpc_dealer_data/hand_data.rb
|
143
170
|
- lib/acpc_dealer_data/hand_results.rb
|
171
|
+
- lib/acpc_dealer_data/log_file.rb
|
144
172
|
- lib/acpc_dealer_data/match_definition.rb
|
145
173
|
- lib/acpc_dealer_data/poker_match_data.rb
|
146
174
|
- lib/acpc_dealer_data/version.rb
|
@@ -152,33 +180,26 @@ files:
|
|
152
180
|
- spec/support/spec_helper.rb
|
153
181
|
homepage: https://github.com/dmorrill10/acpc_dealer_data
|
154
182
|
licenses: []
|
183
|
+
metadata: {}
|
155
184
|
post_install_message:
|
156
185
|
rdoc_options: []
|
157
186
|
require_paths:
|
158
187
|
- lib
|
159
188
|
required_ruby_version: !ruby/object:Gem::Requirement
|
160
|
-
none: false
|
161
189
|
requirements:
|
162
|
-
- -
|
190
|
+
- - '>='
|
163
191
|
- !ruby/object:Gem::Version
|
164
192
|
version: '0'
|
165
|
-
segments:
|
166
|
-
- 0
|
167
|
-
hash: -3927709269979605300
|
168
193
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
194
|
requirements:
|
171
|
-
- -
|
195
|
+
- - '>='
|
172
196
|
- !ruby/object:Gem::Version
|
173
197
|
version: '0'
|
174
|
-
segments:
|
175
|
-
- 0
|
176
|
-
hash: -3927709269979605300
|
177
198
|
requirements: []
|
178
199
|
rubyforge_project:
|
179
|
-
rubygems_version:
|
200
|
+
rubygems_version: 2.0.0.rc.2
|
180
201
|
signing_key:
|
181
|
-
specification_version:
|
202
|
+
specification_version: 4
|
182
203
|
summary: Gem to parse, manipulate, and use data from the ACPC Dealer program.
|
183
204
|
test_files:
|
184
205
|
- spec/action_messages_spec.rb
|