request-log-analyzer 1.9.2 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/request_log_analyzer.rb
CHANGED
@@ -13,7 +13,7 @@ module RequestLogAnalyzer
|
|
13
13
|
|
14
14
|
# The current version of request-log-analyzer.
|
15
15
|
# Do not change the value by hand; it will be updated automatically by the gem release script.
|
16
|
-
VERSION = "1.9.
|
16
|
+
VERSION = "1.9.3"
|
17
17
|
|
18
18
|
|
19
19
|
autoload :Controller, 'request_log_analyzer/controller'
|
@@ -89,7 +89,7 @@ module RequestLogAnalyzer::FileFormat
|
|
89
89
|
time_as_str = value[-4..-1] # year
|
90
90
|
# convert the month to a 2-digit representation
|
91
91
|
month = MONTHS.index(value[3..5])+1
|
92
|
-
month < 10 ? time_as_str << "0#{month}" : time_as_str << month
|
92
|
+
month < 10 ? time_as_str << "0#{month}" : time_as_str << month.to_s
|
93
93
|
|
94
94
|
time_as_str << value[6..13] # day of month + time
|
95
95
|
time_as_str.to_i
|
@@ -2,8 +2,8 @@ Gem::Specification.new do |s|
|
|
2
2
|
s.name = "request-log-analyzer"
|
3
3
|
|
4
4
|
# Do not set the version and date field manually, this is done by the release script
|
5
|
-
s.version = "1.9.
|
6
|
-
s.date = "2010-10-
|
5
|
+
s.version = "1.9.3"
|
6
|
+
s.date = "2010-10-04"
|
7
7
|
|
8
8
|
s.rubyforge_project = 'r-l-a'
|
9
9
|
|
@@ -15,6 +15,12 @@ describe RequestLogAnalyzer::FileFormat::Rails do
|
|
15
15
|
:path => '/queries', :ip => '127.0.0.1', :timestamp => 20100225161518)
|
16
16
|
end
|
17
17
|
|
18
|
+
it "should parse :started lines in Oct, Nov and Dec correctly" do
|
19
|
+
line = 'Started GET "/queries" for 127.0.0.1 at Thu Oct 25 16:15:18 -0800 2010'
|
20
|
+
@file_format.should parse_line(line).as(:started).and_capture(:method => 'GET',
|
21
|
+
:path => '/queries', :ip => '127.0.0.1', :timestamp => 20101025161518)
|
22
|
+
end
|
23
|
+
|
18
24
|
it "should parse :processing lines correctly" do
|
19
25
|
line = ' Processing by QueriesController#index as HTML'
|
20
26
|
@file_format.should parse_line(line).as(:processing).and_capture(
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: request-log-analyzer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 53
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 1
|
7
8
|
- 9
|
8
|
-
-
|
9
|
-
version: 1.9.
|
9
|
+
- 3
|
10
|
+
version: 1.9.3
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Willem van Bergen
|
@@ -15,16 +16,18 @@ autorequire:
|
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2010-10-
|
19
|
+
date: 2010-10-04 00:00:00 +02:00
|
19
20
|
default_executable: request-log-analyzer
|
20
21
|
dependencies:
|
21
22
|
- !ruby/object:Gem::Dependency
|
22
23
|
name: rake
|
23
24
|
prerelease: false
|
24
25
|
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
25
27
|
requirements:
|
26
28
|
- - ">="
|
27
29
|
- !ruby/object:Gem::Version
|
30
|
+
hash: 3
|
28
31
|
segments:
|
29
32
|
- 0
|
30
33
|
version: "0"
|
@@ -34,9 +37,11 @@ dependencies:
|
|
34
37
|
name: rspec
|
35
38
|
prerelease: false
|
36
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
37
41
|
requirements:
|
38
42
|
- - ">="
|
39
43
|
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
40
45
|
segments:
|
41
46
|
- 0
|
42
47
|
version: "0"
|
@@ -46,9 +51,11 @@ dependencies:
|
|
46
51
|
name: activerecord
|
47
52
|
prerelease: false
|
48
53
|
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
49
55
|
requirements:
|
50
56
|
- - ">="
|
51
57
|
- !ruby/object:Gem::Version
|
58
|
+
hash: 3
|
52
59
|
segments:
|
53
60
|
- 0
|
54
61
|
version: "0"
|
@@ -58,9 +65,11 @@ dependencies:
|
|
58
65
|
name: sqlite3-ruby
|
59
66
|
prerelease: false
|
60
67
|
requirement: &id004 !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
61
69
|
requirements:
|
62
70
|
- - ">="
|
63
71
|
- !ruby/object:Gem::Version
|
72
|
+
hash: 3
|
64
73
|
segments:
|
65
74
|
- 0
|
66
75
|
version: "0"
|
@@ -230,23 +239,27 @@ rdoc_options:
|
|
230
239
|
require_paths:
|
231
240
|
- lib
|
232
241
|
required_ruby_version: !ruby/object:Gem::Requirement
|
242
|
+
none: false
|
233
243
|
requirements:
|
234
244
|
- - ">="
|
235
245
|
- !ruby/object:Gem::Version
|
246
|
+
hash: 3
|
236
247
|
segments:
|
237
248
|
- 0
|
238
249
|
version: "0"
|
239
250
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
251
|
+
none: false
|
240
252
|
requirements:
|
241
253
|
- - ">="
|
242
254
|
- !ruby/object:Gem::Version
|
255
|
+
hash: 3
|
243
256
|
segments:
|
244
257
|
- 0
|
245
258
|
version: "0"
|
246
259
|
requirements:
|
247
260
|
- To use the database inserter, ActiveRecord and an appropriate database adapter are required.
|
248
261
|
rubyforge_project: r-l-a
|
249
|
-
rubygems_version: 1.3.
|
262
|
+
rubygems_version: 1.3.7
|
250
263
|
signing_key:
|
251
264
|
specification_version: 3
|
252
265
|
summary: A command line tool to analyze request logs for Apache, Rails, Merb, MySQL and other web application servers
|