libuv 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/lib/libuv/ext/ext.rb +3 -2
- data/lib/libuv/ext/types.rb +2 -1
- data/lib/libuv/tcp.rb +8 -2
- data/lib/libuv/version.rb +1 -1
- metadata +115 -68
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dddec388d36bbe88b300143de8aafff0a78472c2
|
4
|
+
data.tar.gz: d269f7edc49825009454fdb7f86a6cd31d31ed6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 666a607295cf555956df1b520c137208438086c8a79dad5956385bacf53bb20bc7b8d380931b67e9926ba6899b8b8c1fa51b7a8ff0c7ec1c87c4ea40e487545f
|
7
|
+
data.tar.gz: 201e8c597aad69f29e23ed62430f38b57a588ea9cd1bee0173db54e5d7c3a21a7e17efbcd6ed581a722340d17e80a6381af3cf46f03fd877f1fa1fc43e6b2c45
|
data/.travis.yml
CHANGED
data/lib/libuv/ext/ext.rb
CHANGED
@@ -193,8 +193,8 @@ module Libuv
|
|
193
193
|
attach_function :fs_write, :uv_fs_write, [:uv_loop_t, :uv_fs_t, :uv_file, :pointer, :uint, :off_t, :uv_fs_cb], :int, :blocking => true
|
194
194
|
attach_function :fs_mkdir, :uv_fs_mkdir, [:uv_loop_t, :uv_fs_t, :string, :int, :uv_fs_cb], :int, :blocking => true
|
195
195
|
attach_function :fs_rmdir, :uv_fs_rmdir, [:uv_loop_t, :uv_fs_t, :string, :uv_fs_cb], :int, :blocking => true
|
196
|
-
attach_function :fs_readdir, :
|
197
|
-
attach_function :fs_readdir_next, :
|
196
|
+
attach_function :fs_readdir, :uv_fs_scandir, [:uv_loop_t, :uv_fs_t, :string, :int, :uv_fs_cb], :int, :blocking => true
|
197
|
+
attach_function :fs_readdir_next, :uv_fs_scandir_next, [:uv_fs_t, :uv_dirent_t], :int, :blocking => true
|
198
198
|
attach_function :fs_stat, :uv_fs_stat, [:uv_loop_t, :uv_fs_t, :string, :uv_fs_cb], :int, :blocking => true
|
199
199
|
attach_function :fs_fstat, :uv_fs_fstat, [:uv_loop_t, :uv_fs_t, :uv_file, :uv_fs_cb], :int, :blocking => true
|
200
200
|
attach_function :fs_rename, :uv_fs_rename, [:uv_loop_t, :uv_fs_t, :string, :string, :uv_fs_cb], :int, :blocking => true
|
@@ -205,6 +205,7 @@ module Libuv
|
|
205
205
|
attach_function :fs_chmod, :uv_fs_chmod, [:uv_loop_t, :uv_fs_t, :string, :int, :uv_fs_cb], :int, :blocking => true
|
206
206
|
attach_function :fs_utime, :uv_fs_utime, [:uv_loop_t, :uv_fs_t, :string, :double, :double, :uv_fs_cb], :int, :blocking => true
|
207
207
|
attach_function :fs_futime, :uv_fs_futime, [:uv_loop_t, :uv_fs_t, :uv_file, :double, :double, :uv_fs_cb], :int, :blocking => true
|
208
|
+
attach_function :fs_access, :uv_fs_access, [:uv_loop_t, :uv_fs_t, :string, :int, :uv_fs_cb], :int, :blocking => true
|
208
209
|
attach_function :fs_lstat, :uv_fs_lstat, [:uv_loop_t, :uv_fs_t, :string, :uv_fs_cb], :int, :blocking => true
|
209
210
|
attach_function :fs_link, :uv_fs_link, [:uv_loop_t, :uv_fs_t, :string, :string, :uv_fs_cb], :int, :blocking => true
|
210
211
|
attach_function :fs_symlink, :uv_fs_symlink, [:uv_loop_t, :uv_fs_t, :string, :string, :int, :uv_fs_cb], :int, :blocking => true
|
data/lib/libuv/ext/types.rb
CHANGED
@@ -67,6 +67,7 @@ module Libuv
|
|
67
67
|
:UV_FS_FTRUNCATE,
|
68
68
|
:UV_FS_UTIME,
|
69
69
|
:UV_FS_FUTIME,
|
70
|
+
:UV_FS_ACCESS,
|
70
71
|
:UV_FS_CHMOD,
|
71
72
|
:UV_FS_FCHMOD,
|
72
73
|
:UV_FS_FSYNC,
|
@@ -75,7 +76,7 @@ module Libuv
|
|
75
76
|
:UV_FS_RMDIR,
|
76
77
|
:UV_FS_MKDIR,
|
77
78
|
:UV_FS_RENAME,
|
78
|
-
:
|
79
|
+
:UV_FS_SCANDIR,
|
79
80
|
:UV_FS_LINK,
|
80
81
|
:UV_FS_SYMLINK,
|
81
82
|
:UV_FS_READLINK,
|
data/lib/libuv/tcp.rb
CHANGED
@@ -93,7 +93,13 @@ module Libuv
|
|
93
93
|
def close
|
94
94
|
return if @closed
|
95
95
|
|
96
|
-
|
96
|
+
# Free tls memory
|
97
|
+
# Next tick as may recieve data after closing
|
98
|
+
if @tls
|
99
|
+
@loop.next_tick do
|
100
|
+
@tls.cleanup
|
101
|
+
end
|
102
|
+
end
|
97
103
|
@connected = false
|
98
104
|
|
99
105
|
if not @pending_writes.nil?
|
@@ -332,4 +338,4 @@ module Libuv
|
|
332
338
|
end
|
333
339
|
end
|
334
340
|
end
|
335
|
-
end
|
341
|
+
end
|
data/lib/libuv/version.rb
CHANGED
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: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bulat Shakirzyanov
|
@@ -9,90 +9,90 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-11-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '1.9'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '1.9'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: thread_safe
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: ruby-tls
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: 1.0.3
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 1.0.3
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rspec
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '2.14'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '2.14'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: rake
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '10.1'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '10.1'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: yard
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '0'
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
98
|
description: An opinionated wrapper around libuv for Ruby
|
@@ -104,63 +104,16 @@ extensions:
|
|
104
104
|
- ext/Rakefile
|
105
105
|
extra_rdoc_files: []
|
106
106
|
files:
|
107
|
-
- .gitignore
|
108
|
-
- .gitmodules
|
109
|
-
- .rspec
|
110
|
-
- .travis.yml
|
107
|
+
- ".gitignore"
|
108
|
+
- ".gitmodules"
|
109
|
+
- ".rspec"
|
110
|
+
- ".travis.yml"
|
111
111
|
- Gemfile
|
112
112
|
- LICENSE
|
113
113
|
- README.md
|
114
114
|
- Rakefile
|
115
115
|
- ext/README.md
|
116
116
|
- ext/Rakefile
|
117
|
-
- lib/libuv.rb
|
118
|
-
- lib/libuv/async.rb
|
119
|
-
- lib/libuv/check.rb
|
120
|
-
- lib/libuv/coroutines.rb
|
121
|
-
- lib/libuv/dns.rb
|
122
|
-
- lib/libuv/error.rb
|
123
|
-
- lib/libuv/ext/ext.rb
|
124
|
-
- lib/libuv/ext/platform/darwin_x64.rb
|
125
|
-
- lib/libuv/ext/platform/unix.rb
|
126
|
-
- lib/libuv/ext/platform/windows.rb
|
127
|
-
- lib/libuv/ext/tasks.rb
|
128
|
-
- lib/libuv/ext/tasks/mac.rb
|
129
|
-
- lib/libuv/ext/tasks/unix.rb
|
130
|
-
- lib/libuv/ext/tasks/win.rb
|
131
|
-
- lib/libuv/ext/types.rb
|
132
|
-
- lib/libuv/file.rb
|
133
|
-
- lib/libuv/filesystem.rb
|
134
|
-
- lib/libuv/fs_event.rb
|
135
|
-
- lib/libuv/handle.rb
|
136
|
-
- lib/libuv/idle.rb
|
137
|
-
- lib/libuv/loop.rb
|
138
|
-
- lib/libuv/mixins/assertions.rb
|
139
|
-
- lib/libuv/mixins/fs_checks.rb
|
140
|
-
- lib/libuv/mixins/listener.rb
|
141
|
-
- lib/libuv/mixins/net.rb
|
142
|
-
- lib/libuv/mixins/resource.rb
|
143
|
-
- lib/libuv/mixins/stream.rb
|
144
|
-
- lib/libuv/pipe.rb
|
145
|
-
- lib/libuv/prepare.rb
|
146
|
-
- lib/libuv/q.rb
|
147
|
-
- lib/libuv/signal.rb
|
148
|
-
- lib/libuv/tcp.rb
|
149
|
-
- lib/libuv/timer.rb
|
150
|
-
- lib/libuv/tty.rb
|
151
|
-
- lib/libuv/udp.rb
|
152
|
-
- lib/libuv/version.rb
|
153
|
-
- lib/libuv/work.rb
|
154
|
-
- libuv.gemspec
|
155
|
-
- spec/async_spec.rb
|
156
|
-
- spec/coroutines_spec.rb
|
157
|
-
- spec/cpu_spec.rb
|
158
|
-
- spec/defer_spec.rb
|
159
|
-
- spec/dns_spec.rb
|
160
|
-
- spec/filesystem_spec.rb
|
161
|
-
- spec/idle_spec.rb
|
162
|
-
- spec/pipe_spec.rb
|
163
|
-
- spec/tcp_spec.rb
|
164
117
|
- ext/libuv/.gitignore
|
165
118
|
- ext/libuv/.mailmap
|
166
119
|
- ext/libuv/AUTHORS
|
@@ -175,6 +128,50 @@ files:
|
|
175
128
|
- ext/libuv/checksparse.sh
|
176
129
|
- ext/libuv/common.gypi
|
177
130
|
- ext/libuv/configure.ac
|
131
|
+
- ext/libuv/docs/Makefile
|
132
|
+
- ext/libuv/docs/make.bat
|
133
|
+
- ext/libuv/docs/src/async.rst
|
134
|
+
- ext/libuv/docs/src/check.rst
|
135
|
+
- ext/libuv/docs/src/conf.py
|
136
|
+
- ext/libuv/docs/src/design.rst
|
137
|
+
- ext/libuv/docs/src/dll.rst
|
138
|
+
- ext/libuv/docs/src/dns.rst
|
139
|
+
- ext/libuv/docs/src/errors.rst
|
140
|
+
- ext/libuv/docs/src/fs.rst
|
141
|
+
- ext/libuv/docs/src/fs_event.rst
|
142
|
+
- ext/libuv/docs/src/fs_poll.rst
|
143
|
+
- ext/libuv/docs/src/handle.rst
|
144
|
+
- ext/libuv/docs/src/idle.rst
|
145
|
+
- ext/libuv/docs/src/index.rst
|
146
|
+
- ext/libuv/docs/src/loop.rst
|
147
|
+
- ext/libuv/docs/src/migration_010_100.rst
|
148
|
+
- ext/libuv/docs/src/misc.rst
|
149
|
+
- ext/libuv/docs/src/pipe.rst
|
150
|
+
- ext/libuv/docs/src/poll.rst
|
151
|
+
- ext/libuv/docs/src/prepare.rst
|
152
|
+
- ext/libuv/docs/src/process.rst
|
153
|
+
- ext/libuv/docs/src/request.rst
|
154
|
+
- ext/libuv/docs/src/signal.rst
|
155
|
+
- ext/libuv/docs/src/static/architecture.png
|
156
|
+
- ext/libuv/docs/src/static/diagrams.key/Data/st0-311.jpg
|
157
|
+
- ext/libuv/docs/src/static/diagrams.key/Data/st1-475.jpg
|
158
|
+
- ext/libuv/docs/src/static/diagrams.key/Index.zip
|
159
|
+
- ext/libuv/docs/src/static/diagrams.key/Metadata/BuildVersionHistory.plist
|
160
|
+
- ext/libuv/docs/src/static/diagrams.key/Metadata/DocumentIdentifier
|
161
|
+
- ext/libuv/docs/src/static/diagrams.key/Metadata/Properties.plist
|
162
|
+
- ext/libuv/docs/src/static/diagrams.key/preview-micro.jpg
|
163
|
+
- ext/libuv/docs/src/static/diagrams.key/preview-web.jpg
|
164
|
+
- ext/libuv/docs/src/static/diagrams.key/preview.jpg
|
165
|
+
- ext/libuv/docs/src/static/favicon.ico
|
166
|
+
- ext/libuv/docs/src/static/logo.png
|
167
|
+
- ext/libuv/docs/src/static/loop_iteration.png
|
168
|
+
- ext/libuv/docs/src/stream.rst
|
169
|
+
- ext/libuv/docs/src/tcp.rst
|
170
|
+
- ext/libuv/docs/src/threading.rst
|
171
|
+
- ext/libuv/docs/src/threadpool.rst
|
172
|
+
- ext/libuv/docs/src/timer.rst
|
173
|
+
- ext/libuv/docs/src/tty.rst
|
174
|
+
- ext/libuv/docs/src/udp.rst
|
178
175
|
- ext/libuv/gyp_uv.py
|
179
176
|
- ext/libuv/img/banner.png
|
180
177
|
- ext/libuv/img/logos.svg
|
@@ -197,6 +194,7 @@ files:
|
|
197
194
|
- ext/libuv/m4/.gitignore
|
198
195
|
- ext/libuv/m4/as_case.m4
|
199
196
|
- ext/libuv/m4/dtrace.m4
|
197
|
+
- ext/libuv/m4/libuv-check-flags.m4
|
200
198
|
- ext/libuv/samples/.gitignore
|
201
199
|
- ext/libuv/samples/socks5-proxy/.gitignore
|
202
200
|
- ext/libuv/samples/socks5-proxy/LICENSE
|
@@ -330,6 +328,7 @@ files:
|
|
330
328
|
- ext/libuv/test/test-condvar.c
|
331
329
|
- ext/libuv/test/test-connection-fail.c
|
332
330
|
- ext/libuv/test/test-cwd-and-chdir.c
|
331
|
+
- ext/libuv/test/test-default-loop-close.c
|
333
332
|
- ext/libuv/test/test-delayed-accept.c
|
334
333
|
- ext/libuv/test/test-dlerror.c
|
335
334
|
- ext/libuv/test/test-embed.c
|
@@ -405,6 +404,7 @@ files:
|
|
405
404
|
- ext/libuv/test/test-tcp-write-queue-order.c
|
406
405
|
- ext/libuv/test/test-tcp-write-to-half-open-connection.c
|
407
406
|
- ext/libuv/test/test-tcp-writealot.c
|
407
|
+
- ext/libuv/test/test-thread-equal.c
|
408
408
|
- ext/libuv/test/test-thread.c
|
409
409
|
- ext/libuv/test/test-threadpool-cancel.c
|
410
410
|
- ext/libuv/test/test-threadpool.c
|
@@ -430,6 +430,53 @@ files:
|
|
430
430
|
- ext/libuv/test/test-watcher-cross-stop.c
|
431
431
|
- ext/libuv/uv.gyp
|
432
432
|
- ext/libuv/vcbuild.bat
|
433
|
+
- lib/libuv.rb
|
434
|
+
- lib/libuv/async.rb
|
435
|
+
- lib/libuv/check.rb
|
436
|
+
- lib/libuv/coroutines.rb
|
437
|
+
- lib/libuv/dns.rb
|
438
|
+
- lib/libuv/error.rb
|
439
|
+
- lib/libuv/ext/ext.rb
|
440
|
+
- lib/libuv/ext/platform/darwin_x64.rb
|
441
|
+
- lib/libuv/ext/platform/unix.rb
|
442
|
+
- lib/libuv/ext/platform/windows.rb
|
443
|
+
- lib/libuv/ext/tasks.rb
|
444
|
+
- lib/libuv/ext/tasks/mac.rb
|
445
|
+
- lib/libuv/ext/tasks/unix.rb
|
446
|
+
- lib/libuv/ext/tasks/win.rb
|
447
|
+
- lib/libuv/ext/types.rb
|
448
|
+
- lib/libuv/file.rb
|
449
|
+
- lib/libuv/filesystem.rb
|
450
|
+
- lib/libuv/fs_event.rb
|
451
|
+
- lib/libuv/handle.rb
|
452
|
+
- lib/libuv/idle.rb
|
453
|
+
- lib/libuv/loop.rb
|
454
|
+
- lib/libuv/mixins/assertions.rb
|
455
|
+
- lib/libuv/mixins/fs_checks.rb
|
456
|
+
- lib/libuv/mixins/listener.rb
|
457
|
+
- lib/libuv/mixins/net.rb
|
458
|
+
- lib/libuv/mixins/resource.rb
|
459
|
+
- lib/libuv/mixins/stream.rb
|
460
|
+
- lib/libuv/pipe.rb
|
461
|
+
- lib/libuv/prepare.rb
|
462
|
+
- lib/libuv/q.rb
|
463
|
+
- lib/libuv/signal.rb
|
464
|
+
- lib/libuv/tcp.rb
|
465
|
+
- lib/libuv/timer.rb
|
466
|
+
- lib/libuv/tty.rb
|
467
|
+
- lib/libuv/udp.rb
|
468
|
+
- lib/libuv/version.rb
|
469
|
+
- lib/libuv/work.rb
|
470
|
+
- libuv.gemspec
|
471
|
+
- spec/async_spec.rb
|
472
|
+
- spec/coroutines_spec.rb
|
473
|
+
- spec/cpu_spec.rb
|
474
|
+
- spec/defer_spec.rb
|
475
|
+
- spec/dns_spec.rb
|
476
|
+
- spec/filesystem_spec.rb
|
477
|
+
- spec/idle_spec.rb
|
478
|
+
- spec/pipe_spec.rb
|
479
|
+
- spec/tcp_spec.rb
|
433
480
|
homepage: https://github.com/cotag/libuv
|
434
481
|
licenses:
|
435
482
|
- MIT
|
@@ -440,17 +487,17 @@ require_paths:
|
|
440
487
|
- lib
|
441
488
|
required_ruby_version: !ruby/object:Gem::Requirement
|
442
489
|
requirements:
|
443
|
-
- -
|
490
|
+
- - ">="
|
444
491
|
- !ruby/object:Gem::Version
|
445
492
|
version: 1.9.2
|
446
493
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
447
494
|
requirements:
|
448
|
-
- -
|
495
|
+
- - ">="
|
449
496
|
- !ruby/object:Gem::Version
|
450
497
|
version: '0'
|
451
498
|
requirements: []
|
452
499
|
rubyforge_project:
|
453
|
-
rubygems_version: 2.
|
500
|
+
rubygems_version: 2.2.2
|
454
501
|
signing_key:
|
455
502
|
specification_version: 4
|
456
503
|
summary: libuv bindings for Ruby
|