ruby_smart-simple_logger 1.5.0 → 1.5.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24fc41cd1546a608cc5f7e77aed469d8661cf71d10230b27343427c34007b0a7
|
4
|
+
data.tar.gz: 00f4a18fc2b02db13cc18552607b05c47ec6c5861b3eb61a733ff6b167fc3fb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b3ee071e62714542b209e5314c2947ee78ffdacd669a694de610cba63fc54a1be801806debded1b4cf738a2aad19a86960e781d7c2f50b0497f14636293aa36
|
7
|
+
data.tar.gz: 8af1877eb9843796aa2131143ca58cb02ee9b2ceb013a227b3293a145b10319a5ab887c534644e0512fe0ed430dab2cf601257a207e66bf38ba2acfd40341018
|
data/docs/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# RubySmart::SimpleLogger - CHANGELOG
|
2
2
|
|
3
|
+
## [1.5.2] - 2024-09-12
|
4
|
+
* **[fix]** swap 'verbose' logging for `model` scene _(now uses FALSE by default)_
|
5
|
+
|
6
|
+
## [1.5.1] - 2024-09-12
|
7
|
+
* **[fix]** `RubySmart::SimpleLogger::KlassLogger` not forwarding kwargs
|
8
|
+
|
3
9
|
## [1.5.0] - 2024-09-12
|
4
10
|
* **[add]** `SimpleLogger.scene?`-method to check for registered scene options
|
5
11
|
* **[ref]** scene options to **keyword**-args _(**WARNING:** This may break existing calls to the scene methods)_
|
@@ -32,8 +32,8 @@ module RubySmart
|
|
32
32
|
@klass_logger = nil
|
33
33
|
end
|
34
34
|
|
35
|
-
def method_missing(name, *args, &block)
|
36
|
-
return self.klass_logger.send(name, *args, &block) if self.klass_logger.respond_to? name
|
35
|
+
def method_missing(name, *args, **kwargs, &block)
|
36
|
+
return self.klass_logger.send(name, *args, **kwargs, &block) if self.klass_logger.respond_to? name
|
37
37
|
super
|
38
38
|
end
|
39
39
|
|
@@ -361,7 +361,7 @@ module RubySmart
|
|
361
361
|
case status
|
362
362
|
when :success
|
363
363
|
# show verbose logging for updated records
|
364
|
-
if opts[:verbose]
|
364
|
+
if opts[:verbose] && !model.previously_new_record?
|
365
365
|
self.success("#{mdl_string} (#{model.previous_changes.inspect})", tag: "#{model.class.name.upcase}|UPDATED", **opts)
|
366
366
|
else
|
367
367
|
self.success(mdl_string, tag: "#{model.class.name.upcase}|#{(model.previously_new_record? ? 'CREATED' : 'UPDATED')}", **opts)
|