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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e36df358bb5d3643255255535294bbdbf5b55c29e0439de13b2407a3056084e
4
- data.tar.gz: 99e520babb552c3b4092309fc2c5c96d1ce1eff81b4979774e1bbbdcd751618d
3
+ metadata.gz: 8e06e386ac3c3815cf49b82532a83c176b7128b7ffadf14703c73f0173a73ccc
4
+ data.tar.gz: a60d4fcbbc7b50c4052b1c730ce42f0ce741e50a1eb30f3acaaa349be828dba1
5
5
  SHA512:
6
- metadata.gz: 64690dc3bc66c9d169ad667f26d7f00ff70332ceb4bea4d13d7a413d831c61a3bd3876fcf0f2165a77f21d452286fcf5642fbac1c406ccdcd65159c8166aef91
7
- data.tar.gz: 96dbc5e3c72535b29ffe8a5a329df319b45529f152d83a5c1d897290c339da0f957ceceff50317944f587dfab2a6fe33bb2646818f35774764b00687e3a03385
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.5.1"
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,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcee_isolated
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
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: 2024-01-28 00:00:00.000000000 Z
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.4.19
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: []