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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb2c99e7f351ae1fad7d7ed54c7a90e2a6c404bb
4
- data.tar.gz: 2dedcbbd6ddd4b61acb8dbae8a2595244cc78f7b
3
+ metadata.gz: 2f1b0b0557bbbb26c01d1229947207211c7478c5
4
+ data.tar.gz: 620fdc3bd757b123be6dd2848413c271adfcd9a3
5
5
  SHA512:
6
- metadata.gz: 1c32310fa28a730a6408d1d32d8a1c297d565e0da9ca4d10073a43d5b5ab7107ad77b036d0ea96f4f6bdf1d6be2f734d59dea4af41334e32578e2a72dbc6c410
7
- data.tar.gz: 91b2a7f6154797ba2619cab21ee15fa5b64b5c6d064d440ad039bd2abd29d5b792981caba11647816ebea87c74093dbb8298dd13994c28d4cd66e866c7fa3d34
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
- if request.invalid?
203
- request = Request.for(line)
204
- elsif request.completed?
205
- blk.call(request)
206
- request = nil
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
 
@@ -1,4 +1,4 @@
1
1
  module Beaver
2
- MAJOR_VERSION, MINOR_VERSION, TINY_VERSION, PRE_VERSION = 1, 4, 2, nil # :nodoc:
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.2
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-02-26 00:00:00.000000000 Z
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/beaver.rb
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/utils.rb
28
+ - lib/beaver.rb
29
29
  - README.rdoc
30
30
  - LICENSE
31
31
  - bin/beaver