change content-type to x-www-form-urlencopded from json

case json, reject to register custom attribute
write spec
change build ruby version