site_hook 0.6.12 → 0.6.13
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/Gemfile.lock +1 -1
- data/lib/site_hook/sender.rb +1 -1
- data/lib/site_hook/version.rb +1 -1
- data/lib/site_hook/webhook.rb +2 -5
- 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: 2b094a4d2df8500ca9cac6e24adb7b8256499c15a55c6bdf09aab56703723aa4
|
|
4
|
+
data.tar.gz: 0a4a1802ca27976283c64cc1d9914ecffe740caa9e4d2700e4f5f1224065657c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fd126ea6a728400f2435cee622504e9e0b1157cad3832ff2deec28d9be586beeca69154768202dccdffbf4c7e5cf6f18f8c4ba616f88b56d6365245518786f29
|
|
7
|
+
data.tar.gz: 101e8d79277e36abc8aebf8115fc47949bb077e8b46864ffa5965175da6440572fa5f80432ca234621cf8a6924041ae746c0628dbb8b5f5480558d1d544bb51a
|
data/Gemfile.lock
CHANGED
data/lib/site_hook/sender.rb
CHANGED
|
@@ -82,7 +82,7 @@ module SiteHook
|
|
|
82
82
|
@build_dest = build_dest
|
|
83
83
|
@log = logger
|
|
84
84
|
instance = self::Build.new
|
|
85
|
-
meths = instance.
|
|
85
|
+
meths = [instance.do_grab_version, instance.do_pull, instance.do_build]
|
|
86
86
|
begin
|
|
87
87
|
meths.each do |m|
|
|
88
88
|
@log.debug("Running #{m}")
|
data/lib/site_hook/version.rb
CHANGED
data/lib/site_hook/webhook.rb
CHANGED
|
@@ -155,11 +155,8 @@ module SiteHook
|
|
|
155
155
|
headers 'Content-Type' => 'application/json'
|
|
156
156
|
body { { 'status': 'success' }.to_json }
|
|
157
157
|
when -1, -2, -3
|
|
158
|
-
status
|
|
159
|
-
|
|
160
|
-
body do
|
|
161
|
-
{ 'status': 'exception', error: jekyll_status.fetch(:message).to_s }
|
|
162
|
-
end
|
|
158
|
+
halt 400, { 'Content-Type' => 'application/json' }, { 'status': 'exception', error: jekyll_status.fetch(:message).to_s }
|
|
159
|
+
|
|
163
160
|
end
|
|
164
161
|
|
|
165
162
|
else
|