1
0
mirror of https://github.com/seejohnrun/haste-client.git synced 2025-12-16 00:35:56 +00:00

Tests and major refactor

[#16]
This commit is contained in:
John Crepezzi
2013-11-16 09:51:13 -05:00
parent 03d4f900de
commit c995ad95ef
8 changed files with 266 additions and 45 deletions

View File

@@ -47,6 +47,15 @@ alias work_haste="HASTE_SERVER=http://something.com haste"
After which you can use `work_haste` to send hastes to that server instead.
## Use as a library
You can also use `Haste` as a library to upload hastes:
``` ruby
uploader = Haste::Uploader.new
uploader.upload_raw 'this is my data' # key
```
## Windows Support
If you'd like an alternative on Windows that supports functionality similar to `pbcopy`, check out Aidan Ryan's [WinHaste](https://github.com/ajryan/WinHaste) project.