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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/rimless/configuration.rb +4 -0
- data/lib/rimless/consumer.rb +4 -0
- data/lib/rimless/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca11e9cb748578dec4408dc0feb03a614e880ed4246b00fcf4a35a1fd50fc94a
|
4
|
+
data.tar.gz: e0eeb43e9d108b3fc597c444d495e3dc5dc5ae8c409742197c80524ab10a4f92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(',')
|
data/lib/rimless/consumer.rb
CHANGED
@@ -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
|
data/lib/rimless/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2023-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|