1
0
mirror of https://github.com/seejohnrun/haste-client.git synced 2025-12-20 18:41:29 +00:00

4 Commits

Author SHA1 Message Date
Konstantin Rybakov
5a4953dc93 feat: update light weight alternative 2022-01-12 15:29:01 +03:00
John Crepezzi
32c4523e1c Update travis to reflect rubies actually used in the real world 2017-07-19 17:30:45 -04:00
John Crepezzi
c307e8c904 Remove transpec dependency 2017-07-19 17:27:06 -04:00
John Crepezzi
1037d899b9 Bump version to 0.2.3
For #27
2017-07-19 17:23:07 -04:00
4 changed files with 8 additions and 4 deletions

View File

@@ -4,6 +4,6 @@ branches:
- master - master
rvm: rvm:
- 1.8.7 - 1.8.7
- 1.9.2
- 1.9.3 - 1.9.3
- 2.0.0 - 2.0.0
- 2.4.0

View File

@@ -1,3 +1,2 @@
source 'https://rubygems.org' source 'https://rubygems.org'
gemspec gemspec
gem 'transpec'

View File

@@ -70,7 +70,7 @@ If you'd like an alternative on Windows that supports functionality similar to `
Han Boetes and @nickthename have contributed a simple shell-script alternative for those not interested in installing a RubyGem: Han Boetes and @nickthename have contributed a simple shell-script alternative for those not interested in installing a RubyGem:
``` bash ``` bash
haste() { a=$(cat); curl -X POST -s -d "$a" https://hastebin.com/documents | awk -F '"' '{print "https://hastebin.com/"$4}'; } haste() { curl -X POST -s -d "$(cat $1)" https://hastebin.com/documents | awk -F '"' '{print "https://hastebin.com/"$4}'; }
``` ```
Usage: Usage:
@@ -78,6 +78,11 @@ Usage:
``` bash ``` bash
cat file.txt | haste cat file.txt | haste
``` ```
or:
```bash
haste file.txt
```
And a more expansive BASH option by @diethnis can be found at: And a more expansive BASH option by @diethnis can be found at:
https://github.com/diethnis/standalones/blob/master/hastebin.sh https://github.com/diethnis/standalones/blob/master/hastebin.sh

View File

@@ -1,5 +1,5 @@
module Haste module Haste
VERSION = '0.2.2' VERSION = '0.2.3'
end end