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 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
- "version":"gerrit version"
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 = {"name" => @gerrit.name, "host" => uri.host, "port" => uri.port.to_s}
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
@@ -1,4 +1,4 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  module GerritEventRouter
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gerouter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: