site_hook 1.0.28 → 1.0.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/site_hook/commands/server_class.rb +0 -1
- data/lib/site_hook/version.rb +1 -1
- data/lib/site_hook/webhook.rb +2 -3
- 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: 0f2e07c8e8f23f75db8223c5c17baade567d99d302e990f857adc5c35cfed820
|
4
|
+
data.tar.gz: d534725bd6fe1fde3f8249a88b88d2535f6f84b74a81725a943d1a3c39ed4aea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97f192a3215a16553c00421418063a3e4e471a2baaaacf2550af131c8d26c9d6a5fd38bc085e8b75f2632cd914819c3602eede7a86735852baae0c7a33fd9d31
|
7
|
+
data.tar.gz: 569b9d30f69b5953328644f777a8dc6a4479341bd2a63d685d9a0a57b49e61c1b789d3282193584594a27b6e68d495d2ae0036d869b47b92e0775ce4f38c1c69
|
data/lib/site_hook/version.rb
CHANGED
data/lib/site_hook/webhook.rb
CHANGED
@@ -80,11 +80,10 @@ module SiteHook
|
|
80
80
|
request.body.rewind
|
81
81
|
req_body = request.body.read
|
82
82
|
project = SiteHook::Config.projects.get(StrExt.mkvar(params[:hook_name]))
|
83
|
-
CONTENT_TYPE = 'Content-Type'
|
84
83
|
if project == :not_found
|
85
|
-
halt 404, {message: 'no such project', status: 1}.to_json, {CONTENT_TYPE => APPLICATION_JSON}
|
84
|
+
halt 404, {message: 'no such project', status: 1}.to_json, {"CONTENT_TYPE" => APPLICATION_JSON}
|
86
85
|
elsif project == :no_projects
|
87
|
-
halt 500, {message: 'no projects defined', status: 2}.to_json, {CONTENT_TYPE => APPLICATION_JSON}
|
86
|
+
halt 500, {message: 'no projects defined', status: 2}.to_json, {"CONTENT_TYPE" => APPLICATION_JSON}
|
88
87
|
end
|
89
88
|
plaintext = false
|
90
89
|
signature = nil
|