messaging-stash 0.1.3 → 0.1.4
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/Gemfile.lock +4 -3
- data/lib/messaging/kafka/message_receiver.rb +3 -1
- data/lib/messaging/stash/version.rb +1 -1
- data/messaging-stash.gemspec +1 -0
- metadata +16 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 27efd49826ca6197fd15318a42f22cc30bc8cb6107fcade99fddc4514e646671
         | 
| 4 | 
            +
              data.tar.gz: 6ab8453ec2103669e23f7fc68ee40bd2d0b221b86ef78cf8b6565ea286f1a157
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: bc2747b3c2bdc0279216f6438140a05253ce48b0b194d9f33632d4e74b7ef46a36ce1ed3eec9758175ee9a0a161f19cc4b31332bd4223d5fe0bb932d5c2f41a1
         | 
| 7 | 
            +
              data.tar.gz: 27db367e48ed5782ee795937c33c4c970b09696c95e11979b46ef125002ec6f8ad0b303e70707b34f54b433444f5b9c8bce94e5b468f665690dc26857cfb02c2
         | 
    
        data/Gemfile.lock
    CHANGED
    
    | @@ -1,7 +1,8 @@ | |
| 1 1 | 
             
            PATH
         | 
| 2 2 | 
             
              remote: .
         | 
| 3 3 | 
             
              specs:
         | 
| 4 | 
            -
                messaging-stash (0.1. | 
| 4 | 
            +
                messaging-stash (0.1.3)
         | 
| 5 | 
            +
                  activesupport (>= 5.2.0)
         | 
| 5 6 | 
             
                  phobos (>= 1.7.1)
         | 
| 6 7 |  | 
| 7 8 | 
             
            GEM
         | 
| @@ -25,7 +26,7 @@ GEM | |
| 25 26 | 
             
                  multi_json (~> 1.10)
         | 
| 26 27 | 
             
                minitest (5.11.3)
         | 
| 27 28 | 
             
                multi_json (1.13.1)
         | 
| 28 | 
            -
                phobos (1.7. | 
| 29 | 
            +
                phobos (1.7.2)
         | 
| 29 30 | 
             
                  activesupport (>= 3.0.0)
         | 
| 30 31 | 
             
                  concurrent-ruby (>= 1.0.2)
         | 
| 31 32 | 
             
                  concurrent-ruby-ext (>= 1.0.2)
         | 
| @@ -47,7 +48,7 @@ GEM | |
| 47 48 | 
             
                  diff-lcs (>= 1.2.0, < 2.0)
         | 
| 48 49 | 
             
                  rspec-support (~> 3.7.0)
         | 
| 49 50 | 
             
                rspec-support (3.7.1)
         | 
| 50 | 
            -
                ruby-kafka (0. | 
| 51 | 
            +
                ruby-kafka (0.6.7)
         | 
| 51 52 | 
             
                thor (0.20.0)
         | 
| 52 53 | 
             
                thread_safe (0.3.6)
         | 
| 53 54 | 
             
                tzinfo (1.2.5)
         | 
| @@ -1,4 +1,6 @@ | |
| 1 1 | 
             
            require 'json'
         | 
| 2 | 
            +
            require 'active_support/core_ext/hash/indifferent_access'
         | 
| 3 | 
            +
             | 
| 2 4 | 
             
            module Messaging
         | 
| 3 5 | 
             
              module Kafka
         | 
| 4 6 | 
             
                class MessageReceiver < Messaging::Messages::MessageReceiver
         | 
| @@ -10,7 +12,7 @@ module Messaging | |
| 10 12 | 
             
                  def consume(payload, metadata)
         | 
| 11 13 | 
             
                    begin
         | 
| 12 14 | 
             
                      # metadata comes through as a hash, no need to parse
         | 
| 13 | 
            -
                      payload_hash =  JSON.parse(payload)
         | 
| 15 | 
            +
                      payload_hash =  JSON.parse(payload).with_indifferent_access
         | 
| 14 16 | 
             
                      Messaging::Kafka::MessageLogger.message_received(payload_hash, metadata)
         | 
| 15 17 | 
             
                      process(payload_hash, metadata)
         | 
| 16 18 | 
             
                      Messaging::Kafka::MessageLogger.message_processed(payload_hash, metadata)
         | 
    
        data/messaging-stash.gemspec
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: messaging-stash
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.1. | 
| 4 | 
            +
              version: 0.1.4
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Alex Kaufman
         | 
| @@ -9,7 +9,7 @@ authors: | |
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: exe
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date: 2018-06- | 
| 12 | 
            +
            date: 2018-06-19 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: bundler
         | 
| @@ -67,6 +67,20 @@ dependencies: | |
| 67 67 | 
             
                - - ">="
         | 
| 68 68 | 
             
                  - !ruby/object:Gem::Version
         | 
| 69 69 | 
             
                    version: 1.7.1
         | 
| 70 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 71 | 
            +
              name: activesupport
         | 
| 72 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 73 | 
            +
                requirements:
         | 
| 74 | 
            +
                - - ">="
         | 
| 75 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 76 | 
            +
                    version: 5.2.0
         | 
| 77 | 
            +
              type: :runtime
         | 
| 78 | 
            +
              prerelease: false
         | 
| 79 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 80 | 
            +
                requirements:
         | 
| 81 | 
            +
                - - ">="
         | 
| 82 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 83 | 
            +
                    version: 5.2.0
         | 
| 70 84 | 
             
            description: This contains all the code for using phobos in a ruby project
         | 
| 71 85 | 
             
            email:
         | 
| 72 86 | 
             
            - alex@stashinvest.com
         |