sys-filesystem 1.4.0 → 1.4.1
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES.md +6 -0
- data/README.md +1 -1
- data/lib/sys/filesystem.rb +1 -1
- data/lib/sys/unix/sys/filesystem/functions.rb +5 -1
- data/spec/sys_filesystem_unix_spec.rb +1 -1
- data/spec/sys_filesystem_windows_spec.rb +1 -1
- data/sys-filesystem.gemspec +2 -2
- metadata +5 -5
- 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: 7af3548fbf1bb139fba93f59e5b0b37098a615adc0f23ec044a1e9effc31cfd7
|
4
|
+
data.tar.gz: 84a664ed0c9d075fcfe649ca796896b4b24a8dbbac06ff4ce2de0f40c804bab4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b835ac3845da2ed83f169fdf6a95b20ddfb0d3b58db439710b9bef3f2e9a5bb4c55db385fa6374ef80163ff127dce359f4e18941736d845b4d7c4fa7fb965920
|
7
|
+
data.tar.gz: df9d23e48e68252b0b6118ab5afe59194917294dc5ede8ca54f162a5d75a2a9eccc05fab56a01c264feb86e5be8707dd7f7a5599120e7742caa5149f3382e4b5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 1.4.1 - 30-Dec-2020
|
2
|
+
* Fix an FFI function declaration bug for Big Sur and later on Mac. Thanks go
|
3
|
+
to Roman Gaufman for the spot and Martins Polakovs for testing.
|
4
|
+
* Fixed the changelog metadata URI.
|
5
|
+
* Added a .gitignore file.
|
6
|
+
|
1
7
|
## 1.4.0 - 6-Sep-2020
|
2
8
|
* The Sys::Filesystem.stat method now accepts a Pathname and Dir object as
|
3
9
|
an argument. On most platforms it will also accept a File object. Thanks
|
data/README.md
CHANGED
data/lib/sys/filesystem.rb
CHANGED
@@ -41,7 +41,11 @@ module Sys
|
|
41
41
|
end
|
42
42
|
rescue FFI::NotFoundError
|
43
43
|
if RbConfig::CONFIG['host_os'] =~ /darwin|osx|mach/i
|
44
|
-
|
44
|
+
begin
|
45
|
+
attach_function(:getmntinfo, :getmntinfo64, [:pointer, :int], :int)
|
46
|
+
rescue FFI::NotFoundError
|
47
|
+
attach_function(:getmntinfo, [:pointer, :int], :int) # Big Sur and later
|
48
|
+
end
|
45
49
|
else
|
46
50
|
attach_function(:getmntinfo, [:pointer, :int], :int)
|
47
51
|
end
|
@@ -21,7 +21,7 @@ RSpec.describe Sys::Filesystem, :unix => true do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
example "version number is set to the expected value" do
|
24
|
-
expect(Sys::Filesystem::VERSION).to eq('1.4.
|
24
|
+
expect(Sys::Filesystem::VERSION).to eq('1.4.1')
|
25
25
|
expect(Sys::Filesystem::VERSION).to be_frozen
|
26
26
|
end
|
27
27
|
|
@@ -17,7 +17,7 @@ RSpec.describe Sys::Filesystem, :windows => true do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
example "version number is set to the expected value" do
|
20
|
-
expect(Sys::Filesystem::VERSION).to eq('1.4.
|
20
|
+
expect(Sys::Filesystem::VERSION).to eq('1.4.1')
|
21
21
|
expect(Sys::Filesystem::VERSION).to be_frozen
|
22
22
|
end
|
23
23
|
|
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.4.
|
5
|
+
spec.version = '1.4.1'
|
6
6
|
spec.author = 'Daniel J. Berger'
|
7
7
|
spec.email = 'djberg96@gmail.com'
|
8
8
|
spec.homepage = 'https://github.com/djberg96/sys-filesystem'
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.metadata = {
|
21
21
|
'homepage_uri' => 'https://github.com/djberg96/sys-filesystem',
|
22
22
|
'bug_tracker_uri' => 'https://github.com/djberg96/sys-filesystem/issues',
|
23
|
-
'changelog_uri' => 'https://github.com/djberg96/sys-filesystem/blob/ffi/CHANGES.
|
23
|
+
'changelog_uri' => 'https://github.com/djberg96/sys-filesystem/blob/ffi/CHANGES.md',
|
24
24
|
'documentation_uri' => 'https://github.com/djberg96/sys-filesystem/wiki',
|
25
25
|
'source_code_uri' => 'https://github.com/djberg96/sys-filesystem',
|
26
26
|
'wiki_uri' => 'https://github.com/djberg96/sys-filesystem/wiki'
|
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.4.
|
4
|
+
version: 1.4.1
|
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: 2020-
|
38
|
+
date: 2020-12-30 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: ffi
|
@@ -130,7 +130,7 @@ licenses:
|
|
130
130
|
metadata:
|
131
131
|
homepage_uri: https://github.com/djberg96/sys-filesystem
|
132
132
|
bug_tracker_uri: https://github.com/djberg96/sys-filesystem/issues
|
133
|
-
changelog_uri: https://github.com/djberg96/sys-filesystem/blob/ffi/CHANGES.
|
133
|
+
changelog_uri: https://github.com/djberg96/sys-filesystem/blob/ffi/CHANGES.md
|
134
134
|
documentation_uri: https://github.com/djberg96/sys-filesystem/wiki
|
135
135
|
source_code_uri: https://github.com/djberg96/sys-filesystem
|
136
136
|
wiki_uri: https://github.com/djberg96/sys-filesystem/wiki
|
@@ -149,10 +149,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
|
-
rubygems_version: 3.
|
152
|
+
rubygems_version: 3.2.3
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: A Ruby interface for getting file system information.
|
156
156
|
test_files:
|
157
|
-
- spec/sys_filesystem_windows_spec.rb
|
158
157
|
- spec/sys_filesystem_unix_spec.rb
|
158
|
+
- spec/sys_filesystem_windows_spec.rb
|
metadata.gz.sig
CHANGED
Binary file
|