kafkr 0.5.5 → 0.5.7
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
 - data/lib/kafkr/consumer.rb +1 -3
 - data/lib/kafkr/producer.rb +1 -0
 - data/lib/kafkr/version.rb +1 -1
 - metadata +3 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 61f0dfd7c65259a4684880f7a1ba6f7749f95de46e4eee8faf4b6d629604f3d2
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: e8ca8789b46ea257d93381e54b4ae8ad343e38fbf16bae276527f1abc3128867
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 882d352ee426b9ea072d70cefa25502fcb56a616672ddae678f7f7390a6958f40657bd53cd05f4921717b46ac3129bb95bd996c5a5998c491d1673c5c0cac6a3
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 711faef688da9ec89affd06f51e8b7a57af39e37a9e214425e3a15e1bf755852e754e1188445f831eaa4e785c4cf583ae3863c73599325b64c0f4672efc0e225
         
     | 
    
        data/lib/kafkr/consumer.rb
    CHANGED
    
    | 
         @@ -163,8 +163,7 @@ module Kafkr 
     | 
|
| 
       163 
163 
     | 
    
         
             
                def listen_for(message, send_message)
         
     | 
| 
       164 
164 
     | 
    
         
             
                  attempt = 0
         
     | 
| 
       165 
165 
     | 
    
         
             
                  begin
         
     | 
| 
       166 
     | 
    
         
            -
                    socket = TCPSocket.new( Consumer.configuration.host,  Consumer.configuration.port)
         
     | 
| 
       167 
     | 
    
         
            -
                    puts "Connected to server. #{Consumer.configuration.host} #{Consumer.configuration.port} " if attempt == 0
         
     | 
| 
      
 166 
     | 
    
         
            +
                    socket = TCPSocket.new( Consumer.configuration.host,  Consumer.configuration.port)        
         
     | 
| 
       168 
167 
     | 
    
         
             
                    attempt = 0
         
     | 
| 
       169 
168 
     | 
    
         | 
| 
       170 
169 
     | 
    
         
             
                    Timeout.timeout(20) do
         
     | 
| 
         @@ -207,7 +206,6 @@ module Kafkr 
     | 
|
| 
       207 
206 
     | 
    
         
             
                  attempt = 0
         
     | 
| 
       208 
207 
     | 
    
         
             
                  loop do
         
     | 
| 
       209 
208 
     | 
    
         
             
                    socket = TCPSocket.new(Consumer.configuration.host,  Consumer.configuration.port)
         
     | 
| 
       210 
     | 
    
         
            -
                    puts "Connected to server. #{Consumer.configuration.host} #{Consumer.configuration.port} " if attempt == 0
         
     | 
| 
       211 
209 
     | 
    
         
             
                    attempt = 0
         
     | 
| 
       212 
210 
     | 
    
         | 
| 
       213 
211 
     | 
    
         
             
                    loop do
         
     | 
    
        data/lib/kafkr/producer.rb
    CHANGED
    
    | 
         @@ -18,6 +18,7 @@ module Kafkr 
     | 
|
| 
       18 
18 
     | 
    
         
             
                  @configuration.queue_file = MESSAGE_QUEUE
         
     | 
| 
       19 
19 
     | 
    
         
             
                  @configuration.acknowledged_file = ACKNOWLEDGED_MESSAGE_QUEUE
         
     | 
| 
       20 
20 
     | 
    
         
             
                  @configuration.message_queue = []
         
     | 
| 
      
 21 
     | 
    
         
            +
                  @configuration.acknowledged_messages = []
         
     | 
| 
       21 
22 
     | 
    
         
             
                  @configuration.acknowledged_messages = load_acknowledged_messages
         
     | 
| 
       22 
23 
     | 
    
         
             
                  load_queue_from_file
         
     | 
| 
       23 
24 
     | 
    
         
             
                  @configuration
         
     | 
    
        data/lib/kafkr/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: kafkr
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.5. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.5.7
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Delaney Kuldvee Burke
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2024-01-19 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: gibberish
         
     | 
| 
         @@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       71 
71 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       72 
72 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       73 
73 
     | 
    
         
             
            requirements: []
         
     | 
| 
       74 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
      
 74 
     | 
    
         
            +
            rubygems_version: 3.5.3
         
     | 
| 
       75 
75 
     | 
    
         
             
            signing_key:
         
     | 
| 
       76 
76 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       77 
77 
     | 
    
         
             
            summary: A homage to kafkr implmented in ruby
         
     |