rack-github_webhooks 0.1.0 → 0.2.0

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: a9b7e08dc10ae8cc34f21aa62f58e7928975f79a
4
- data.tar.gz: fd2492e442fb6a012b9ae2513d7152930a5449e2
3
+ metadata.gz: 356ef06d3434bd82cf6259402c287ac2d576f439
4
+ data.tar.gz: fb0f199fc1c489350794c4545795bbd76f866e11
5
5
  SHA512:
6
- metadata.gz: 61cd125661e2fd25d9a952fdc822145687254fb7689b843c044a85a80b807f48b143051d49a5ae24308362a4771603ef8fe6d65b2f831c93c17e005fe4c526d7
7
- data.tar.gz: 1796ccc6c7db976eec473ed226736670ffe1080b3dfe2ef0ae3ee412c8eccfbab5af749dc759831cc5d6965a64d5cd2e38e8d68e95ecb7836d46fdbbe75b482c
6
+ metadata.gz: 6fb61aea03f0354d2a5f817064b2cf3f94cefefbb874d490291140a050535851ef50c18e7c7ce40091164b8ae7e6f1222f4b6865b04d928bfbd1e8424ba923b8
7
+ data.tar.gz: 264cbf318764db94000244c4157780d35a905a82315493c16b4b39db39479423678e8afc415ad57350dcc5c4577b665b7ad0b7f4a6bce6586d4d8a8eb60d2243
data/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
- ## 0.0.1 - 2015-11-29
6
+ ## 0.1.0 - 2015-11-29
7
7
 
8
8
  - Initial release
9
+
10
+ ## [0.2.0] - 2015-11-29
11
+
12
+ ### Fixed
13
+
14
+ - Don't error when there's no 'X-Hub-Signature' header.
15
+
16
+ [0.2.0]: https://github.com/chrismytton/rack-github_webhooks/compare/v0.1.0...v0.2.0
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class GithubWebhooks
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
@@ -26,6 +26,7 @@ module Rack
26
26
  # Taken from https://developer.github.com/webhooks/securing/
27
27
  def signature_valid?
28
28
  return true unless secret
29
+ return false unless request.env['HTTP_X_HUB_SIGNATURE']
29
30
  Rack::Utils.secure_compare(signature, request.env['HTTP_X_HUB_SIGNATURE'])
30
31
  end
31
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-github_webhooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Mytton