rimless 1.4.2 → 1.5.0

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: 5eb06c668517f7d1e2e2a122cdd8586ada5c6c69b8d08448e2163f4628b22b91
4
- data.tar.gz: b40442ca44912688d5230b25680c1c82f69845ad62f9420306e9710530542306
3
+ metadata.gz: ca11e9cb748578dec4408dc0feb03a614e880ed4246b00fcf4a35a1fd50fc94a
4
+ data.tar.gz: e0eeb43e9d108b3fc597c444d495e3dc5dc5ae8c409742197c80524ab10a4f92
5
5
  SHA512:
6
- metadata.gz: d2ec34319a309770fd831655c2e370da52e55f43118c3d61b3a28a3dbc625840e776234a54d481e1c9bfff9f16b75df90bc2cf56ec00e6266be1a121cead757e
7
- data.tar.gz: e13af984580349ed5567be7bf8c7513e3ef03dacb59f4b329cb0769ff82e0260d04bcb027907400aed59f5e5e6e5571f6e1e42db2da08c3cb9f43b541f58f0dd
6
+ metadata.gz: d321ea014b0f430f7abfdb237fb25b9cc038096d4bdd08418c60b6860639978257b01174c3771a7ff1ad5c3a6ecd93195f019cdebaf0985a6292594b01405aeb
7
+ data.tar.gz: de2422512c170072d535318de20922f1a47f80d6f75c9425d1ef847b61ae82c42b0e34b9c4593b0f613f309fda49aeb201dfae7fca8db4bb7f5ea428dee176fb
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  * TODO: Replace this bullet point with an actual description of a change.
4
4
 
5
+ ### 1.5.0
6
+
7
+ * Do not extend the `Rimless.logger` to write to stdout by default when running
8
+ in the `development` environment - this generates duplicated messages when
9
+ the configured logger already writes to stdout. A new configuration was added
10
+ `Rimless.configuration.extend_dev_logger = false` was added (#32)
11
+
5
12
  ### 1.4.2
6
13
 
7
14
  * Reverted to use `yield_self` instead of `then` in order to support Ruby 2.5
@@ -27,6 +27,10 @@ module Rimless
27
27
  Logger.new($stdout)
28
28
  end
29
29
 
30
+ # Whenever the logger should be extended to write to stdout when
31
+ # running in development environment (Rimless.env)
32
+ config_accessor(:extend_dev_logger) { false }
33
+
30
34
  # At least one broker of the Apache Kafka cluster
31
35
  config_accessor(:kafka_brokers) do
32
36
  ENV.fetch('KAFKA_BROKERS', 'kafka://message-bus.local:9092').split(',')
@@ -88,6 +88,10 @@ module Rimless
88
88
  # When we run in development mode, we want to write the logs
89
89
  # to file and to stdout.
90
90
  def initialize_logger!
91
+ # Skip when configured not to extend the logger
92
+ return unless Rimless.configuration.extend_dev_logger
93
+
94
+ # Skip when not in development environment or in the server process
91
95
  return unless Rimless.env.development? && server?
92
96
 
93
97
  $stdout.sync = true
@@ -3,7 +3,7 @@
3
3
  # The gem version details.
4
4
  module Rimless
5
5
  # The version of the +rimless+ gem
6
- VERSION = '1.4.2'
6
+ VERSION = '1.5.0'
7
7
 
8
8
  class << self
9
9
  # Returns the version of gem as a string.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rimless
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-12 00:00:00.000000000 Z
11
+ date: 2023-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport