sysvmq 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/ext/sysvmq.c +2 -2
  3. data/sysvmq.gemspec +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3861499e9f5511851b3e0fa8077b255766095843247b58afe465f81e0d01faa
4
- data.tar.gz: 315108a5a3ac5eb94e3f3d7f8b2a1e21bacce32f713160184a9f9a429b78ee37
3
+ metadata.gz: 8f91158a80f378e0c8a5797c260d364d798ec971428a7792f81db6a14f9d2229
4
+ data.tar.gz: 92c86e3bce74d7579113eb2c07a4ec848b01c8818681dacae4e727f9e945984a
5
5
  SHA512:
6
- metadata.gz: f9b55b44e92fb180e06286ac49dffc86083713dcecd2745e9d2d649232213993315d0595aed9f6b446a8fa9806a7cbd454be06594472c9a65c2340fb671ef7f6
7
- data.tar.gz: d15b976f57a52a2239424231b495345d5bb884205ec055522beadb0eb43d199ebe88e164492567fdd943ccefe44cd4b8e5227b4d7c150c00ffa807a63a3a5e27
6
+ metadata.gz: 22a34a50fdb0141c8959ecd88d2c01453b39eb903e77285a8fbd3ba67273be65a7b7a87fccf1dd5c7c3c6815c837a06596bdaf51e5f185cd5d25acb63c0fc95d
7
+ data.tar.gz: f77a8586fc7620e7e1c59836e8d38ae2e11819c6fc2f88ec2c91ddd57ee08a606f2d47ce4d3aef441a9a91ca6a73a88546eab5d8b4935fb08b49a86c6b3dad49
data/ext/sysvmq.c CHANGED
@@ -211,7 +211,7 @@ sysvmq_receive(int argc, VALUE *argv, VALUE self)
211
211
  continue;
212
212
  }
213
213
 
214
- rb_sys_fail("Failed recieving message from queue");
214
+ rb_sys_fail("Failed receiving message from queue");
215
215
  }
216
216
  } else {
217
217
  // msgrcv(2) can block sending a message, if IPC_NOWAIT is not passed.
@@ -359,7 +359,7 @@ sysvmq_initialize(VALUE self, VALUE key, VALUE buffer_size, VALUE flags)
359
359
  // for each message sent. This makes SysVMQ not thread-safe (requiring a
360
360
  // buffer for each thread), but is a reasonable trade-off for now for the
361
361
  // performance.
362
- sysv->buffer_size = (size_t) FIX2LONG(buffer_size + 1);
362
+ sysv->buffer_size = (size_t) FIX2LONG(buffer_size) + 1;
363
363
  msgbuf_size = sysv->buffer_size * sizeof(char) + sizeof(long);
364
364
 
365
365
  // Note that this is a zero-length array, so we size the struct to size of the
data/sysvmq.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "sysvmq"
7
- spec.version = '0.2.3'
7
+ spec.version = '0.2.4'
8
8
  spec.authors = ["Simon Eskildsen"]
9
9
  spec.email = ["sirup@sirupsen.com"]
10
10
  spec.summary = %q{Ruby wrapper for SysV Message Queues}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sysvmq
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
  - Simon Eskildsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-11 00:00:00.000000000 Z
11
+ date: 2024-11-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby wrapper for SysV Message Queues
14
14
  email:
@@ -51,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  - !ruby/object:Gem::Version
52
52
  version: '0'
53
53
  requirements: []
54
- rubygems_version: 3.3.7
54
+ rubygems_version: 3.5.11
55
55
  signing_key:
56
56
  specification_version: 4
57
57
  summary: Ruby wrapper for SysV Message Queues