excon 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of excon might be problematic. Click here for more details.

data/excon.gemspec CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'excon'
16
- s.version = '0.2.2'
17
- s.date = '2010-09-16'
16
+ s.version = '0.2.3'
17
+ s.date = '2010-09-29'
18
18
  s.rubyforge_project = 'excon'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
data/lib/excon.rb CHANGED
@@ -16,7 +16,7 @@ require 'excon/response'
16
16
  module Excon
17
17
 
18
18
  unless const_defined?(:VERSION)
19
- VERSION = '0.2.2'
19
+ VERSION = '0.2.3'
20
20
  end
21
21
 
22
22
  CHUNK_SIZE = 1048576 # 1 megabyte
@@ -32,8 +32,12 @@ module Excon
32
32
  params[:body] ||= @connection[:body]
33
33
  params[:headers]['Content-Length'] = case params[:body]
34
34
  when File
35
+ params[:body].binmode
35
36
  File.size(params[:body].path)
36
37
  when String
38
+ if params[:body].respond_to?(:force_encoding)
39
+ params[:body].force_encoding('BINARY')
40
+ end
37
41
  params[:body].length
38
42
  else
39
43
  0
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 2
9
- version: 0.2.2
8
+ - 3
9
+ version: 0.2.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - geemus (Wesley Beary)
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-16 00:00:00 -07:00
17
+ date: 2010-09-29 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -51,6 +51,7 @@ rdoc_options:
51
51
  require_paths:
52
52
  - lib
53
53
  required_ruby_version: !ruby/object:Gem::Requirement
54
+ none: false
54
55
  requirements:
55
56
  - - ">="
56
57
  - !ruby/object:Gem::Version
@@ -58,6 +59,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
59
  - 0
59
60
  version: "0"
60
61
  required_rubygems_version: !ruby/object:Gem::Requirement
62
+ none: false
61
63
  requirements:
62
64
  - - ">="
63
65
  - !ruby/object:Gem::Version
@@ -67,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
69
  requirements: []
68
70
 
69
71
  rubyforge_project: excon
70
- rubygems_version: 1.3.6
72
+ rubygems_version: 1.3.7
71
73
  signing_key:
72
74
  specification_version: 2
73
75
  summary: speed, persistence, http(s)