sys-filesystem 1.5.2 → 1.5.3

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: 70493df8ed3722f3da6776ef9c1c287f992e9fcec64852e11b6fe04e64a7e73e
4
- data.tar.gz: 0c924d1aca503181261bdbd1b73ed2e20eecc55293cdff2a9c8b54465859e652
3
+ metadata.gz: 9a57a854506446ec3daa4e4c9bc498d1126137ca6d0e91e3e40eb8e485754570
4
+ data.tar.gz: d70416404fd036feba7471daf75dcc287a85c65682b0301959287dfd2a9cf3fb
5
5
  SHA512:
6
- metadata.gz: 827b599edce400ecb52221ab8d279269811f03beb9cc4440182334e5231426b75ca8b98addc10bfbdc2d1a45cc3a39ebb3d21a1f71e5f014d1053439845dd5a1
7
- data.tar.gz: d66206e8a76a5be307c71e01a57158a49381e7699dfda4e84364dd0a44e40f8345d7a8e9e33318a6fb20f864cfbb8d86d85972d7433398cdfd510aac3e23b443
6
+ metadata.gz: 63fd54d82e90258625f04d9d71a53dd01b1ccce20200e556fd0920c79fd3b1ba20829b6b319a9465197da0706a9967ae191458cea0f0a28147d8d471cdadac4d
7
+ data.tar.gz: 80b887d637c55b030cdeecca552a5abf844a7066d33ce109c355f45c64e20b6e91f8c6ab028f003dc95c30b827f250853975b76b2038fc677b6342a86e10edac
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGES.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 1.5.3 - 3-Oct-2024
2
+ * Decided to unroll the changes in 1.5.2 because doing runtime compiler
3
+ checks was making more people unhappy than happy, and I already had
4
+ some misgivings about it.
5
+ * Updated the README.md to note the issues with running 32-bit Ruby with
6
+ 64-bit offsets. At the moment I think this mainly only affects arch Linux.
7
+
1
8
  ## 1.5.2 - 30-Sep-2024
2
9
  * Forgot to switch mkmf-lite from a dev dependency to a runtime dependency.
3
10
  Thanks go to Thomas Langé for the spot and patch.
data/README.md CHANGED
@@ -55,16 +55,19 @@ with JRuby, too.
55
55
  Run 'rake example' if you want to see a basic sample run. The actual code
56
56
  is 'example_stat.rb' in the 'examples' directory. Modify it as you see fit.
57
57
 
58
- ## Known Bugs
58
+ ## Known Issues
59
59
 
60
- None that I'm aware of. Please report bugs on the project page at:
60
+ Currently this may not work if you're running a 32-bit system with 64-bit offsets:
61
+
62
+ https://github.com/djberg96/sys-filesystem/issues/71
63
+
64
+ Please report any other issues on the project home page at:
61
65
 
62
66
  https://github.com/djberg96/sys-filesystem
63
67
 
64
68
  ## Future Plans
65
69
 
66
- * Add better 64-bit support for Linux and BSD.
67
- * Other suggestions welcome.
70
+ * Suggestions welcome.
68
71
 
69
72
  ## Acknowledgements
70
73
 
@@ -16,7 +16,7 @@ module Sys
16
16
  # return objects of other types. Do not instantiate.
17
17
  class Filesystem
18
18
  # The version of the sys-filesystem library
19
- VERSION = '1.5.2'
19
+ VERSION = '1.5.3'
20
20
 
21
21
  # Stat objects are returned by the Sys::Filesystem.stat method. Here
22
22
  # we're adding universal methods.
@@ -227,9 +227,7 @@ module Sys
227
227
  :f_spare, [:int, 5]
228
228
  )
229
229
  else
230
- require 'mkmf-lite'
231
- extend Mkmf::Lite
232
- layout_array = [
230
+ layout(
233
231
  :f_bsize, :ulong,
234
232
  :f_frsize, :ulong,
235
233
  :f_blocks, :uint64,
@@ -243,16 +241,7 @@ module Sys
243
241
  :f_namemax, :ulong,
244
242
  :f_type, :uint,
245
243
  :f_spare, [:int, 5]
246
- ]
247
-
248
- # Check if we need to add __f_unused
249
- f_unused_bytes = 2 * check_sizeof('int') - check_sizeof('long')
250
- if f_unused_bytes > 0
251
- # For Big Endian, this should be inserted at -9
252
- layout_array.insert(-7, :__f_unused, [:char, f_unused_bytes])
253
- end
254
-
255
- layout(*layout_array)
244
+ )
256
245
  end
257
246
  end
258
247
 
@@ -4,7 +4,7 @@ require 'sys-filesystem'
4
4
 
5
5
  RSpec.shared_examples Sys::Filesystem do
6
6
  example 'version number is set to the expected value' do
7
- expect(Sys::Filesystem::VERSION).to eq('1.5.2')
7
+ expect(Sys::Filesystem::VERSION).to eq('1.5.3')
8
8
  expect(Sys::Filesystem::VERSION).to be_frozen
9
9
  end
10
10
 
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'sys-filesystem'
5
- spec.version = '1.5.2'
5
+ spec.version = '1.5.3'
6
6
  spec.author = 'Daniel J. Berger'
7
7
  spec.email = 'djberg96@gmail.com'
8
8
  spec.homepage = 'https://github.com/djberg96/sys-filesystem'
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.cert_chain = Dir['certs/*']
14
14
 
15
15
  spec.add_dependency('ffi', '~> 1.1')
16
- spec.add_dependency('mkmf-lite', '~> 0.7') unless Gem.win_platform?
16
+ spec.add_development_dependency('mkmf-lite', '~> 0.7') unless Gem.win_platform?
17
17
  spec.add_development_dependency('rake')
18
18
  spec.add_development_dependency('rspec', '~> 3.9')
19
19
  spec.add_development_dependency('rubocop')
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sys-filesystem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -35,7 +35,7 @@ cert_chain:
35
35
  ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
36
36
  WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
37
37
  -----END CERTIFICATE-----
38
- date: 2024-09-30 00:00:00.000000000 Z
38
+ date: 2024-10-04 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: ffi
@@ -58,7 +58,7 @@ dependencies:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0.7'
61
- type: :runtime
61
+ type: :development
62
62
  prerelease: false
63
63
  version_requirements: !ruby/object:Gem::Requirement
64
64
  requirements:
metadata.gz.sig CHANGED
Binary file