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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ece63af71c4a5c828a54550a22474e0306c7072abadde05b9e1eab86202ee4f7
4
- data.tar.gz: 3cddc3249be5cd6aff1d2451b2466d9adb29f8ed80693e9fc3334ae1eefc824c
3
+ metadata.gz: d2f3c627b39839930ebd45fd9f908cbbd8a3d0392af6f22318ec23e4efee5ec8
4
+ data.tar.gz: 13c2b2f29b407d833149fa753ade41b6c9992140f3a374b004394338866fc87b
5
5
  SHA512:
6
- metadata.gz: 25e87beb53112c98c5186f3365b1909d46e3b1b43f0ff7bb887b8c3b52ba19fe63bb4935412cb1e4c11d5716f45fe40c57314cf63a8a10e60eae88c2a2e76050
7
- data.tar.gz: bd16d94aa16225859cb211819c1ee0c45f5632e741b904e10c3fde111261dc2bb8a0505b03f2e17dc1e43863d57e8a3227caefde821ff49e18c4756fd683e99a
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`
@@ -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: Time.now }.to_json
34
+ { level: level, message: message, timestamp: current_time }.to_json
34
35
  else
35
- "#{Time.now} [#{level.upcase}] #{message}"
36
+ "#{current_time} [#{level.upcase}] #{message}"
36
37
  end
37
38
  end
38
39
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LiteLogger
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.4'
5
5
  end
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.2
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-05-29 00:00:00.000000000 Z
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.9
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: []