sys-filesystem 1.1.1 → 1.5.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.
metadata CHANGED
@@ -1,106 +1,189 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sys-filesystem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
- cert_chain: []
11
- date: 2013-10-04 00:00:00.000000000 Z
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIEcDCCAtigAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MREwDwYDVQQDDAhkamJl
14
+ cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
15
+ MB4XDTE4MDMxODE1MjIwN1oXDTI4MDMxNTE1MjIwN1owPzERMA8GA1UEAwwIZGpi
16
+ ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
17
+ bTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALgfaroVM6CI06cxr0/h
18
+ A+j+pc8fgpRgBVmHFaFunq28GPC3IvW7Nvc3Y8SnAW7pP1EQIbhlwRIaQzJ93/yj
19
+ u95KpkP7tA9erypnV7dpzBkzNlX14ACaFD/6pHoXoe2ltBxk3CCyyzx70mTqJpph
20
+ 75IB03ni9a8yqn8pmse+s83bFJOAqddSj009sGPcQO+QOWiNxqYv1n5EHcvj2ebO
21
+ 6hN7YTmhx7aSia4qL/quc4DlIaGMWoAhvML7u1fmo53CYxkKskfN8MOecq2vfEmL
22
+ iLu+SsVVEAufMDDFMXMJlvDsviolUSGMSNRTujkyCcJoXKYYxZSNtIiyd9etI0X3
23
+ ctu0uhrFyrMZXCedutvXNjUolD5r9KGBFSWH1R9u2I3n3SAyFF2yzv/7idQHLJJq
24
+ 74BMnx0FIq6fCpu5slAipvxZ3ZkZpEXZFr3cIBtO1gFvQWW7E/Y3ijliWJS1GQFq
25
+ 058qERadHGu1yu1dojmFRo6W2KZvY9al2yIlbkpDrD5MYQIDAQABo3cwdTAJBgNV
26
+ HRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUFZsMapgzJimzsbaBG2Tm8j5e
27
+ AzgwHQYDVR0RBBYwFIESZGpiZXJnOTZAZ21haWwuY29tMB0GA1UdEgQWMBSBEmRq
28
+ YmVyZzk2QGdtYWlsLmNvbTANBgkqhkiG9w0BAQsFAAOCAYEAW2tnYixXQtKxgGXq
29
+ /3iSWG2bLwvxS4go3srO+aRXZHrFUMlJ5W0mCxl03aazxxKTsVVpZD8QZxvK91OQ
30
+ h9zr9JBYqCLcCVbr8SkmYCi/laxIZxsNE5YI8cC8vvlLI7AMgSfPSnn/Epq1GjGY
31
+ 6L1iRcEDtanGCIvjqlCXO9+BmsnCfEVehqZkQHeYczA03tpOWb6pon2wzvMKSsKH
32
+ ks0ApVdstSLz1kzzAqem/uHdG9FyXdbTAwH1G4ZPv69sQAFAOCgAqYmdnzedsQtE
33
+ 1LQfaQrx0twO+CZJPcRLEESjq8ScQxWRRkfuh2VeR7cEU7L7KqT10mtUwrvw7APf
34
+ DYoeCY9KyjIBjQXfbj2ke5u1hZj94Fsq9FfbEQg8ygCgwThnmkTrrKEiMSs3alYR
35
+ ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
36
+ WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
37
+ -----END CERTIFICATE-----
38
+ date: 2024-09-30 00:00:00.000000000 Z
12
39
  dependencies:
13
40
  - !ruby/object:Gem::Dependency
14
41
  name: ffi
15
42
  requirement: !ruby/object:Gem::Requirement
16
43
  requirements:
17
- - - ! '>='
44
+ - - "~>"
18
45
  - !ruby/object:Gem::Version
19
- version: '0'
46
+ version: '1.1'
20
47
  type: :runtime
21
48
  prerelease: false
22
49
  version_requirements: !ruby/object:Gem::Requirement
23
50
  requirements:
24
- - - ! '>='
51
+ - - "~>"
25
52
  - !ruby/object:Gem::Version
26
- version: '0'
53
+ version: '1.1'
27
54
  - !ruby/object:Gem::Dependency
28
- name: test-unit
55
+ name: mkmf-lite
29
56
  requirement: !ruby/object:Gem::Requirement
30
57
  requirements:
31
- - - ! '>='
58
+ - - "~>"
32
59
  - !ruby/object:Gem::Version
33
- version: 2.5.0
60
+ version: '0.7'
34
61
  type: :development
35
62
  prerelease: false
36
63
  version_requirements: !ruby/object:Gem::Requirement
37
64
  requirements:
38
- - - ! '>='
65
+ - - "~>"
39
66
  - !ruby/object:Gem::Version
40
- version: 2.5.0
67
+ version: '0.7'
41
68
  - !ruby/object:Gem::Dependency
42
69
  name: rake
43
70
  requirement: !ruby/object:Gem::Requirement
44
71
  requirements:
45
- - - ! '>='
72
+ - - ">="
46
73
  - !ruby/object:Gem::Version
47
74
  version: '0'
48
75
  type: :development
49
76
  prerelease: false
50
77
  version_requirements: !ruby/object:Gem::Requirement
51
78
  requirements:
52
- - - ! '>='
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ - !ruby/object:Gem::Dependency
83
+ name: rspec
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '3.9'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '3.9'
96
+ - !ruby/object:Gem::Dependency
97
+ name: rubocop
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
53
101
  - !ruby/object:Gem::Version
54
102
  version: '0'
55
- description: ! " The sys-filesystem library provides an interface for gathering
56
- filesystem\n information, such as disk space and mount point data.\n"
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: rubocop-rspec
112
+ requirement: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ type: :development
118
+ prerelease: false
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ description: |2
125
+ The sys-filesystem library provides a cross-platform interface for
126
+ gathering filesystem information, such as disk space and mount point data.
57
127
  email: djberg96@gmail.com
58
128
  executables: []
59
129
  extensions: []
60
- extra_rdoc_files:
61
- - CHANGES
62
- - README
63
- - MANIFEST
130
+ extra_rdoc_files: []
64
131
  files:
65
- - CHANGES
132
+ - CHANGES.md
133
+ - Gemfile
134
+ - LICENSE
135
+ - MANIFEST.md
136
+ - README.md
137
+ - Rakefile
138
+ - certs/djberg96_pub.pem
139
+ - examples/example_mount.rb
66
140
  - examples/example_stat.rb
141
+ - lib/sys-filesystem.rb
67
142
  - lib/sys/filesystem.rb
68
- - lib/unix/sys/filesystem.rb
69
- - lib/windows/sys/filesystem/constants.rb
70
- - lib/windows/sys/filesystem/functions.rb
71
- - lib/windows/sys/filesystem/helper.rb
72
- - lib/windows/sys/filesystem/structs.rb
73
- - lib/windows/sys/filesystem.rb
74
- - MANIFEST
75
- - Rakefile
76
- - README
143
+ - lib/sys/unix/sys/filesystem.rb
144
+ - lib/sys/unix/sys/filesystem/constants.rb
145
+ - lib/sys/unix/sys/filesystem/functions.rb
146
+ - lib/sys/unix/sys/filesystem/structs.rb
147
+ - lib/sys/windows/sys/filesystem.rb
148
+ - lib/sys/windows/sys/filesystem/constants.rb
149
+ - lib/sys/windows/sys/filesystem/functions.rb
150
+ - lib/sys/windows/sys/filesystem/helper.rb
151
+ - spec/spec_helper.rb
152
+ - spec/sys_filesystem_shared.rb
153
+ - spec/sys_filesystem_unix_spec.rb
154
+ - spec/sys_filesystem_windows_spec.rb
77
155
  - sys-filesystem.gemspec
78
- - test/test_sys_filesystem.rb
79
- - test/test_sys_filesystem_unix.rb
80
- - test/test_sys_filesystem_windows.rb
81
156
  homepage: https://github.com/djberg96/sys-filesystem
82
157
  licenses:
83
- - Artistic 2.0
84
- metadata: {}
85
- post_install_message:
158
+ - Apache-2.0
159
+ metadata:
160
+ homepage_uri: https://github.com/djberg96/sys-filesystem
161
+ bug_tracker_uri: https://github.com/djberg96/sys-filesystem/issues
162
+ changelog_uri: https://github.com/djberg96/sys-filesystem/blob/main/CHANGES.md
163
+ documentation_uri: https://github.com/djberg96/sys-filesystem/wiki
164
+ source_code_uri: https://github.com/djberg96/sys-filesystem
165
+ wiki_uri: https://github.com/djberg96/sys-filesystem/wiki
166
+ rubygems_mfa_required: 'true'
167
+ github_repo: https://github.com/djberg96/sys-filesystem
168
+ post_install_message:
86
169
  rdoc_options: []
87
170
  require_paths:
88
171
  - lib
89
172
  required_ruby_version: !ruby/object:Gem::Requirement
90
173
  requirements:
91
- - - ! '>='
174
+ - - ">="
92
175
  - !ruby/object:Gem::Version
93
176
  version: '0'
94
177
  required_rubygems_version: !ruby/object:Gem::Requirement
95
178
  requirements:
96
- - - ! '>='
179
+ - - ">="
97
180
  - !ruby/object:Gem::Version
98
181
  version: '0'
99
182
  requirements: []
100
- rubyforge_project: sysutils
101
- rubygems_version: 2.0.3
102
- signing_key:
183
+ rubygems_version: 3.5.16
184
+ signing_key:
103
185
  specification_version: 4
104
186
  summary: A Ruby interface for getting file system information.
105
187
  test_files:
106
- - test/test_sys_filesystem.rb
188
+ - spec/sys_filesystem_unix_spec.rb
189
+ - spec/sys_filesystem_windows_spec.rb
metadata.gz.sig ADDED
Binary file
data/CHANGES DELETED
@@ -1,58 +0,0 @@
1
- == 1.1.1 - 3-Oct-2013
2
- * Solaris now always uses statvfs64 on Solaris for better 64-bit support.
3
- Thanks go to Jeff Shantz for the spot.
4
-
5
- == 1.1.0 - 19-Jan-2013
6
- * Converted the Windows source code to use FFI. Consequently, there is now
7
- a single gem rather than separate gems for Windows and Unix.
8
- * Revamped the Windows tests.
9
-
10
- == 1.0.0 - 11-Jan-2012
11
- * Converted everything from C to FFI for the Unix flavors. The Windows
12
- source code remains untouched.
13
-
14
- == 0.3.4 - 19-Nov-2010
15
- * Fixed a bug where negative block counts were happening on very large
16
- hard drives. Thanks go to Jonas Pfenniger for the spot.
17
- * Refactored the clean task in the Rakefile.
18
- * Some cosmetic source code changes.
19
-
20
- == 0.3.3 - 21-May-2010
21
- * Added a workaround for the Sys::Filesystem#block_size member to deal with
22
- a bug in OS X. Thanks go to Josh Pasqualetto for the spot.
23
-
24
- == 0.3.2 - 29-Dec-2009
25
- * Source has been moved to github.
26
- * Added the 'gem' task and removed build logic from the gemspec.
27
- * Updated the install task.
28
- * Minor correction to the manifest.
29
- * Removed some junk build files that were inadvertently included in
30
- the last gem.
31
-
32
- == 0.3.1 - 5-Aug-2009
33
- * Now compatible with Ruby 1.9.x.
34
- * Changed license to Artistic 2.0
35
- * Updated the gemspec, including the explicit addition of a license and
36
- test-unit as a development dependency, as well as an updated description.
37
-
38
- == 0.3.0 - 26-Feb-2009
39
- * Added support for OS X and FreeBSD thanks to an awesome patch by Nobuyoshi
40
- Miyokawa.
41
- * Added the Filesystem.mount_point method that takes a file and returns
42
- the mount point it's sitting on.
43
-
44
- == 0.2.0 - 30-Dec-2008
45
- * Added the Filesystem.mounts method for iterating over mount or volume
46
- information.
47
-
48
- == 0.1.1 - 28-Mar-2007
49
- * Bug fix for BSD flavors. Thanks go to Jeremy Kemper and Ole Christian
50
- Rynning for the spot.
51
- * Bug fix for OS X (along the same lines as the BSD fix). Thanks go to
52
- Aurelian Dehay for the spot.
53
- * Some Rdoc improvements for the C extension.
54
- * Tweaks to the gemspec.
55
- * Added synopsis to the README.
56
-
57
- == 0.1.0 - 17-Nov-2006
58
- * Initial release. Alpha. Code is stable, but API is not.
data/MANIFEST DELETED
@@ -1,12 +0,0 @@
1
- * MANIFEST
2
- * CHANGES
3
- * Rakefile
4
- * README
5
- * sys-fileystem.gemspec
6
- * examples/example_stat.rb
7
- * lib/sys/filesystem.rb
8
- * lib/unix/sys/filesystem.rb
9
- * lib/windows/sys/filesystem.rb
10
- * test/test_sys_filesystem.rb
11
- * test/test_sys_filesystem_unix
12
- * test/test_sys_filesystem_windows
data/README DELETED
@@ -1,81 +0,0 @@
1
- = Description
2
- A Ruby interface for getting file system information.
3
-
4
- = Installation
5
- gem install sys-filesystem
6
-
7
- = Synopsis
8
- require 'sys/filesystem'
9
- include Sys
10
-
11
- # Display information about a particular filesystem.
12
- p Filesystem.stat('/')
13
-
14
- # Sample output
15
-
16
- #<Sys::Filesystem::Stat:0x517440
17
- @base_type = "ufs",
18
- @flags = 4,
19
- @files_available = 3817457,
20
- @block_size = 8192,
21
- @blocks_available = 19957633,
22
- @blocks = 34349612,
23
- @name_max = 255,
24
- @path = "/",
25
- @filesystem_id = 35651592,
26
- @files = 4135040,
27
- @fragment_size = 1024,
28
- @files_free = 3817457,
29
- @blocks_free = 20301129
30
- >
31
-
32
- # Describe all mount points on the system
33
- Filesystem.mounts{ |mount| p mount }
34
-
35
- # Find the mount point of any particular file
36
- puts Filesystem.mount_point('/home/djberge/some_file.txt') => '/home'
37
-
38
- = Notes
39
- This is a pure Ruby implementation that uses FFI. This means it should work
40
- with JRuby, too.
41
-
42
- = Sample code
43
- Run 'rake example' if you want to see a basic sample run. The actual code
44
- is 'example_stat.rb' in the 'examples' directory. Modify it as you see fit.
45
-
46
- = Known Bugs
47
- None that I'm aware of. Please report bugs on the project page at
48
- https://github.com/djberg96/sys-filesystem
49
-
50
- = Future Plans
51
- Add better 64-bit support for Linux and BSD.
52
- Other suggestions welcome.
53
-
54
- = Acknowledgements
55
- Mike Hall, for ideas and code that I borrowed from his 'filesystem'
56
- library.
57
-
58
- Park Heesob, for implementation and API ideas for the MS Windows version.
59
-
60
- Nobuyoshi Miyokawa, for adding the original FreeBSD and OS X support.
61
-
62
- = License
63
- Artistic 2.0
64
-
65
- == Contributions
66
- Although this library is free, please consider having your company
67
- setup a gittip if used by your company professionally.
68
-
69
- http://www.gittip.com/djberg96/
70
-
71
- = Copyright
72
- (C) 2003-2013 Daniel J. Berger
73
- All Rights Reserved
74
-
75
- = Warranty
76
- This library is provided "as is" and without any express or
77
- implied warranties, including, without limitation, the implied
78
- warranties of merchantability and fitness for a particular purpose.
79
-
80
- = Author
81
- Daniel J. Berger