Skip to content
Browse files

string keys

  • Loading branch information...
1 parent f726008 commit 1450692f3b2e703ec5afe28304dd67b8413aabc4 @defunkt committed Feb 6, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/cijoe/server.rb
View
4 lib/cijoe/server.rb
@@ -28,7 +28,7 @@ class Server < Sinatra::Base
post '/?' do
payload = YAML.load(params[:payload].to_s) || {}
- pushed_branch = payload[:ref].to_s.split('/').last
+ pushed_branch = payload['ref'].to_s.split('/').last
# Only build if we were given an explicit branch via `?branch=blah`,
# no payload exists (we're probably testing), or the payload exists and
@@ -45,7 +45,7 @@ class Server < Sinatra::Base
response_json = erb(:json, {}, :joe => joe)
if params[:jsonp]
response << params[:jsonp] + '(' + response_json + ')'
- else
+ else
response << response_json
end
response

0 comments on commit 1450692

Please sign in to comment.
Something went wrong with that request. Please try again.