Fix syntax for rescuing and raising errors.
Merge branch 'rgraff-master' into feature/ruby-fixes

Conflicts:
	ruby/spec/referer-spec.rb
Added missing end