amiral 0.1.6 → 0.1.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.
- data/amiral.gemspec +1 -0
 - data/bin/amiral.rb +3 -4
 - data/lib/amiral/version.rb +1 -1
 - data/lib/amiral.rb +2 -3
 - metadata +17 -1
 
    
        data/amiral.gemspec
    CHANGED
    
    
    
        data/bin/amiral.rb
    CHANGED
    
    | 
         @@ -87,12 +87,11 @@ opts = OptionParser.new do |opts| 
     | 
|
| 
       87 
87 
     | 
    
         
             
              end
         
     | 
| 
       88 
88 
     | 
    
         
             
            end.parse!
         
     | 
| 
       89 
89 
     | 
    
         | 
| 
       90 
     | 
    
         
            -
            options.redis_in = Redis.new :host => options.host, :port => options.port
         
     | 
| 
       91 
     | 
    
         
            -
            options.redis_out = Redis.new :host => options.host, :port => options.port
         
     | 
| 
      
 90 
     | 
    
         
            +
            options.redis_in = Redis.new :host => options.host, :port => options.port, :driver => :hiredis
         
     | 
| 
      
 91 
     | 
    
         
            +
            options.redis_out = Redis.new :host => options.host, :port => options.port, :driver => :hiredis
         
     | 
| 
       92 
92 
     | 
    
         | 
| 
       93 
93 
     | 
    
         
             
            classes = {
         
     | 
| 
       94 
     | 
    
         
            -
              'agent' => Amiral::Agent 
     | 
| 
       95 
     | 
    
         
            -
              'controller' => Amiral::Controller
         
     | 
| 
      
 94 
     | 
    
         
            +
              'agent' => Amiral::Agent
         
     | 
| 
       96 
95 
     | 
    
         
             
            }
         
     | 
| 
       97 
96 
     | 
    
         | 
| 
       98 
97 
     | 
    
         
             
            role = ARGV.shift
         
     | 
    
        data/lib/amiral/version.rb
    CHANGED
    
    
    
        data/lib/amiral.rb
    CHANGED
    
    | 
         @@ -254,8 +254,6 @@ module Amiral 
     | 
|
| 
       254 
254 
     | 
    
         
             
                def initialize settings
         
     | 
| 
       255 
255 
     | 
    
         
             
                  @settings = {
         
     | 
| 
       256 
256 
     | 
    
         
             
                    :prefix => "amiral:",
         
     | 
| 
       257 
     | 
    
         
            -
                    :redis_in => Redis.new,
         
     | 
| 
       258 
     | 
    
         
            -
                    :redis_out => Redis.new,
         
     | 
| 
       259 
257 
     | 
    
         
             
                    :keytype => :dss,
         
     | 
| 
       260 
258 
     | 
    
         
             
                    :hostname => hostname,
         
     | 
| 
       261 
259 
     | 
    
         
             
                    :loglevel => Logger::INFO,
         
     | 
| 
         @@ -291,7 +289,8 @@ module Amiral 
     | 
|
| 
       291 
289 
     | 
    
         
             
                  begin
         
     | 
| 
       292 
290 
     | 
    
         
             
                    prefix = @settings[:prefix]
         
     | 
| 
       293 
291 
     | 
    
         
             
                    @redis_in.subscribe "#{prefix}req" do |on|
         
     | 
| 
       294 
     | 
    
         
            -
             
     | 
| 
      
 292 
     | 
    
         
            +
             
     | 
| 
      
 293 
     | 
    
         
            +
             
     | 
| 
       295 
294 
     | 
    
         
             
                      on.message do |x, payload|
         
     | 
| 
       296 
295 
     | 
    
         | 
| 
       297 
296 
     | 
    
         
             
                        @logger.debug "incoming message"
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: amiral
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.7
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       7 
7 
     | 
    
         
             
            authors:
         
     | 
| 
         @@ -91,6 +91,22 @@ dependencies: 
     | 
|
| 
       91 
91 
     | 
    
         
             
                - - ! '>='
         
     | 
| 
       92 
92 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       93 
93 
     | 
    
         
             
                    version: '0'
         
     | 
| 
      
 94 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 95 
     | 
    
         
            +
              name: hiredis
         
     | 
| 
      
 96 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 97 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 98 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 99 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 100 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 101 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 102 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 103 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 104 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 105 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 106 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 107 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 108 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 109 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
       94 
110 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       95 
111 
     | 
    
         
             
              name: popen4
         
     | 
| 
       96 
112 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     |