hato 0.0.11 → 0.0.12

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53c6f79540821b1c3b1ec329041188e11c25c615
4
- data.tar.gz: 08756fb48fc621f6af758d81aab72b1de82ccd84
3
+ metadata.gz: b39032b8a13299c5387c6cc74d1d266fdf23742a
4
+ data.tar.gz: abcfcfa0356df25600892d388b484ac576ab85fb
5
5
  SHA512:
6
- metadata.gz: da93bf70b724d042a7c3d3b533336340a83ad186487ab5f5338212dd1274c6181baf40d2d5c09140d7736b785f22d6b2823ce00c9c29774c976c987b4444b16a
7
- data.tar.gz: ac6335fefa6dc11be76a59e4620998e303abcf223f59a766b0d544417a954df1f904238c67b5fc81279c9760600c0126a8466de7c61b6a70d99db5b119c4f395
6
+ metadata.gz: 267f19cdff080f1f7fadf31d51189927c134cc22b8d0b2726c86ba41bd8602928f253e26d5249162f854e04967c3c52488015126ad125010bd26ad0d2c56f5b3
7
+ data.tar.gz: 71486567f3c37b84770cec2a863f48b1623da2ed7a850487fb363b755b64a226ea3b896a624bbb14b75c231c8efa30a5dc992a5fa272e4f425e149df431dd0e5
data/lib/hato/httpd.rb CHANGED
@@ -51,7 +51,7 @@ module Hato
51
51
  end
52
52
 
53
53
  post '/webhook/:owner/:repository' do
54
- event = request.env['X-Github-Event']
54
+ event = request.env['HTTP_X_GITHUB_EVENT']
55
55
  owner = params[:owner]
56
56
  repository = params[:repository]
57
57
 
data/lib/hato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hato
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
@@ -67,7 +67,7 @@ describe Hato::Httpd do
67
67
  payload: {foo: 'bar'},
68
68
  api_key: 'test',
69
69
  }, {
70
- 'X-Github-Event' => 'test',
70
+ 'HTTP_X_GITHUB_EVENT' => 'test',
71
71
  }
72
72
  expect(last_response).to be_ok
73
73
  expect(last_response.body).to eq('{"status":"success","message":"Successfully sent the message you notified to me."}')
@@ -87,7 +87,7 @@ describe Hato::Httpd do
87
87
  post '/webhook/kentaro/hato', {
88
88
  api_key: 'test',
89
89
  }, {
90
- 'X-Github-Event' => 'test',
90
+ 'HTTP_X_GITHUB_EVENT' => 'test',
91
91
  }
92
92
  expect(last_response).to be_bad_request
93
93
  expect(last_response.body).to eq('{"status":"error","message":"Missing mandatory parameter: `payload`"}')
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.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kentaro Kuribayashi