Skip to content

Commit

Permalink
Merge pull request #50 from AdrieanKhisbe/refactor
Browse files Browse the repository at this point in the history
Major code refactor
  • Loading branch information
AdrieanKhisbe authored Nov 7, 2017
2 parents e5b0a27 + 4d97c15 commit 3f64ef2
Show file tree
Hide file tree
Showing 26 changed files with 911 additions and 911 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
*.swo
*~
.DS_Store

test/node_modules
.idea
5 changes: 5 additions & 0 deletions .travis-test.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env zsh

source ~/.zshrc

shpec
51 changes: 51 additions & 0 deletions .travis.yml
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
49 changes: 49 additions & 0 deletions CHANGELOG.md
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
29 changes: 0 additions & 29 deletions CHANGES.md

This file was deleted.

11 changes: 11 additions & 0 deletions Makefile
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
Loading

0 comments on commit 3f64ef2

Please sign in to comment.