mirror of
https://github.com/seejohnrun/haste-client.git
synced 2025-12-16 08:45:55 +00:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ea7750c3bb | ||
|
|
d380711d26 | ||
|
|
a195f017e2 | ||
|
|
4e3e90f7cc | ||
|
|
a7df62a0a5 | ||
|
|
ce764ca7c4 | ||
|
|
e6532aa100 | ||
|
|
82d191fc5e | ||
|
|
2ef8f926af |
16
Rakefile
16
Rakefile
@@ -1,7 +1,6 @@
|
||||
require 'rspec/core/rake_task'
|
||||
require File.dirname(__FILE__) + '/lib/haste/version'
|
||||
|
||||
task :build => :test do
|
||||
|
||||
task :build do
|
||||
system "gem build haste.gemspec"
|
||||
end
|
||||
|
||||
@@ -12,14 +11,3 @@ task :release => :build do
|
||||
# push the gem
|
||||
system "gem push haste-#{Haste::VERSION}.gem"
|
||||
end
|
||||
|
||||
RSpec::Core::RakeTask.new(:test) do |t|
|
||||
t.pattern = 'spec/**/*_spec.rb'
|
||||
fail_on_error = true # be explicit
|
||||
end
|
||||
|
||||
RSpec::Core::RakeTask.new(:rcov) do |t|
|
||||
t.pattern = 'spec/**/*_spec.rb'
|
||||
t.rcov = true
|
||||
fail_on_error = true # be explicit
|
||||
end
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
require 'json'
|
||||
require 'net/http'
|
||||
require 'net/https'
|
||||
require 'uri'
|
||||
|
||||
module Haste
|
||||
@@ -19,7 +20,7 @@ module Haste
|
||||
@input = STDIN.readlines.join
|
||||
end
|
||||
# clean up
|
||||
@input.strip!
|
||||
@input.rstrip!
|
||||
end
|
||||
|
||||
# Upload the and output the URL we get back
|
||||
@@ -39,7 +40,7 @@ module Haste
|
||||
abort "failure uploading: #{response.code}"
|
||||
end
|
||||
rescue JSON::ParserError => e
|
||||
abort "failure uploading: #{response.code}"
|
||||
abort "failure parsing response: #{e.message}"
|
||||
rescue Errno::ECONNREFUSED => e
|
||||
abort "failure connecting: #{e.message}"
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
module Haste
|
||||
|
||||
VERSION = '0.1.5'
|
||||
VERSION = '0.1.7'
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user