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: a08f3caf3bd643806e098079f29a399c3b99bf5d84528d1e2c034276b99ca2c9
4
- data.tar.gz: 2a3caee2427ae5d8a51d7931749ac61c338af688c56993f48b9f412dffa85b98
3
+ metadata.gz: 24fc41cd1546a608cc5f7e77aed469d8661cf71d10230b27343427c34007b0a7
4
+ data.tar.gz: 00f4a18fc2b02db13cc18552607b05c47ec6c5861b3eb61a733ff6b167fc3fb9
5
5
  SHA512:
6
- metadata.gz: ccac78a543d4f6a20d15b86f044754fef1478bb7636607d228e359fa56093838dc1805bdc7147baa8845f97227cf06cc4ace949b3e14ec82745d2ee94c61c4bb
7
- data.tar.gz: 44b6f4000abfff0f7b0f84eafd9caddf2708892576b6a8ed1d826490ae10795d8aa484ce70829884b23195cef7c52dce51e0801ef55af7321ca812e3527f2195
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)_
@@ -10,7 +10,7 @@ module RubySmart
10
10
  module VERSION
11
11
  MAJOR = 1
12
12
  MINOR = 5
13
- TINY = 0
13
+ TINY = 2
14
14
  PRE = nil
15
15
 
16
16
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -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] != false && !model.previously_new_record?
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_smart-simple_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Gonsior