rails-pretty-logger 0.2.5.1 → 0.2.9
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 +5 -5
- data/app/assets/stylesheets/rails/pretty/logger/dashboards.css +1 -1
- data/app/helpers/rails/pretty/logger/application_helper.rb +8 -12
- data/app/views/partials/{_navbar.html.erb → _pretyyloggernavbar.html.erb} +0 -0
- data/app/views/rails/pretty/logger/dashboards/logs.html.erb +1 -1
- data/lib/rails/pretty/logger/active_support_logger.rb +5 -1
- data/lib/rails/pretty/logger/engine.rb +3 -1
- data/lib/rails/pretty/logger/version.rb +1 -1
- metadata +12 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 11581d7cf70134b2623eeb35225b4098af4bba1b3a3be980c53675c0a5287bf5
|
4
|
+
data.tar.gz: d09496c5f7a725c73b1439a191766f2ef81de1d7e75be877edf46e6713514b94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: affe4f17285a6e05c29a1f288b8c1ba06ceb4d632b76d7608404162ef9f7d4ace9cca79ecf0948850e4051682add13173efe99536f713246eb3686946a168df2
|
7
|
+
data.tar.gz: 461fa8378a0583525da0931ce3db1428b2e2afe8ba1ea30e2fe38ca3bc57a0e8d736e2dd90c25c3bbbb0c4d07a96c44d4c2869ace39f7cfa16a6cd00b9c8a310
|
@@ -1,17 +1,13 @@
|
|
1
|
-
module Rails
|
2
|
-
module
|
3
|
-
module Logger
|
4
|
-
module ApplicationHelper
|
1
|
+
module Rails::Pretty::Logger
|
2
|
+
module ApplicationHelper
|
5
3
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
def trim_name(name)
|
11
|
-
index = name.split("/log/").last.capitalize
|
12
|
-
end
|
4
|
+
def modify_name(name)
|
5
|
+
return "#{name [-13..-10]}/#{name[-9..-8]}/#{name[-7..-6]} : #{name[-4..-1]}"
|
6
|
+
end
|
13
7
|
|
14
|
-
|
8
|
+
def trim_name(name)
|
9
|
+
index = name.split("/log/").last.capitalize
|
15
10
|
end
|
11
|
+
|
16
12
|
end
|
17
13
|
end
|
File without changes
|
@@ -5,7 +5,11 @@ module Rails::Pretty::Logger
|
|
5
5
|
|
6
6
|
class ActiveSupportLogger < RailsLogger
|
7
7
|
include ActiveSupport::LoggerThreadSafeLevel
|
8
|
-
|
8
|
+
if Rails::VERSION::MAJOR < 6.0
|
9
|
+
include LoggerSilence
|
10
|
+
else
|
11
|
+
include ActiveSupport::LoggerSilence
|
12
|
+
end
|
9
13
|
|
10
14
|
# Returns true if the logger destination matches one of the sources
|
11
15
|
#
|
@@ -6,7 +6,9 @@ module Rails
|
|
6
6
|
ActiveSupport.on_load(:action_controller) do
|
7
7
|
include Rails::Pretty::Logger
|
8
8
|
end
|
9
|
-
|
9
|
+
initializer "rails-pretty-logger.assets.precompile" do |app|
|
10
|
+
app.config.assets.precompile += %w( rails/pretty/logger/application.css rails/pretty/logger/application.js)
|
11
|
+
end
|
10
12
|
end
|
11
13
|
end
|
12
14
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cem
|
@@ -9,22 +9,28 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-10-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '5.0'
|
21
|
+
- - "<="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 6.1.4.1
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
|
-
- - "
|
28
|
+
- - ">="
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: '5.0'
|
31
|
+
- - "<="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 6.1.4.1
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: sqlite3
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,7 +92,7 @@ files:
|
|
86
92
|
- app/models/rails/pretty/logger/application_record.rb
|
87
93
|
- app/views/layouts/rails/pretty/logger/application.html.erb
|
88
94
|
- app/views/partials/_error_pagination.html.erb
|
89
|
-
- app/views/partials/
|
95
|
+
- app/views/partials/_pretyyloggernavbar.html.erb
|
90
96
|
- app/views/rails/pretty/logger/dashboards/index.html.erb
|
91
97
|
- app/views/rails/pretty/logger/dashboards/logs.html.erb
|
92
98
|
- app/views/rails/pretty/logger/hourly_logs/index.html.erb
|
@@ -120,8 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
126
|
- !ruby/object:Gem::Version
|
121
127
|
version: '0'
|
122
128
|
requirements: []
|
123
|
-
|
124
|
-
rubygems_version: 2.6.11
|
129
|
+
rubygems_version: 3.1.2
|
125
130
|
signing_key:
|
126
131
|
specification_version: 4
|
127
132
|
summary: Pretty Logger is a logging framework which can be checked from '/your-web-page/rails-pretty-logger/dashboards',
|