beaver 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/beaver/beaver.rb +13 -5
- data/lib/beaver/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f1b0b0557bbbb26c01d1229947207211c7478c5
|
4
|
+
data.tar.gz: 620fdc3bd757b123be6dd2848413c271adfcd9a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac300f70b7c76ef22d88c1ef222f6af12bc579679909840c2a00e453b089c0cb7f0fbcfd5c0de2c4f0828747acada2fdbb11a5a7ba4575266cbc732fabad49b2
|
7
|
+
data.tar.gz: 4d8b97d9dc345dcb69f360ffac48d5f425cd485b616c880c6468e694d3eb70bb0801379c06503f1fa04343af6b7651a98c4a056f2b6346b3d5970384a2ed0d89
|
data/lib/beaver/beaver.rb
CHANGED
@@ -199,11 +199,19 @@ module Beaver
|
|
199
199
|
request = Request.for(line)
|
200
200
|
next if request.nil?
|
201
201
|
end
|
202
|
-
|
203
|
-
request
|
204
|
-
|
205
|
-
|
206
|
-
|
202
|
+
begin
|
203
|
+
if request.invalid?
|
204
|
+
request = Request.for(line)
|
205
|
+
elsif request.completed?
|
206
|
+
blk.call(request)
|
207
|
+
request = nil
|
208
|
+
end
|
209
|
+
rescue ArgumentError => e
|
210
|
+
if e.message =~ /invalid byte sequence in UTF-8/
|
211
|
+
request = nil
|
212
|
+
else
|
213
|
+
raise e.class, e.message
|
214
|
+
end
|
207
215
|
end
|
208
216
|
}
|
209
217
|
|
data/lib/beaver/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
module Beaver
|
2
|
-
MAJOR_VERSION, MINOR_VERSION, TINY_VERSION, PRE_VERSION = 1, 4,
|
2
|
+
MAJOR_VERSION, MINOR_VERSION, TINY_VERSION, PRE_VERSION = 1, 4, 3, nil # :nodoc:
|
3
3
|
VERSION = [MAJOR_VERSION, MINOR_VERSION, TINY_VERSION, PRE_VERSION].compact.join '.' # :nodoc:
|
4
4
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Hollinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A simple DSL and command-line tool for discovering what people are up
|
14
14
|
to in your Rails app
|
@@ -18,14 +18,14 @@ executables:
|
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
-
- lib/beaver.rb
|
22
|
-
- lib/beaver/dam.rb
|
23
21
|
- lib/beaver/parsers/rails.rb
|
24
22
|
- lib/beaver/parsers/http.rb
|
25
|
-
- lib/beaver/
|
23
|
+
- lib/beaver/utils.rb
|
24
|
+
- lib/beaver/dam.rb
|
26
25
|
- lib/beaver/request.rb
|
26
|
+
- lib/beaver/beaver.rb
|
27
27
|
- lib/beaver/version.rb
|
28
|
-
- lib/beaver
|
28
|
+
- lib/beaver.rb
|
29
29
|
- README.rdoc
|
30
30
|
- LICENSE
|
31
31
|
- bin/beaver
|