hato 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64b8a25d53a8a63fa932e74aaa358d8ac62ba770
4
- data.tar.gz: 148d1f0924f999c89e38ae4a510b053b799aff16
3
+ metadata.gz: 8920effa5a9083cc2cd3479537803b0a20c63bea
4
+ data.tar.gz: 461e6f8b39fe291600e8e7a48c585e4d4b520f48
5
5
  SHA512:
6
- metadata.gz: 622fe29841f75850ff8952e0b7cbb5ddc5897764824f486c711811012d4c1db7e7cf43340d0cf83a5ccd0c9aec5b887aa835f90036fa02da46425c22f41f2e5f
7
- data.tar.gz: 58ba4e71283ec01a863d96c4183f4aa569206a8124d32c70cf27a85d1f72847edf0cf007775a2ef17be4094d2da00a7b6560b5c85b997a49783563d3d9b7dc93
6
+ metadata.gz: d9048323e38f111d1e1a7263d8aeb7809823785debe80ea94589b6213b9fe66d297bfb2fb427b61c25df6090470b90384c8fe637b30832a3ec16f655ffd04831
7
+ data.tar.gz: 1f2149bf73d99bbe699aad35ab53952d5aa78b909d1c6e6ed02f1686016d7fbc2bb02f710a8c62babc813ce6194aa6c9da9fc5d9ed4d82d880b449b966bf0aea
data/lib/hato/httpd.rb CHANGED
@@ -50,7 +50,9 @@ module Hato
50
50
  end
51
51
 
52
52
  post '/webhook/:owner/:repository' do
53
- event = request.env['X-GitHub-Event']
53
+ event = request.env['X-GitHub-Event']
54
+ owner = params[:owner]
55
+ repository = params[:repository]
54
56
 
55
57
  if !event
56
58
  halt 400, JSON.dump(
@@ -59,7 +61,7 @@ module Hato
59
61
  )
60
62
  end
61
63
 
62
- tag = ['webhook', params[:owner], params[:repository]].join('.')
64
+ tag = ['webhook', owner, repository].join('.')
63
65
  payload = params[:payload]
64
66
 
65
67
  if !payload
@@ -70,10 +72,12 @@ module Hato
70
72
  end
71
73
 
72
74
  settings.observer.update(
73
- tag: tag,
74
- event: event,
75
- payload: payload,
76
- logger: logger,
75
+ tag: tag,
76
+ event: event,
77
+ owner: owner,
78
+ repository: repository,
79
+ payload: payload,
80
+ logger: logger,
77
81
  )
78
82
 
79
83
  JSON.dump(
data/lib/hato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hato
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kentaro Kuribayashi