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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3ab3e7d37b096548a4fab240e6416776c8068c43
4
- data.tar.gz: 1f515589a8a40d73754f2b50b29d12f9a4015b51
2
+ SHA256:
3
+ metadata.gz: 1f33933d030d3147fa24950695f5e5e2980d520bb600dfc70701087fc1935680
4
+ data.tar.gz: f5c1ee3037fbb6786b7147d4cd9ccd583baaa5284a4e4102dbd8ad868bf15f8b
5
5
  SHA512:
6
- metadata.gz: 9471253e1d27b50b98902cb384c8261e4907ca8315fe0cb8a1c297c7b759d9b5606b4249c78eec27423eab2e78de7579e2fa55f3a7505c80777ccdc2e98d1d97
7
- data.tar.gz: 749d521d6a4780e32e093191ac12b8d7379d26f86072d28479b1dd5409df2372d0c4c8fc6f96d3a134630116d33af1cc6e7f79e9458265bc661a15ce6002a840
6
+ metadata.gz: d8f1f0bf6be3adb1f0cd8aaf1df21f0ef504af1c7818da93c1b66a98a54c02ada277de37c7310675db429b9e4b8f07c72b23e540d37a1b5f8994181aacc0e0ab
7
+ data.tar.gz: d564f2d9de62b360b6ebc7c3233fa90929d94c8e1e94ccab2f3b7ad1d85b40e8a2e13baaa600835c44e3171d7bff97053fd510a49e5256d16c2ada62ed7e9648
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-2016 Daniel J. Berger
65
+ (C) 2003-2018 Daniel J. Berger
72
66
  All Rights Reserved
73
67
 
74
68
  = Warranty
@@ -1,21 +1,21 @@
1
1
  -----BEGIN CERTIFICATE-----
2
2
  MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
3
3
  cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
4
- MB4XDTE2MDkxOTAzNDY0NVoXDTE3MDkxOTAzNDY0NVowPzERMA8GA1UEAwwIZGpi
4
+ MB4XDTE3MDkwMzE1MjMxM1oXDTE4MDkwMzE1MjMxM1owPzERMA8GA1UEAwwIZGpi
5
5
  ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
6
- bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM0eOHOQRpLOeqkyeK7O
7
- DGHYLkO0Wq7gStVVVyHXahgyCopLN6JVBwGy5aCpKFcy5sFz2DdnISj+hQ7FctDa
8
- yz6Lq9TvAF8Jkis8dDFLQKeHilB/AM4ssQAsGQyoQnoE4v5tCOSW4e3YHFDp/dMZ
9
- s7Hkoim6PeEdkh4hB5LCa90OrHSPe8nlMFsVhRIGj86xNTRazEiWPZCOKmN9rZgW
10
- ziheP/6hC2c7vNRevv5iE/K+NqaL/WOdMquOSZoF2mdBcoMIPDDBNzh/oHinPQ3N
11
- 1oOvoET0+Tj+O5tXX/L1TAsUrwZXlyrYGaZ5aYyoo/7r9pmvmbfgBqaU6JywT0EE
12
- 5x0CAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0O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qE+MrjmTA=
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-----
@@ -1,7 +1,7 @@
1
1
  module Sys
2
2
  class Filesystem
3
3
  # The version of the sys-filesystem library
4
- VERSION = '1.1.8'.freeze
4
+ VERSION = '1.1.9'.freeze
5
5
  end
6
6
  end
7
7
 
@@ -128,12 +128,12 @@ module Sys
128
128
 
129
129
  # Returns the total space on the partition.
130
130
  def bytes_total
131
- blocks * block_size
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 * block_size
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
@@ -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.8'
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'
@@ -25,7 +25,7 @@ class TC_Sys_Filesystem_Unix < Test::Unit::TestCase
25
25
  end
26
26
 
27
27
  def test_version
28
- assert_equal('1.1.8', Filesystem::VERSION)
28
+ assert_equal('1.1.9', Filesystem::VERSION)
29
29
  end
30
30
 
31
31
  def test_stat_path
@@ -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.8', Filesystem::VERSION)
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.8
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
  MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
14
14
  cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
15
- MB4XDTE2MDkxOTAzNDY0NVoXDTE3MDkxOTAzNDY0NVowPzERMA8GA1UEAwwIZGpi
15
+ MB4XDTE3MDkwMzE1MjMxM1oXDTE4MDkwMzE1MjMxM1owPzERMA8GA1UEAwwIZGpi
16
16
  ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
17
- bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM0eOHOQRpLOeqkyeK7O
18
- DGHYLkO0Wq7gStVVVyHXahgyCopLN6JVBwGy5aCpKFcy5sFz2DdnISj+hQ7FctDa
19
- yz6L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4kfiYv9rZVbpZ3L2cFYt4O6+wgbpdWP8DBBgZfCSQW
27
- 1J9miChMKdxZ8eOoeId79IMXN3IAcnalTFvD0Rp9ltaFZTXBfXMFqxQN3fHsIVwz
28
- as/JSbwXo/PE8rULhjU+Utwcmji38cKEDWLAW4vsCBmwvBTwmAmcuHHKjnNvd8aR
29
- YMrq9v505w8IjSysIO3KKysxCFuzoIPIYMdYswquvmtuTA+lpB9btWHr8n2FFsDp
30
- A943I/wqE6xbYQpHxkndWo5uLDUbZh+XxG+fhZKpeqLIqHaFuU6wdO5odt32kB/B
31
- nCjVswaVYlu1U2iLPCqE+MrjmTA=
26
+ ggEBAJh/dmRaTpJAUeJ2x9CEyy9gSP6SZjMeAwWgPNdowPDyw0JzlpBIrYiTnCYK
27
+ 2OqxvIi8L38+rHw3KYL0fEyNqP3RbMl6+SljRwiU0JwEqj9e1pqIx99RTLKeI9PM
28
+ F8LxxmDHreGOaY4R8JBOMxys1wBkF/Iilx4qoT4LBn+DzraAlmYjr6O6itIxGten
29
+ NFJFS/tFBTTeNW6SJLdDnGd2b7vBBEd/ZpIhuZNxriU6FKWC5FJeBdAiuw6lqHun
30
+ QLLepVJthIvwmfc8AU5TJGMawtVAUHIWiuQPoBBVVKOkeEhioO0cV8UabKsKMbE8
31
+ VpiARrgH+4lYiRFJ+gKpIbSEJvk=
32
32
  -----END CERTIFICATE-----
33
- date: 2017-09-02 00:00:00.000000000 Z
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.6.11
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