sys-filesystem 1.5.1 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18cc0ade6b1331f272da7eb9d1ab569c82b975ccffd31ac9821d9c3a160b6789
4
- data.tar.gz: 0cd1a8e5a0443c9c8629c7b3620782cef9c611dc58908df2f423ea4691d3f30c
3
+ metadata.gz: 9a57a854506446ec3daa4e4c9bc498d1126137ca6d0e91e3e40eb8e485754570
4
+ data.tar.gz: d70416404fd036feba7471daf75dcc287a85c65682b0301959287dfd2a9cf3fb
5
5
  SHA512:
6
- metadata.gz: 49364fcc8177c60d5644629598712582867d33c8701cc7ae1fba43542cee114490ddf74bfcddf9a363b5329487957053bbca96dc112e5e440679ecf99fe051d7
7
- data.tar.gz: e09971e9255b113f0ef1531fd000e35b74811024d54c351e811be99b74ad482bef14e9f9b1ff03708b02db8c92fd68f83b863b1a0f0dd8e590ba4f41ec79620c
6
+ metadata.gz: 63fd54d82e90258625f04d9d71a53dd01b1ccce20200e556fd0920c79fd3b1ba20829b6b319a9465197da0706a9967ae191458cea0f0a28147d8d471cdadac4d
7
+ data.tar.gz: 80b887d637c55b030cdeecca552a5abf844a7066d33ce109c355f45c64e20b6e91f8c6ab028f003dc95c30b827f250853975b76b2038fc677b6342a86e10edac
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGES.md CHANGED
@@ -1,3 +1,14 @@
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
+
8
+ ## 1.5.2 - 30-Sep-2024
9
+ * Forgot to switch mkmf-lite from a dev dependency to a runtime dependency.
10
+ Thanks go to Thomas Langé for the spot and patch.
11
+
1
12
  ## 1.5.1 - 29-Sep-2024
2
13
  * Add the f_type struct member to the Statvfs struct for Linux. This was added
3
14
  at some point in the Linux lifecycle, though may still be blank depending on
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.1'
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.1')
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.1'
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'
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.1
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
metadata.gz.sig CHANGED
Binary file