rec 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ === Version 1.3.4
2
+ - fixed defect in datestamp processing for certain dates with time like 12:34 PM
3
+
1
4
  === Version 1.3.3
2
5
  - Removed debug statement for State::find
3
6
  - make printing to $stdout explicit to support presetting file descriptors
@@ -109,7 +109,7 @@ class Correlator
109
109
  message = $'
110
110
  elsif logLine =~ /^(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+(\d+),\s+(\d{4})\s(\d+)\:(\d\d)\:(\d\d)\s+(AM|PM)\s+/
111
111
  # Oct 1, 2012 1:42:04 PM org.apache.catalina.startup.Catalina start
112
- hour = ($7 == "PM") ? ($4.to_i + 12) : $4 # convert PM to 24-hour style
112
+ hour = ($7 == "PM") ? (($4.to_i % 12) + 12) : $4 # convert PM to 24-hour style
113
113
  time = Time.local($3, $1, $2, hour, $5, $6, 0)
114
114
  message = $'
115
115
  elsif logLine =~ /^\[\w+\]\s(Sun|Mon|Tue|Wed|Thu|Fri|Sat)\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+(\d+)\s(\d\d)\:(\d\d)\:(\d\d)\s(\d{4})/
data/rulesets/rules.rb CHANGED
File without changes
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 3
10
- version: 1.3.3
9
+ - 4
10
+ version: 1.3.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Richard Kernahan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-10-06 00:00:00 Z
18
+ date: 2013-03-26 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: xmpp4r