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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3989178c47d8634c927a8baf022540b039a40e2a589119f05a51dd57a049cf2
4
- data.tar.gz: 3a556d41a9eeb26a20c3e38046950fd98826e647047682525d532738e7d3edd9
3
+ metadata.gz: 0f2e07c8e8f23f75db8223c5c17baade567d99d302e990f857adc5c35cfed820
4
+ data.tar.gz: d534725bd6fe1fde3f8249a88b88d2535f6f84b74a81725a943d1a3c39ed4aea
5
5
  SHA512:
6
- metadata.gz: e013f5e94d6ce86185a19b2633fc7eebb8e2f6740c76598f7b6ccf43b2eee82658be83768df820fe70df7808ee1534d21124f71efd3355e3aa874c1a5f24c4b2
7
- data.tar.gz: c3ea932fcda0c99e4d456fc33ee46708acedc551eba2eb3c9e023c2e9d3fea7eb9e288397c08d4ba8825bbe6580647d6deb683a80c71bf75fd9d70dca0afd0af
6
+ metadata.gz: 97f192a3215a16553c00421418063a3e4e471a2baaaacf2550af131c8d26c9d6a5fd38bc085e8b75f2632cd914819c3602eede7a86735852baae0c7a33fd9d31
7
+ data.tar.gz: 569b9d30f69b5953328644f777a8dc6a4479341bd2a63d685d9a0a57b49e61c1b789d3282193584594a27b6e68d495d2ae0036d869b47b92e0775ce4f38c1c69
@@ -27,7 +27,6 @@ module SiteHook
27
27
  end
28
28
 
29
29
  $threads << Thread.new do
30
- PreLogger.debug options
31
30
  ::Thin::Server.start(host, port, SiteHook::Server, debug: true)
32
31
  end
33
32
  $threads << Thread.new do
@@ -1,3 +1,3 @@
1
1
  module SiteHook
2
- VERSION = '1.0.28'
2
+ VERSION = '1.0.29'
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: site_hook
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.28
4
+ version: 1.0.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Spencer