Permalink
Browse files

attempt #2 to consume github json with yaml

  • Loading branch information...
1 parent 3d3cf6b commit 28cac99298030c0b0926451d7a34d0c717eeb421 @defunkt committed Feb 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cijoe/server.rb
View
@@ -27,7 +27,7 @@ class Server < Sinatra::Base
end
post '/?' do
- payload = YAML.load(params[:payload].to_s) || {}
+ payload = YAML.load(params[:payload].to_s.gsub("\n",' ')) || {}
pushed_branch = payload['ref'].to_s.split('/').last
# Only build if we were given an explicit branch via `?branch=blah`,

0 comments on commit 28cac99

Please sign in to comment.