1
0
mirror of https://github.com/seejohnrun/haste-client.git synced 2025-12-17 01:01:28 +00:00

5 Commits

Author SHA1 Message Date
John Crepezzi
6430635bfa Bump version to 0.1.5 2013-04-08 11:59:50 -04:00
John Crepezzi
028e7c4424 Merge pull request #12 from sairez/master
add ability to use SSL to contact haste-server
2013-04-08 08:58:18 -07:00
Sarah Zelechoski
b10fa4782a simplify ssl support 2013-04-02 20:26:31 -03:00
Sarah Zelechoski
d8c4be9744 Update haste.rb
add HTTPS capability
2013-04-02 20:15:41 -03:00
John Crepezzi
7913dd521d Added install note to README
Closes #7
2013-03-16 20:41:32 -04:00
3 changed files with 11 additions and 1 deletions

View File

@@ -13,6 +13,12 @@ This can be really really cool in combination with `pbcopy`, like:
after which the contents of `file` will be accessible at a URL which has been copied to your pasteboard.
## Installation
``` bash
gem install haste
```
## Support
Please consider paying what you think haste-client is worth:

View File

@@ -26,6 +26,10 @@ module Haste
def start
uri = URI.parse server
http = Net::HTTP.new uri.host, uri.port
if uri.scheme =~ /^https/
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
end
response = http.post '/documents', @input
if response.is_a?(Net::HTTPOK)
data = JSON.parse(response.body)

View File

@@ -1,5 +1,5 @@
module Haste
VERSION = '0.1.4'
VERSION = '0.1.5'
end