lite_logger 0.1.5 → 0.1.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1444c01d8b611aae058133582a232840dc14712a898eca0fdc5695f21e6025bf
4
- data.tar.gz: 8af0639ebfabc5bfbbca2da242a126509d81fefacd72adc9f4161ac56d1531f9
3
+ metadata.gz: bc0767fbf6ac0335c9837e6444668caf5882dfa7ac140552bcf6170c4b005689
4
+ data.tar.gz: cfd5533a426c2762f8b9626bb405131853e197723561a8a3187e33eac3300874
5
5
  SHA512:
6
- metadata.gz: 60b622783d0ac193c3c09587dd91c1a5358d95f1f3ed568722c9d3e1a41025bc80c623c001d5c2ef633f212d35fe5dee4b8bbd3f200b90d1c791d405a82625d5
7
- data.tar.gz: 2c38a22345a42046c969d17834c4c7e4bbdbd85b84a9fe3bf5d1e3e3718279bd3cc087eb4bfe52a8415c09965717a6017ede54ba408eba234426a009480f55c3
6
+ metadata.gz: 4867f776609006ed5567edb328760b686328196d66651b06f9cec605081dc3eb3a37b86c22c7f55264f1294f8be5fcadffdebbd385de465e6b0b6caab60c0f7c
7
+ data.tar.gz: a4462cb36487009bc994fb73fa3afc1945cb44ab33e6ed48f3e1ccc878ca1e653a1ce115b72183dc4d861240c838d9f1e6d04c0428653ab44b824bd28f48fb85
data/CHANGELOG.md CHANGED
@@ -31,3 +31,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
31
31
 
32
32
  - Bug fix: Remove uninitialized constant LiteLogger::Logger::StringIO
33
33
  - Readme updated with example on how to log to a file.
34
+
35
+ ## [0.1.6] - 2024-07-10
36
+
37
+ - Bug fix: Include the intended fix that was missing on the previous version
38
+
39
+ ## [0.1.7] - 2025-08-19
40
+
41
+ - Small text fix in README.md
42
+ - Remove unused file `all_changes.txt`
data/README.md CHANGED
@@ -39,7 +39,7 @@ require 'lite_logger'
39
39
  class MyClass
40
40
  def initialize
41
41
  # Initialize the logger
42
- @logger = LiteLogger.new
42
+ @logger = LiteLogger::Logger.new
43
43
  end
44
44
 
45
45
  def run
@@ -49,7 +49,7 @@ class MyClass
49
49
  @logger.error('This is an error message')
50
50
  @logger.fatal('This is a fatal message')
51
51
 
52
- # Method logic here
52
+ # [...]
53
53
  end
54
54
  end
55
55
  ```
@@ -76,5 +76,4 @@ Bug reports and pull requests are welcome: <https://github.com/dmferrari/lite_lo
76
76
 
77
77
  ## License
78
78
 
79
- License
80
79
  This little gem is available as open-source under the terms of the MIT License (see the LICENSE file in the project root for details).
@@ -39,7 +39,7 @@ module LiteLogger
39
39
 
40
40
  def write_log(message)
41
41
  case @destination
42
- when $stdout, $stderr, StringIO
42
+ when $stdout, $stderr
43
43
  @destination.puts message
44
44
  else
45
45
  File.open(@destination, 'a') { |file| file.puts message }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LiteLogger
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.7'
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Ferrari
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-07-10 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rake
@@ -66,7 +65,6 @@ files:
66
65
  - LICENSE.txt
67
66
  - README.md
68
67
  - Rakefile
69
- - all_changes.txt
70
68
  - config/initializers/lite_logger.rb
71
69
  - lib/lite_logger.rb
72
70
  - lib/lite_logger/logger.rb
@@ -81,7 +79,6 @@ metadata:
81
79
  source_code_uri: https://github.com/dmferrari/lite_logger
82
80
  changelog_uri: https://github.com/dmferrari/lite_logger/blob/main/CHANGELOG.md
83
81
  rubygems_mfa_required: 'true'
84
- post_install_message:
85
82
  rdoc_options: []
86
83
  require_paths:
87
84
  - lib
@@ -96,8 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
93
  - !ruby/object:Gem::Version
97
94
  version: '0'
98
95
  requirements: []
99
- rubygems_version: 3.5.3
100
- signing_key:
96
+ rubygems_version: 3.6.7
101
97
  specification_version: 4
102
98
  summary: A lightweight logging solution for Ruby on Rails applications.
103
99
  test_files: []
data/all_changes.txt DELETED
@@ -1,14 +0,0 @@
1
- # File name: Gemfile
2
- # frozen_string_literal: true
3
-
4
- source 'https://rubygems.org'
5
-
6
- gemspec
7
-
8
- gem 'byebug', '~> 11.1'
9
- gem 'rake', '~> 13.0'
10
- gem 'rspec', '~> 3.0'
11
- gem 'rubocop', '~> 1.21'
12
- gem 'ruby-lsp', '~> 0.16.6'
13
-
14
- # -------------------------