rb-kqueue 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 78c0252826cd5dbb42baf397441e76a75ccc43c0
4
+ data.tar.gz: 2e1dc0fe3c9df91b5ebede02074380391aacddf1
5
+ SHA512:
6
+ metadata.gz: 4b18a3176de712e04ae937c12c91fac319cb05b47286cc2aa4b7dd0244e937d8c86de8ad6db6768c6eadba56e7161544289eb7c666687acbbda7c2cee36e9d28
7
+ data.tar.gz: 43e9c02219fd75c0060a14a2c9340788a8a48ef2adab351532a492803bbaed8dc8070c91907657a94c7daab75f23f756f077b3dd32f1347b5cd7274ba2889529
data/README.md CHANGED
@@ -6,14 +6,6 @@ It uses the [FFI](http://wiki.github.com/ffi/ffi) gem to avoid having to compile
6
6
 
7
7
  [API documentation is available on rdoc.info](http://rdoc.info/projects/mat813/rb-kqueue).
8
8
 
9
- ## WARNING
10
-
11
- This code is incomplete, and didn't work last I had a chance to test it.
12
- I don't have time to continue working on it at the moment,
13
- so I'm posting it online for posterity and in case anyone wants to take a crack at it.
14
-
15
- If anyone wants commit rights, just email me at nex342@gmail.com.
16
-
17
9
  ## Usage
18
10
 
19
11
  The API is similar to the kqueue C API, but with a more Rubyish feel.
@@ -42,3 +34,59 @@ process them all at once,
42
34
  and then continue on your merry way:
43
35
 
44
36
  queue.process
37
+
38
+ ## Contributing
39
+
40
+ ### Bug Reports
41
+
42
+ They all go in the github [issue tracker], no exception. (Well, the exception
43
+ is when you have a patch, in that case, it goes into the github [pull requests]
44
+ thingie.)
45
+
46
+ If you get a weird compilation error, it's most certainely a problem in
47
+ [ffi/ffi] but do report it anyway so I can get a look at it.
48
+
49
+ Do get me the result of `uname -a` somewhere so that we know what OS and what
50
+ version we're talking about.
51
+
52
+ Also, please, try to answer the following questions :
53
+
54
+ - What did you do?
55
+ - What did you expect to happen?
56
+ - What happened instead?
57
+
58
+ Please also post code to replicate the bug. Ideally a failing test would be
59
+ perfect, (one day there will be tests,) but even a simple script demonstrating
60
+ the error would suffice. Please don't send me an entire application, unless the
61
+ bug is in the *interaction* between rb-kqueue and a particular framework.
62
+
63
+ Make sure to specify which version of rb-kqueue you are using.
64
+
65
+ ### Pull Requests
66
+
67
+ - **Document any change in behaviour**. Make sure the README and any other
68
+ relevant documentation are kept up-to-date.
69
+
70
+ - **Consider our release cycle**. We try to follow semver. Randomly breaking
71
+ public APIs is not an option.
72
+
73
+ - **Create topic branches**. Don't ask us to pull from your master branch.
74
+
75
+ - **One pull request per feature**. If you want to do more than one thing, send
76
+ multiple pull requests.
77
+
78
+ - **Send coherent history**. Make sure each individual commit in your pull
79
+ request is meaningful. If you had to make multiple intermediate commits while
80
+ developing, please try to squash them before sending them to us. I quite like
81
+ [tpope]'s [general guidelines], they're not absolute rules, but do try not to
82
+ put all your commit message on the [first line].
83
+
84
+ - And if you feel like it, **Add tests!**, rspecs would be nice :-)
85
+
86
+
87
+ [issue tracker]: https://github.com/mat813/rb-kqueue/issues
88
+ [pull requests]: https://github.com/mat813/rb-kqueue/pulls
89
+ [ffi/ffi]: https://github.com/ffi/ffi
90
+ [tpope]: https://github.com/tpope
91
+ [general guidelines]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
92
+ [first line]: http://stopwritingramblingcommitmessages.com/
@@ -13,7 +13,7 @@ require 'rb-kqueue/queue'
13
13
  # * {Watcher} -- A watcher for a single sort of event
14
14
  # * {Event} -- A notification that an event has occurred
15
15
  module KQueue
16
- VERSION = [0, 2, 0]
16
+ VERSION = [0, 2, 1]
17
17
 
18
18
  # Raise an exception for a native kqueue error.
19
19
  #
@@ -34,7 +34,7 @@ module KQueue
34
34
  ffi_lib FFI::Library::LIBC
35
35
 
36
36
  attach_function :kqueue, [], :int
37
- attach_function :kevent, [:int, :pointer, :int, :pointer, :int, :pointer], :int
37
+ attach_function :kevent, [:int, :pointer, :int, :pointer, :int, :pointer], :int, :blocking => true
38
38
 
39
39
  attach_function :open, [:string, :int], :int
40
40
  attach_function :close, [:int], :int
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = %q{rb-kqueue}
8
- gem.version = "0.2.0"
8
+ gem.version = "0.2.1"
9
9
 
10
10
  gem.authors = ["Mathieu Arnold", "Nathan Weizenbaum"]
11
11
  gem.email = %q{mat@mat.cc nex342@gmail.com}
metadata CHANGED
@@ -1,64 +1,51 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rb-kqueue
3
- version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 0
10
- version: 0.2.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.1
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Mathieu Arnold
14
8
  - Nathan Weizenbaum
15
9
  autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
-
19
- date: 2012-12-03 00:00:00 Z
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-12-03 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: ffi
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 11
30
- segments:
31
- - 0
32
- - 5
33
- - 0
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '>='
19
+ - !ruby/object:Gem::Version
34
20
  version: 0.5.0
35
21
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: yard
39
22
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 15
46
- segments:
47
- - 0
48
- - 4
49
- - 0
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '>='
26
+ - !ruby/object:Gem::Version
27
+ version: 0.5.0
28
+ - !ruby/object:Gem::Dependency
29
+ name: yard
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - '>='
33
+ - !ruby/object:Gem::Version
50
34
  version: 0.4.0
51
35
  type: :development
52
- version_requirements: *id002
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - '>='
40
+ - !ruby/object:Gem::Version
41
+ version: 0.4.0
53
42
  description: A Ruby wrapper for BSD's kqueue, using FFI
54
43
  email: mat@mat.cc nex342@gmail.com
55
44
  executables: []
56
-
57
45
  extensions: []
58
-
59
- extra_rdoc_files:
46
+ extra_rdoc_files:
60
47
  - README.md
61
- files:
48
+ files:
62
49
  - .gitignore
63
50
  - .yardopts
64
51
  - Gemfile
@@ -81,37 +68,26 @@ files:
81
68
  - rb-kqueue.gemspec
82
69
  homepage: http://github.com/mat813/rb-kqueue
83
70
  licenses: []
84
-
71
+ metadata: {}
85
72
  post_install_message:
86
- rdoc_options:
73
+ rdoc_options:
87
74
  - --charset=UTF-8
88
- require_paths:
75
+ require_paths:
89
76
  - lib
90
- required_ruby_version: !ruby/object:Gem::Requirement
91
- none: false
92
- requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- hash: 3
96
- segments:
97
- - 0
98
- version: "0"
99
- required_rubygems_version: !ruby/object:Gem::Requirement
100
- none: false
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- hash: 3
105
- segments:
106
- - 0
107
- version: "0"
77
+ required_ruby_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
108
87
  requirements: []
109
-
110
88
  rubyforge_project:
111
- rubygems_version: 1.8.24
89
+ rubygems_version: 2.2.1
112
90
  signing_key:
113
- specification_version: 3
91
+ specification_version: 4
114
92
  summary: A Ruby wrapper for BSD's kqueue, using FFI
115
93
  test_files: []
116
-
117
- has_rdoc: