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 +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/rack/github_webhooks/version.rb +1 -1
- data/lib/rack/github_webhooks.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 356ef06d3434bd82cf6259402c287ac2d576f439
|
4
|
+
data.tar.gz: fb0f199fc1c489350794c4545795bbd76f866e11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/lib/rack/github_webhooks.rb
CHANGED
@@ -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
|
|