rcee_isolated 0.6.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d81beb4490d2bdb28ffeda53345d80fe83524dc61153d4a333e74d8fbded544d
4
- data.tar.gz: 943fa1543f34552cae83f197f0f51e841bc2b459d392618dbe1a22589831a13d
3
+ metadata.gz: 8e06e386ac3c3815cf49b82532a83c176b7128b7ffadf14703c73f0173a73ccc
4
+ data.tar.gz: a60d4fcbbc7b50c4052b1c730ce42f0ce741e50a1eb30f3acaaa349be828dba1
5
5
  SHA512:
6
- metadata.gz: 722c7c8f5ab1033a74a5d7aa22de648abd73a6e8bcf11168ab12e9bee51a46ddaaaf10eae0f7deac54aa02edf01f81045f209a57aec4234d8ffe1ea10ba70772
7
- data.tar.gz: 1a7b63da39946a70d61ca13b0ca9094fa820a974e3dab00e0ad253011eaafe36cb3b637684a65fb8eba7fa69e4e268b29fcea2b54b4bbffa6d7ff6e953319e83
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
- require_relative "isolated/isolated"
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RCEE
4
4
  module Isolated
5
- VERSION = "0.6.0"
5
+ VERSION = "0.7.0"
6
6
  end
7
7
  end
data/lib/rcee/isolated.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "isolated/version"
4
- require_relative "isolated/isolated"
4
+ require "rcee/isolated/isolated"
5
5
 
6
6
  module RCEE
7
7
  module Isolated
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcee_isolated
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Dalessio
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2024-12-14 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: Part of a project to explain how Ruby C extensions work.
13
13
  email:
@@ -45,7 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  requirements: []
48
- rubygems_version: 3.6.0.dev
48
+ rubygems_version: 3.6.9
49
49
  specification_version: 4
50
50
  summary: Example gem demonstrating a basic C extension.
51
51
  test_files: []