rcee_isolated 0.6.0 → 0.8.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: d57e1ce5c9439cbe31278274f6b9069360690466211cd012b6e9c6114d371c13
4
+ data.tar.gz: 4320e1454642030c3266e60f20d7b816fbf5128e270e0af46cdbaf71009c7fcd
5
5
  SHA512:
6
- metadata.gz: 722c7c8f5ab1033a74a5d7aa22de648abd73a6e8bcf11168ab12e9bee51a46ddaaaf10eae0f7deac54aa02edf01f81045f209a57aec4234d8ffe1ea10ba70772
7
- data.tar.gz: 1a7b63da39946a70d61ca13b0ca9094fa820a974e3dab00e0ad253011eaafe36cb3b637684a65fb8eba7fa69e4e268b29fcea2b54b4bbffa6d7ff6e953319e83
6
+ metadata.gz: 8fb17f177872bc5e6ebdba2398ebf49d3dab8d60efb2ca3bb3ee49b8357f9d10d6c7e6f0643c64c89de1986c3e5ada4fcba3bbebe023a578a5046a14804e28e4
7
+ data.tar.gz: 4f641839b3c96dc8e1140963ddff7dceb752d84b9612f485fed9f275483caea845a3ff3bce3a282d162e721b9162899d40352d657ad718f723725a9b4e90d89b
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.8.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.8.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: 4.0.3
49
49
  specification_version: 4
50
50
  summary: Example gem demonstrating a basic C extension.
51
51
  test_files: []