excon 0.12.0 → 0.13.0
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 +5 -0
- data/excon.gemspec +2 -2
- data/lib/excon/constants.rb +1 -1
- data/lib/excon/ssl_socket.rb +11 -1
- metadata +162 -156
data/changelog.txt
CHANGED
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.
|
17
|
-
s.date = '2012-03-
|
16
|
+
s.version = '0.13.0'
|
17
|
+
s.date = '2012-03-22'
|
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/constants.rb
CHANGED
data/lib/excon/ssl_socket.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Excon
|
2
2
|
class SSLSocket < Socket
|
3
3
|
|
4
|
-
# backwards compatability for
|
4
|
+
# backwards compatability for things lacking connect_nonblock
|
5
5
|
unless OpenSSL::SSL::SSLSocket.public_method_defined?(:connect_nonblock)
|
6
6
|
|
7
7
|
undef_method :connect
|
@@ -9,9 +9,19 @@ module Excon
|
|
9
9
|
@socket = TCPSocket.new(@params[:host], @params[:port])
|
10
10
|
end
|
11
11
|
|
12
|
+
end
|
13
|
+
|
14
|
+
# backwards compatability for things lacking read_nonblock
|
15
|
+
unless OpenSSL::SSL::SSLSocket.public_method_defined?(:read_nonblock)
|
16
|
+
|
12
17
|
undef_method :read
|
13
18
|
def_delegators(:@socket, :read, :read)
|
14
19
|
|
20
|
+
end
|
21
|
+
|
22
|
+
# backwards compatability for things lacking write_nonblock
|
23
|
+
unless OpenSSL::SSL::SSLSocket.public_method_defined?(:write_nonblock)
|
24
|
+
|
15
25
|
undef_method :write
|
16
26
|
def_delegators(:@socket, :write, :write)
|
17
27
|
|
metadata
CHANGED
@@ -1,177 +1,183 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: excon
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.0
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
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
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
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
|
93
94
|
description: EXtended http(s) CONnections
|
94
95
|
email: geemus@gmail.com
|
95
96
|
executables: []
|
97
|
+
|
96
98
|
extensions: []
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
-
|
104
|
-
- benchmarks/
|
105
|
-
- benchmarks/
|
106
|
-
- benchmarks/
|
107
|
-
- benchmarks/
|
108
|
-
- benchmarks/
|
109
|
-
- benchmarks/
|
110
|
-
- benchmarks/
|
111
|
-
- benchmarks/
|
112
|
-
- benchmarks/
|
113
|
-
- benchmarks/
|
114
|
-
- benchmarks/
|
115
|
-
- benchmarks/
|
116
|
-
- benchmarks/
|
117
|
-
- benchmarks/
|
118
|
-
- benchmarks/
|
119
|
-
- benchmarks/
|
120
|
-
- benchmarks/
|
121
|
-
-
|
122
|
-
-
|
123
|
-
-
|
124
|
-
-
|
125
|
-
- lib/excon
|
126
|
-
- lib/excon/
|
127
|
-
- lib/excon/
|
128
|
-
- lib/excon/
|
129
|
-
- lib/excon/
|
130
|
-
- lib/excon/
|
131
|
-
-
|
132
|
-
- tests/
|
133
|
-
- tests/
|
134
|
-
- tests/
|
135
|
-
- tests/
|
136
|
-
- tests/
|
137
|
-
- tests/
|
138
|
-
- tests/
|
139
|
-
- tests/rackups/basic.
|
140
|
-
- tests/rackups/
|
141
|
-
- tests/rackups/
|
142
|
-
- tests/rackups/
|
143
|
-
- tests/rackups/
|
144
|
-
- tests/rackups/
|
145
|
-
- tests/rackups/
|
146
|
-
- tests/rackups/
|
147
|
-
- tests/
|
148
|
-
- tests/
|
149
|
-
- tests/
|
150
|
-
- tests/
|
151
|
-
- tests/
|
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
|
152
155
|
homepage: https://github.com/geemus/excon
|
153
156
|
licenses: []
|
157
|
+
|
154
158
|
post_install_message:
|
155
|
-
rdoc_options:
|
156
|
-
- --charset=UTF-8
|
157
|
-
require_paths:
|
158
|
-
- lib
|
159
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
159
|
+
rdoc_options:
|
160
|
+
- --charset=UTF-8
|
161
|
+
require_paths:
|
162
|
+
- lib
|
163
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
160
164
|
none: false
|
161
|
-
requirements:
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: "0"
|
169
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
166
170
|
none: false
|
167
|
-
requirements:
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
+
requirements:
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: "0"
|
171
175
|
requirements: []
|
176
|
+
|
172
177
|
rubyforge_project: excon
|
173
|
-
rubygems_version: 1.8.
|
178
|
+
rubygems_version: 1.8.9
|
174
179
|
signing_key:
|
175
180
|
specification_version: 2
|
176
181
|
summary: speed, persistence, http(s)
|
177
182
|
test_files: []
|
183
|
+
|