libuv 0.11.7 → 0.11.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 190fdb960608a90e2d9d0bebf759428bd21e70bc
4
- data.tar.gz: 086bc85b1f680d3a3dd60636096033bc41c04005
3
+ metadata.gz: 52d38595bf236db2b42ddef34fc7e155adfde67a
4
+ data.tar.gz: 777bb7bfb0b28d2cc40824a038b8226baede054d
5
5
  SHA512:
6
- metadata.gz: 9ba875bf5e8d40cac433c1c0bb399babbc7831dbd48e927a9c0fb7be29acea09060357bbf2ff6104f8bab3905469d95ce330e3943fbfb664eb6d695a532009bb
7
- data.tar.gz: dd2b2fea2a67280417d4c6fe2ade106b752dd89b2850c05bde1f9eb00b6f26614ad09219b4cff129b2c892a84f3e924479c3f2d71ba1e4e4f19672f6ae605ccd
6
+ metadata.gz: 431ae6e5b77407b13790db04fc6c782c63952b86c83686399f49467b69790dbcb9c3b628e590a93cf1d340297d4cc5d1fdfcd628c97003f9c43e8b92978ea888
7
+ data.tar.gz: e17c15c32b7e1ee7af521998196c9eb3e390755dbbf4d39608c2ed35b2362242c9c17abbd329262ae3d68f19db18aacfaaba66c94ca91e333c9a703ac95d2a6e
@@ -15,7 +15,7 @@ end
15
15
  file 'ext/libuv/build/gyp' => 'ext/libuv/build' do
16
16
  result = true
17
17
  if not File.directory?('ext/libuv/build/gyp')
18
- result = system "svn", "export", "-r1214", "http://gyp.googlecode.com/svn/trunk", "ext/libuv/build/gyp"
18
+ result = system "svn", "export", "-r1824", "http://gyp.googlecode.com/svn/trunk", "ext/libuv/build/gyp"
19
19
  end
20
20
  raise 'unable to download gyp' unless result
21
21
  end
data/lib/libuv/loop.rb CHANGED
@@ -350,7 +350,7 @@ module Libuv
350
350
  assert_block(callback)
351
351
 
352
352
  if reactor_thread?
353
- block.call
353
+ callback.call
354
354
  else
355
355
  @run_queue << callback
356
356
  @process_queue.call
data/lib/libuv/tcp.rb CHANGED
@@ -126,6 +126,18 @@ module Libuv
126
126
  deferred.promise
127
127
  end
128
128
  end
129
+
130
+ alias_method :do_shutdown, :shutdown
131
+ def shutdown
132
+ return if @closed
133
+ if @tls.nil?
134
+ do_shutdown
135
+ elsif @handshake == false && @pending_writes.length > 0
136
+ @pending_writes[-1][0].finally method(:do_shutdown)
137
+ else
138
+ do_shutdown
139
+ end
140
+ end
129
141
  #
130
142
  # END TLS Abstraction ------------------
131
143
  # --------------------------------------
data/lib/libuv/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Libuv
2
- VERSION = '0.11.7'
2
+ VERSION = '0.11.18'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libuv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.7
4
+ version: 0.11.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bulat Shakirzyanov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-23 00:00:00.000000000 Z
12
+ date: 2014-01-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi