sys-filesystem 1.1.8 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES +8 -0
- data/README +1 -7
- data/certs/djberg96_pub.pem +15 -15
- data/lib/sys/filesystem.rb +1 -1
- data/lib/sys/unix/sys/filesystem.rb +2 -7
- data/sys-filesystem.gemspec +1 -1
- data/test/test_sys_filesystem_unix.rb +1 -1
- data/test/test_sys_filesystem_windows.rb +1 -1
- metadata +31 -31
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1f33933d030d3147fa24950695f5e5e2980d520bb600dfc70701087fc1935680
|
4
|
+
data.tar.gz: f5c1ee3037fbb6786b7147d4cd9ccd583baaa5284a4e4102dbd8ad868bf15f8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8f1f0bf6be3adb1f0cd8aaf1df21f0ef504af1c7818da93c1b66a98a54c02ada277de37c7310675db429b9e4b8f07c72b23e540d37a1b5f8994181aacc0e0ab
|
7
|
+
data.tar.gz: d564f2d9de62b360b6ebc7c3233fa90929d94c8e1e94ccab2f3b7ad1d85b40e8a2e13baaa600835c44e3171d7bff97053fd510a49e5256d16c2ada62ed7e9648
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGES
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
== 1.1.9 - 26-Jan-2018
|
2
|
+
* The bytes_free and bytes_total methods were updated to use the fragment size
|
3
|
+
instead of the block size. This fixes Macs using APFS, as well as Solaris 10.
|
4
|
+
Thanks go to Mikhail Vasin for the spot.
|
5
|
+
* Removed the code specific to FreeBSD 10, which was ultimately an attempt
|
6
|
+
to address the issue now resolved by the above change.
|
7
|
+
* Updated the cert again.
|
8
|
+
|
1
9
|
== 1.1.8 - 2-Sep-2017
|
2
10
|
* The stat and mount_point methods now call to_s on the string argument
|
3
11
|
explicitly so that Pathname objects will now work with String#wincode.
|
data/README
CHANGED
@@ -61,14 +61,8 @@
|
|
61
61
|
= License
|
62
62
|
Artistic 2.0
|
63
63
|
|
64
|
-
== Contributions
|
65
|
-
Although this library is free, please consider having your company
|
66
|
-
setup a gittip if used by your company professionally.
|
67
|
-
|
68
|
-
http://www.gittip.com/djberg96/
|
69
|
-
|
70
64
|
= Copyright
|
71
|
-
(C) 2003-
|
65
|
+
(C) 2003-2018 Daniel J. Berger
|
72
66
|
All Rights Reserved
|
73
67
|
|
74
68
|
= Warranty
|
data/certs/djberg96_pub.pem
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
-----BEGIN CERTIFICATE-----
|
2
2
|
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
|
3
3
|
cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
4
|
-
|
4
|
+
MB4XDTE3MDkwMzE1MjMxM1oXDTE4MDkwMzE1MjMxM1owPzERMA8GA1UEAwwIZGpi
|
5
5
|
ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
6
|
+
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJ8y4kEssxNpAdPhNNw2
|
7
|
+
p4zkERFndPAnmOKDdErczFYYUA9uYpA7/iTjkLlNyRwvsNHpnMXdSF7vy++YIU+F
|
8
|
+
Ux3AGTmspupbdSzqBNUhSEJ9TmpjMer1dMYMR9fRw3r3qQreiO2u/O/tV4VpzrDj
|
9
|
+
28JC0b1PcKtfobxbnk+hporZqTH6ClOxDsRx+trlkr7q7FLZwTZn0ywjAV8WMVTO
|
10
|
+
SMmkzXQ37s2Nnrq6r+dDZI0voBxyQkAUzmdBOQTrvOFAo3tuWcnJNR/RRdFhJ9nK
|
11
|
+
mYMPmEd1z0s+cU0SUEeTvhGv/9LCmbSyZqKezDLYNR4Gb0FOA9D50+4OOi2+3G1o
|
12
|
+
1U0CAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFJCx
|
13
|
+
ukSSioTiLtwQCdML0IyEZAJ/MB0GA1UdEQQWMBSBEmRqYmVyZzk2QGdtYWlsLmNv
|
14
14
|
bTAdBgNVHRIEFjAUgRJkamJlcmc5NkBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
15
|
+
ggEBAJh/dmRaTpJAUeJ2x9CEyy9gSP6SZjMeAwWgPNdowPDyw0JzlpBIrYiTnCYK
|
16
|
+
2OqxvIi8L38+rHw3KYL0fEyNqP3RbMl6+SljRwiU0JwEqj9e1pqIx99RTLKeI9PM
|
17
|
+
F8LxxmDHreGOaY4R8JBOMxys1wBkF/Iilx4qoT4LBn+DzraAlmYjr6O6itIxGten
|
18
|
+
NFJFS/tFBTTeNW6SJLdDnGd2b7vBBEd/ZpIhuZNxriU6FKWC5FJeBdAiuw6lqHun
|
19
|
+
QLLepVJthIvwmfc8AU5TJGMawtVAUHIWiuQPoBBVVKOkeEhioO0cV8UabKsKMbE8
|
20
|
+
VpiARrgH+4lYiRFJ+gKpIbSEJvk=
|
21
21
|
-----END CERTIFICATE-----
|
data/lib/sys/filesystem.rb
CHANGED
@@ -128,12 +128,12 @@ module Sys
|
|
128
128
|
|
129
129
|
# Returns the total space on the partition.
|
130
130
|
def bytes_total
|
131
|
-
blocks *
|
131
|
+
blocks * fragment_size
|
132
132
|
end
|
133
133
|
|
134
134
|
# Returns the total amount of free space on the partition.
|
135
135
|
def bytes_free
|
136
|
-
blocks_available *
|
136
|
+
blocks_available * fragment_size
|
137
137
|
end
|
138
138
|
|
139
139
|
# Returns the total amount of used space on the partition.
|
@@ -219,11 +219,6 @@ module Sys
|
|
219
219
|
obj.block_size /= 256
|
220
220
|
end
|
221
221
|
|
222
|
-
# FreeBSD 10 does things a little differently too
|
223
|
-
if RbConfig::CONFIG['host_os'] =~ /freebsd10/i
|
224
|
-
obj.block_size = obj.fragment_size
|
225
|
-
end
|
226
|
-
|
227
222
|
if fs.members.include?(:f_basetype)
|
228
223
|
obj.base_type = fs[:f_basetype].to_s
|
229
224
|
end
|
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.1.
|
5
|
+
spec.version = '1.1.9'
|
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 @@ class TC_Sys_Filesystem_Windows < Test::Unit::TestCase
|
|
20
20
|
end
|
21
21
|
|
22
22
|
test "version number is set to the expected value" do
|
23
|
-
assert_equal('1.1.
|
23
|
+
assert_equal('1.1.9', Filesystem::VERSION)
|
24
24
|
end
|
25
25
|
|
26
26
|
test "stat path works as expected" do
|
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.1.
|
4
|
+
version: 1.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
@@ -12,25 +12,25 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9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2x9CEyy9gSP6SZjMeAwWgPNdowPDyw0JzlpBIrYiTnCYK
|
27
|
+
2OqxvIi8L38+rHw3KYL0fEyNqP3RbMl6+SljRwiU0JwEqj9e1pqIx99RTLKeI9PM
|
28
|
+
F8LxxmDHreGOaY4R8JBOMxys1wBkF/Iilx4qoT4LBn+DzraAlmYjr6O6itIxGten
|
29
|
+
NFJFS/tFBTTeNW6SJLdDnGd2b7vBBEd/ZpIhuZNxriU6FKWC5FJeBdAiuw6lqHun
|
30
|
+
QLLepVJthIvwmfc8AU5TJGMawtVAUHIWiuQPoBBVVKOkeEhioO0cV8UabKsKMbE8
|
31
|
+
VpiARrgH+4lYiRFJ+gKpIbSEJvk=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
33
|
+
date: 2018-01-26 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: ffi
|
@@ -85,37 +85,37 @@ extra_rdoc_files:
|
|
85
85
|
- README
|
86
86
|
- MANIFEST
|
87
87
|
files:
|
88
|
+
- test
|
89
|
+
- test/test_sys_filesystem_windows.rb
|
90
|
+
- test/test_sys_filesystem_unix.rb
|
91
|
+
- test/test_sys_filesystem.rb
|
92
|
+
- CHANGES
|
93
|
+
- MANIFEST
|
94
|
+
- README
|
95
|
+
- Rakefile
|
96
|
+
- sys-filesystem.gemspec
|
88
97
|
- certs
|
89
98
|
- certs/djberg96_pub.pem
|
90
|
-
- CHANGES
|
91
99
|
- examples
|
92
100
|
- examples/example_stat.rb
|
93
101
|
- lib
|
102
|
+
- lib/sys-filesystem.rb
|
94
103
|
- lib/sys
|
95
|
-
- lib/sys/filesystem.rb
|
96
104
|
- lib/sys/unix
|
97
105
|
- lib/sys/unix/sys
|
98
106
|
- lib/sys/unix/sys/filesystem
|
107
|
+
- lib/sys/unix/sys/filesystem/structs.rb
|
99
108
|
- lib/sys/unix/sys/filesystem/constants.rb
|
100
109
|
- lib/sys/unix/sys/filesystem/functions.rb
|
101
|
-
- lib/sys/unix/sys/filesystem/structs.rb
|
102
110
|
- lib/sys/unix/sys/filesystem.rb
|
111
|
+
- lib/sys/filesystem.rb
|
103
112
|
- lib/sys/windows
|
104
113
|
- lib/sys/windows/sys
|
105
114
|
- lib/sys/windows/sys/filesystem
|
115
|
+
- lib/sys/windows/sys/filesystem/helper.rb
|
106
116
|
- lib/sys/windows/sys/filesystem/constants.rb
|
107
117
|
- lib/sys/windows/sys/filesystem/functions.rb
|
108
|
-
- lib/sys/windows/sys/filesystem/helper.rb
|
109
118
|
- lib/sys/windows/sys/filesystem.rb
|
110
|
-
- lib/sys-filesystem.rb
|
111
|
-
- MANIFEST
|
112
|
-
- Rakefile
|
113
|
-
- README
|
114
|
-
- sys-filesystem.gemspec
|
115
|
-
- test
|
116
|
-
- test/test_sys_filesystem.rb
|
117
|
-
- test/test_sys_filesystem_unix.rb
|
118
|
-
- test/test_sys_filesystem_windows.rb
|
119
119
|
homepage: https://github.com/djberg96/sys-filesystem
|
120
120
|
licenses:
|
121
121
|
- Artistic 2.0
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
138
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.
|
139
|
+
rubygems_version: 2.7.2
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: A Ruby interface for getting file system information.
|
metadata.gz.sig
CHANGED
Binary file
|