lite_logger 0.1.3 → 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: 3639aaac4fad29c97b34eb8f2d4047813987916158aac137374463b56c0ff8bd
4
- data.tar.gz: 05c4b86395e963cb077765151609df0af211bb94f1eaeb18e461a25ddd648b43
3
+ metadata.gz: d2f3c627b39839930ebd45fd9f908cbbd8a3d0392af6f22318ec23e4efee5ec8
4
+ data.tar.gz: 13c2b2f29b407d833149fa753ade41b6c9992140f3a374b004394338866fc87b
5
5
  SHA512:
6
- metadata.gz: dc69ce43bb48267ee1868a6a5e0cc7b1316765936135702e88b722e86a7cd8bfc18a0531fa0b22ea342151ac650c631faef35475123262cc56695b4b9430134e
7
- data.tar.gz: 2c7e6657eb2069baac8f088a9a25bcc03f946234f1342d1a8cb0e789eaa26e72a4bccd14cf599454f7684ef2c13a9d5b2a8625b6be01e9954e810abdc35e0029
6
+ metadata.gz: ddd4cc3ca1f15c8db1166351fc97fcfc10ce4cdfbca4ca1fdc97ae85153a3f1d584e23757970fd12e9e628438be97ad878933ebfcdf1df6d73d734660f543c4b
7
+ data.tar.gz: 54a14d4c2f72b12f50c3bfcbe9f403aaecc0026ad7c70d8273f1bbfcdd35da2a37beca4fb648ff27d76aaf8c6c1af21611e1ccbfcbf963cd073d0b45cd79136c
data/CHANGELOG.md CHANGED
@@ -22,3 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
22
22
  ## [0.1.3] - 2024-06-12
23
23
 
24
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.3'
4
+ VERSION = '0.1.4'
5
5
  end
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Ferrari
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-12 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