Skip to content

Commit b6113d9

Browse files
committed
Merge branch 'master' of github.com:seejohnrun/haste-client
2 parents a98f4d7 + 94e2d1d commit b6113d9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ gem install haste
2626
If you supply a valid file path as argument #1 to the client, it will be uploaded:
2727

2828
``` bash
29-
# equivelant
29+
# equivalent
3030
cat file | haste
3131
haste file
3232
```
@@ -67,16 +67,16 @@ If you'd like an alternative on Windows that supports functionality similar to `
6767

6868
## Lightweight Alternative
6969

70-
Han Boetes has contributed a simple shell-script alternative for those not interested in installing a RubyGem:
70+
Han Boetes and @nickthename have contributed a simple shell-script alternative for those not interested in installing a RubyGem:
7171

7272
``` bash
73-
haste(){ ( echo "% $@"; eval "$@" ) | curl -F "$@=<-" http://hastebin.com/documents|awk -F '"' '{print "http://hastebin.com/"$4}'}
73+
haste() { a=$(cat); curl -X POST -s -d "$a" http://hastebin.com/documents | awk -F '"' '{print "http://hastebin.com/"$4}'; }
7474
```
7575

7676
Usage:
7777

7878
``` bash
79-
haste `cat index.html
79+
cat file.txt | haste
8080
```
8181

8282
## Author

lib/haste/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Haste
22

3-
VERSION = '0.1.7'
3+
VERSION = '0.2.0'
44

55
end

0 commit comments

Comments
 (0)