request-log-analyzer 1.9.5 → 1.9.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ module RequestLogAnalyzer::FileFormat
23
23
  # Processing by QueriesController#index as HTML
24
24
  line_definition :processing do |line|
25
25
  line.teaser = /Processing by /
26
- line.regexp = /Processing by (\w+)\#(\w+) as (\w+)/
26
+ line.regexp = /Processing by ([A-Za-z0-9\-:]+)\#(\w+) as ([\w\/\*]+)/
27
27
 
28
28
  line.capture(:controller)
29
29
  line.capture(:action)
@@ -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.5"
16
+ VERSION = "1.9.6"
17
17
 
18
18
 
19
19
  autoload :Controller, 'request_log_analyzer/controller'
@@ -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.5"
6
- s.date = "2010-10-14"
5
+ s.version = "1.9.6"
6
+ s.date = "2010-10-18"
7
7
 
8
8
  s.rubyforge_project = 'r-l-a'
9
9
 
@@ -26,6 +26,16 @@ describe RequestLogAnalyzer::FileFormat::Rails do
26
26
  @file_format.should parse_line(line).as(:processing).and_capture(
27
27
  :controller => 'QueriesController', :action => 'index', :format => 'HTML')
28
28
  end
29
+ it "should parse nested :processing lines correctly" do
30
+ line = ' Processing by Projects::QueriesController#index as HTML'
31
+ @file_format.should parse_line(line).as(:processing).and_capture(
32
+ :controller => 'Projects::QueriesController', :action => 'index', :format => 'HTML')
33
+ end
34
+ it "should parse :processing lines correctly with format */*" do
35
+ line = ' Processing by ProjectsController#avatar as */*'
36
+ @file_format.should parse_line(line).as(:processing).and_capture(
37
+ :controller => 'ProjectsController', :action => 'avatar', :format => '*/*')
38
+ end
29
39
 
30
40
  it "should parse :completed lines correctly" do
31
41
  line = 'Completed 200 OK in 170ms (Views: 78.4ms | ActiveRecord: 48.2ms)'
@@ -122,4 +132,4 @@ describe RequestLogAnalyzer::FileFormat::Rails do
122
132
  end
123
133
  end
124
134
  end
125
- end
135
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 9
8
- - 5
9
- version: 1.9.5
8
+ - 6
9
+ version: 1.9.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Willem van Bergen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-14 00:00:00 +02:00
18
+ date: 2010-10-18 00:00:00 +02:00
19
19
  default_executable: request-log-analyzer
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency