beaver 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/beaver/parsers/rails.rb +2 -2
- data/lib/beaver/version.rb +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a35df1491fd9e084933518f884804c370796133e
|
4
|
+
data.tar.gz: 040fd95c9960e3e943dee37aad833166484620e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b48610ced4398ce315abf0175bd5eecb1217593fde9261c4c06c110114c1535caded8406f82f75cbb600a82bc995bc60b730121bfbae47897cab75697819764a
|
7
|
+
data.tar.gz: e99e01fe72636dee1c15a263a9ae3ead63abaf581f073abe9ac215747a954be10e70f629729e9ecbebcf085aa254cd61beead24cb6dd26b294b2361c7b4bc189
|
data/lib/beaver/parsers/rails.rb
CHANGED
@@ -12,7 +12,7 @@ module Beaver
|
|
12
12
|
REGEX_PARAMS_STR = / Parameters: (\{.+\})$/ # :nodoc:
|
13
13
|
REGEX_IP = /" for ([a-zA-Z0-9:.]+) at / # :nodoc:
|
14
14
|
REGEX_FORMAT = /Processing by .+ as (\w+)$/ # :nodoc:
|
15
|
-
REGEX_MS = / in (\d
|
15
|
+
REGEX_MS = / in (\d+\.?\d*)ms/ # :nodoc:
|
16
16
|
REGEX_TAGS = /^(\[.+\] )+/ # :nodoc:
|
17
17
|
REGEX_TAG = /\[([^\]]+)\] / # :nodoc:
|
18
18
|
# Depending on the version of Rails, the time format may be wildly different
|
@@ -44,7 +44,7 @@ module Beaver
|
|
44
44
|
|
45
45
|
# Returns the number of milliseconds it took for the request to complete
|
46
46
|
def ms
|
47
|
-
@ms ||= REGEX_MS.match(@data) ? $1.
|
47
|
+
@ms ||= REGEX_MS.match(@data) ? $1.to_f : 0
|
48
48
|
end
|
49
49
|
|
50
50
|
# Returns the tags string associated with the request (e.g. "[tag1] [tag2] ")
|
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, 4, 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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Hollinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-05 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,17 +18,17 @@ executables:
|
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
-
-
|
22
|
-
-
|
23
|
-
-
|
21
|
+
- LICENSE
|
22
|
+
- README.rdoc
|
23
|
+
- bin/beaver
|
24
|
+
- lib/beaver.rb
|
25
|
+
- lib/beaver/beaver.rb
|
24
26
|
- lib/beaver/dam.rb
|
27
|
+
- lib/beaver/parsers/http.rb
|
28
|
+
- lib/beaver/parsers/rails.rb
|
25
29
|
- lib/beaver/request.rb
|
26
|
-
- lib/beaver/
|
30
|
+
- lib/beaver/utils.rb
|
27
31
|
- lib/beaver/version.rb
|
28
|
-
- lib/beaver.rb
|
29
|
-
- README.rdoc
|
30
|
-
- LICENSE
|
31
|
-
- bin/beaver
|
32
32
|
homepage: http://github.com/jhollinger/beaver
|
33
33
|
licenses: []
|
34
34
|
metadata: {}
|
@@ -38,17 +38,17 @@ require_paths:
|
|
38
38
|
- lib
|
39
39
|
required_ruby_version: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '0'
|
44
44
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
requirements: []
|
50
50
|
rubyforge_project:
|
51
|
-
rubygems_version: 2.
|
51
|
+
rubygems_version: 2.4.5.1
|
52
52
|
signing_key:
|
53
53
|
specification_version: 4
|
54
54
|
summary: Rails log parser
|