rack-github_webhooks 0.3.0 → 0.4.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: e0ad149d1ccf3096eb22b95c057dea5cca062e2d
4
- data.tar.gz: 5257261e19046d920788756cf143c72d2c8cab0f
3
+ metadata.gz: a873ebafec269872d3abb639f944a479adf2546f
4
+ data.tar.gz: 717c16e2efcc488894a7bdb40aea1166d52d1851
5
5
  SHA512:
6
- metadata.gz: 208989b2d0f31db4b1c5ce7fc91d1f31324fd5a176c31c1f8c041e963d7ec20d6a915186c223d5074c3487aae9b5b5d3e621a1a5f3c21df313164002308fe009
7
- data.tar.gz: 062f9dfd96e31a08452eaf54598f0a75daf71fc3e921cbcecc8dd145541db1d179a298a0053171b5567c982efbc7166a1b4741417f943da294ca5c80fc9fa1ec
6
+ metadata.gz: 9dc3c67e962e3866178dee129c2d2fe33bb0cf3ade812a4b615c8d25cd99fc129c553cfdd5dffa07d722962589908ee05a39b0d1dd538fe3036d4bc7c01d2b51
7
+ data.tar.gz: f4649ebce4d107ce3baa0d057aa97df7341b73d393c2f06da1a7c05e904654e5d78ea8d15c1a94718d28c0074e5dbc694c1f2b813886e9664bc9e73e1f991b7d
@@ -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
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class GithubWebhooks
3
- VERSION = '0.3.0'
3
+ VERSION = '0.4.0'
4
4
  end
5
5
  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.3.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: 2015-11-29 00:00:00.000000000 Z
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.4.5.1
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