demo-reader 0.2.2 → 0.2.3
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
|
+
0.2.3
|
data/demo-reader.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{demo-reader}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["aekym"]
|
@@ -62,6 +62,7 @@ Gem::Specification.new do |s|
|
|
62
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
|
+
"test/fixtures/warsow/wd11/race_snx-10_12.996.wd11",
|
65
66
|
"test/fixtures/warsow/wd11/race_st1_07.848.wd11",
|
66
67
|
"test/fixtures/warsow/wd11/race_wdm16_unfinished.wd11",
|
67
68
|
"test/fixtures/warsow/wd11/race_wrc03-3_28.684.wd11",
|
data/lib/demo_reader_warsow.rb
CHANGED
@@ -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(?: ?[\d#\^]*) finished)(?:!.*(?:current|times\^7 ))?:[0-9:\. ]* (\d+):(\d+)\.(\d+)/im
|
111
|
+
regex = /(server record|race(?: ?[\d#\^]*) finished\s*)(?:!.*(?:current|times\^7 ))?:[0-9:\. ]* (\d+):(\d+)\.(\d+)/im
|
112
112
|
matchdata = regex.match(content)
|
113
113
|
|
114
114
|
while matchdata
|
Binary file
|
@@ -14,7 +14,8 @@ class DemoReaderWarsowWd11RaceTest < Test::Unit::TestCase
|
|
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
16
|
%w(race_ghost-eikram2_25.848 ghost-eikram2 00:25.848),
|
17
|
-
%w(race_gdfcomp08_14.949 gdfcomp08 00:14.949)
|
17
|
+
%w(race_gdfcomp08_14.949 gdfcomp08 00:14.949),
|
18
|
+
%w(race_snx-10_12.996 snx-10 00:12.996)
|
18
19
|
].each do |entry|
|
19
20
|
|
20
21
|
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:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- aekym
|
@@ -73,6 +73,7 @@ files:
|
|
73
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
|
+
- test/fixtures/warsow/wd11/race_snx-10_12.996.wd11
|
76
77
|
- test/fixtures/warsow/wd11/race_st1_07.848.wd11
|
77
78
|
- test/fixtures/warsow/wd11/race_wdm16_unfinished.wd11
|
78
79
|
- test/fixtures/warsow/wd11/race_wrc03-3_28.684.wd11
|