sinlog 0.0.4 → 0.0.5
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 +4 -4
- data/docs/Readme.md +1 -1
- data/lib/sinlog/loggable.rb +2 -2
- data/lib/sinlog/version.rb +1 -1
- data/rbi/sinlog/loggable.rbi +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f34c532f5dee51480976b05ef2257a4cbd6555c8ef7af54430a26890f57510bf
|
|
4
|
+
data.tar.gz: 36abd9cb6265627faf12bde9cdf3a8ccce0fde6c904032b15dd05f235bdab916
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c2274a0d751ede93a7d022a4099cb2b53e842905d71d96ed56c45dc6f001d3767805c71c20c6a8713ab2ef2114c2a253cba2c10f9aeb12364809de682babbd7
|
|
7
|
+
data.tar.gz: 9fd628020647f1f341aaf747033eeb94d00f7624491a59078a4bc3a931b45536fc21083c14cf44f4a4d0ab1f1c7cbcbe68cc915f97cb657e2c60869ceb1deabd
|
data/docs/Readme.md
CHANGED
|
@@ -328,7 +328,7 @@ The API might not fully adhere to idiomatic Ruby usage, so I appreciate your und
|
|
|
328
328
|
- e.g., `logger = Sinlog.logger_with_level(Sinlog::LV[:warn])`
|
|
329
329
|
- old: `Sinlog.instance.logger.tap { it.level = Sinlog::LV[:warn] }`
|
|
330
330
|
|
|
331
|
-
- add `LogExt`, `LogShortExt` and `
|
|
331
|
+
- add `LogExt`, `LogShortExt` and `Loggable`
|
|
332
332
|
|
|
333
333
|
- add sorbet **.rbi** files
|
|
334
334
|
|
data/lib/sinlog/loggable.rb
CHANGED
|
@@ -16,12 +16,12 @@ class Sinlog
|
|
|
16
16
|
#
|
|
17
17
|
# require 'sinlog'
|
|
18
18
|
#
|
|
19
|
-
# include Sinlog::
|
|
19
|
+
# include Sinlog::Loggable
|
|
20
20
|
#
|
|
21
21
|
# "A debug message".log_dbg
|
|
22
22
|
# "Hello, world".log_info
|
|
23
23
|
#
|
|
24
|
-
module
|
|
24
|
+
module Loggable
|
|
25
25
|
# Logs the current object at *debug* level using Sinlog.logger
|
|
26
26
|
def log_dbg
|
|
27
27
|
Sinlog.logger.debug(self)
|
data/lib/sinlog/version.rb
CHANGED
data/rbi/sinlog/loggable.rbi
CHANGED