lite_logger 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/lite_logger/logger.rb +3 -2
- data/lib/lite_logger/version.rb +1 -1
- data/log/.keep +0 -0
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2f3c627b39839930ebd45fd9f908cbbd8a3d0392af6f22318ec23e4efee5ec8
|
4
|
+
data.tar.gz: 13c2b2f29b407d833149fa753ade41b6c9992140f3a374b004394338866fc87b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddd4cc3ca1f15c8db1166351fc97fcfc10ce4cdfbca4ca1fdc97ae85153a3f1d584e23757970fd12e9e628438be97ad878933ebfcdf1df6d73d734660f543c4b
|
7
|
+
data.tar.gz: 54a14d4c2f72b12f50c3bfcbe9f403aaecc0026ad7c70d8273f1bbfcdd35da2a37beca4fb648ff27d76aaf8c6c1af21611e1ccbfcbf963cd073d0b45cd79136c
|
data/CHANGELOG.md
CHANGED
@@ -18,3 +18,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
18
18
|
|
19
19
|
- Updated README.md with installation instructions and usage example.
|
20
20
|
- Updated .gitignore file to avoid pushing development support files.
|
21
|
+
|
22
|
+
## [0.1.3] - 2024-06-12
|
23
|
+
|
24
|
+
- Added missing log/ directory that was causing the specs to fail.
|
25
|
+
|
26
|
+
## [0.1.4] - 2024-07-09
|
27
|
+
|
28
|
+
- Remove duplicated call to `Time.now`
|
data/lib/lite_logger/logger.rb
CHANGED
@@ -28,11 +28,12 @@ module LiteLogger
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def format_message(level, message)
|
31
|
+
current_time = Time.now
|
31
32
|
case @format
|
32
33
|
when :json
|
33
|
-
{ level: level, message: message, timestamp:
|
34
|
+
{ level: level, message: message, timestamp: current_time }.to_json
|
34
35
|
else
|
35
|
-
"#{
|
36
|
+
"#{current_time} [#{level.upcase}] #{message}"
|
36
37
|
end
|
37
38
|
end
|
38
39
|
|
data/lib/lite_logger/version.rb
CHANGED
data/log/.keep
ADDED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lite_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Ferrari
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -71,6 +71,7 @@ files:
|
|
71
71
|
- lib/lite_logger.rb
|
72
72
|
- lib/lite_logger/logger.rb
|
73
73
|
- lib/lite_logger/version.rb
|
74
|
+
- log/.keep
|
74
75
|
- sig/lite_logger.rbs
|
75
76
|
homepage: https://github.com/dmferrari/lite_logger
|
76
77
|
licenses:
|
@@ -80,7 +81,7 @@ metadata:
|
|
80
81
|
source_code_uri: https://github.com/dmferrari/lite_logger
|
81
82
|
changelog_uri: https://github.com/dmferrari/lite_logger/blob/main/CHANGELOG.md
|
82
83
|
rubygems_mfa_required: 'true'
|
83
|
-
post_install_message:
|
84
|
+
post_install_message:
|
84
85
|
rdoc_options: []
|
85
86
|
require_paths:
|
86
87
|
- lib
|
@@ -95,8 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
96
|
- !ruby/object:Gem::Version
|
96
97
|
version: '0'
|
97
98
|
requirements: []
|
98
|
-
rubygems_version: 3.5.
|
99
|
-
signing_key:
|
99
|
+
rubygems_version: 3.5.3
|
100
|
+
signing_key:
|
100
101
|
specification_version: 4
|
101
102
|
summary: A lightweight logging solution for Ruby on Rails applications.
|
102
103
|
test_files: []
|