sys-filesystem 1.4.0 → 1.4.1

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: cf54720eed58f18d562942c0b1da0026bf0f814687de0fe5bab4cf49c90c39a3
4
- data.tar.gz: 76baf71b511e2e36949d54b870f8f6d60d28fe0e735f4366cf69817e7359f09b
3
+ metadata.gz: 7af3548fbf1bb139fba93f59e5b0b37098a615adc0f23ec044a1e9effc31cfd7
4
+ data.tar.gz: 84a664ed0c9d075fcfe649ca796896b4b24a8dbbac06ff4ce2de0f40c804bab4
5
5
  SHA512:
6
- metadata.gz: 3052ebcc1437f04d4e798856553f5567d016789e6936ac494ac3bf7b327bc0386a212e73e1664c58c48c6ee79aba76986a4130678e00f572d359bd75020e3e94
7
- data.tar.gz: ad1b00477d3a8afef57768689120203356ec636a5bab122879a2fa764a5eec3ade92d10b105eea00a6807c7c41445a2f8dc25711564970a250a491bcf06d606e
6
+ metadata.gz: b835ac3845da2ed83f169fdf6a95b20ddfb0d3b58db439710b9bef3f2e9a5bb4c55db385fa6374ef80163ff127dce359f4e18941736d845b4d7c4fa7fb965920
7
+ data.tar.gz: df9d23e48e68252b0b6118ab5afe59194917294dc5ede8ca54f162a5d75a2a9eccc05fab56a01c264feb86e5be8707dd7f7a5599120e7742caa5149f3382e4b5
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
@@ -8,7 +8,7 @@ A cross platform Ruby interface for getting file system information.
8
8
 
9
9
  ## Synopsis
10
10
 
11
- ```
11
+ ```ruby
12
12
  require 'sys/filesystem'
13
13
  include Sys
14
14
 
@@ -1,7 +1,7 @@
1
1
  module Sys
2
2
  class Filesystem
3
3
  # The version of the sys-filesystem library
4
- VERSION = '1.4.0'.freeze
4
+ VERSION = '1.4.1'.freeze
5
5
  end
6
6
  end
7
7
 
@@ -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
- attach_function(:getmntinfo, :getmntinfo64, [:pointer, :int], :int)
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.0')
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.0')
20
+ expect(Sys::Filesystem::VERSION).to eq('1.4.1')
21
21
  expect(Sys::Filesystem::VERSION).to be_frozen
22
22
  end
23
23
 
@@ -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.0'
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.rdoc',
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.0
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-11-06 00:00:00.000000000 Z
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.rdoc
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.1.4
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