request-log-analyzer 1.10.0 → 1.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/.infinity_test +8 -0
- data/lib/request_log_analyzer.rb +1 -1
- data/lib/request_log_analyzer/file_format.rb +1 -1
- data/lib/request_log_analyzer/file_format/rails3.rb +1 -1
- data/request-log-analyzer.gemspec +3 -3
- data/spec/unit/file_format/rails3_format_spec.rb +28 -23
- metadata +4 -3
data/.gitignore
CHANGED
data/.infinity_test
ADDED
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.10.
|
16
|
+
VERSION = "1.10.1"
|
17
17
|
|
18
18
|
|
19
19
|
autoload :Controller, 'request_log_analyzer/controller'
|
@@ -34,7 +34,7 @@ module RequestLogAnalyzer::FileFormat
|
|
34
34
|
|
35
35
|
elsif file_format.kind_of?(String) && File.exist?(file_format) && File.file?(file_format)
|
36
36
|
# load a format from a ruby file
|
37
|
-
require file_format
|
37
|
+
require File.expand_path(file_format)
|
38
38
|
|
39
39
|
const = RequestLogAnalyzer.to_camelcase(File.basename(file_format, '.rb'))
|
40
40
|
if RequestLogAnalyzer::FileFormat.const_defined?(const)
|
@@ -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 ([A-Za-z0-9\-:]+)\#(\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)
|
@@ -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.10.
|
6
|
-
s.date = "2011-
|
5
|
+
s.version = "1.10.1"
|
6
|
+
s.date = "2011-03-17"
|
7
7
|
|
8
8
|
s.rubyforge_project = 'r-l-a'
|
9
9
|
|
@@ -39,6 +39,6 @@ Gem::Specification.new do |s|
|
|
39
39
|
|
40
40
|
# The files and test_files directives are set automatically by the release script.
|
41
41
|
# Do not change them by hand, but make sure to add the files to the git repository.
|
42
|
-
s.files = %w(.gitignore DESIGN.rdoc Gemfile LICENSE README.rdoc Rakefile bin/request-log-analyzer lib/cli/command_line_arguments.rb lib/cli/database_console.rb lib/cli/database_console_init.rb lib/cli/progressbar.rb lib/cli/tools.rb lib/mixins/gets_memory_protection.rb lib/request_log_analyzer.rb lib/request_log_analyzer/aggregator.rb lib/request_log_analyzer/aggregator/database_inserter.rb lib/request_log_analyzer/aggregator/echo.rb lib/request_log_analyzer/aggregator/summarizer.rb lib/request_log_analyzer/controller.rb lib/request_log_analyzer/database.rb lib/request_log_analyzer/database/base.rb lib/request_log_analyzer/database/connection.rb lib/request_log_analyzer/database/request.rb lib/request_log_analyzer/database/source.rb lib/request_log_analyzer/database/warning.rb lib/request_log_analyzer/file_format.rb lib/request_log_analyzer/file_format/amazon_s3.rb lib/request_log_analyzer/file_format/apache.rb lib/request_log_analyzer/file_format/delayed_job.rb lib/request_log_analyzer/file_format/delayed_job2.rb lib/request_log_analyzer/file_format/delayed_job21.rb lib/request_log_analyzer/file_format/haproxy.rb lib/request_log_analyzer/file_format/merb.rb lib/request_log_analyzer/file_format/mysql.rb lib/request_log_analyzer/file_format/oink.rb lib/request_log_analyzer/file_format/postgresql.rb lib/request_log_analyzer/file_format/rack.rb lib/request_log_analyzer/file_format/rails.rb lib/request_log_analyzer/file_format/rails3.rb lib/request_log_analyzer/file_format/rails_development.rb lib/request_log_analyzer/file_format/w3c.rb lib/request_log_analyzer/filter.rb lib/request_log_analyzer/filter/anonymize.rb lib/request_log_analyzer/filter/field.rb lib/request_log_analyzer/filter/timespan.rb lib/request_log_analyzer/line_definition.rb lib/request_log_analyzer/log_processor.rb lib/request_log_analyzer/mailer.rb lib/request_log_analyzer/output.rb lib/request_log_analyzer/output/fancy_html.rb lib/request_log_analyzer/output/fixed_width.rb lib/request_log_analyzer/output/html.rb lib/request_log_analyzer/request.rb lib/request_log_analyzer/source.rb lib/request_log_analyzer/source/database_loader.rb lib/request_log_analyzer/source/log_parser.rb lib/request_log_analyzer/tracker.rb lib/request_log_analyzer/tracker/duration.rb lib/request_log_analyzer/tracker/frequency.rb lib/request_log_analyzer/tracker/hourly_spread.rb lib/request_log_analyzer/tracker/numeric_value.rb lib/request_log_analyzer/tracker/timespan.rb lib/request_log_analyzer/tracker/traffic.rb request-log-analyzer.gemspec spec/database.yml spec/fixtures/apache_combined.log spec/fixtures/apache_common.log spec/fixtures/decompression.log spec/fixtures/decompression.log.bz2 spec/fixtures/decompression.log.gz spec/fixtures/decompression.log.zip spec/fixtures/decompression.tar.gz spec/fixtures/decompression.tgz spec/fixtures/header_and_footer.log spec/fixtures/merb.log spec/fixtures/merb_prefixed.log spec/fixtures/multiple_files_1.log spec/fixtures/multiple_files_2.log spec/fixtures/mysql_slow_query.log spec/fixtures/oink_22.log spec/fixtures/oink_22_failure.log spec/fixtures/postgresql.log spec/fixtures/rails.db spec/fixtures/rails_1x.log spec/fixtures/rails_22.log spec/fixtures/rails_22_cached.log spec/fixtures/rails_unordered.log spec/fixtures/sinatra.log spec/fixtures/syslog_1x.log spec/fixtures/test_file_format.log spec/fixtures/test_language_combined.log spec/fixtures/test_order.log spec/integration/command_line_usage_spec.rb spec/integration/mailer_spec.rb spec/integration/munin_plugins_rails_spec.rb spec/integration/scout_spec.rb spec/lib/helpers.rb spec/lib/macros.rb spec/lib/matchers.rb spec/lib/mocks.rb spec/lib/testing_format.rb spec/spec_helper.rb spec/unit/aggregator/database_inserter_spec.rb spec/unit/aggregator/summarizer_spec.rb spec/unit/controller/controller_spec.rb spec/unit/controller/log_processor_spec.rb spec/unit/database/base_class_spec.rb spec/unit/database/connection_spec.rb spec/unit/database/database_spec.rb spec/unit/file_format/amazon_s3_format_spec.rb spec/unit/file_format/apache_format_spec.rb spec/unit/file_format/common_regular_expressions_spec.rb spec/unit/file_format/delayed_job21_format_spec.rb spec/unit/file_format/delayed_job2_format_spec.rb spec/unit/file_format/delayed_job_format_spec.rb spec/unit/file_format/file_format_api_spec.rb spec/unit/file_format/format_autodetection_spec.rb spec/unit/file_format/haproxy_format_spec.rb spec/unit/file_format/line_definition_spec.rb spec/unit/file_format/merb_format_spec.rb spec/unit/file_format/mysql_format_spec.rb spec/unit/file_format/oink_format_spec.rb spec/unit/file_format/postgresql_format_spec.rb spec/unit/file_format/rack_format_spec.rb spec/unit/file_format/rails3_format_spec.rb spec/unit/file_format/rails_format_spec.rb spec/unit/file_format/w3c_format_spec.rb spec/unit/filter/anonymize_filter_spec.rb spec/unit/filter/field_filter_spec.rb spec/unit/filter/filter_spec.rb spec/unit/filter/timespan_filter_spec.rb spec/unit/mailer_spec.rb spec/unit/request_spec.rb spec/unit/source/log_parser_spec.rb spec/unit/tracker/duration_tracker_spec.rb spec/unit/tracker/frequency_tracker_spec.rb spec/unit/tracker/hourly_spread_spec.rb spec/unit/tracker/numeric_value_tracker_spec.rb spec/unit/tracker/timespan_tracker_spec.rb spec/unit/tracker/tracker_api_spec.rb spec/unit/tracker/traffic_tracker_spec.rb tasks/github-gem.rake tasks/request_log_analyzer.rake)
|
42
|
+
s.files = %w(.gitignore .infinity_test DESIGN.rdoc Gemfile LICENSE README.rdoc Rakefile bin/request-log-analyzer lib/cli/command_line_arguments.rb lib/cli/database_console.rb lib/cli/database_console_init.rb lib/cli/progressbar.rb lib/cli/tools.rb lib/mixins/gets_memory_protection.rb lib/request_log_analyzer.rb lib/request_log_analyzer/aggregator.rb lib/request_log_analyzer/aggregator/database_inserter.rb lib/request_log_analyzer/aggregator/echo.rb lib/request_log_analyzer/aggregator/summarizer.rb lib/request_log_analyzer/controller.rb lib/request_log_analyzer/database.rb lib/request_log_analyzer/database/base.rb lib/request_log_analyzer/database/connection.rb lib/request_log_analyzer/database/request.rb lib/request_log_analyzer/database/source.rb lib/request_log_analyzer/database/warning.rb lib/request_log_analyzer/file_format.rb lib/request_log_analyzer/file_format/amazon_s3.rb lib/request_log_analyzer/file_format/apache.rb lib/request_log_analyzer/file_format/delayed_job.rb lib/request_log_analyzer/file_format/delayed_job2.rb lib/request_log_analyzer/file_format/delayed_job21.rb lib/request_log_analyzer/file_format/haproxy.rb lib/request_log_analyzer/file_format/merb.rb lib/request_log_analyzer/file_format/mysql.rb lib/request_log_analyzer/file_format/oink.rb lib/request_log_analyzer/file_format/postgresql.rb lib/request_log_analyzer/file_format/rack.rb lib/request_log_analyzer/file_format/rails.rb lib/request_log_analyzer/file_format/rails3.rb lib/request_log_analyzer/file_format/rails_development.rb lib/request_log_analyzer/file_format/w3c.rb lib/request_log_analyzer/filter.rb lib/request_log_analyzer/filter/anonymize.rb lib/request_log_analyzer/filter/field.rb lib/request_log_analyzer/filter/timespan.rb lib/request_log_analyzer/line_definition.rb lib/request_log_analyzer/log_processor.rb lib/request_log_analyzer/mailer.rb lib/request_log_analyzer/output.rb lib/request_log_analyzer/output/fancy_html.rb lib/request_log_analyzer/output/fixed_width.rb lib/request_log_analyzer/output/html.rb lib/request_log_analyzer/request.rb lib/request_log_analyzer/source.rb lib/request_log_analyzer/source/database_loader.rb lib/request_log_analyzer/source/log_parser.rb lib/request_log_analyzer/tracker.rb lib/request_log_analyzer/tracker/duration.rb lib/request_log_analyzer/tracker/frequency.rb lib/request_log_analyzer/tracker/hourly_spread.rb lib/request_log_analyzer/tracker/numeric_value.rb lib/request_log_analyzer/tracker/timespan.rb lib/request_log_analyzer/tracker/traffic.rb request-log-analyzer.gemspec spec/database.yml spec/fixtures/apache_combined.log spec/fixtures/apache_common.log spec/fixtures/decompression.log spec/fixtures/decompression.log.bz2 spec/fixtures/decompression.log.gz spec/fixtures/decompression.log.zip spec/fixtures/decompression.tar.gz spec/fixtures/decompression.tgz spec/fixtures/header_and_footer.log spec/fixtures/merb.log spec/fixtures/merb_prefixed.log spec/fixtures/multiple_files_1.log spec/fixtures/multiple_files_2.log spec/fixtures/mysql_slow_query.log spec/fixtures/oink_22.log spec/fixtures/oink_22_failure.log spec/fixtures/postgresql.log spec/fixtures/rails.db spec/fixtures/rails_1x.log spec/fixtures/rails_22.log spec/fixtures/rails_22_cached.log spec/fixtures/rails_unordered.log spec/fixtures/sinatra.log spec/fixtures/syslog_1x.log spec/fixtures/test_file_format.log spec/fixtures/test_language_combined.log spec/fixtures/test_order.log spec/integration/command_line_usage_spec.rb spec/integration/mailer_spec.rb spec/integration/munin_plugins_rails_spec.rb spec/integration/scout_spec.rb spec/lib/helpers.rb spec/lib/macros.rb spec/lib/matchers.rb spec/lib/mocks.rb spec/lib/testing_format.rb spec/spec_helper.rb spec/unit/aggregator/database_inserter_spec.rb spec/unit/aggregator/summarizer_spec.rb spec/unit/controller/controller_spec.rb spec/unit/controller/log_processor_spec.rb spec/unit/database/base_class_spec.rb spec/unit/database/connection_spec.rb spec/unit/database/database_spec.rb spec/unit/file_format/amazon_s3_format_spec.rb spec/unit/file_format/apache_format_spec.rb spec/unit/file_format/common_regular_expressions_spec.rb spec/unit/file_format/delayed_job21_format_spec.rb spec/unit/file_format/delayed_job2_format_spec.rb spec/unit/file_format/delayed_job_format_spec.rb spec/unit/file_format/file_format_api_spec.rb spec/unit/file_format/format_autodetection_spec.rb spec/unit/file_format/haproxy_format_spec.rb spec/unit/file_format/line_definition_spec.rb spec/unit/file_format/merb_format_spec.rb spec/unit/file_format/mysql_format_spec.rb spec/unit/file_format/oink_format_spec.rb spec/unit/file_format/postgresql_format_spec.rb spec/unit/file_format/rack_format_spec.rb spec/unit/file_format/rails3_format_spec.rb spec/unit/file_format/rails_format_spec.rb spec/unit/file_format/w3c_format_spec.rb spec/unit/filter/anonymize_filter_spec.rb spec/unit/filter/field_filter_spec.rb spec/unit/filter/filter_spec.rb spec/unit/filter/timespan_filter_spec.rb spec/unit/mailer_spec.rb spec/unit/request_spec.rb spec/unit/source/log_parser_spec.rb spec/unit/tracker/duration_tracker_spec.rb spec/unit/tracker/frequency_tracker_spec.rb spec/unit/tracker/hourly_spread_spec.rb spec/unit/tracker/numeric_value_tracker_spec.rb spec/unit/tracker/timespan_tracker_spec.rb spec/unit/tracker/tracker_api_spec.rb spec/unit/tracker/traffic_tracker_spec.rb tasks/github-gem.rake tasks/request_log_analyzer.rake)
|
43
43
|
s.test_files = %w(spec/integration/command_line_usage_spec.rb spec/integration/mailer_spec.rb spec/integration/munin_plugins_rails_spec.rb spec/integration/scout_spec.rb spec/unit/aggregator/database_inserter_spec.rb spec/unit/aggregator/summarizer_spec.rb spec/unit/controller/controller_spec.rb spec/unit/controller/log_processor_spec.rb spec/unit/database/base_class_spec.rb spec/unit/database/connection_spec.rb spec/unit/database/database_spec.rb spec/unit/file_format/amazon_s3_format_spec.rb spec/unit/file_format/apache_format_spec.rb spec/unit/file_format/common_regular_expressions_spec.rb spec/unit/file_format/delayed_job21_format_spec.rb spec/unit/file_format/delayed_job2_format_spec.rb spec/unit/file_format/delayed_job_format_spec.rb spec/unit/file_format/file_format_api_spec.rb spec/unit/file_format/format_autodetection_spec.rb spec/unit/file_format/haproxy_format_spec.rb spec/unit/file_format/line_definition_spec.rb spec/unit/file_format/merb_format_spec.rb spec/unit/file_format/mysql_format_spec.rb spec/unit/file_format/oink_format_spec.rb spec/unit/file_format/postgresql_format_spec.rb spec/unit/file_format/rack_format_spec.rb spec/unit/file_format/rails3_format_spec.rb spec/unit/file_format/rails_format_spec.rb spec/unit/file_format/w3c_format_spec.rb spec/unit/filter/anonymize_filter_spec.rb spec/unit/filter/field_filter_spec.rb spec/unit/filter/filter_spec.rb spec/unit/filter/timespan_filter_spec.rb spec/unit/mailer_spec.rb spec/unit/request_spec.rb spec/unit/source/log_parser_spec.rb spec/unit/tracker/duration_tracker_spec.rb spec/unit/tracker/frequency_tracker_spec.rb spec/unit/tracker/hourly_spread_spec.rb spec/unit/tracker/numeric_value_tracker_spec.rb spec/unit/tracker/timespan_tracker_spec.rb spec/unit/tracker/tracker_api_spec.rb spec/unit/tracker/traffic_tracker_spec.rb)
|
44
44
|
end
|
@@ -1,62 +1,71 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe RequestLogAnalyzer::FileFormat::
|
3
|
+
describe RequestLogAnalyzer::FileFormat::Rails3 do
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
end
|
5
|
+
subject { RequestLogAnalyzer::FileFormat.load(:rails3) }
|
6
|
+
let(:log_parser) {RequestLogAnalyzer::Source::LogParser.new(subject) }
|
8
7
|
|
8
|
+
it { should be_valid }
|
9
|
+
|
9
10
|
describe '#parse_line' do
|
10
11
|
before(:each) { @file_format = RequestLogAnalyzer::FileFormat.load(:rails3) }
|
11
12
|
|
12
13
|
it "should parse :started lines correctly" do
|
13
14
|
line = 'Started GET "/queries" for 127.0.0.1 at Thu Feb 25 16:15:18 -0800 2010'
|
14
|
-
|
15
|
+
subject.should parse_line(line).as(:started).and_capture(:method => 'GET',
|
15
16
|
:path => '/queries', :ip => '127.0.0.1', :timestamp => 20100225161518)
|
16
17
|
end
|
17
18
|
|
18
19
|
it "should parse :started lines in Oct, Nov and Dec correctly" do
|
19
20
|
line = 'Started GET "/queries" for 127.0.0.1 at Thu Oct 25 16:15:18 -0800 2010'
|
20
|
-
|
21
|
+
subject.should parse_line(line).as(:started).and_capture(:method => 'GET',
|
21
22
|
:path => '/queries', :ip => '127.0.0.1', :timestamp => 20101025161518)
|
22
23
|
end
|
23
24
|
|
24
25
|
it "should parse :started lines in Ruby 1.9.2 format correctly" do
|
25
26
|
line = 'Started GET "/queries" for 127.0.0.1 at 2010-10-26 02:27:15 +0000'
|
26
|
-
|
27
|
+
subject.should parse_line(line).as(:started).and_capture(:method => 'GET',
|
27
28
|
:path => '/queries', :ip => '127.0.0.1', :timestamp => 20101026022715)
|
28
29
|
end
|
29
30
|
|
30
31
|
it "should parse :processing lines correctly" do
|
31
32
|
line = ' Processing by QueriesController#index as HTML'
|
32
|
-
|
33
|
+
subject.should parse_line(line).as(:processing).and_capture(
|
33
34
|
:controller => 'QueriesController', :action => 'index', :format => 'HTML')
|
34
35
|
end
|
36
|
+
|
35
37
|
it "should parse nested :processing lines correctly" do
|
36
38
|
line = ' Processing by Projects::QueriesController#index as HTML'
|
37
|
-
|
39
|
+
subject.should parse_line(line).as(:processing).and_capture(
|
38
40
|
:controller => 'Projects::QueriesController', :action => 'index', :format => 'HTML')
|
39
41
|
end
|
42
|
+
|
40
43
|
it "should parse :processing lines correctly with format */*" do
|
41
44
|
line = ' Processing by ProjectsController#avatar as */*'
|
42
|
-
|
45
|
+
subject.should parse_line(line).as(:processing).and_capture(
|
43
46
|
:controller => 'ProjectsController', :action => 'avatar', :format => '*/*')
|
44
47
|
end
|
48
|
+
|
49
|
+
it "should parse :processing lines correctly without format" do
|
50
|
+
line = ' Processing by ProjectsController#avatar as '
|
51
|
+
subject.should parse_line(line).as(:processing).and_capture(
|
52
|
+
:controller => 'ProjectsController', :action => 'avatar', :format => '')
|
53
|
+
end
|
45
54
|
|
46
55
|
it "should parse :completed lines correctly" do
|
47
56
|
line = 'Completed 200 OK in 170ms (Views: 78.0ms | ActiveRecord: 48.2ms)'
|
48
|
-
|
57
|
+
subject.should parse_line(line).as(:completed).and_capture(
|
49
58
|
:duration => 0.170, :view => 0.078, :db => 0.0482, :status => 200)
|
50
59
|
end
|
51
60
|
|
52
61
|
it "should parse :completed lines correctly when ActiveRecord is not mentioned" do
|
53
62
|
line = 'Completed 200 OK in 364ms (Views: 31.4ms)'
|
54
|
-
|
63
|
+
subject.should parse_line(line).as(:completed).and_capture(:duration => 0.364, :status => 200)
|
55
64
|
end
|
56
65
|
|
57
66
|
it "should parse :completed lines correctly when other durations are specified" do
|
58
67
|
line = 'Completed 200 OK in 384ms (Views: 222.0ms | ActiveRecord: 121.0ms | Sphinx: 0.0ms)'
|
59
|
-
|
68
|
+
subject.should parse_line(line).as(:completed).and_capture(:duration => 0.384, :view => 0.222,
|
60
69
|
:db => 0.121, :status => 200)
|
61
70
|
end
|
62
71
|
|
@@ -71,10 +80,6 @@ describe RequestLogAnalyzer::FileFormat::Rails do
|
|
71
80
|
end
|
72
81
|
|
73
82
|
describe '#parse_io' do
|
74
|
-
before(:each) do
|
75
|
-
@log_parser = RequestLogAnalyzer::Source::LogParser.new(RequestLogAnalyzer::FileFormat.load(:rails3))
|
76
|
-
end
|
77
|
-
|
78
83
|
it "should parse a successful request correctly" do
|
79
84
|
log = <<-EOLOG
|
80
85
|
Started GET "/" for 127.0.0.1 at Fri Mar 19 06:40:41 -0700 2010
|
@@ -86,9 +91,9 @@ describe RequestLogAnalyzer::FileFormat::Rails do
|
|
86
91
|
EOLOG
|
87
92
|
|
88
93
|
request_counter.should_receive(:hit!).once
|
89
|
-
|
94
|
+
log_parser.should_not_receive(:warn)
|
90
95
|
|
91
|
-
|
96
|
+
log_parser.parse_io(StringIO.new(log)) do |request|
|
92
97
|
request_counter.hit! if request.kind_of?(RequestLogAnalyzer::FileFormat::Rails3::Request) && request.completed?
|
93
98
|
end
|
94
99
|
end
|
@@ -105,9 +110,9 @@ describe RequestLogAnalyzer::FileFormat::Rails do
|
|
105
110
|
EOLOG
|
106
111
|
|
107
112
|
request_counter.should_receive(:hit!).once
|
108
|
-
|
113
|
+
log_parser.should_not_receive(:warn)
|
109
114
|
|
110
|
-
|
115
|
+
log_parser.parse_io(StringIO.new(log)) do |request|
|
111
116
|
request_counter.hit! if request.kind_of?(RequestLogAnalyzer::FileFormat::Rails3::Request) && request.completed?
|
112
117
|
end
|
113
118
|
end
|
@@ -137,9 +142,9 @@ describe RequestLogAnalyzer::FileFormat::Rails do
|
|
137
142
|
EOLOG
|
138
143
|
|
139
144
|
request_counter.should_receive(:hit!).once
|
140
|
-
|
145
|
+
log_parser.should_not_receive(:warn)
|
141
146
|
|
142
|
-
|
147
|
+
log_parser.parse_io(StringIO.new(log)) do |request|
|
143
148
|
request_counter.hit! if request.kind_of?(RequestLogAnalyzer::FileFormat::Rails3::Request) && request.completed?
|
144
149
|
end
|
145
150
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 10
|
8
|
-
-
|
9
|
-
version: 1.10.
|
8
|
+
- 1
|
9
|
+
version: 1.10.1
|
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: 2011-
|
18
|
+
date: 2011-03-17 00:00:00 -04:00
|
19
19
|
default_executable: request-log-analyzer
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -83,6 +83,7 @@ extra_rdoc_files:
|
|
83
83
|
- README.rdoc
|
84
84
|
files:
|
85
85
|
- .gitignore
|
86
|
+
- .infinity_test
|
86
87
|
- DESIGN.rdoc
|
87
88
|
- Gemfile
|
88
89
|
- LICENSE
|