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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 109b63f3a43a320a112b2cbdd5afb133b333f682
4
- data.tar.gz: 7e4db1eb3543ad54ca81b676b50e32528d61cb79
3
+ metadata.gz: 2e0fbb1227b72dfcf7a88a6518c1d682eb7b16cc
4
+ data.tar.gz: 1b116b3d52ff04e5d31a78ef819020a6a6001c6e
5
5
  SHA512:
6
- metadata.gz: 90e30eb4903e6aa6a3c23663488cd850aecce92f386124aaaf3af0eeaf2aa0e4996954471a2493eb6933bd0e1e631489e022f74ee9c6e0b0ed634d322fd79fda
7
- data.tar.gz: f0d6f5cdb9753e05119297c0e87b7999f2bd7457a1d2cce9a7ff2074a2d5bb9115a007d1a0b4a5c7d4ce6c696f244f53912e8696a542dba1ed38041a5e1c7a84
6
+ metadata.gz: 5ada986f6476b4d522a5103fd2d56623a0dd7b86f271c7549c4a2fb9d0722492574446c09b8aa023ed059837fc8122fb30969436510798957a7b95e6a3c5c69f
7
+ data.tar.gz: 712ae220aa51c262ba8126909fcd6d1d9b981c2fa9cb6900b70629085e46bbab0ff775eebdcd6656100843a581f77a16c5c4a71a63f01f3a8d4dba3b07a48c02
@@ -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.
@@ -0,0 +1,3 @@
1
+ module KQueue
2
+ VERSION = [0, 2, 4]
3
+ end
@@ -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
 
@@ -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 = "0.2.3"
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{2014-06-03}
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.3
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: 2014-06-03 00:00:00.000000000 Z
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.1
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