waterdrop 2.8.1 → 2.8.2
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.github/workflows/ci.yml +3 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +12 -10
- data/bin/verify_kafka_warnings +31 -0
- data/docker-compose.yml +1 -1
- data/lib/waterdrop/producer.rb +1 -0
- data/lib/waterdrop/version.rb +1 -1
- data/waterdrop.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -2
- metadata.gz.sig +0 -0
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: f1dd1ecba0be29bdf637575f0fe8eaea654900f7466d5840c62fbcdeb5000492
         | 
| 4 | 
            +
              data.tar.gz: 663b683a670ec1df3700dd3440c80435b376c493bcdb7d024eedcc9a9c7b0de9
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 8ff3c1d142dd9d855c7a26223ceefa973764dfde23b0ec8530999e87d52b7827b7180b30dd1f9f545a65eb7e1b00a8ddf753baa4fa365b93ec997450491ddc9b
         | 
| 7 | 
            +
              data.tar.gz: 0fee34d4935ee757fef55ae9205570894b20894b839a1e6abd80fa918eb7d733603a0c791b3d81c73fd913699f07a1ddf1d3af9921722713accdb8bc90a17255
         | 
    
        checksums.yaml.gz.sig
    CHANGED
    
    | Binary file | 
    
        data/.github/workflows/ci.yml
    CHANGED
    
    
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,5 +1,9 @@ | |
| 1 1 | 
             
            # WaterDrop changelog
         | 
| 2 2 |  | 
| 3 | 
            +
            ## 2.8.2 (2025-02-13)
         | 
| 4 | 
            +
            - [Feature] Allow for tagging of producer instances similar to how consumers can be tagged.
         | 
| 5 | 
            +
            - [Refactor] Ensure all test topics in the test suite start with "it-" prefix. 
         | 
| 6 | 
            +
             | 
| 3 7 | 
             
            ## 2.8.1 (2024-12-26)
         | 
| 4 8 | 
             
            - [Enhancement] Raise `WaterDrop::ProducerNotTransactionalError` when attempting to use transactions on a non-transactional producer.
         | 
| 5 9 | 
             
            - [Fix] Disallow closing a producer from within a transaction.
         | 
    
        data/Gemfile.lock
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            PATH
         | 
| 2 2 | 
             
              remote: .
         | 
| 3 3 | 
             
              specs:
         | 
| 4 | 
            -
                waterdrop (2.8. | 
| 4 | 
            +
                waterdrop (2.8.2)
         | 
| 5 5 | 
             
                  karafka-core (>= 2.4.3, < 3.0.0)
         | 
| 6 6 | 
             
                  karafka-rdkafka (>= 0.17.5)
         | 
| 7 7 | 
             
                  zeitwerk (~> 2.3)
         | 
| @@ -9,8 +9,9 @@ PATH | |
| 9 9 | 
             
            GEM
         | 
| 10 10 | 
             
              remote: https://rubygems.org/
         | 
| 11 11 | 
             
              specs:
         | 
| 12 | 
            -
                activesupport (7.2.1)
         | 
| 12 | 
            +
                activesupport (7.2.2.1)
         | 
| 13 13 | 
             
                  base64
         | 
| 14 | 
            +
                  benchmark (>= 0.3)
         | 
| 14 15 | 
             
                  bigdecimal
         | 
| 15 16 | 
             
                  concurrent-ruby (~> 1.0, >= 1.3.1)
         | 
| 16 17 | 
             
                  connection_pool (>= 2.2.5)
         | 
| @@ -21,17 +22,18 @@ GEM | |
| 21 22 | 
             
                  securerandom (>= 0.3)
         | 
| 22 23 | 
             
                  tzinfo (~> 2.0, >= 2.0.5)
         | 
| 23 24 | 
             
                base64 (0.2.0)
         | 
| 24 | 
            -
                 | 
| 25 | 
            +
                benchmark (0.4.0)
         | 
| 26 | 
            +
                bigdecimal (3.1.9)
         | 
| 25 27 | 
             
                byebug (11.1.3)
         | 
| 26 | 
            -
                concurrent-ruby (1.3. | 
| 28 | 
            +
                concurrent-ruby (1.3.5)
         | 
| 27 29 | 
             
                connection_pool (2.4.1)
         | 
| 28 30 | 
             
                diff-lcs (1.5.1)
         | 
| 29 31 | 
             
                docile (1.4.1)
         | 
| 30 32 | 
             
                drb (2.2.1)
         | 
| 31 | 
            -
                factory_bot (6.5. | 
| 32 | 
            -
                  activesupport (>=  | 
| 33 | 
            +
                factory_bot (6.5.1)
         | 
| 34 | 
            +
                  activesupport (>= 6.1.0)
         | 
| 33 35 | 
             
                ffi (1.17.0)
         | 
| 34 | 
            -
                i18n (1.14. | 
| 36 | 
            +
                i18n (1.14.7)
         | 
| 35 37 | 
             
                  concurrent-ruby (~> 1.0)
         | 
| 36 38 | 
             
                karafka-core (2.4.4)
         | 
| 37 39 | 
             
                  karafka-rdkafka (>= 0.15.0, < 0.18.0)
         | 
| @@ -39,9 +41,9 @@ GEM | |
| 39 41 | 
             
                  ffi (~> 1.15)
         | 
| 40 42 | 
             
                  mini_portile2 (~> 2.6)
         | 
| 41 43 | 
             
                  rake (> 12)
         | 
| 42 | 
            -
                logger (1.6. | 
| 44 | 
            +
                logger (1.6.5)
         | 
| 43 45 | 
             
                mini_portile2 (2.8.7)
         | 
| 44 | 
            -
                minitest (5.25. | 
| 46 | 
            +
                minitest (5.25.4)
         | 
| 45 47 | 
             
                ostruct (0.6.1)
         | 
| 46 48 | 
             
                rake (13.2.1)
         | 
| 47 49 | 
             
                rspec (3.13.0)
         | 
| @@ -57,7 +59,7 @@ GEM | |
| 57 59 | 
             
                  diff-lcs (>= 1.2.0, < 2.0)
         | 
| 58 60 | 
             
                  rspec-support (~> 3.13.0)
         | 
| 59 61 | 
             
                rspec-support (3.13.1)
         | 
| 60 | 
            -
                securerandom (0.3. | 
| 62 | 
            +
                securerandom (0.3.2)
         | 
| 61 63 | 
             
                simplecov (0.22.0)
         | 
| 62 64 | 
             
                  docile (~> 1.1)
         | 
| 63 65 | 
             
                  simplecov-html (~> 0.11)
         | 
| @@ -0,0 +1,31 @@ | |
| 1 | 
            +
            #!/bin/bash
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            # Checks Kafka logs for unsupported warning patterns
         | 
| 4 | 
            +
            # Only specified warnings are allowed, all others should trigger failure
         | 
| 5 | 
            +
             | 
| 6 | 
            +
            allowed_patterns=(
         | 
| 7 | 
            +
               "Performing controller activation"
         | 
| 8 | 
            +
               "registered with feature metadata.version"
         | 
| 9 | 
            +
            )
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            # Get all warnings
         | 
| 12 | 
            +
            warnings=$(docker logs --since=0 kafka | grep WARN)
         | 
| 13 | 
            +
            exit_code=0
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            while IFS= read -r line; do
         | 
| 16 | 
            +
               allowed=0
         | 
| 17 | 
            +
               for pattern in "${allowed_patterns[@]}"; do
         | 
| 18 | 
            +
                   if echo "$line" | grep -q "$pattern"; then
         | 
| 19 | 
            +
                       allowed=1
         | 
| 20 | 
            +
                       break
         | 
| 21 | 
            +
                   fi
         | 
| 22 | 
            +
               done
         | 
| 23 | 
            +
             | 
| 24 | 
            +
               if [ $allowed -eq 0 ]; then
         | 
| 25 | 
            +
                   echo "Unexpected warning found:"
         | 
| 26 | 
            +
                   echo "$line"
         | 
| 27 | 
            +
                   exit_code=1
         | 
| 28 | 
            +
               fi
         | 
| 29 | 
            +
            done <<< "$warnings"
         | 
| 30 | 
            +
             | 
| 31 | 
            +
            exit $exit_code
         | 
    
        data/docker-compose.yml
    CHANGED
    
    
    
        data/lib/waterdrop/producer.rb
    CHANGED
    
    | @@ -9,6 +9,7 @@ module WaterDrop | |
| 9 9 | 
             
                include Buffer
         | 
| 10 10 | 
             
                include Transactions
         | 
| 11 11 | 
             
                include ::Karafka::Core::Helpers::Time
         | 
| 12 | 
            +
                include ::Karafka::Core::Taggable
         | 
| 12 13 |  | 
| 13 14 | 
             
                # Local storage for given thread waterdrop client references for variants
         | 
| 14 15 | 
             
                ::Fiber.send(:attr_accessor, :waterdrop_clients)
         | 
    
        data/lib/waterdrop/version.rb
    CHANGED
    
    
    
        data/waterdrop.gemspec
    CHANGED
    
    | @@ -28,7 +28,7 @@ Gem::Specification.new do |spec| | |
| 28 28 |  | 
| 29 29 | 
             
              spec.cert_chain    = %w[certs/cert.pem]
         | 
| 30 30 | 
             
              spec.files         = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec)/}) }
         | 
| 31 | 
            -
              spec.executables   =  | 
| 31 | 
            +
              spec.executables   = []
         | 
| 32 32 | 
             
              spec.require_paths = %w[lib]
         | 
| 33 33 |  | 
| 34 34 | 
             
              spec.metadata = {
         | 
    
        data.tar.gz.sig
    CHANGED
    
    | Binary file | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: waterdrop
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 2.8. | 
| 4 | 
            +
              version: 2.8.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Maciej Mensfeld
         | 
| @@ -34,7 +34,7 @@ cert_chain: | |
| 34 34 | 
             
              i9zWxov0mr44TWegTVeypcWGd/0nxu1+QHVNHJrpqlPBRvwQsUm7fwmRInGpcaB8
         | 
| 35 35 | 
             
              ap8wNYvryYzrzvzUxIVFBVM5PacgkFqRmolCa8I7tdKQN+R1
         | 
| 36 36 | 
             
              -----END CERTIFICATE-----
         | 
| 37 | 
            -
            date:  | 
| 37 | 
            +
            date: 2025-02-13 00:00:00.000000000 Z
         | 
| 38 38 | 
             
            dependencies:
         | 
| 39 39 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 40 40 | 
             
              name: karafka-core
         | 
| @@ -106,6 +106,7 @@ files: | |
| 106 106 | 
             
            - Gemfile.lock
         | 
| 107 107 | 
             
            - LICENSE
         | 
| 108 108 | 
             
            - README.md
         | 
| 109 | 
            +
            - bin/verify_kafka_warnings
         | 
| 109 110 | 
             
            - certs/cert.pem
         | 
| 110 111 | 
             
            - config/locales/errors.yml
         | 
| 111 112 | 
             
            - docker-compose.yml
         | 
    
        metadata.gz.sig
    CHANGED
    
    | Binary file |