├── .gitignore ├── .travis-test.zsh ├── .travis.yml ├── CHANGELOG.md ├── MIT-LICENSE.txt ├── Makefile ├── README.md ├── package.json ├── pp ├── pypp ├── resty ├── resty.plugin.zsh └── test ├── data ├── simple.html ├── simple.json └── simple.txt ├── package.json ├── resty_shpec.sh ├── server.js └── test-data ├── resty ├── localhost:4004 └── resty └── simple-html-lynx.txt /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | *.swo 3 | *~ 4 | .DS_Store 5 | 6 | test/node_modules 7 | .idea 8 | -------------------------------------------------------------------------------- /.travis-test.zsh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env zsh 2 | 3 | source ~/.zshrc 4 | 5 | shpec 6 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # zsh shpec build draft 2 | language: sh 3 | env: 4 | matrix: 5 | - SHELL=bash 6 | - SHELL=zsh 7 | os: 8 | - linux 9 | - osx 10 | 11 | install: 12 | # install antigen 13 | - curl -L git.io/antigen > ~/antigen.zsh 14 | - echo "source ~/antigen.zsh; antigen bundle rylnd/shpec; antigen apply" > ~/.zshrc 15 | - echo "setopt sh_word_split" > ~/.zshenv 16 | - zsh ~/.zshrc 17 | - sh -c "export BINDIR=$HOME ; `curl -L https://raw.github.com/rylnd/shpec/master/install.sh`" 18 | 19 | - $HOME/.nvm/nvm.sh 20 | - nvm install 6 && nvm use 6 21 | - (cd test && npm install) 22 | 23 | - curl --version 24 | - lynx --version 25 | 26 | script: 27 | - (cd test && node server.js &) 28 | - sleep 1 29 | - | 30 | echo $SHELL && $SHELL --version 31 | if [ "$SHELL" = "zsh" ]; then 32 | echo "Run Zsh test" 33 | ./.travis-test.zsh 34 | elif [ "$SHELL" = "bash" ]; then 35 | echo "Run Bash test" 36 | $HOME/shpec 37 | fi 38 | before_install: 39 | - | 40 | ([ "${TRAVIS_OS_NAME}" = "linux" ] && sudo apt-get install zsh lynx) || echo "osx, skipping apt-get" 41 | - | 42 | ([ "${TRAVIS_OS_NAME}" = "osx" ] && brew update && brew install zsh lynx curl) || echo "linux, skipping brew" 43 | 44 | 45 | cache: 46 | apt: true 47 | directories: 48 | - $HOME/Library/Caches/Homebrew 49 | 50 | notifications: 51 | email: false 52 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | All notable changes to *Resty* will be documented in this file. 3 | This project adheres to [Semantic Versioning](http://semver.org/). 4 | 5 | ## [Unreleased][unreleased] 6 | ### Changed 7 | 8 | - major refactor 9 | ### Fixed 10 | - Documentation glitch 11 | 12 | ## History Black Hole to retrieve 13 | 14 | 15 | 16 | ## [1.5] - 2011-03-20 17 | ### Added 18 | - Curl options can now be specified when calling the resty command to set 19 | the URI base. These options will be passed to curl for all subsequent 20 | requests, until the next time the resty command is called. 21 | 22 | ## [1.4] - 2011-03-08 23 | ### Fixed 24 | - several bugs fix for zsh users. 25 | 26 | ## [1.3] - 2011-03-04 27 | 28 | * Attempted bug fix for zsh users that prevented options from being passed 29 | correctly to curl. 30 | 31 | ## [1.2] - 2011-02-06 - 32 | 33 | * Data is now optional in PUT and POST requests. If the input is not a 34 | terminal and no data is specified on the command line, resty won't wait 35 | for data on stdin anymore. If you liked the old behavior you can always do 36 | something like `cat | POST /Somewhere` for the same effect. 37 | 38 | ## [1.1] - 2011-01-07 39 | ### Fixed 40 | - bug where `-V` option required input on stdin, and would block waiting for it. 41 | 42 |