rb-kqueue 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rb-kqueue.rb +3 -2
- data/lib/rb-kqueue/version.rb +3 -0
- data/lib/rb-kqueue/watcher/signal.rb +2 -2
- data/rb-kqueue.gemspec +4 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e0fbb1227b72dfcf7a88a6518c1d682eb7b16cc
|
4
|
+
data.tar.gz: 1b116b3d52ff04e5d31a78ef819020a6a6001c6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ada986f6476b4d522a5103fd2d56623a0dd7b86f271c7549c4a2fb9d0722492574446c09b8aa023ed059837fc8122fb30969436510798957a7b95e6a3c5c69f
|
7
|
+
data.tar.gz: 712ae220aa51c262ba8126909fcd6d1d9b981c2fa9cb6900b70629085e46bbab0ff775eebdcd6656100843a581f77a16c5c4a71a63f01f3a8d4dba3b07a48c02
|
data/lib/rb-kqueue.rb
CHANGED
@@ -4,8 +4,11 @@ require 'rb-kqueue/watcher'
|
|
4
4
|
require 'rb-kqueue/watcher/file'
|
5
5
|
require 'rb-kqueue/watcher/read_write'
|
6
6
|
require 'rb-kqueue/watcher/process'
|
7
|
+
require 'rb-kqueue/watcher/signal'
|
8
|
+
require 'rb-kqueue/watcher/timer'
|
7
9
|
require 'rb-kqueue/event'
|
8
10
|
require 'rb-kqueue/queue'
|
11
|
+
require 'rb-kqueue/version'
|
9
12
|
|
10
13
|
# The root module of the library, which is laid out as so:
|
11
14
|
#
|
@@ -13,8 +16,6 @@ require 'rb-kqueue/queue'
|
|
13
16
|
# * {Watcher} -- A watcher for a single sort of event
|
14
17
|
# * {Event} -- A notification that an event has occurred
|
15
18
|
module KQueue
|
16
|
-
VERSION = [0, 2, 3]
|
17
|
-
|
18
19
|
# Raise an exception for a native kqueue error.
|
19
20
|
#
|
20
21
|
# @param errno [Fixnum] The errno identifying the sort of error.
|
@@ -19,9 +19,9 @@ module KQueue
|
|
19
19
|
def initialize(queue, signal, callback)
|
20
20
|
if signal.is_a?(String)
|
21
21
|
@name = signal
|
22
|
-
@number = Signal.list[signal]
|
22
|
+
@number = ::Signal.list[signal]
|
23
23
|
else
|
24
|
-
@name = Signal.list.find {|_, n| n == signal}.first
|
24
|
+
@name = ::Signal.list.find {|_, n| n == signal}.first
|
25
25
|
@number = signal
|
26
26
|
end
|
27
27
|
|
data/rb-kqueue.gemspec
CHANGED
@@ -3,13 +3,15 @@
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
|
+
require File.expand_path('../lib/rb-kqueue/version', __FILE__)
|
7
|
+
|
6
8
|
Gem::Specification.new do |gem|
|
7
9
|
gem.name = %q{rb-kqueue}
|
8
|
-
gem.version = "
|
10
|
+
gem.version = KQueue::VERSION.join(".")
|
9
11
|
|
10
12
|
gem.authors = ["Mathieu Arnold", "Nathan Weizenbaum"]
|
11
13
|
gem.email = %q{mat@mat.cc nex342@gmail.com}
|
12
|
-
gem.date = %q{
|
14
|
+
gem.date = %q{2015-05-01}
|
13
15
|
gem.description = %q{A Ruby wrapper for BSD's kqueue, using FFI}
|
14
16
|
gem.extra_rdoc_files = %w(README.md)
|
15
17
|
gem.licenses = ['MIT']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rb-kqueue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mathieu Arnold
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-05-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
@@ -58,6 +58,7 @@ files:
|
|
58
58
|
- lib/rb-kqueue/native.rb
|
59
59
|
- lib/rb-kqueue/native/flags.rb
|
60
60
|
- lib/rb-kqueue/queue.rb
|
61
|
+
- lib/rb-kqueue/version.rb
|
61
62
|
- lib/rb-kqueue/watcher.rb
|
62
63
|
- lib/rb-kqueue/watcher/file.rb
|
63
64
|
- lib/rb-kqueue/watcher/process.rb
|
@@ -87,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
88
|
version: '0'
|
88
89
|
requirements: []
|
89
90
|
rubyforge_project:
|
90
|
-
rubygems_version: 2.2.
|
91
|
+
rubygems_version: 2.2.2
|
91
92
|
signing_key:
|
92
93
|
specification_version: 4
|
93
94
|
summary: A Ruby wrapper for BSD's kqueue, using FFI
|