add jruby support
support PATCH http method
Merge pull request #4 from flyerhzm/jruby

add jruby support. pending issues/2