ethon 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +11 -1
- data/lib/ethon/curls/classes.rb +2 -3
- data/lib/ethon/curls/options.rb +1 -1
- data/lib/ethon/easy.rb +4 -579
- data/lib/ethon/easy/http.rb +7 -0
- data/lib/ethon/easy/operations.rb +0 -4
- data/lib/ethon/easy/options.rb +586 -62
- data/lib/ethon/easy/response_callbacks.rb +0 -2
- data/lib/ethon/libc.rb +14 -2
- data/lib/ethon/multi/operations.rb +0 -4
- data/lib/ethon/version.rb +1 -3
- metadata +5 -5
data/lib/ethon/libc.rb
CHANGED
@@ -1,8 +1,20 @@
|
|
1
1
|
module Ethon
|
2
|
+
|
3
|
+
# FFI Wrapper module for Libc.
|
4
|
+
#
|
5
|
+
# @api private
|
2
6
|
module Libc
|
3
7
|
extend FFI::Library
|
4
8
|
ffi_lib 'c'
|
5
|
-
|
6
|
-
|
9
|
+
|
10
|
+
# :nodoc:
|
11
|
+
def self.windows?
|
12
|
+
!(RbConfig::CONFIG['host_os'] !~ /mingw|mswin|bccwin/)
|
13
|
+
end
|
14
|
+
|
15
|
+
unless windows?
|
16
|
+
attach_function :getdtablesize, [], :int
|
17
|
+
attach_function :free, [:pointer], :void
|
18
|
+
end
|
7
19
|
end
|
8
20
|
end
|
@@ -36,8 +36,6 @@ module Ethon
|
|
36
36
|
#
|
37
37
|
# @example Perform multi.
|
38
38
|
# multi.perform
|
39
|
-
#
|
40
|
-
# @api public
|
41
39
|
def perform
|
42
40
|
Ethon.logger.debug("ETHON: started MULTI")
|
43
41
|
while ongoing?
|
@@ -58,8 +56,6 @@ module Ethon
|
|
58
56
|
# @example Prepare multi.
|
59
57
|
# multi.prepare
|
60
58
|
#
|
61
|
-
# @api public
|
62
|
-
#
|
63
59
|
# @deprecated It is no longer necessary to call prepare.
|
64
60
|
def prepare
|
65
61
|
Ethon.logger.warn(
|
data/lib/ethon/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ethon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
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: 2012-11-
|
12
|
+
date: 2012-11-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
21
|
+
version: 1.1.5
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.
|
29
|
+
version: 1.1.5
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: mime-types
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
segments:
|
124
124
|
- 0
|
125
|
-
hash:
|
125
|
+
hash: 246496117609865892
|
126
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|