karafka 1.4.4 → 1.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 315219748ef2c007721a9a193232b34add1792386d55764c9fd7d5054f70086e
4
- data.tar.gz: 29d91273e9eba6dc86c834ce8dd3d727243c8d0d5d877072700a11753032bbfd
3
+ metadata.gz: cece2722193b4847122f13f76ed00c8452e8905324c1c15fa957c0ae1668d7be
4
+ data.tar.gz: e3dd2266eab30ffb325b3e3a7a76bd508ad36823814e59f60954498c284c9060
5
5
  SHA512:
6
- metadata.gz: cb999b3707fbe26fc631f68897d5924f7f5378b7bcb4a1854d4fab0670ab0d91fffce8692937c36f494963fed8be8ad99d841ddaea917aa65bb33c0bc87a7cd9
7
- data.tar.gz: adcc4898e6bc94873bbb33da5b7ffb61b95738e77113e7da105a4174ed81399d1dbb33f3f1a20a56cc8870c6cdab9f21dbe15b420c8d8488cca038e2a47d32f9
6
+ metadata.gz: e761e7c4de55708bffb6228ab6a30e55a6797fa9210d337a433626fdfb637f73af436f58b0dfe05e7f0fc7c6982a21b8038c5508e998aa7594e70888a181e688
7
+ data.tar.gz: 4c0bc1792a6e0e35bb43f5c13e37639f3327037b38d892cd3bc6f048e9a621cbc6569d7923bb08d21f9892495aa22f8eb53fc02c93bc3528b48ceeac129622a5
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- 1��3���g*ϛ�&������t�h�| AT~�9�^YQ����d�E3��q#s7��ߊ?GeODr&�NDh;�D5gsz��K��.��AXT��o��I���g���c)(� ��)v�濬���Ğ�+�գ��.á����,?����9@\[��i7v̢a(���r#_s����<�6 �"�0�;�S� d��>=�h~�m�}���sv]xǵ
2
- c"��T6^=���������61�-ap�<���/p6x��V<�nD!�3����
1
+ 1#�C��8����ɤ��iooI��L'M2lP �%Ԗ�P<�М�x@���V�¢�{gZ��ή�k"����J�@��?���+�� ��з)A3e�����p
2
+ U)58rFg�
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Karafka framework changelog
2
2
 
3
+ ## 1.4.5 (2021-06-16)
4
+ - Fixup logger checks for non-writeable logfile (ojab)
5
+ - #689 - Update the stdout initialization message for framework initialization
6
+
3
7
  ## 1.4.4 (2021-04-19)
4
8
  - Remove Ruby 2.5 support and update minimum Ruby requirement to 2.6
5
9
  - Remove rake dependency
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka (1.4.4)
4
+ karafka (1.4.5)
5
5
  dry-configurable (~> 0.8)
6
6
  dry-inflector (~> 0.1)
7
7
  dry-monitor (~> 0.3)
@@ -16,28 +16,28 @@ PATH
16
16
  GEM
17
17
  remote: https://rubygems.org/
18
18
  specs:
19
- activesupport (6.1.3.1)
19
+ activesupport (6.1.3.2)
20
20
  concurrent-ruby (~> 1.0, >= 1.0.2)
21
21
  i18n (>= 1.6, < 2)
22
22
  minitest (>= 5.1)
23
23
  tzinfo (~> 2.0)
24
24
  zeitwerk (~> 2.3)
25
25
  byebug (11.1.3)
26
- concurrent-ruby (1.1.8)
26
+ concurrent-ruby (1.1.9)
27
27
  delivery_boy (1.1.0)
28
28
  king_konf (~> 1.0)
29
29
  ruby-kafka (~> 1.0)
30
30
  diff-lcs (1.4.4)
31
31
  digest-crc (0.6.3)
32
32
  rake (>= 12.0.0, < 14.0.0)
33
- docile (1.3.5)
33
+ docile (1.4.0)
34
34
  dry-configurable (0.12.1)
35
35
  concurrent-ruby (~> 1.0)
36
36
  dry-core (~> 0.5, >= 0.5.0)
37
- dry-container (0.7.2)
37
+ dry-container (0.8.0)
38
38
  concurrent-ruby (~> 1.0)
39
39
  dry-configurable (~> 0.1, >= 0.1.3)
40
- dry-core (0.5.0)
40
+ dry-core (0.6.0)
41
41
  concurrent-ruby (~> 1.0)
42
42
  dry-equalizer (0.3.0)
43
43
  dry-events (0.3.0)
@@ -45,7 +45,7 @@ GEM
45
45
  dry-core (~> 0.5, >= 0.5)
46
46
  dry-inflector (0.2.0)
47
47
  dry-initializer (3.0.4)
48
- dry-logic (1.1.1)
48
+ dry-logic (1.2.0)
49
49
  concurrent-ruby (~> 1.0)
50
50
  dry-core (~> 0.5, >= 0.5)
51
51
  dry-monitor (0.4.0)
@@ -72,9 +72,9 @@ GEM
72
72
  dry-equalizer (~> 0.2)
73
73
  dry-initializer (~> 3.0)
74
74
  dry-schema (~> 1.5, >= 1.5.2)
75
- envlogic (1.1.2)
75
+ envlogic (1.1.3)
76
76
  dry-inflector (~> 0.1)
77
- factory_bot (6.1.0)
77
+ factory_bot (6.2.0)
78
78
  activesupport (>= 5.0.0)
79
79
  i18n (1.8.10)
80
80
  concurrent-ruby (~> 1.0)
@@ -106,7 +106,7 @@ GEM
106
106
  simplecov-html (~> 0.11)
107
107
  simplecov_json_formatter (~> 0.1)
108
108
  simplecov-html (0.12.3)
109
- simplecov_json_formatter (0.1.2)
109
+ simplecov_json_formatter (0.1.3)
110
110
  thor (1.1.0)
111
111
  tzinfo (2.0.4)
112
112
  concurrent-ruby (~> 1.0)
@@ -120,7 +120,8 @@ GEM
120
120
  zeitwerk (2.4.2)
121
121
 
122
122
  PLATFORMS
123
- ruby
123
+ x86_64-darwin
124
+ x86_64-darwin-19
124
125
  x86_64-linux
125
126
 
126
127
  DEPENDENCIES
@@ -131,4 +132,4 @@ DEPENDENCIES
131
132
  simplecov
132
133
 
133
134
  BUNDLED WITH
134
- 2.2.15
135
+ 2.2.20
data/README.md CHANGED
@@ -5,8 +5,6 @@
5
5
  [![Join the chat at https://gitter.im/karafka/karafka](https://badges.gitter.im/karafka/karafka.svg)](https://gitter.im/karafka/karafka)
6
6
 
7
7
  **Note**: We're finishing the new Karafka `2.0` but for now, please use `1.4`. All the documentation presented here refers to `1.4`
8
- ..
9
- Documentation presented here refers to Karafka `1.4`.
10
8
 
11
9
  ## About Karafka
12
10
 
@@ -20,7 +20,6 @@ module Karafka
20
20
  # @param _args Any arguments that we don't care about but that are needed in order to
21
21
  # make this logger compatible with the default Ruby one
22
22
  def initialize(*_args)
23
- ensure_dir_exists
24
23
  super(target)
25
24
  self.level = ENV_MAP[Karafka.env] || ENV_MAP['default']
26
25
  end
@@ -33,14 +32,7 @@ module Karafka
33
32
  def target
34
33
  Karafka::Helpers::MultiDelegator
35
34
  .delegate(:write, :close)
36
- .to($stdout, file)
37
- end
38
-
39
- # Makes sure the log directory exists as long as we can write to it
40
- def ensure_dir_exists
41
- FileUtils.mkdir_p(File.dirname(log_path))
42
- rescue Errno::EACCES, Errno::EROFS
43
- nil
35
+ .to(*[$stdout, file].compact)
44
36
  end
45
37
 
46
38
  # @return [Pathname] Path to a file to which we should log
@@ -51,7 +43,11 @@ module Karafka
51
43
  # @return [File] file to which we want to write our logs
52
44
  # @note File is being opened in append mode ('a')
53
45
  def file
46
+ FileUtils.mkdir_p(File.dirname(log_path))
47
+
54
48
  @file ||= File.open(log_path, 'a')
49
+ rescue Errno::EACCES, Errno::EROFS
50
+ nil
55
51
  end
56
52
  end
57
53
  end
@@ -103,10 +103,10 @@ module Karafka
103
103
  info "Responded from #{calling.class} using #{responder} with following data #{data}"
104
104
  end
105
105
 
106
- # Logs info that we're initializing Karafka app
106
+ # Logs info that we're initializing Karafka framework components
107
107
  # @param _event [Dry::Events::Event] event details including payload
108
108
  def on_app_initializing(_event)
109
- info "Initializing Karafka server #{::Process.pid}"
109
+ info "Initializing Karafka framework #{::Process.pid}"
110
110
  end
111
111
 
112
112
  # Logs info that we're running Karafka app
@@ -54,7 +54,7 @@ class KarafkaApp < Karafka::App
54
54
  # listen to only what you really need for given environment.
55
55
  Karafka.monitor.subscribe(WaterDrop::Instrumentation::StdoutListener.new)
56
56
  Karafka.monitor.subscribe(Karafka::Instrumentation::StdoutListener.new)
57
- Karafka.monitor.subscribe(Karafka::Instrumentation::ProctitleListener.new)
57
+ # Karafka.monitor.subscribe(Karafka::Instrumentation::ProctitleListener.new)
58
58
 
59
59
  # Uncomment that in order to achieve code reload in development mode
60
60
  # Be aware, that this might have some side-effects. Please refer to the wiki
@@ -3,5 +3,5 @@
3
3
  # Main module namespace
4
4
  module Karafka
5
5
  # Current Karafka version
6
- VERSION = '1.4.4'
6
+ VERSION = '1.4.5'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: karafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Mensfeld
@@ -36,7 +36,7 @@ cert_chain:
36
36
  2DND//YJUikn1zwbz1kT70XmHd97B4Eytpln7K+M1u2g1pHVEPW4owD/ammXNpUy
37
37
  nt70FcDD4yxJQ+0YNiHd0N8IcVBM1TMIVctMNQ==
38
38
  -----END CERTIFICATE-----
39
- date: 2021-04-19 00:00:00.000000000 Z
39
+ date: 2021-06-16 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: dry-configurable
@@ -306,7 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
306
306
  - !ruby/object:Gem::Version
307
307
  version: '0'
308
308
  requirements: []
309
- rubygems_version: 3.2.15
309
+ rubygems_version: 3.2.20
310
310
  signing_key:
311
311
  specification_version: 4
312
312
  summary: Ruby based framework for working with Apache Kafka
metadata.gz.sig CHANGED
Binary file