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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7db2b6192624579a536034b4262dea6bd5d85bb1e27c7ef3d198879f08f06433
4
- data.tar.gz: ac795b00495af2250cd49daa11efe5eb229b367e5f3d72cb25601f2d41de861f
3
+ metadata.gz: 66a6247ce26a8d5388b5a5b6982958ea408cec169465cf08bb2f1e13145631b7
4
+ data.tar.gz: db6e541828e75ac889314d49fda159f32a38c752d3dbab554ea9a56a67a9708f
5
5
  SHA512:
6
- metadata.gz: 688df5364dafc77a7badafd818b360cd33a2a05855171a6dde937cbabed507132baca20f5cf6bd7ac92f46ee88c1ec656e4ecd3fe4e09cae1341783f8268cc89
7
- data.tar.gz: 3df24a80933c48aca4e04456e73fc58db4e16a802aa53e7d0d4b708b0490550daa0393ca800fed7aa7d9b782f39fa80a8b74d6f8d02bebe9caa895cd98086866
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
- require "openvfs/occ/occ"
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"
@@ -5,6 +5,6 @@
5
5
 
6
6
  module OpenVFS
7
7
  module Rb
8
- VERSION = "1.1.1"
8
+ VERSION = "1.1.2"
9
9
  end
10
10
  end
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
- require "openvfs/openvfs"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openvfs-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Kidd