site_hook 0.6.12 → 0.6.13

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: 3ac98f1f0a201513de5d8c4ff09d9f6bb100427c9ddca0d3c55bcf424e06f015
4
- data.tar.gz: b4c3db85d34b1a2975ae14b7605d43d0af237e679ccdbbd699cfc98e4fb073ca
3
+ metadata.gz: 2b094a4d2df8500ca9cac6e24adb7b8256499c15a55c6bdf09aab56703723aa4
4
+ data.tar.gz: 0a4a1802ca27976283c64cc1d9914ecffe740caa9e4d2700e4f5f1224065657c
5
5
  SHA512:
6
- metadata.gz: 647e4902061b3abb56ac6733970f74857e8c391cdb6220925d42d4e5b8b301379ceda31bbd4a60357c758b2e0c720c9a5525ea76dde6a028a04b81f4648322c1
7
- data.tar.gz: 32d662a9b49bf5c6ff2e3ef87d462e8458de7187224c1dc06a39eda98770802548922ae9769498083d6c774c2ccd3d80a96ccf275de45e6cb9002ecbc9b9bd29
6
+ metadata.gz: fd126ea6a728400f2435cee622504e9e0b1157cad3832ff2deec28d9be586beeca69154768202dccdffbf4c7e5cf6f18f8c4ba616f88b56d6365245518786f29
7
+ data.tar.gz: 101e8d79277e36abc8aebf8115fc47949bb077e8b46864ffa5965175da6440572fa5f80432ca234621cf8a6924041ae746c0628dbb8b5f5480558d1d544bb51a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- site_hook (0.6.11)
4
+ site_hook (0.6.12)
5
5
  activesupport (~> 5.1)
6
6
  git (~> 1.3)
7
7
  haml (~> 5.0)
@@ -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.methods.select { |x| x =~ /^do_/ }
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}")
@@ -1,3 +1,3 @@
1
1
  module SiteHook
2
- VERSION = "0.6.12"
2
+ VERSION = "0.6.13"
3
3
  end
@@ -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 400
159
- headers 'Content-Type' => 'application/json'
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
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: 0.6.12
4
+ version: 0.6.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Spencer