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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGES.md +11 -0
- data/README.md +7 -4
- data/lib/sys/filesystem.rb +1 -1
- data/lib/sys/unix/sys/filesystem/structs.rb +2 -13
- data/spec/sys_filesystem_shared.rb +1 -1
- data/sys-filesystem.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a57a854506446ec3daa4e4c9bc498d1126137ca6d0e91e3e40eb8e485754570
|
4
|
+
data.tar.gz: d70416404fd036feba7471daf75dcc287a85c65682b0301959287dfd2a9cf3fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
58
|
+
## Known Issues
|
59
59
|
|
60
|
-
|
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
|
-
*
|
67
|
-
* Other suggestions welcome.
|
70
|
+
* Suggestions welcome.
|
68
71
|
|
69
72
|
## Acknowledgements
|
70
73
|
|
data/lib/sys/filesystem.rb
CHANGED
@@ -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.
|
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
|
-
|
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.
|
7
|
+
expect(Sys::Filesystem::VERSION).to eq('1.5.3')
|
8
8
|
expect(Sys::Filesystem::VERSION).to be_frozen
|
9
9
|
end
|
10
10
|
|
data/sys-filesystem.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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
|