lesspainful 0.10.4 → 0.10.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lesspainful (0.10.3)
4
+ lesspainful (0.10.5)
5
5
  bundler (~> 1.2)
6
6
  json
7
7
  rest-client (= 1.6.7)
@@ -152,7 +152,7 @@ module LessPainful
152
152
  if pretty and JSON.respond_to?(:pretty_generate)
153
153
  puts JSON.pretty_generate(json)
154
154
  else
155
- puts json
155
+ puts json.to_json
156
156
  end
157
157
  end
158
158
 
@@ -408,7 +408,8 @@ module LessPainful
408
408
  def http_post(address, args, &block)
409
409
  if block_given?
410
410
  response = RestClient::Request.execute(:method => :post, :url => "#{host}/#{address}", :payload => args,
411
- :timeout => -1,
411
+ :timeout => 90000000,
412
+ :open_timeout => 90000000,
412
413
  :headers => {:content_type => "multipart/form-data"}) do |response, request, result, &other_block|
413
414
  block.call(response, request, result, &other_block)
414
415
  end
@@ -1,3 +1,3 @@
1
1
  module LessPainful
2
- VERSION = "0.10.4"
2
+ VERSION = "0.10.5"
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.4
4
+ version: 0.10.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-11 00:00:00.000000000 Z
12
+ date: 2013-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor