karafka-core 2.5.11 → 2.5.12

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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +3 -3
  3. data/.github/workflows/push.yml +1 -1
  4. data/CHANGELOG.md +3 -0
  5. data/Gemfile.lock +1 -1
  6. data/karafka-core.gemspec +1 -1
  7. data/lib/karafka/core/version.rb +1 -1
  8. metadata +1 -25
  9. data/test/lib/karafka/core/configurable/leaf_test.rb +0 -3
  10. data/test/lib/karafka/core/configurable/node_test.rb +0 -3
  11. data/test/lib/karafka/core/configurable_test.rb +0 -504
  12. data/test/lib/karafka/core/contractable/contract_test.rb +0 -241
  13. data/test/lib/karafka/core/contractable/result_test.rb +0 -106
  14. data/test/lib/karafka/core/contractable/rule_test.rb +0 -5
  15. data/test/lib/karafka/core/contractable_test.rb +0 -3
  16. data/test/lib/karafka/core/helpers/time_test.rb +0 -29
  17. data/test/lib/karafka/core/instrumentation/callbacks_manager_test.rb +0 -81
  18. data/test/lib/karafka/core/instrumentation_test.rb +0 -35
  19. data/test/lib/karafka/core/monitoring/event_test.rb +0 -62
  20. data/test/lib/karafka/core/monitoring/monitor_test.rb +0 -237
  21. data/test/lib/karafka/core/monitoring/notifications_test.rb +0 -275
  22. data/test/lib/karafka/core/monitoring/statistics_decorator_test.rb +0 -503
  23. data/test/lib/karafka/core/monitoring_test.rb +0 -3
  24. data/test/lib/karafka/core/patches/rdkafka/bindings_test.rb +0 -25
  25. data/test/lib/karafka/core/taggable/tags_test.rb +0 -66
  26. data/test/lib/karafka/core/taggable_test.rb +0 -36
  27. data/test/lib/karafka/core/version_test.rb +0 -5
  28. data/test/lib/karafka/core_test.rb +0 -13
  29. data/test/lib/karafka-core_test.rb +0 -3
  30. data/test/support/class_builder.rb +0 -24
  31. data/test/support/describe_current_helper.rb +0 -41
  32. data/test/test_helper.rb +0 -55
@@ -1,41 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Port of Karafka::Core::Helpers::RSpecLocator for minitest/spec
4
- # Provides `describe_current` that auto-discovers the class under test from file path,
5
- # `described_class` and `subject` DSL methods.
6
-
7
- require "karafka/core/helpers/minitest_locator"
8
-
9
- extend Karafka::Core::Helpers::MinitestLocator.new(
10
- File.expand_path("../test_helper.rb", __dir__)
11
- )
12
-
13
- # Provide `described_class` for minitest/spec — walks the desc hierarchy to find a Class/Module
14
- module MinitestDescribedClass
15
- def described_class
16
- # Walk up the describe hierarchy to find the Class/Module
17
- klass = self.class
18
- while klass
19
- return klass.desc if klass.respond_to?(:desc) && klass.desc.is_a?(Module)
20
-
21
- klass = klass.superclass
22
- end
23
- nil
24
- end
25
- end
26
-
27
- Minitest::Spec.include MinitestDescribedClass
28
-
29
- # Provide `subject` DSL for minitest/spec
30
- module MinitestSubjectDSL
31
- def subject(name = nil, &block)
32
- if name
33
- let(name, &block)
34
- define_method(:subject) { send(name) }
35
- else
36
- let(:subject, &block)
37
- end
38
- end
39
- end
40
-
41
- Minitest::Spec.extend MinitestSubjectDSL
data/test/test_helper.rb DELETED
@@ -1,55 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Warning[:performance] = true if RUBY_VERSION >= "3.3"
4
- Warning[:deprecated] = true
5
- $VERBOSE = true
6
-
7
- require "warning"
8
-
9
- Warning.process do |warning|
10
- next unless warning.include?(Dir.pwd)
11
-
12
- raise "Warning in your code: #{warning}"
13
- end
14
-
15
- ENV["KARAFKA_ENV"] = "test"
16
- $LOAD_PATH.unshift(File.dirname(__FILE__))
17
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
18
-
19
- %w[
20
- byebug
21
- simplecov
22
- tempfile
23
- securerandom
24
- ].each do |lib|
25
- require lib
26
- end
27
-
28
- # Don't include unnecessary stuff into rcov
29
- SimpleCov.start do
30
- add_filter "/vendor/"
31
- add_filter "/gems/"
32
- add_filter "/.bundle/"
33
- add_filter "/doc/"
34
- add_filter "/test/"
35
- add_filter "/config/"
36
- add_filter "/patches/"
37
- merge_timeout 600
38
- end
39
-
40
- SimpleCov.minimum_coverage(98.8)
41
-
42
- require "minitest/autorun"
43
- require "minitest/spec"
44
-
45
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"]
46
- .each { |f| require f }
47
-
48
- require "karafka-core"
49
-
50
- # Allow `context` as an alias for `describe` in minitest/spec
51
- Minitest::Spec.class_eval do
52
- class << self
53
- alias_method :context, :describe
54
- end
55
- end