gitall 1.1.26 → 1.1.27

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
  SHA256:
3
- metadata.gz: d2225c61cc4a524e15452245f2932d545332f491c76108601889f180f3815173
4
- data.tar.gz: c9c84a2f7a840febfe06484b60852865ff1ad89e2394a654e57db1533e392d06
3
+ metadata.gz: 62635e186b91cbfd73025225c08c5aa91a461ec93cb9a8c8bd259fbc2ba3adc3
4
+ data.tar.gz: e924e55c88417d7dc284ee7cc25ef3df54d6998e95bbf30b456ab9a0da967269
5
5
  SHA512:
6
- metadata.gz: f82076383a5822fb35a8204f65871b11e5ef3d6c8e3c2624445cb6dc43ada3ac7a046976c42c42b2d1ba1221864227b80463d465cc8ac57acd5ff01b0fc61b37
7
- data.tar.gz: 99b15316c34e9e4a643a8f5df0386d60094363a3dbfcd7ed7f942107b0c61c045737461a02f445b318c1ab17245b28675480243230188ff92d609a00d8672977
6
+ metadata.gz: 00df599877ac591b524017f9f617b792749d0223f7ab0eff93654ca532614460f1b7248bdfb2b59c005504f6f3f7d21bac2cf273b2f774cd96a5e18fab746e18
7
+ data.tar.gz: 8ec083a5c99f8c667802b4bb552df43c789e18bd58821922d4afc761582fdca8c22a622478ce309918a64b2d85f73e46e73d2dcff54933d3bae9e63230ae65f8
@@ -192,6 +192,8 @@ module GitAll
192
192
  body({status: 'success'}.to_json)
193
193
  end
194
194
  end
195
+ else
196
+ halt 403, {status: 'failure', message: 'invalid token'}
195
197
  end
196
198
  elsif request.env.key? 'HTTP_X_HUB_SIGNATURE'
197
199
  unless j.repository.full_name.nil?
@@ -214,6 +216,8 @@ module GitAll
214
216
  body({status: 'success'}.to_json)
215
217
  end
216
218
  end
219
+ else
220
+ halt 403, {status: 'failure', message: 'invalid signature'}
217
221
  end
218
222
  elsif request.env.key?('HTTP_X_EVENT_KEY')
219
223
  # BitBucket's Webhooks
@@ -221,7 +225,7 @@ module GitAll
221
225
  # implement a secret unless set into
222
226
  # the url.
223
227
  status 404
224
- body 'bitbucket not implemented'
228
+ body 'bitbucket not supported'
225
229
  else
226
230
  [404, "I can't help with that"]
227
231
  end
@@ -1,3 +1,3 @@
1
1
  module GitAll
2
- VERSION = '1.1.26'
2
+ VERSION = '1.1.27'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitall
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.26
4
+ version: 1.1.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Spencer