pokerstats 2.0.7 → 2.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.7
1
+ 2.0.8
@@ -15,7 +15,7 @@ module Pokerstats
15
15
  end
16
16
 
17
17
  def game
18
- @parser_class.game [/[^[\n]+/]
18
+ @parser_class.game [/[^\n]+/]
19
19
  end
20
20
 
21
21
  def parsed?
@@ -18,7 +18,7 @@ module Pokerstats
18
18
 
19
19
  def self.game(lines)
20
20
  lines.lstrip!
21
- case lines.[/[^[\n]+/].chomp
21
+ case lines[/[^\n]+/].chomp
22
22
  when /PokerStars Game #([0-9]+): Tournament #([0-9]+), (\$[0-9+$]+) ([^\-]*) - Level ([IVXL]+) \((#{CASH})\/(#{CASH})\) - (.*)$/
23
23
  "PS#{$1}"
24
24
  when /PokerStars Game #([0-9]+): +([^(]*) \((#{CASH})\/(#{CASH})\) - (.*)$/
data/pokerstats.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pokerstats}
8
- s.version = "2.0.7"
8
+ s.version = "2.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andrew C. Greenberg"]
12
- s.date = %q{2009-11-03}
12
+ s.date = %q{2009-11-04}
13
13
  s.default_executable = %q{checkps}
14
14
  s.description = %q{a library for extracting, computing and reporting statistics of poker hands parsed from hand history files}
15
15
  s.email = %q{wizardwerdna@gmail.com}
@@ -49,7 +49,7 @@ describe PokerstarsFile, "when opened on a single-hand file" do
49
49
  it "should have an entry, answering to entries, having the correct lines" do
50
50
  @entry = @psfile.entries.first
51
51
  @entry.should have(ONE_HAND_ENTRY_NUMBER_OF_LINES).lines
52
- @entry.[/[^[\n]+/].should == ONE_HAND_ENTRY_FIRST_LINE
52
+ @entry.lines.first.should == ONE_HAND_ENTRY_FIRST_LINE
53
53
  @entry.lines.last.should == ONE_HAND_ENTRY_LAST_LINE
54
54
  end
55
55
 
@@ -127,7 +127,7 @@ describe PokerstarsFile, "when opened on a multi-hand file" do
127
127
  @psfile.entries #run through the file to see if it resets properly
128
128
  @entry = @psfile.first(TABLE_OF_STARTING_INDICES.first)
129
129
  @entry.should have(FIRST_ENTRY_NUMBER_OF_LINES).lines
130
- @entry.[/[^[\n]+/].should == FIRST_ENTRY_FIRST_LINE
130
+ @entry.lines.first.should == FIRST_ENTRY_FIRST_LINE
131
131
  @entry.lines.last.should == FIRST_ENTRY_LAST_LINE
132
132
  @psfile.should be_closed
133
133
  end
@@ -135,21 +135,21 @@ describe PokerstarsFile, "when opened on a multi-hand file" do
135
135
  it "should have a first entry having the correct lines, addresable through #entries" do
136
136
  @entries = @psfile.entries.first
137
137
  @entries.should have(FIRST_ENTRY_NUMBER_OF_LINES).lines
138
- @entries.[/[^[\n]+/].should == FIRST_ENTRY_FIRST_LINE
138
+ @entries.lines.first.should == FIRST_ENTRY_FIRST_LINE
139
139
  @entries.lines.last.should == FIRST_ENTRY_LAST_LINE
140
140
  end
141
141
 
142
142
  it "should have a last entry having the correct lines, addressable through #first" do
143
143
  @entry = @psfile.first(TABLE_OF_STARTING_INDICES.last)
144
144
  @entry.should have(LAST_ENTRY_NUMBER_OF_LINES).lines
145
- @entry.[/[^[\n]+/].should == LAST_ENTRY_FIRST_LINE
145
+ @entry.lines.first.should == LAST_ENTRY_FIRST_LINE
146
146
  @entry.lines.last.should == LAST_ENTRY_LAST_LINE
147
147
  end
148
148
 
149
149
  it "should have a last entry having the correct lines, addressable through #entries" do
150
150
  @entries = @psfile.entries.last
151
151
  @entries.should have(LAST_ENTRY_NUMBER_OF_LINES).lines
152
- @entries.[/[^[\n]+/].should == LAST_ENTRY_FIRST_LINE
152
+ @entries.lines.first.should == LAST_ENTRY_FIRST_LINE
153
153
  @entries.lines.last.should == LAST_ENTRY_LAST_LINE
154
154
  end
155
155
 
@@ -54,7 +54,7 @@ end
54
54
  # @psfile = PokerstarsFile.open(filename).entries.each do |handrecord|
55
55
  # @stats = HandStatistics.new
56
56
  # @parser = PokerstarsHandHistoryParser.new(@stats)
57
- # # puts handrecord.[/[^[\n]+/]
57
+ # # puts handrecord.[/[^\n]+/]
58
58
  # printf(".")
59
59
  # handrecord.lines.each do |line|
60
60
  # lambda{@parser.parse(line)}.should_not raise_error
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pokerstats
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.7
4
+ version: 2.0.8
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-11-03 00:00:00 -08:00
12
+ date: 2009-11-04 00:00:00 -08:00
13
13
  default_executable: checkps
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency