wizardwerdna-pokerstats 1.0.14 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/checkps +7 -8
- data/lib/pokerstats.rb +2 -0
- data/lib/pokerstats/hand_constants.rb +25 -23
- data/lib/pokerstats/hand_history.rb +29 -26
- data/lib/pokerstats/hand_statistics.rb +173 -173
- data/lib/pokerstats/hand_statistics_api.rb +46 -44
- data/lib/pokerstats/player_statistics.rb +47 -45
- data/lib/pokerstats/plugins/aggression_statistics.rb +46 -44
- data/lib/pokerstats/plugins/blind_attack_statistics.rb +65 -63
- data/lib/pokerstats/plugins/cash_statistics.rb +82 -80
- data/lib/pokerstats/plugins/continuation_bet_statistics.rb +57 -55
- data/lib/pokerstats/plugins/preflop_raise_statistics.rb +40 -38
- data/lib/pokerstats/poker-edge.rb +39 -37
- data/lib/pokerstats/pokerstars_file.rb +77 -76
- data/lib/pokerstats/pokerstars_hand_history_parser.rb +100 -98
- data/pokerstats.gemspec +3 -4
- data/spec/hand_statistics_spec.rb +2 -0
- data/spec/player_statistics_spec.rb +1 -0
- data/spec/pokerstars_file_spec.rb +1 -1
- data/spec/pokerstars_hand_history_parser.rb +1 -1
- metadata +3 -5
- data/spec/zpokerstars_hand_history_parser_integration.txt +0 -62
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wizardwerdna-pokerstats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew C. Greenberg
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-09-01 00:00:00 -07:00
|
13
13
|
default_executable: checkps
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -87,10 +87,8 @@ files:
|
|
87
87
|
- spec/pokerstars_file_spec.rb
|
88
88
|
- spec/pokerstars_hand_history_parser.rb
|
89
89
|
- spec/spec_helper.rb
|
90
|
-
- spec/zpokerstars_hand_history_parser_integration.txt
|
91
90
|
has_rdoc: false
|
92
91
|
homepage: http://github.com/wizardwerdna/pokerstats
|
93
|
-
licenses:
|
94
92
|
post_install_message:
|
95
93
|
rdoc_options:
|
96
94
|
- --charset=UTF-8
|
@@ -111,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
109
|
requirements: []
|
112
110
|
|
113
111
|
rubyforge_project:
|
114
|
-
rubygems_version: 1.
|
112
|
+
rubygems_version: 1.2.0
|
115
113
|
signing_key:
|
116
114
|
specification_version: 3
|
117
115
|
summary: poker hand history statistics library
|
@@ -1,62 +0,0 @@
|
|
1
|
-
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
|
2
|
-
require File.expand_path(File.dirname(__FILE__) + '/../../../lib/checker/hand_history')
|
3
|
-
require File.expand_path(File.dirname(__FILE__) + '/../../../lib/checker/hand_statistics')
|
4
|
-
require File.expand_path(File.dirname(__FILE__) + '/../../../lib/checker/pokerstars_file')
|
5
|
-
require File.expand_path(File.dirname(__FILE__) + '/../../../lib/checker/pokerstars_hand_history_parser')
|
6
|
-
|
7
|
-
include HandConstants
|
8
|
-
|
9
|
-
# describe PokerstarsHandHistoryParser, "when parsing PokerstarsFile" do
|
10
|
-
# before :each do
|
11
|
-
# @psfile = PokerstarsFile.open(File.dirname(__FILE__) + '/file_many_hands.txt')
|
12
|
-
# @expanded_path = File.expand_path(File.dirname(__FILE__) + '/file_many_hands.txt')
|
13
|
-
# end
|
14
|
-
#
|
15
|
-
# it "should parse every line of every entry in the file" do
|
16
|
-
# @psfile.entries.each do |handrecord|
|
17
|
-
# lambda{handrecord.parse}.should_not raise_error
|
18
|
-
# end
|
19
|
-
# end
|
20
|
-
# end
|
21
|
-
#
|
22
|
-
describe PokerstarsHandHistoryParser, "when parsing all the PokerstarsFiles in Andy's directory" do
|
23
|
-
before :each do
|
24
|
-
@filenames = Dir["/Users/werdna/Library/Application Support/Pokerstars/HandHistory/**/*.txt"]
|
25
|
-
end
|
26
|
-
|
27
|
-
it "should parse every line of every entry in the file" do
|
28
|
-
times = 10
|
29
|
-
@filenames.each do |filename|
|
30
|
-
puts "====== #{filename} ====="
|
31
|
-
@psfile = PokerstarsFile.open(filename).entries.each do |handrecord|
|
32
|
-
printf(".")
|
33
|
-
lambda{handrecord.parse}.should_not raise_error
|
34
|
-
end
|
35
|
-
printf("\n")
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
# describe PokerstarsHandHistoryParser, "when parsing all the PokerstarsFiles in Judi's directory" do
|
41
|
-
# before :each do
|
42
|
-
# @filenames = Dir["/Users/werdna/juditest/*.txt"]
|
43
|
-
# end
|
44
|
-
#
|
45
|
-
# it "should parse every line of every entry in the file" do
|
46
|
-
# times = 10
|
47
|
-
# @filenames.each do |filename|
|
48
|
-
# puts "====== #{filename} ====="
|
49
|
-
# @psfile = PokerstarsFile.open(filename).entries.each do |handrecord|
|
50
|
-
# @stats = HandStatistics.new
|
51
|
-
# @parser = PokerstarsHandHistoryParser.new(@stats)
|
52
|
-
# # puts handrecord.lines.first
|
53
|
-
# printf(".")
|
54
|
-
# handrecord.lines.each do |line|
|
55
|
-
# lambda{@parser.parse(line)}.should_not raise_error
|
56
|
-
# end
|
57
|
-
# # @stats.debug_display
|
58
|
-
# end
|
59
|
-
# printf("\n")
|
60
|
-
# end
|
61
|
-
# end
|
62
|
-
# end
|