rails-pretty-logger 0.2.4 → 0.2.5
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.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/app/helpers/rails/pretty/logger/dashboards_helper.rb +3 -3
- data/lib/rails/pretty/logger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6745830ea749d7d3125aa87c4c8ec793d02a59d
|
4
|
+
data.tar.gz: 38fb8f46d14568619cf8fa4e344ca63ad04bbf69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d23911b1a377ab0a104f38cd9e8a0207bd24729da9127d46d25250fea13344af1d9e3c85b590d08b5594f8c94b7382f3dd59c46a454eda60ac002c2e24f47bf
|
7
|
+
data.tar.gz: 496dfba5c7d93faaf70349da1bd3ba013d20e614df645f1016a4088b8b153b212b474cdda602a0da698232fd02dab4da13ca284cefb41c988a88388478b1f839
|
data/README.md
CHANGED
@@ -35,6 +35,7 @@ If you want split your old log files by hourly you can use this rake task below
|
|
35
35
|
argument takes what will be new files names start with, and with the second one will take the full path of your log file which will be splitted
|
36
36
|
|
37
37
|
for bash usage ```rake app:split_log["new_log_file_name","/path/to/your/log.file"]```
|
38
|
+
|
38
39
|
for zch usage ```noglob rake app:split_log["new_log_file_name","/path/to/your/log.file"]```
|
39
40
|
|
40
41
|
## Installation
|
@@ -41,9 +41,9 @@ module Rails::Pretty::Logger
|
|
41
41
|
|
42
42
|
def parse_parameters(line)
|
43
43
|
parameters = line[line.index("Parameters:") + 12 ..line.length]
|
44
|
-
hash = JSON.parse parameters.gsub('=>', ':')
|
45
|
-
h = hash.reduce("<strong> Parameters: </strong> <br/> ") {|memo, (k,v)| memo += "<strong> #{k}: </strong> #{v}, "}
|
46
|
-
h.html_safe
|
44
|
+
hash = JSON.parse parameters.gsub('=>', ':') rescue nil
|
45
|
+
h = hash.reduce("<strong> Parameters: </strong> <br/> ") {|memo, (k,v)| memo += "<strong> #{k}: </strong> #{v}, "} rescue nil
|
46
|
+
h.html_safe rescue nil
|
47
47
|
end
|
48
48
|
|
49
49
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-pretty-logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cem
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-05-
|
12
|
+
date: 2019-05-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|