excon 0.13.0 → 0.13.1

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/changelog.txt CHANGED
@@ -1,3 +1,8 @@
1
+ 0.13.1 03/26/12
2
+ ===============
3
+
4
+ * fix to allow for passing Tempfile objects as body. Thanks rkyrychuk
5
+
1
6
  0.13.0 03/22/12
2
7
  ===============
3
8
 
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.13.0'
17
- s.date = '2012-03-22'
16
+ s.version = '0.13.1'
17
+ s.date = '2012-03-26'
18
18
  s.rubyforge_project = 'excon'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
@@ -185,7 +185,7 @@ module Excon
185
185
  # The HTTP spec isn't clear on it, but specifically, GET requests don't usually send bodies;
186
186
  # if they don't, sending Content-Length:0 can cause issues.
187
187
  params[:headers]['Content-Length'] = case params[:body]
188
- when File
188
+ when File, Tempfile
189
189
  params[:body].binmode
190
190
  File.size(params[:body])
191
191
  when String
@@ -1,6 +1,6 @@
1
1
  module Excon
2
2
  unless const_defined?(:VERSION)
3
- VERSION = '0.13.0'
3
+ VERSION = '0.13.1'
4
4
  end
5
5
 
6
6
  unless const_defined?(:CHUNK_SIZE)
metadata CHANGED
@@ -1,183 +1,177 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: excon
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.13.1
4
5
  prerelease:
5
- version: 0.13.0
6
6
  platform: ruby
7
- authors:
8
- - dpiddy (Dan Peterson)
9
- - geemus (Wesley Beary)
10
- - nextmat (Matt Sanders)
7
+ authors:
8
+ - dpiddy (Dan Peterson)
9
+ - geemus (Wesley Beary)
10
+ - nextmat (Matt Sanders)
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
-
15
- date: 2012-03-22 00:00:00 Z
16
- dependencies:
17
- - !ruby/object:Gem::Dependency
18
- name: activesupport
19
- prerelease: false
20
- requirement: &id001 !ruby/object:Gem::Requirement
21
- none: false
22
- requirements:
23
- - - ">="
24
- - !ruby/object:Gem::Version
25
- version: "0"
26
- type: :development
27
- version_requirements: *id001
28
- - !ruby/object:Gem::Dependency
29
- name: delorean
30
- prerelease: false
31
- requirement: &id002 !ruby/object:Gem::Requirement
32
- none: false
33
- requirements:
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: "0"
37
- type: :development
38
- version_requirements: *id002
39
- - !ruby/object:Gem::Dependency
40
- name: open4
41
- prerelease: false
42
- requirement: &id003 !ruby/object:Gem::Requirement
43
- none: false
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: "0"
48
- type: :development
49
- version_requirements: *id003
50
- - !ruby/object:Gem::Dependency
51
- name: rake
52
- prerelease: false
53
- requirement: &id004 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- version: "0"
59
- type: :development
60
- version_requirements: *id004
61
- - !ruby/object:Gem::Dependency
62
- name: rdoc
63
- prerelease: false
64
- requirement: &id005 !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: "0"
70
- type: :development
71
- version_requirements: *id005
72
- - !ruby/object:Gem::Dependency
73
- name: shindo
74
- prerelease: false
75
- requirement: &id006 !ruby/object:Gem::Requirement
76
- none: false
77
- requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: "0"
81
- type: :development
82
- version_requirements: *id006
83
- - !ruby/object:Gem::Dependency
84
- name: sinatra
85
- prerelease: false
86
- requirement: &id007 !ruby/object:Gem::Requirement
87
- none: false
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- version: "0"
92
- type: :development
93
- version_requirements: *id007
14
+ date: 2012-03-26 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: activesupport
18
+ requirement: &70201828051100 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
23
+ version: '0'
24
+ type: :development
25
+ prerelease: false
26
+ version_requirements: *70201828051100
27
+ - !ruby/object:Gem::Dependency
28
+ name: delorean
29
+ requirement: &70201828050080 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: *70201828050080
38
+ - !ruby/object:Gem::Dependency
39
+ name: open4
40
+ requirement: &70201828049280 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ type: :development
47
+ prerelease: false
48
+ version_requirements: *70201828049280
49
+ - !ruby/object:Gem::Dependency
50
+ name: rake
51
+ requirement: &70201828048840 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ type: :development
58
+ prerelease: false
59
+ version_requirements: *70201828048840
60
+ - !ruby/object:Gem::Dependency
61
+ name: rdoc
62
+ requirement: &70201828048420 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: *70201828048420
71
+ - !ruby/object:Gem::Dependency
72
+ name: shindo
73
+ requirement: &70201828047800 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ type: :development
80
+ prerelease: false
81
+ version_requirements: *70201828047800
82
+ - !ruby/object:Gem::Dependency
83
+ name: sinatra
84
+ requirement: &70201828047240 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: *70201828047240
94
93
  description: EXtended http(s) CONnections
95
94
  email: geemus@gmail.com
96
95
  executables: []
97
-
98
96
  extensions: []
99
-
100
- extra_rdoc_files:
101
- - README.md
102
- files:
103
- - Gemfile
104
- - README.md
105
- - Rakefile
106
- - benchmarks/class_vs_lambda.rb
107
- - benchmarks/concat_vs_insert.rb
108
- - benchmarks/concat_vs_interpolate.rb
109
- - benchmarks/cr_lf.rb
110
- - benchmarks/downcase-eq-eq_vs_casecmp.rb
111
- - benchmarks/excon.rb
112
- - benchmarks/excon_vs.rb
113
- - benchmarks/for_vs_array_each.rb
114
- - benchmarks/for_vs_hash_each.rb
115
- - benchmarks/has_key-vs-hash[key].rb
116
- - benchmarks/headers_case_sensitivity.rb
117
- - benchmarks/headers_split_vs_match.rb
118
- - benchmarks/implicit_block-vs-explicit_block.rb
119
- - benchmarks/merging.rb
120
- - benchmarks/single_vs_double_quotes.rb
121
- - benchmarks/string_ranged_index.rb
122
- - benchmarks/strip_newline.rb
123
- - benchmarks/vs_stdlib.rb
124
- - changelog.txt
125
- - data/cacert.pem
126
- - excon.gemspec
127
- - lib/excon.rb
128
- - lib/excon/connection.rb
129
- - lib/excon/constants.rb
130
- - lib/excon/errors.rb
131
- - lib/excon/response.rb
132
- - lib/excon/socket.rb
133
- - lib/excon/ssl_socket.rb
134
- - tests/bad_tests.rb
135
- - tests/basic_tests.rb
136
- - tests/header_tests.rb
137
- - tests/idempotent_tests.rb
138
- - tests/instrumentation_tests.rb
139
- - tests/proxy_tests.rb
140
- - tests/query_string_tests.rb
141
- - tests/rackups/basic.rb
142
- - tests/rackups/basic.ru
143
- - tests/rackups/basic_auth.ru
144
- - tests/rackups/proxy.ru
145
- - tests/rackups/query_string.ru
146
- - tests/rackups/request_methods.ru
147
- - tests/rackups/response_header.ru
148
- - tests/rackups/ssl.ru
149
- - tests/rackups/thread_safety.ru
150
- - tests/request_method_tests.rb
151
- - tests/servers/bad.rb
152
- - tests/stub_tests.rb
153
- - tests/test_helper.rb
154
- - tests/thread_safety_tests.rb
97
+ extra_rdoc_files:
98
+ - README.md
99
+ files:
100
+ - Gemfile
101
+ - README.md
102
+ - Rakefile
103
+ - benchmarks/class_vs_lambda.rb
104
+ - benchmarks/concat_vs_insert.rb
105
+ - benchmarks/concat_vs_interpolate.rb
106
+ - benchmarks/cr_lf.rb
107
+ - benchmarks/downcase-eq-eq_vs_casecmp.rb
108
+ - benchmarks/excon.rb
109
+ - benchmarks/excon_vs.rb
110
+ - benchmarks/for_vs_array_each.rb
111
+ - benchmarks/for_vs_hash_each.rb
112
+ - benchmarks/has_key-vs-hash[key].rb
113
+ - benchmarks/headers_case_sensitivity.rb
114
+ - benchmarks/headers_split_vs_match.rb
115
+ - benchmarks/implicit_block-vs-explicit_block.rb
116
+ - benchmarks/merging.rb
117
+ - benchmarks/single_vs_double_quotes.rb
118
+ - benchmarks/string_ranged_index.rb
119
+ - benchmarks/strip_newline.rb
120
+ - benchmarks/vs_stdlib.rb
121
+ - changelog.txt
122
+ - data/cacert.pem
123
+ - excon.gemspec
124
+ - lib/excon.rb
125
+ - lib/excon/connection.rb
126
+ - lib/excon/constants.rb
127
+ - lib/excon/errors.rb
128
+ - lib/excon/response.rb
129
+ - lib/excon/socket.rb
130
+ - lib/excon/ssl_socket.rb
131
+ - tests/bad_tests.rb
132
+ - tests/basic_tests.rb
133
+ - tests/header_tests.rb
134
+ - tests/idempotent_tests.rb
135
+ - tests/instrumentation_tests.rb
136
+ - tests/proxy_tests.rb
137
+ - tests/query_string_tests.rb
138
+ - tests/rackups/basic.rb
139
+ - tests/rackups/basic.ru
140
+ - tests/rackups/basic_auth.ru
141
+ - tests/rackups/proxy.ru
142
+ - tests/rackups/query_string.ru
143
+ - tests/rackups/request_methods.ru
144
+ - tests/rackups/response_header.ru
145
+ - tests/rackups/ssl.ru
146
+ - tests/rackups/thread_safety.ru
147
+ - tests/request_method_tests.rb
148
+ - tests/servers/bad.rb
149
+ - tests/stub_tests.rb
150
+ - tests/test_helper.rb
151
+ - tests/thread_safety_tests.rb
155
152
  homepage: https://github.com/geemus/excon
156
153
  licenses: []
157
-
158
154
  post_install_message:
159
- rdoc_options:
160
- - --charset=UTF-8
161
- require_paths:
162
- - lib
163
- required_ruby_version: !ruby/object:Gem::Requirement
155
+ rdoc_options:
156
+ - --charset=UTF-8
157
+ require_paths:
158
+ - lib
159
+ required_ruby_version: !ruby/object:Gem::Requirement
164
160
  none: false
165
- requirements:
166
- - - ">="
167
- - !ruby/object:Gem::Version
168
- version: "0"
169
- required_rubygems_version: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - ! '>='
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
165
+ required_rubygems_version: !ruby/object:Gem::Requirement
170
166
  none: false
171
- requirements:
172
- - - ">="
173
- - !ruby/object:Gem::Version
174
- version: "0"
167
+ requirements:
168
+ - - ! '>='
169
+ - !ruby/object:Gem::Version
170
+ version: '0'
175
171
  requirements: []
176
-
177
172
  rubyforge_project: excon
178
- rubygems_version: 1.8.9
173
+ rubygems_version: 1.8.10
179
174
  signing_key:
180
175
  specification_version: 2
181
176
  summary: speed, persistence, http(s)
182
177
  test_files: []
183
-