pokerstats 2.0.10 → 2.0.11

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.10
1
+ 2.0.11
@@ -15,7 +15,7 @@ module Pokerstats
15
15
  end
16
16
 
17
17
  def game
18
- @parser_class.game [/[^\n]+/]
18
+ @parser_class.game lines.first
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.first.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})\) - (.*)$/
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pokerstats}
8
- s.version = "2.0.10"
8
+ s.version = "2.0.11"
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"]
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.10
4
+ version: 2.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew C. Greenberg