ethon 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,8 +28,6 @@ module Ethon
28
28
  # request.on_complete { p "yay" }
29
29
  #
30
30
  # @param [ Block ] block The block to execute.
31
- #
32
- # @api public
33
31
  def on_complete(&block)
34
32
  @on_complete ||= []
35
33
  @on_complete << block if block_given?
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
- attach_function :getdtablesize, [], :int
6
- attach_function :free, [:pointer], :void
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
@@ -1,7 +1,5 @@
1
1
  module Ethon
2
2
 
3
3
  # Ethon version.
4
- #
5
- # @api public
6
- VERSION = '0.5.3'
4
+ VERSION = '0.5.4'
7
5
  end
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.3
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-09 00:00:00.000000000 Z
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.0.11
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.0.11
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: -3112365376601188521
125
+ hash: 246496117609865892
126
126
  required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements: