beaver 1.3.0 → 1.3.1

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.
@@ -174,7 +174,9 @@ module Beaver
174
174
  request = Request.for(line)
175
175
  next if request.nil?
176
176
  end
177
- if request.completed?
177
+ if request.invalid?
178
+ request = Request.for(line)
179
+ elsif request.completed?
178
180
  blk.call(request)
179
181
  request = nil
180
182
  end
@@ -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
@@ -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
 
@@ -1,4 +1,4 @@
1
1
  module Beaver
2
- MAJOR_VERSION, MINOR_VERSION, TINY_VERSION, PRE_VERSION = 1, 3, 0, nil # :nodoc:
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
- - 0
9
- version: 1.3.0
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-24 00:00:00 -04:00
17
+ date: 2012-06-30 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies: []
20
20