rack-github_webhooks 0.3.0 → 0.4.0
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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/rack/github_webhooks.rb +6 -0
- data/lib/rack/github_webhooks/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a873ebafec269872d3abb639f944a479adf2546f
|
|
4
|
+
data.tar.gz: 717c16e2efcc488894a7bdb40aea1166d52d1851
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9dc3c67e962e3866178dee129c2d2fe33bb0cf3ade812a4b615c8d25cd99fc129c553cfdd5dffa07d722962589908ee05a39b0d1dd538fe3036d4bc7c01d2b51
|
|
7
|
+
data.tar.gz: f4649ebce4d107ce3baa0d057aa97df7341b73d393c2f06da1a7c05e904654e5d78ea8d15c1a94718d28c0074e5dbc694c1f2b813886e9664bc9e73e1f991b7d
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.4.0] - 2016-03-25
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
|
|
10
|
+
- Call `env['rack.input'].rewind` after reading from it. Thanks @ppworks for the patch.
|
|
11
|
+
|
|
6
12
|
## [0.3.0] - 2015-11-29
|
|
7
13
|
|
|
8
14
|
### Changed
|
|
@@ -22,3 +28,4 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
22
28
|
|
|
23
29
|
[0.2.0]: https://github.com/chrismytton/rack-github_webhooks/compare/v0.1.0...v0.2.0
|
|
24
30
|
[0.3.0]: https://github.com/chrismytton/rack-github_webhooks/compare/v0.2.0...v0.3.0
|
|
31
|
+
[0.4.0]: https://github.com/chrismytton/rack-github_webhooks/compare/v0.3.0...v0.4.0
|
data/lib/rack/github_webhooks.rb
CHANGED
|
@@ -34,6 +34,12 @@ module Rack
|
|
|
34
34
|
env['rack.input'].read
|
|
35
35
|
)
|
|
36
36
|
return [400, {}, ["Signatures didn't match!"]] unless signature.valid?
|
|
37
|
+
|
|
38
|
+
begin
|
|
39
|
+
env['rack.input'].rewind if env['rack.input'].respond_to?(:rewind)
|
|
40
|
+
rescue Errno::ESPIPE
|
|
41
|
+
end
|
|
42
|
+
|
|
37
43
|
@app.call(env)
|
|
38
44
|
end
|
|
39
45
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rack-github_webhooks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Mytton
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-03-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
133
133
|
version: '0'
|
|
134
134
|
requirements: []
|
|
135
135
|
rubyforge_project:
|
|
136
|
-
rubygems_version: 2.
|
|
136
|
+
rubygems_version: 2.5.1
|
|
137
137
|
signing_key:
|
|
138
138
|
specification_version: 4
|
|
139
139
|
summary: Rack middleware to check GitHub webhooks are authentic
|