tclog 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/tclog.rb +4 -11
  3. data/tclog.gemspec +2 -2
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.6
@@ -231,9 +231,11 @@ module TCLog
231
231
  renames = {}
232
232
  orders = log.map do |x|
233
233
  next unless /^(\[skipnotify\])(\^.)?(.+renamed|Timelimit hit)/ =~ x ||
234
+ /^(\[skipnotify\])(.+ entered the game)$/ =~ x ||
234
235
  /^(\[skipnotify\])?(\^.)?(Specops|Terrorists)/ =~ x ||
235
236
  /^(\[skipnotify\])?(\^.)?(Planted|Defused)/ =~ x ||
236
237
  /^The .+ have completed the objective!/ =~ x ||
238
+ /^The .+ have completed the objective!/ =~ x ||
237
239
  /^(\[skipnotify\])(\^.)(Overall stats for: |)/ =~ x ||
238
240
  /^(LOADING\.\.\. maps|Match starting)/ =~ x
239
241
  x.gsub!(/\[skipnotify\]/,"")
@@ -244,7 +246,7 @@ module TCLog
244
246
  when /^LOADING\.\.\. maps\/(.+?)\.bsp$/ # Map Changing?
245
247
  m = $~.captures
246
248
  ["Map",m[0]]
247
- when /^Match starting/ # Match starting
249
+ when /^Match starting/, /^(.+ entered the game)$/ # Match starting
248
250
  ["Match"]
249
251
  when /^(Planted) at (.+?) \[(.)\]/, /^The Terrorists have completed the objective!/ # TeroWin
250
252
  m = $~.captures
@@ -326,18 +328,9 @@ module TCLog
326
328
  flag2 = false
327
329
  include_match = orders.include?("Match")
328
330
  vm = Proc.new do |o|
329
- if !match_flag && /Win$/ =~ o[0]
330
- match_flag = true
331
- end
332
- if /Win$/ =~ o[0] && flag2 && specops_total && match_wins
333
- game.add_round specops_total, terrorists_total, match_wins
334
- match_wins = nil
335
- terrorists_total = nil
336
- specops_total = nil
337
- flag2 = false
338
- end
339
331
  case o[0]
340
332
  when "Match"
333
+ next if match[-1][0] == "Match"
341
334
  if match_flag
342
335
  if specops_total && match_wins
343
336
  game.add_round specops_total, terrorists_total, match_wins
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tclog}
8
- s.version = "0.2.5"
8
+ s.version = "0.2.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Shota Fukumori"]
12
- s.date = %q{2010-12-30}
12
+ s.date = %q{2010-12-31}
13
13
  s.description = %q{Parser for etconsole.log of TrueCombat:Elite (TC:E)}
14
14
  s.email = %q{sorah@tubusu.net}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 5
9
- version: 0.2.5
8
+ - 6
9
+ version: 0.2.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Shota Fukumori
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-30 00:00:00 +09:00
17
+ date: 2010-12-31 00:00:00 +09:00
18
18
  default_executable:
19
19
  dependencies: []
20
20