Closed AdrieanKhisbe closed 7 years ago
Major update on my PR, here is a recap: These many commits consist in setting up a test suite that is run on travis. These test are run on zsh and bash, both on linux and osx. Some modifications to the code had to be made to be working.
Many commits due to try and error process
Status of the build can be see there: https://travis-ci.org/AdrieanKhisbe/resty/builds
@all ( @micha @soyo42 )
Just rebased it, and I'm about to merge it in beta, see how it behaves, and then realease at last a v3.0 version
@here @micha I'm about to merge and make a release candidate version
Code was refactored to be made more readable, maintenable, and extendable.
resty function was split in two:
resty
: method to set up the host targetresty-call
: to perform a call on the target (this is the method now called by theGET
,POST
,ETC
functionssome coment where added in the code, and the inline
&&
where replaced with proper test. A switch case was added to handle the options.You are welcome to do comments on this refactor. Very welcome. :)
(I might add shpec test before to merge this.)