rcee_isolated 0.5.1 → 0.7.0
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 +4 -4
- data/README.md +6 -1
- data/lib/rcee/isolated/version.rb +1 -1
- data/lib/rcee/isolated.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e06e386ac3c3815cf49b82532a83c176b7128b7ffadf14703c73f0173a73ccc
|
4
|
+
data.tar.gz: a60d4fcbbc7b50c4052b1c730ce42f0ce741e50a1eb30f3acaaa349be828dba1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8adce4c8e864ea5ad28e1dce72e63712dec2e8c3f35847bd65c54526571b18dc5844e14a84e31e89312a4fc543757251e63677908e013ba917221531f6f82df3
|
7
|
+
data.tar.gz: a671677c154fd4a9d94022fe66f124e56c9ec2d4061ef6b0e66ac381f7e8d9b4c67f80002d05ea924dc434f46eee8e69b3a174d3f9651b1774cbcfac6a25c05e
|
data/README.md
CHANGED
@@ -58,9 +58,14 @@ gcc -shared -L/path/to/ruby/lib -lruby -lc -lm isolated.o -o isolated.so
|
|
58
58
|
That final shared library, `isolated.so`, is loaded like any other Ruby file, via `require` in `lib/rcee/isolated.rb`:
|
59
59
|
|
60
60
|
``` ruby
|
61
|
-
|
61
|
+
require "rcee/isolated/isolated"
|
62
62
|
```
|
63
63
|
|
64
|
+
Even though RubyGems currently installs shared libraries relatively to Ruby
|
65
|
+
files in lib/, it may stop doing so in the future, so it's safer to not load
|
66
|
+
shared libraries from Ruby code using `require_relative`, but rather rely on the
|
67
|
+
`$LOAD_PATH` and use `require`.
|
68
|
+
|
64
69
|
## Testing
|
65
70
|
|
66
71
|
See [.github/workflows/isolated.yml](../.github/workflows/isolated.yml)
|
data/lib/rcee/isolated.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rcee_isolated
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Dalessio
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies: []
|
13
12
|
description: Part of a project to explain how Ruby C extensions work.
|
14
13
|
email:
|
@@ -32,7 +31,6 @@ homepage: https://github.com/flavorjones/ruby-c-extensions-explained
|
|
32
31
|
licenses:
|
33
32
|
- MIT
|
34
33
|
metadata: {}
|
35
|
-
post_install_message:
|
36
34
|
rdoc_options: []
|
37
35
|
require_paths:
|
38
36
|
- lib
|
@@ -47,8 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
47
45
|
- !ruby/object:Gem::Version
|
48
46
|
version: '0'
|
49
47
|
requirements: []
|
50
|
-
rubygems_version: 3.
|
51
|
-
signing_key:
|
48
|
+
rubygems_version: 3.6.9
|
52
49
|
specification_version: 4
|
53
50
|
summary: Example gem demonstrating a basic C extension.
|
54
51
|
test_files: []
|