posix-mqueue 0.0.7 → 0.0.8

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: 5823cff6537672e41ae0166a4107bc262f6f5dc2
4
- data.tar.gz: 00686b89630f12eed8b9d701417fda1e43825ea4
3
+ metadata.gz: 2f85811cf43543d670f1c2520f76c4b2018d4813
4
+ data.tar.gz: 4bf01d48852b1938a7d2613b3e3f17429a886f8f
5
5
  SHA512:
6
- metadata.gz: f00ad53969f1edd82ffc56275ff7994d55991dfd52fb772f11493861e8d6cac68cfa0b38ce1ccc211464f319283ea75c98db3083baf4a875bfac39b5d6d86a83
7
- data.tar.gz: 1eb694b40bc7c4ccd1c82797b59ac1834adcbb923d94bd0dc4592613fb82b7cea962a7f43c81f08c0fa8907dd9ae40d1e9d34132b4f447d9eb1d574843f5cf59
6
+ metadata.gz: f95487c0e1ff95cbfa8bf82eff6310336ca8441bab94b5a15d542287a8784fd80cc2f3a6f385a2e3a29fe1c172f03299b34736f3453c77165e9f95455692e04c
7
+ data.tar.gz: b58850b5ab1bb9c9b1620cb84887ec67315b110b8dae41f3ced7c095dba267f9e8a707fb51cfd80745d5f0f86e57ac02b9575b0f5a6f6a56222336e412a3a3c8
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # posix-mqueue
1
+ # posix-mqueue [![Build Status](https://travis-ci.org/Sirupsen/posix-mqueue.png?branch=master)](https://travis-ci.org/Sirupsen/posix-mqueue)
2
2
 
3
3
  Minimal wrapper around the [POSIX message queue](pmq). The POSIX message queue
4
4
  offers:
@@ -9,10 +9,18 @@ offers:
9
9
  * Blocking and non-blocking. Listeners block until a message arrives on the
10
10
  queue. No polling. Sending messages doesn't block.
11
11
 
12
- Add `gem 'posix-mqueue', :git => "git@github.com:Sirupsen/posix-mqueue.git"` to your favorite Gemfile.
12
+
13
+ Note that this requires no third party message broker. The messages are handled
14
+ by the kernel of your computer. Not all kernels have support for POSIX message
15
+ queues, a notably example is Darwin (OS X). Darwin implements the older System V
16
+ IPC API. See my [SysV MQ wrapper](https://github.com/Sirupsen/sysvmq).
13
17
 
14
18
  ## Usage
15
19
 
20
+ In your Gemfile:
21
+
22
+ `gem 'posix-mqueue'`
23
+
16
24
  ### Important notes
17
25
 
18
26
  1. This will not work on OS X, but on Linux and probably BSD (not tested).
@@ -49,7 +57,7 @@ m.receive
49
57
  m.size
50
58
  # => 10
51
59
 
52
- # #send will block until something is popped off the now full queue.
60
+ # #send will block until something is popped off the now full queue.
53
61
  # timesend takes timeout arguments (first one is seconds, second is
54
62
  # nanoseconds). Pass 0 for for both to not block, this is default.
55
63
 
@@ -1,3 +1,4 @@
1
1
  require 'mkmf'
2
2
  have_header('mqueue.h')
3
+ have_library("rt")
3
4
  create_makefile('posix/mqueue')
@@ -1,5 +1,5 @@
1
1
  module POSIX
2
2
  class Mqueue
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: posix-mqueue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Eskildsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-03 00:00:00.000000000 Z
11
+ date: 2014-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: posix-mqueue is a simple wrapper around the mqueue(7).
@@ -46,8 +46,8 @@ extensions:
46
46
  - ext/posix/extconf.rb
47
47
  extra_rdoc_files: []
48
48
  files:
49
- - .gitignore
50
- - .travis.yml
49
+ - ".gitignore"
50
+ - ".travis.yml"
51
51
  - Gemfile
52
52
  - LICENSE.txt
53
53
  - README.md
@@ -69,17 +69,17 @@ require_paths:
69
69
  - ext
70
70
  required_ruby_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - '>='
72
+ - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - '>='
77
+ - - ">="
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
80
  requirements: []
81
81
  rubyforge_project:
82
- rubygems_version: 2.0.3
82
+ rubygems_version: 2.2.2
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: posix-mqueue is a simple wrapper around the mqueue(7). It only works on Linux.