lesspainful 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/lesspainful/cli.rb +3 -1
  2. data/lib/version.rb +1 -1
  3. metadata +1 -1
@@ -377,7 +377,9 @@ module LessPainful
377
377
 
378
378
  def http_post(address, args, &block)
379
379
  if block_given?
380
- response = RestClient.post "#{host}/#{address}", args, {:content_type => "multipart/form-data"} do |response, request, result, &other_block|
380
+ response = RestClient::Request.execute(:method => :post, :url => "#{host}/#{address}", :payload => args,
381
+ :timeout => -1,
382
+ :headers => {:content_type => "multipart/form-data"}) do |response, request, result, &other_block|
381
383
  block.call(response, request, result, &other_block)
382
384
  end
383
385
  else
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module LessPainful
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesspainful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: