request-log-analyzer 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
data/lib/request_log_analyzer.rb
CHANGED
@@ -11,7 +11,7 @@ module RequestLogAnalyzer
|
|
11
11
|
|
12
12
|
# The current version of request-log-analyzer.
|
13
13
|
# Do not change the value by hand; it will be updated automatically by the gem release script.
|
14
|
-
VERSION = "1.6.
|
14
|
+
VERSION = "1.6.4"
|
15
15
|
|
16
16
|
# Loads constants in the RequestLogAnalyzer namespace using self.load_default_class_file(base, const)
|
17
17
|
# <tt>const</tt>:: The constant that is not yet loaded in the RequestLogAnalyzer namespace. This should be passed as a string or symbol.
|
@@ -201,7 +201,7 @@ module RequestLogAnalyzer::FileFormat
|
|
201
201
|
|
202
202
|
# Specifies a single line defintions.
|
203
203
|
def self.line_definition(name, &block)
|
204
|
-
@line_definer.
|
204
|
+
@line_definer.define_line(name, &block)
|
205
205
|
end
|
206
206
|
|
207
207
|
# Specifies multiple line definitions at once using a block
|
@@ -16,14 +16,18 @@ module RequestLogAnalyzer
|
|
16
16
|
def initialize_copy(other)
|
17
17
|
@line_definitions = other.line_definitions.dup
|
18
18
|
end
|
19
|
-
|
20
|
-
def
|
19
|
+
|
20
|
+
def define_line(name, arg = {}, &block)
|
21
21
|
if block_given?
|
22
22
|
@line_definitions[name] = RequestLogAnalyzer::LineDefinition.define(name, &block)
|
23
23
|
else
|
24
|
-
@line_definitions[name] = RequestLogAnalyzer::LineDefinition.new(name,
|
24
|
+
@line_definitions[name] = RequestLogAnalyzer::LineDefinition.new(name, arg)
|
25
25
|
end
|
26
26
|
end
|
27
|
+
|
28
|
+
def method_missing(name, *args, &block)
|
29
|
+
define_line(name, args[0], &block)
|
30
|
+
end
|
27
31
|
end
|
28
32
|
|
29
33
|
class CaptureDefiner
|
@@ -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.6.
|
6
|
-
s.date = "2010-03-
|
5
|
+
s.version = "1.6.4"
|
6
|
+
s.date = "2010-03-22"
|
7
7
|
|
8
8
|
s.rubyforge_project = 'r-l-a'
|
9
9
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 1.6.
|
8
|
+
- 4
|
9
|
+
version: 1.6.4
|
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-03-
|
18
|
+
date: 2010-03-22 00:00:00 -04:00
|
19
19
|
default_executable: request-log-analyzer
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|