event 0.1.0 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/event/Makefile +267 -0
- data/ext/event/backend/backend.h +29 -0
- data/ext/event/backend/epoll.c +293 -0
- data/ext/event/backend/epoll.h +25 -0
- data/ext/event/backend/kqueue.c +330 -0
- data/ext/event/backend/kqueue.h +27 -0
- data/ext/event/backend/uring.c +407 -0
- data/ext/event/backend/uring.h +28 -0
- data/ext/event/event.bundle +0 -0
- data/ext/event/event.c +46 -0
- data/ext/event/event.h +39 -0
- data/ext/event/event.o +0 -0
- data/ext/event/extconf.h +4 -0
- data/ext/event/extconf.rb +51 -0
- data/ext/event/kqueue.o +0 -0
- data/ext/event/mkmf.log +73 -0
- data/lib/event.rb +33 -3
- data/lib/event/backend/select.rb +72 -0
- data/lib/event/debug/selector.rb +99 -0
- data/lib/event/selector.rb +26 -0
- data/lib/event/version.rb +1 -1
- metadata +49 -3
data/lib/event/selector.rb
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
# Copyright, 2021, by Samuel G. D. Williams. <http://www.codeotaku.com>
|
2
|
+
#
|
3
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
# of this software and associated documentation files (the "Software"), to deal
|
5
|
+
# in the Software without restriction, including without limitation the rights
|
6
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
# copies of the Software, and to permit persons to whom the Software is
|
8
|
+
# furnished to do so, subject to the following conditions:
|
9
|
+
#
|
10
|
+
# The above copyright notice and this permission notice shall be included in
|
11
|
+
# all copies or substantial portions of the Software.
|
12
|
+
#
|
13
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
# THE SOFTWARE.
|
20
|
+
|
21
|
+
require "event/version"
|
22
|
+
|
23
|
+
module Event
|
24
|
+
class Selector
|
25
|
+
end
|
26
|
+
end
|
data/lib/event/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: event
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -24,6 +38,20 @@ dependencies:
|
|
24
38
|
- - ">="
|
25
39
|
- !ruby/object:Gem::Version
|
26
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: covered
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: rspec
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -41,11 +69,29 @@ dependencies:
|
|
41
69
|
description:
|
42
70
|
email:
|
43
71
|
executables: []
|
44
|
-
extensions:
|
72
|
+
extensions:
|
73
|
+
- ext/event/extconf.rb
|
45
74
|
extra_rdoc_files: []
|
46
75
|
files:
|
76
|
+
- ext/event/Makefile
|
77
|
+
- ext/event/backend/backend.h
|
78
|
+
- ext/event/backend/epoll.c
|
79
|
+
- ext/event/backend/epoll.h
|
80
|
+
- ext/event/backend/kqueue.c
|
81
|
+
- ext/event/backend/kqueue.h
|
82
|
+
- ext/event/backend/uring.c
|
83
|
+
- ext/event/backend/uring.h
|
84
|
+
- ext/event/event.bundle
|
85
|
+
- ext/event/event.c
|
86
|
+
- ext/event/event.h
|
87
|
+
- ext/event/event.o
|
88
|
+
- ext/event/extconf.h
|
89
|
+
- ext/event/extconf.rb
|
90
|
+
- ext/event/kqueue.o
|
91
|
+
- ext/event/mkmf.log
|
47
92
|
- lib/event.rb
|
48
93
|
- lib/event/backend/select.rb
|
94
|
+
- lib/event/debug/selector.rb
|
49
95
|
- lib/event/selector.rb
|
50
96
|
- lib/event/version.rb
|
51
97
|
homepage: https://github.com/socketry/event
|