semian 0.10.4 → 0.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e66732f3eff2bf185bafb6e8415d04bb49a946a9da90e497063c325c76361997
4
- data.tar.gz: 05bd964a1d2760b4e9d7274732f3bf31d7e788f8cffb198a5c1715ace826a85d
3
+ metadata.gz: ed326cf0bc3f6b5b1ae9cb18b6170b4d47cef460883aca5c20f2f7d113403dbc
4
+ data.tar.gz: e229fbdf17441a0ccb89963196fe1f4ff3a41a43e4c0be633b4164842ffbb4ed
5
5
  SHA512:
6
- metadata.gz: 2a94a193f5c90761c3a07bee03f8a28bcff5ad76fb36dcaba07499982fccbf5170f4fd552b9b56fc4e6ae73295f36134c4fbf87db627ebd75df72cd53f8ee77b
7
- data.tar.gz: ad6d78abed72e04575bf33e50e795e940112c2ee97bf573cec706c7111b59afe682cc549e8dbb2dbd8b3a5de8a1efa8eb1bfb3b6aa57f9f72b269153c77bf311
6
+ metadata.gz: 167e750d067604930d2097fbcd98095eadcb01a4d614483dd2ed55a7bec861f602e8185d51a9f57f982e35ca66ec2d1d74bd7bed7e2180ae0210a869b0015ffc
7
+ data.tar.gz: 5c4fa76a0143852aa71a838f3c2b4632f97db54485b05275ae96c5ee526ed4a3bf71bc67d695c39c53386873303fff50afdcfd3fc32af667160be1dd827609d8
@@ -1,5 +1,7 @@
1
1
  #include "semian.h"
2
2
 
3
+ VALUE eSyscall, eTimeout, eInternal;
4
+
3
5
  void Init_semian()
4
6
  {
5
7
  VALUE cSemian, cResource;
@@ -22,12 +24,14 @@ void Init_semian()
22
24
  * Represents a Semian error that was caused by an underlying syscall failure.
23
25
  */
24
26
  eSyscall = rb_const_get(cSemian, rb_intern("SyscallError"));
27
+ rb_global_variable(&eSyscall);
25
28
 
26
29
  /* Document-class: Semian::TimeoutError
27
30
  *
28
31
  * Raised when a Semian operation timed out.
29
32
  */
30
33
  eTimeout = rb_const_get(cSemian, rb_intern("TimeoutError"));
34
+ rb_global_variable(&eTimeout);
31
35
 
32
36
  /* Document-class: Semian::InternalError
33
37
  *
@@ -40,6 +44,7 @@ void Init_semian()
40
44
  * the semaphore in this case.
41
45
  */
42
46
  eInternal = rb_const_get(cSemian, rb_intern("InternalError"));
47
+ rb_global_variable(&eInternal);
43
48
 
44
49
  rb_define_alloc_func(cResource, semian_resource_alloc);
45
50
  rb_define_method(cResource, "initialize_semaphore", semian_resource_initialize, 5);
@@ -63,7 +63,7 @@ enum SEMINDEX_ENUM {
63
63
  FOREACH_SEMINDEX(GENERATE_ENUM)
64
64
  };
65
65
 
66
- VALUE eSyscall, eTimeout, eInternal;
66
+ extern VALUE eSyscall, eTimeout, eInternal;
67
67
 
68
68
  // Helper for syscall verbose debugging
69
69
  void
@@ -1,3 +1,3 @@
1
1
  module Semian
2
- VERSION = '0.10.4'
2
+ VERSION = '0.10.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.4
4
+ version: 0.10.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Francis
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-05-25 00:00:00.000000000 Z
13
+ date: 2020-10-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake-compiler