-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from AdrieanKhisbe/refactor
Major code refactor
- Loading branch information
Showing
26 changed files
with
911 additions
and
911 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
*.swo | ||
*~ | ||
.DS_Store | ||
|
||
test/node_modules | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env zsh | ||
|
||
source ~/.zshrc | ||
|
||
shpec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# zsh shpec build draft | ||
language: sh | ||
env: | ||
matrix: | ||
- SHELL=bash | ||
- SHELL=zsh | ||
os: | ||
- linux | ||
- osx | ||
|
||
install: | ||
# install antigen | ||
- curl -L git.io/antigen > ~/antigen.zsh | ||
- echo "source ~/antigen.zsh; antigen bundle rylnd/shpec; antigen apply" > ~/.zshrc | ||
- echo "setopt sh_word_split" > ~/.zshenv | ||
- zsh ~/.zshrc | ||
- sh -c "export BINDIR=$HOME ; `curl -L https://raw.github.com/rylnd/shpec/master/install.sh`" | ||
|
||
- $HOME/.nvm/nvm.sh | ||
- nvm install 6 && nvm use 6 | ||
- (cd test && npm install) | ||
|
||
- curl --version | ||
- lynx --version | ||
|
||
script: | ||
- (cd test && node server.js &) | ||
- sleep 1 | ||
- | | ||
echo $SHELL && $SHELL --version | ||
if [ "$SHELL" = "zsh" ]; then | ||
echo "Run Zsh test" | ||
./.travis-test.zsh | ||
elif [ "$SHELL" = "bash" ]; then | ||
echo "Run Bash test" | ||
$HOME/shpec | ||
fi | ||
before_install: | ||
- | | ||
([ "${TRAVIS_OS_NAME}" = "linux" ] && sudo apt-get install zsh lynx) || echo "osx, skipping apt-get" | ||
- | | ||
([ "${TRAVIS_OS_NAME}" = "osx" ] && brew update && brew install zsh lynx curl) || echo "linux, skipping brew" | ||
cache: | ||
apt: true | ||
directories: | ||
- $HOME/Library/Caches/Homebrew | ||
|
||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Change Log | ||
All notable changes to *Resty* will be documented in this file. | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
## [Unreleased][unreleased] | ||
### Changed | ||
|
||
- major refactor | ||
### Fixed | ||
- Documentation glitch | ||
|
||
## History Black Hole to retrieve | ||
|
||
<!-- TODO: Patch release and 1 to 2 --> | ||
|
||
## [1.5] - 2011-03-20 | ||
### Added | ||
- Curl options can now be specified when calling the resty command to set | ||
the URI base. These options will be passed to curl for all subsequent | ||
requests, until the next time the resty command is called. | ||
|
||
## [1.4] - 2011-03-08 | ||
### Fixed | ||
- several bugs fix for zsh users. | ||
|
||
## [1.3] - 2011-03-04 | ||
|
||
* Attempted bug fix for zsh users that prevented options from being passed | ||
correctly to curl. | ||
|
||
## [1.2] - 2011-02-06 - | ||
|
||
* Data is now optional in PUT and POST requests. If the input is not a | ||
terminal and no data is specified on the command line, resty won't wait | ||
for data on stdin anymore. If you liked the old behavior you can always do | ||
something like `cat | POST /Somewhere` for the same effect. | ||
|
||
## [1.1] - 2011-01-07 | ||
### Fixed | ||
- bug where `-V` option required input on stdin, and would block waiting for it. | ||
|
||
<!-- Holder history to be retrieved | ||
[unreleased]: https://github.com/micha/resty/compare/v0.10.2...HEAD | ||
[1.5]: https://github.com/micha/resty/compare/1.4...1.5 | ||
[1.4]: https://github.com/micha/resty/compare/1.3...1.4 | ||
[1.3]: https://github.com/micha/resty/compare/1.2...1.3 | ||
[1.2]: https://github.com/micha/resty/compare/1.1...1.2 | ||
[1.1]: https://github.com/micha/resty/compare/1.0...1.1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
PREFIX ?= /usr/local | ||
|
||
install: | ||
mkdir -p $(HOME)/.bashrc.d | ||
cp resty $(HOME)/.bashrc.d | ||
cp pypp pp $(PREFIX)/bin/ | ||
@echo "You should add 'source ~/.bashrc.d/resty' to your bashrc" | ||
|
||
uninstall: | ||
rm -f $(PREFIX)/bin/{pp,pypp} $(HOME)/.bashrc.d/resty |
Oops, something went wrong.