action_subscriber 4.5.0.pre0-java → 4.5.1-java
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 | 
            -
             | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 2 | 
            +
            SHA1:
         | 
| 3 | 
            +
              metadata.gz: 418e0e9995ee544bcf3f0bbaa259f97d2c153674
         | 
| 4 | 
            +
              data.tar.gz: e1cb48d9a03aa017f71490033c3b1c734fd4ff93
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 41b452e566fe34bb034f3c48b0eab5effe56834c7c47a3f138cd2809aec30c461b920614508ffa1221599765a98e74297cd08bc4f8cdf1279a82eb32c0269e6a
         | 
| 7 | 
            +
              data.tar.gz: af3b97416d64fbe824d02b451484ec1dddf47c226e1314f369dfe5f084ced3d79d6928d4cc3db50373d0c728b724cc06ab3349303b06fe292a7185f26f7a6f40
         | 
| @@ -63,7 +63,7 @@ module ActionSubscriber | |
| 63 63 | 
             
                      yaml_config = {}
         | 
| 64 64 | 
             
                      absolute_config_path = ::File.expand_path(::File.join("config", "action_subscriber.yml"))
         | 
| 65 65 | 
             
                      if ::File.exists?(absolute_config_path)
         | 
| 66 | 
            -
                        yaml_config = ::YAML. | 
| 66 | 
            +
                        yaml_config = ::YAML.load(::ERB.new(::File.read(absolute_config_path)).result)[env]
         | 
| 67 67 | 
             
                      end
         | 
| 68 68 |  | 
| 69 69 | 
             
                      ::ActionSubscriber::Configuration::DEFAULTS.each_pair do |key, value|
         | 
| @@ -12,6 +12,19 @@ describe ::ActionSubscriber::Configuration do | |
| 12 12 | 
             
                specify { expect(subject.tls).to eq(false) }
         | 
| 13 13 | 
             
              end
         | 
| 14 14 |  | 
| 15 | 
            +
              describe ".configure_from_yaml_and_cli" do
         | 
| 16 | 
            +
                context "when using a yaml file" do
         | 
| 17 | 
            +
                  let!(:sample_yaml_location) { ::File.expand_path(::File.join("spec", "support", "sample_config.yml")) }
         | 
| 18 | 
            +
             | 
| 19 | 
            +
                  before { allow(::File).to receive(:expand_path) { sample_yaml_location } }
         | 
| 20 | 
            +
             | 
| 21 | 
            +
                  it "parses any ERB in the yaml" do
         | 
| 22 | 
            +
                    expect(::ActionSubscriber.configuration).to receive(:password=).with("WAT").and_return(true)
         | 
| 23 | 
            +
                    ::ActionSubscriber::Configuration.configure_from_yaml_and_cli({}, true)
         | 
| 24 | 
            +
                  end
         | 
| 25 | 
            +
                end
         | 
| 26 | 
            +
              end
         | 
| 27 | 
            +
             | 
| 15 28 | 
             
              describe "add_decoder" do
         | 
| 16 29 | 
             
                it "add the decoder to the registry" do
         | 
| 17 30 | 
             
                  subject.add_decoder({"application/protobuf" => lambda { |payload| "foo"} })
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: action_subscriber
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 4.5. | 
| 4 | 
            +
              version: 4.5.1
         | 
| 5 5 | 
             
            platform: java
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Brian Stien
         | 
| @@ -12,7 +12,7 @@ authors: | |
| 12 12 | 
             
            autorequire:
         | 
| 13 13 | 
             
            bindir: bin
         | 
| 14 14 | 
             
            cert_chain: []
         | 
| 15 | 
            -
            date: 2017- | 
| 15 | 
            +
            date: 2017-09-24 00:00:00.000000000 Z
         | 
| 16 16 | 
             
            dependencies:
         | 
| 17 17 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 18 18 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -182,8 +182,7 @@ dependencies: | |
| 182 182 | 
             
                - - ">="
         | 
| 183 183 | 
             
                  - !ruby/object:Gem::Version
         | 
| 184 184 | 
             
                    version: '0'
         | 
| 185 | 
            -
            description: ActionSubscriber is a DSL that allows a rails app to consume messages
         | 
| 186 | 
            -
              from a RabbitMQ broker.
         | 
| 185 | 
            +
            description: ActionSubscriber is a DSL that allows a rails app to consume messages from a RabbitMQ broker.
         | 
| 187 186 | 
             
            email:
         | 
| 188 187 | 
             
            - brianastien@gmail.com
         | 
| 189 188 | 
             
            - liveh2o@gmail.com
         | 
| @@ -261,6 +260,7 @@ files: | |
| 261 260 | 
             
            - spec/lib/action_subscriber/router_spec.rb
         | 
| 262 261 | 
             
            - spec/lib/action_subscriber/subscribable_spec.rb
         | 
| 263 262 | 
             
            - spec/spec_helper.rb
         | 
| 263 | 
            +
            - spec/support/sample_config.yml
         | 
| 264 264 | 
             
            - spec/support/user_subscriber.rb
         | 
| 265 265 | 
             
            homepage: https://github.com/mxenabled/action_subscriber
         | 
| 266 266 | 
             
            licenses:
         | 
| @@ -277,16 +277,15 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 277 277 | 
             
                  version: '0'
         | 
| 278 278 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 279 279 | 
             
              requirements:
         | 
| 280 | 
            -
              - - " | 
| 280 | 
            +
              - - ">="
         | 
| 281 281 | 
             
                - !ruby/object:Gem::Version
         | 
| 282 | 
            -
                  version:  | 
| 282 | 
            +
                  version: '0'
         | 
| 283 283 | 
             
            requirements: []
         | 
| 284 284 | 
             
            rubyforge_project:
         | 
| 285 | 
            -
            rubygems_version: 2.6. | 
| 285 | 
            +
            rubygems_version: 2.6.13
         | 
| 286 286 | 
             
            signing_key:
         | 
| 287 287 | 
             
            specification_version: 4
         | 
| 288 | 
            -
            summary: ActionSubscriber is a DSL that allows a rails app to consume messages from
         | 
| 289 | 
            -
              a RabbitMQ broker.
         | 
| 288 | 
            +
            summary: ActionSubscriber is a DSL that allows a rails app to consume messages from a RabbitMQ broker.
         | 
| 290 289 | 
             
            test_files:
         | 
| 291 290 | 
             
            - spec/integration/around_filters_spec.rb
         | 
| 292 291 | 
             
            - spec/integration/at_least_once_spec.rb
         | 
| @@ -311,4 +310,5 @@ test_files: | |
| 311 310 | 
             
            - spec/lib/action_subscriber/router_spec.rb
         | 
| 312 311 | 
             
            - spec/lib/action_subscriber/subscribable_spec.rb
         | 
| 313 312 | 
             
            - spec/spec_helper.rb
         | 
| 313 | 
            +
            - spec/support/sample_config.yml
         | 
| 314 314 | 
             
            - spec/support/user_subscriber.rb
         |