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

9 Commits

Author SHA1 Message Date
John Crepezzi
42bad59634 Bump version to 0.1.3 2012-05-01 16:04:31 -04:00
John Crepezzi
e156c031a8 Fix dup issue in 1.8 2012-05-01 16:04:14 -04:00
John Crepezzi
ca0c9b239f Bump version 2012-04-22 22:38:20 -04:00
John Crepezzi
5d88f11605 Remove () 2012-04-22 22:38:06 -04:00
John Crepezzi
859de525b1 Merge pull request #6 from jokull/master
`HASTE_SERVER` variable should be `dup`ed
2012-04-22 19:37:30 -07:00
Jökull Sólberg Auðunsson
75ddd39187 Remove runtime error handler, dup environment string. 2012-04-21 16:56:30 +00:00
John Crepezzi
b24842ac6f Bump version to 0.1.1 2012-01-28 10:10:39 -05:00
John Crepezzi
636eec2924 Change how the pathname is received in haste-client 2012-01-28 10:10:23 -05:00
John Crepezzi
cf4c274d67 Added a note on WinHaste to the README 2012-01-27 09:44:43 -05:00
4 changed files with 10 additions and 4 deletions

View File

@@ -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>

View File

@@ -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

View File

@@ -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

View File

@@ -1,5 +1,5 @@
module Haste
VERSION = '0.1.0'
VERSION = '0.1.3'
end