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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f1b0b0557bbbb26c01d1229947207211c7478c5
4
- data.tar.gz: 620fdc3bd757b123be6dd2848413c271adfcd9a3
3
+ metadata.gz: a35df1491fd9e084933518f884804c370796133e
4
+ data.tar.gz: 040fd95c9960e3e943dee37aad833166484620e1
5
5
  SHA512:
6
- metadata.gz: ac300f70b7c76ef22d88c1ef222f6af12bc579679909840c2a00e453b089c0cb7f0fbcfd5c0de2c4f0828747acada2fdbb11a5a7ba4575266cbc732fabad49b2
7
- data.tar.gz: 4d8b97d9dc345dcb69f360ffac48d5f425cd485b616c880c6468e694d3eb70bb0801379c06503f1fa04343af6b7651a98c4a056f2b6346b3d5970384a2ed0d89
6
+ metadata.gz: b48610ced4398ce315abf0175bd5eecb1217593fde9261c4c06c110114c1535caded8406f82f75cbb600a82bc995bc60b730121bfbae47897cab75697819764a
7
+ data.tar.gz: e99e01fe72636dee1c15a263a9ae3ead63abaf581f073abe9ac215747a954be10e70f629729e9ecbebcf085aa254cd61beead24cb6dd26b294b2361c7b4bc189
@@ -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+)ms/ # :nodoc:
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.to_i : 0
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] ")
@@ -1,4 +1,4 @@
1
1
  module Beaver
2
- MAJOR_VERSION, MINOR_VERSION, TINY_VERSION, PRE_VERSION = 1, 4, 3, nil # :nodoc:
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.3
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: 2014-07-10 00:00:00.000000000 Z
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
- - lib/beaver/parsers/rails.rb
22
- - lib/beaver/parsers/http.rb
23
- - lib/beaver/utils.rb
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/beaver.rb
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.0.14
51
+ rubygems_version: 2.4.5.1
52
52
  signing_key:
53
53
  specification_version: 4
54
54
  summary: Rails log parser