mirror of
https://github.com/seejohnrun/haste-client.git
synced 2025-12-17 17:21:29 +00:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
42bad59634 | ||
|
|
e156c031a8 | ||
|
|
ca0c9b239f | ||
|
|
5d88f11605 | ||
|
|
859de525b1 | ||
|
|
75ddd39187 | ||
|
|
b24842ac6f | ||
|
|
636eec2924 | ||
|
|
cf4c274d67 |
@@ -33,6 +33,10 @@ alias work_haste="HASTE_SERVER=http://something.com haste"
|
||||
|
||||
After which you can use `work_haste` to send hastes to that server instead.
|
||||
|
||||
## 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.
|
||||
|
||||
## Author
|
||||
|
||||
John Crepezzi <john.crepezzi@gmail.com>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
require File.dirname(__FILE__) + '/../lib/haste'
|
||||
require 'pathname'
|
||||
path = Pathname.new(__FILE__)
|
||||
require File.expand_path(File.dirname(path.realpath) + '/../lib/haste')
|
||||
|
||||
cli = Haste::CLI.new
|
||||
cli.start
|
||||
|
||||
@@ -33,7 +33,7 @@ module Haste
|
||||
else
|
||||
abort "failure uploading: #{response.code}"
|
||||
end
|
||||
rescue RuntimeError, JSON::ParserError => e
|
||||
rescue JSON::ParserError => e
|
||||
abort "failure uploading: #{response.code}"
|
||||
rescue Errno::ECONNREFUSED => e
|
||||
abort "failure connecting: #{e.message}"
|
||||
@@ -43,7 +43,7 @@ module Haste
|
||||
|
||||
def server
|
||||
return @server if @server
|
||||
@server = ENV['HASTE_SERVER'] || Haste::DEFAULT_URL
|
||||
@server = (ENV['HASTE_SERVER'] || Haste::DEFAULT_URL).dup
|
||||
@server.chop! if server.end_with?('/')
|
||||
@server
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
module Haste
|
||||
|
||||
VERSION = '0.1.0'
|
||||
VERSION = '0.1.3'
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user