cool.io 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +5 -0
- data/cool.io.gemspec +2 -1
- data/ext/cool.io/cool.io.h +11 -0
- data/ext/cool.io/extconf.rb +8 -0
- data/ext/cool.io/iowatcher.c +4 -0
- data/ext/cool.io/utils.c +5 -0
- data/ext/libev/ev.c +3 -0
- data/lib/cool.io/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84dafb950284e75743bcba4114350a7f8cc44804b3ee25c430082d9d0031c559
|
4
|
+
data.tar.gz: 1e5e68e4fa0f37b2de36050e40b7904f85c9c44d8ac2dffc4e086a8d1784cf9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d82eef066ebb74147283ce08d54f34946c37b64b52c2f2fdcae36ad393f38b61701b622cdc39cbb9dec9a981d870b722bfcedec8de082d2b2fa36d9a7dbfeaf
|
7
|
+
data.tar.gz: fc20a2949c133b2801ce2fd2928eaadea71840062079bafec7b19d5ba11d8db9bab57b162f0ea5c82b40828c93b753e02ccbc7964c805bcd6bdf81f948b0f78b
|
data/CHANGES.md
CHANGED
data/cool.io.gemspec
CHANGED
@@ -11,6 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.summary = "A cool framework for doing high performance I/O in Ruby"
|
12
12
|
s.description = "Cool.io provides a high performance event framework for Ruby which uses the libev C library"
|
13
13
|
s.extensions = ["ext/cool.io/extconf.rb", "ext/iobuffer/extconf.rb"]
|
14
|
+
s.licenses = ["MIT"]
|
14
15
|
|
15
16
|
s.files = `git ls-files`.split("\n")
|
16
17
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
@@ -18,7 +19,7 @@ Gem::Specification.new do |s|
|
|
18
19
|
s.require_paths = ["lib"]
|
19
20
|
|
20
21
|
s.add_development_dependency "rake-compiler", "~> 1.0"
|
21
|
-
s.add_development_dependency "rake-compiler-dock", "~>
|
22
|
+
s.add_development_dependency "rake-compiler-dock", "~> 1.0"
|
22
23
|
s.add_development_dependency "rspec", ">= 2.13.0"
|
23
24
|
s.add_development_dependency "rdoc", ">= 3.6.0"
|
24
25
|
end
|
data/ext/cool.io/cool.io.h
CHANGED
@@ -8,7 +8,11 @@
|
|
8
8
|
#define COOLIO_H
|
9
9
|
|
10
10
|
#include "ruby.h"
|
11
|
+
#if defined(HAVE_RUBY_IO_H)
|
12
|
+
#include "ruby/io.h"
|
13
|
+
#else
|
11
14
|
#include "rubyio.h"
|
15
|
+
#endif
|
12
16
|
|
13
17
|
#ifdef GetReadFile
|
14
18
|
#define FPTR_TO_FD(fptr) (fileno(GetReadFile(fptr)))
|
@@ -56,4 +60,11 @@ struct Coolio_Watcher
|
|
56
60
|
|
57
61
|
void Coolio_Loop_process_event(VALUE watcher, int revents);
|
58
62
|
|
63
|
+
void Init_coolio_loop();
|
64
|
+
void Init_coolio_watcher();
|
65
|
+
void Init_coolio_iowatcher();
|
66
|
+
void Init_coolio_timer_watcher();
|
67
|
+
void Init_coolio_stat_watcher();
|
68
|
+
void Init_coolio_utils();
|
69
|
+
|
59
70
|
#endif
|
data/ext/cool.io/extconf.rb
CHANGED
@@ -10,6 +10,14 @@ have_func('rb_thread_alone')
|
|
10
10
|
have_func('rb_str_set_len')
|
11
11
|
have_library('rt', 'clock_gettime')
|
12
12
|
|
13
|
+
if have_header('ruby/io.h')
|
14
|
+
$defs << '-DHAVE_RUBY_IO_H'
|
15
|
+
end
|
16
|
+
|
17
|
+
if have_header('ruby/thread.h')
|
18
|
+
$defs << '-DHAVE_RUBY_THREAD_H'
|
19
|
+
end
|
20
|
+
|
13
21
|
if have_header('sys/select.h')
|
14
22
|
$defs << '-DEV_USE_SELECT'
|
15
23
|
end
|
data/ext/cool.io/iowatcher.c
CHANGED
data/ext/cool.io/utils.c
CHANGED
data/ext/libev/ev.c
CHANGED
@@ -39,6 +39,9 @@
|
|
39
39
|
|
40
40
|
/* ########## COOLIO PATCHERY HO! ########## */
|
41
41
|
#include "ruby.h"
|
42
|
+
#if defined(HAVE_RUBY_THREAD_H)
|
43
|
+
#include "ruby/thread.h"
|
44
|
+
#endif
|
42
45
|
/* ######################################## */
|
43
46
|
|
44
47
|
/* this big block deduces configuration from config.h */
|
data/lib/cool.io/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cool.io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Arcieri
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-09-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: '1.0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: '1.0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rspec
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,7 +154,8 @@ files:
|
|
154
154
|
- spec/unix_listener_spec.rb
|
155
155
|
- spec/unix_server_spec.rb
|
156
156
|
homepage: http://coolio.github.com
|
157
|
-
licenses:
|
157
|
+
licenses:
|
158
|
+
- MIT
|
158
159
|
metadata: {}
|
159
160
|
post_install_message:
|
160
161
|
rdoc_options: []
|