openvfs-rb 1.1.1 → 1.1.2
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/lib/openvfs/occ.rb +7 -1
- data/lib/openvfs/rb/version.rb +1 -1
- data/lib/openvfs.rb +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 66a6247ce26a8d5388b5a5b6982958ea408cec169465cf08bb2f1e13145631b7
|
|
4
|
+
data.tar.gz: db6e541828e75ac889314d49fda159f32a38c752d3dbab554ea9a56a67a9708f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5f1069b92d4e3ed00126fe2da06cebc425cd9ecb3084566940ed177336c4a074d396d4c7ef91591bac55aae6eaf2b6aa2f8d04364ee8ca613ede3d95be96769
|
|
7
|
+
data.tar.gz: b55c9d9884575814ac17200e3f78ef60d4eb67b3109ead5ba5acdb0e58697f0da62ddc28f97275285778ef93cbaa219bcde8ea950669af8a65879b4be550c5ab
|
data/lib/openvfs/occ.rb
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
# Deliberately not "../openvfs": that pulls in the openvfs extension, which wraps the placeholder attributes libopenvfs keeps in extended attributes. Nothing here needs them, and upstream ships no Windows build of that library.
|
|
4
4
|
require_relative "version"
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
# One object per Ruby ABI in a platform gem, and in the source gem the single one extconf built under ext/. See lib/openvfs.rb.
|
|
7
|
+
begin
|
|
8
|
+
require_relative "occ/#{RUBY_VERSION[/\d+\.\d+/]}/occ"
|
|
9
|
+
rescue LoadError
|
|
10
|
+
require "openvfs/occ/occ"
|
|
11
|
+
end
|
|
6
12
|
|
|
7
13
|
require "fileutils"
|
|
8
14
|
require "securerandom"
|
data/lib/openvfs/rb/version.rb
CHANGED
data/lib/openvfs.rb
CHANGED
|
@@ -4,7 +4,13 @@
|
|
|
4
4
|
# Copyright, 2026, by Nathan Kidd.
|
|
5
5
|
|
|
6
6
|
require_relative "openvfs/version"
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
# A precompiled platform gem carries one object per Ruby ABI, because an object only loads on the Ruby it was compiled against. The source gem has no ABI directory - extconf builds one object, under ext/ - so the fallback is the plain require the load path answers.
|
|
9
|
+
begin
|
|
10
|
+
require_relative "openvfs/#{RUBY_VERSION[/\d+\.\d+/]}/openvfs"
|
|
11
|
+
rescue LoadError
|
|
12
|
+
require "openvfs/openvfs"
|
|
13
|
+
end
|
|
8
14
|
|
|
9
15
|
# A virtual filesystem.
|
|
10
16
|
module OpenVFS
|