eventbus 0.29 → 0.30
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.
- data/lib/eventbus/message.rb +5 -5
- metadata +3 -3
    
        data/lib/eventbus/message.rb
    CHANGED
    
    | @@ -1,5 +1,5 @@ | |
| 1 1 | 
             
            require 'rubygems'
         | 
| 2 | 
            -
            require ' | 
| 2 | 
            +
            require 'json'
         | 
| 3 3 | 
             
            require 'uuid'
         | 
| 4 4 | 
             
            require 'eventbus/common_init'
         | 
| 5 5 | 
             
            require 'eventbus/queue'
         | 
| @@ -95,7 +95,7 @@ class Message | |
| 95 95 | 
             
                  opts[:system_queue] = true
         | 
| 96 96 | 
             
                end
         | 
| 97 97 |  | 
| 98 | 
            -
                opts[:queue_name] = Queue.calc_name(queue_name, application_id, ENV[' | 
| 98 | 
            +
                opts[:queue_name] = Queue.calc_name(queue_name, application_id, ENV['EVENTBUS_PROD_LEVEL'], opts)
         | 
| 99 99 |  | 
| 100 100 | 
             
                puts "Sending message to: #{opts[:queue_name]}"
         | 
| 101 101 |  | 
| @@ -115,11 +115,11 @@ class Message | |
| 115 115 | 
             
              end
         | 
| 116 116 |  | 
| 117 117 | 
             
              def dump
         | 
| 118 | 
            -
                 | 
| 118 | 
            +
                JSON.generate(@data, :indent => ' ', :space => ' ', :object_nl => "\n", :array_nl => "\n", :max_nesting => 50)
         | 
| 119 119 | 
             
              end
         | 
| 120 120 |  | 
| 121 | 
            -
              def load( | 
| 122 | 
            -
                @data =  | 
| 121 | 
            +
              def load(raw)
         | 
| 122 | 
            +
                @data = JSON::parse(raw)
         | 
| 123 123 | 
             
              end
         | 
| 124 124 |  | 
| 125 125 | 
             
              def application_id
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: eventbus
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: '0. | 
| 4 | 
            +
              version: '0.30'
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -9,7 +9,7 @@ authors: | |
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date:  | 
| 12 | 
            +
            date: 2014-01-03 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: amqp
         | 
| @@ -66,8 +66,8 @@ extensions: [] | |
| 66 66 | 
             
            extra_rdoc_files: []
         | 
| 67 67 | 
             
            files:
         | 
| 68 68 | 
             
            - lib/eventbus/service.rb
         | 
| 69 | 
            -
            - lib/eventbus/connectors/amqp.rb
         | 
| 70 69 | 
             
            - lib/eventbus/connectors/stomp.rb
         | 
| 70 | 
            +
            - lib/eventbus/connectors/amqp.rb
         | 
| 71 71 | 
             
            - lib/eventbus/connectors/stomp/slogger.rb
         | 
| 72 72 | 
             
            - lib/eventbus/queue.rb
         | 
| 73 73 | 
             
            - lib/eventbus/message.rb
         |