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 +4 -4
- data/lib/gitall.rb +5 -1
- data/lib/gitall/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62635e186b91cbfd73025225c08c5aa91a461ec93cb9a8c8bd259fbc2ba3adc3
|
|
4
|
+
data.tar.gz: e924e55c88417d7dc284ee7cc25ef3df54d6998e95bbf30b456ab9a0da967269
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00df599877ac591b524017f9f617b792749d0223f7ab0eff93654ca532614460f1b7248bdfb2b59c005504f6f3f7d21bac2cf273b2f774cd96a5e18fab746e18
|
|
7
|
+
data.tar.gz: 8ec083a5c99f8c667802b4bb552df43c789e18bd58821922d4afc761582fdca8c22a622478ce309918a64b2d85f73e46e73d2dcff54933d3bae9e63230ae65f8
|
data/lib/gitall.rb
CHANGED
|
@@ -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
|
|
228
|
+
body 'bitbucket not supported'
|
|
225
229
|
else
|
|
226
230
|
[404, "I can't help with that"]
|
|
227
231
|
end
|
data/lib/gitall/version.rb
CHANGED