gerouter 0.0.4 → 0.0.5
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/README.md +5 -4
 - data/lib/ger/router.rb +6 -1
 - data/lib/ger/version.rb +1 -1
 - metadata +1 -1
 
    
        data/README.md
    CHANGED
    
    | 
         @@ -106,10 +106,11 @@ As below, gerouter adds `misc` attribute into Gerrit event then send to broker. 
     | 
|
| 
       106 
106 
     | 
    
         
             
            ```json
         
     | 
| 
       107 
107 
     | 
    
         
             
            {
         
     | 
| 
       108 
108 
     | 
    
         
             
              "provider": {
         
     | 
| 
       109 
     | 
    
         
            -
                "name":"gerrit name in config"
         
     | 
| 
       110 
     | 
    
         
            -
                "host":"gerrit host",
         
     | 
| 
       111 
     | 
    
         
            -
                "port":"gerrit port",
         
     | 
| 
       112 
     | 
    
         
            -
                " 
     | 
| 
      
 109 
     | 
    
         
            +
                "name":"<gerrit name in config>",
         
     | 
| 
      
 110 
     | 
    
         
            +
                "host":"<gerrit host>",
         
     | 
| 
      
 111 
     | 
    
         
            +
                "port":"<gerrit port>",
         
     | 
| 
      
 112 
     | 
    
         
            +
                "proto":"ssh",
         
     | 
| 
      
 113 
     | 
    
         
            +
                "version":"<gerrit version>"
         
     | 
| 
       113 
114 
     | 
    
         
             
              }
         
     | 
| 
       114 
115 
     | 
    
         
             
            }
         
     | 
| 
       115 
116 
     | 
    
         
             
            ```
         
     | 
    
        data/lib/ger/router.rb
    CHANGED
    
    | 
         @@ -45,7 +45,12 @@ module GerritEventRouter 
     | 
|
| 
       45 
45 
     | 
    
         
             
                    ssh_options = { :port => uri.port }
         
     | 
| 
       46 
46 
     | 
    
         
             
                    ssh_options[:keys] = @gerrit.ssh_keys if @gerrit.ssh_keys
         
     | 
| 
       47 
47 
     | 
    
         | 
| 
       48 
     | 
    
         
            -
                    provider = { 
     | 
| 
      
 48 
     | 
    
         
            +
                    provider = {
         
     | 
| 
      
 49 
     | 
    
         
            +
                      "name" => @gerrit.name,
         
     | 
| 
      
 50 
     | 
    
         
            +
                      "host" => uri.host,
         
     | 
| 
      
 51 
     | 
    
         
            +
                      "port" => uri.port.to_s,
         
     | 
| 
      
 52 
     | 
    
         
            +
                      "proto" => "ssh"
         
     | 
| 
      
 53 
     | 
    
         
            +
                    }
         
     | 
| 
       49 
54 
     | 
    
         | 
| 
       50 
55 
     | 
    
         
             
                    EM.run do
         
     | 
| 
       51 
56 
     | 
    
         
             
                      EM::Ssh.start(uri.host, uri.user, ssh_options) do |connection|
         
     | 
    
        data/lib/ger/version.rb
    CHANGED