beaver 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/beaver/beaver.rb +3 -1
- data/lib/beaver/parsers/rails.rb +4 -0
- data/lib/beaver/request.rb +3 -0
- data/lib/beaver/version.rb +1 -1
- metadata +3 -3
data/lib/beaver/beaver.rb
CHANGED
data/lib/beaver/parsers/rails.rb
CHANGED
@@ -18,6 +18,10 @@ module Beaver
|
|
18
18
|
# Depending on the version of Rails, the time format may be wildly different
|
19
19
|
REGEX_TIME = / at ([a-z0-9:\+\- ]+)$/i # :nodoc:
|
20
20
|
|
21
|
+
def invalid?
|
22
|
+
@data.scan(REGEX_MATCH).size > 1
|
23
|
+
end
|
24
|
+
|
21
25
|
# Returns true if/when we have the final line of the multi-line Rails request
|
22
26
|
def completed?
|
23
27
|
REGEX_COMPLETED =~ @data
|
data/lib/beaver/request.rb
CHANGED
@@ -91,6 +91,9 @@ module Beaver
|
|
91
91
|
@final
|
92
92
|
end
|
93
93
|
|
94
|
+
# Returns true if this request has become invalid during reconstitution
|
95
|
+
def invalid?; false; end
|
96
|
+
|
94
97
|
# Returns true if the request has all the information it needs to be properly parsed
|
95
98
|
def completed?; true; end
|
96
99
|
|
data/lib/beaver/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
module Beaver
|
2
|
-
MAJOR_VERSION, MINOR_VERSION, TINY_VERSION, PRE_VERSION = 1, 3,
|
2
|
+
MAJOR_VERSION, MINOR_VERSION, TINY_VERSION, PRE_VERSION = 1, 3, 1, nil # :nodoc:
|
3
3
|
VERSION = [MAJOR_VERSION, MINOR_VERSION, TINY_VERSION, PRE_VERSION].compact.join '.' # :nodoc:
|
4
4
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 1.3.
|
8
|
+
- 1
|
9
|
+
version: 1.3.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jordan Hollinger
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2012-06-
|
17
|
+
date: 2012-06-30 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|