demo-reader 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
data/demo-reader.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{demo-reader}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["aekym"]
12
- s.date = %q{2010-09-01}
12
+ s.date = %q{2010-11-01}
13
13
  s.description = %q{A library to read warsow demo files (.wd8, .wd9, .wd10, .wd11 files) and q3 demo files (*.dm68)}
14
14
  s.email = %q{me@aekym.com}
15
15
  s.extensions = ["ext/dm68/extconf.rb"]
@@ -56,10 +56,10 @@ Gem::Specification.new do |s|
56
56
  "test/fixtures/warsow/wd10/trouble_making/2.wd10",
57
57
  "test/fixtures/warsow/wd10/trouble_making/boris_cab1.wd10",
58
58
  "test/fixtures/warsow/wd10/trouble_making/very_short_demo.wd10",
59
- "test/fixtures/warsow/wd11/bomb_wbomb1_b2uberspot.wd11",
60
59
  "test/fixtures/warsow/wd11/freestyle_freestyle88.wd11",
61
60
  "test/fixtures/warsow/wd11/race_bardok-lick-revamped_54.882.wd11",
62
61
  "test/fixtures/warsow/wd11/race_cwrace5.wd11",
62
+ "test/fixtures/warsow/wd11/race_gdfcomp08_14.949.wd11",
63
63
  "test/fixtures/warsow/wd11/race_ghost-eikram2_25.848.wd11",
64
64
  "test/fixtures/warsow/wd11/race_killua-hykon.wd11",
65
65
  "test/fixtures/warsow/wd11/race_st1_07.848.wd11",
@@ -108,7 +108,7 @@ class DemoReaderWarsow
108
108
  # detect time by sent message string with time from server
109
109
  if ['race', 'unknown'].include?(@gamemode)
110
110
  matches = []
111
- regex = /(server record|race finished)(?:!.*(?:current|times\^7 ))?:[0-9:\. ]* (\d+):(\d+)\.(\d+)/im
111
+ regex = /(server record|race(?: ?[\d#\^]*) finished)(?:!.*(?:current|times\^7 ))?:[0-9:\. ]* (\d+):(\d+)\.(\d+)/im
112
112
  matchdata = regex.match(content)
113
113
 
114
114
  while matchdata
@@ -13,7 +13,8 @@ class DemoReaderWarsowWd11RaceTest < Test::Unit::TestCase
13
13
  %w(race_st1_07.848 st1 00:07.848),
14
14
  %w(race_bardok-lick-revamped_54.882 bardok-lick-revamped 00:54.882),
15
15
  %w(race_wrc03-3_28.684 wrc03-3 00:28.684),
16
- %w(race_ghost-eikram2_25.848 ghost-eikram2 00:25.848)
16
+ %w(race_ghost-eikram2_25.848 ghost-eikram2 00:25.848),
17
+ %w(race_gdfcomp08_14.949 gdfcomp08 00:14.949)
17
18
  ].each do |entry|
18
19
 
19
20
  file, map, time = entry
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: demo-reader
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - aekym
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-01 00:00:00 +02:00
18
+ date: 2010-11-01 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -67,10 +67,10 @@ files:
67
67
  - test/fixtures/warsow/wd10/trouble_making/2.wd10
68
68
  - test/fixtures/warsow/wd10/trouble_making/boris_cab1.wd10
69
69
  - test/fixtures/warsow/wd10/trouble_making/very_short_demo.wd10
70
- - test/fixtures/warsow/wd11/bomb_wbomb1_b2uberspot.wd11
71
70
  - test/fixtures/warsow/wd11/freestyle_freestyle88.wd11
72
71
  - test/fixtures/warsow/wd11/race_bardok-lick-revamped_54.882.wd11
73
72
  - test/fixtures/warsow/wd11/race_cwrace5.wd11
73
+ - test/fixtures/warsow/wd11/race_gdfcomp08_14.949.wd11
74
74
  - test/fixtures/warsow/wd11/race_ghost-eikram2_25.848.wd11
75
75
  - test/fixtures/warsow/wd11/race_killua-hykon.wd11
76
76
  - test/fixtures/warsow/wd11/race_st1_07.848.wd11