sys-filesystem 1.3.1 → 1.3.2

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: 6334dc57daad97c3eaf9b0ce177abfa6792d13e106428e83646fbd1f6aa389d9
4
- data.tar.gz: a9b0350667a8dfdb7afecd3acbc5604c5baabebea6674f2187810311e7e8bb1a
3
+ metadata.gz: baa1ca06971a27b95e31d7bd54db2b46f31b7e26169c4e69ed4044484db4d29b
4
+ data.tar.gz: 559a709c51890ffc12245eff51c5e42f3cb370b66bb0cc6642c71290b814f223
5
5
  SHA512:
6
- metadata.gz: 7717c681b42ccd2be205d5d22f0f11be3a10ca70c6c91d95c87f8e104e0e4ada27725849bfdbef06a957af5c871affed1698aee553ce1dae50feca1236bff6e3
7
- data.tar.gz: 88c377c758e9158a9980e3b9e9081e19f1c8c71d4613ea22e265b5d77510b81314b37a8a7a80f6466d2e8420cd1565169e58b9676a1281fcec0fee2fd4202bd0
6
+ metadata.gz: 9f7d98d8078417571438c1aa76afc5f0955ed08d8731a7afbb9f67b9590daaab8ba2226b3766ae850c4cece3aa1da8dd6cc21517bfeb727eb80249b5feb85469
7
+ data.tar.gz: c5b160edfc3988b9e6ab38ba0a3c2b551338a02006f181c3604446f17c6ad8771000c090f68adf28dbba467b22745ba86ad6bfebf85ad6b8d7af6ce1862a97bb
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,7 @@
1
+ == 1.3.2 - 8-Dec-2019
2
+ * Renamed various text files to include .rdoc extension so that github renders
3
+ them nicely.
4
+
1
5
  == 1.3.1 - 15-Oct-2019
2
6
  * Fixed a bug where the Statvfs and Statfs structs were not allocated properly
3
7
  on Linux, which could cause issues. Thanks go to Daniele Orlandi for the spot.
@@ -1,7 +1,7 @@
1
- * MANIFEST
2
- * CHANGES
1
+ * MANIFEST.rdoc
2
+ * CHANGES.rdoc
3
3
  * Rakefile
4
- * README
4
+ * README.rdoc
5
5
  * sys-fileystem.gemspec
6
6
  * certs/djberg96_pub.pem
7
7
  * examples/example_stat.rb
@@ -0,0 +1,77 @@
1
+ == Description
2
+ A cross platform 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
+
49
+ https://github.com/djberg96/sys-filesystem
50
+
51
+ == Future Plans
52
+
53
+ * Add better 64-bit support for Linux and BSD.
54
+ * Other suggestions welcome.
55
+
56
+ == Acknowledgements
57
+ Mike Hall, for ideas and code that I borrowed from his 'filesystem' library.
58
+
59
+ Park Heesob, for implementation and API ideas for the MS Windows version.
60
+
61
+ Nobuyoshi Miyokawa, for adding the original FreeBSD and OS X support.
62
+
63
+ == License
64
+ Apache-2.0
65
+
66
+ == Copyright
67
+ (C) 2003-2019 Daniel J. Berger
68
+
69
+ All Rights Reserved
70
+
71
+ == Warranty
72
+ This library is provided "as is" and without any express or
73
+ implied warranties, including, without limitation, the implied
74
+ warranties of merchantability and fitness for a particular purpose.
75
+
76
+ == Author
77
+ Daniel J. Berger
@@ -1,7 +1,7 @@
1
1
  module Sys
2
2
  class Filesystem
3
3
  # The version of the sys-filesystem library
4
- VERSION = '1.3.1'.freeze
4
+ VERSION = '1.3.2'.freeze
5
5
  end
6
6
  end
7
7
 
@@ -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.3.1'
5
+ spec.version = '1.3.2'
6
6
  spec.author = 'Daniel J. Berger'
7
7
  spec.email = 'djberg96@gmail.com'
8
8
  spec.homepage = 'https://github.com/djberg96/sys-filesystem'
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
13
13
  spec.cert_chain = Dir['certs/*']
14
14
 
15
- spec.extra_rdoc_files = ['CHANGES', 'README', 'MANIFEST']
15
+ spec.extra_rdoc_files = Dir['*.rdoc']
16
16
 
17
17
  spec.add_dependency('ffi')
18
18
  spec.add_development_dependency('rake')
@@ -27,7 +27,7 @@ class TC_Sys_Filesystem_Unix < Test::Unit::TestCase
27
27
  end
28
28
 
29
29
  test "version number is set to the expected value" do
30
- assert_equal('1.3.1', Filesystem::VERSION)
30
+ assert_equal('1.3.2', Filesystem::VERSION)
31
31
  assert_true(Filesystem::VERSION.frozen?)
32
32
  end
33
33
 
@@ -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.3.1', Filesystem::VERSION)
23
+ assert_equal('1.3.2', Filesystem::VERSION)
24
24
  assert_true(Filesystem::VERSION.frozen?)
25
25
  end
26
26
 
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.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -100,41 +100,41 @@ email: djberg96@gmail.com
100
100
  executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files:
103
- - CHANGES
104
- - README
105
- - MANIFEST
103
+ - CHANGES.rdoc
104
+ - MANIFEST.rdoc
105
+ - README.rdoc
106
106
  files:
107
107
  - test
108
- - test/test_sys_filesystem_windows.rb
109
- - test/test_sys_filesystem_unix.rb
110
108
  - test/test_sys_filesystem.rb
111
- - CHANGES
112
- - MANIFEST
113
- - README
114
- - Rakefile
115
- - sys-filesystem.gemspec
116
- - certs
117
- - certs/djberg96_pub.pem
109
+ - test/test_sys_filesystem_unix.rb
110
+ - test/test_sys_filesystem_windows.rb
118
111
  - examples
119
112
  - examples/example_stat.rb
120
113
  - lib
121
- - lib/sys-filesystem.rb
122
114
  - lib/sys
123
115
  - lib/sys/unix
124
116
  - lib/sys/unix/sys
117
+ - lib/sys/unix/sys/filesystem.rb
125
118
  - lib/sys/unix/sys/filesystem
126
- - lib/sys/unix/sys/filesystem/structs.rb
127
119
  - lib/sys/unix/sys/filesystem/constants.rb
128
120
  - lib/sys/unix/sys/filesystem/functions.rb
129
- - lib/sys/unix/sys/filesystem.rb
130
- - lib/sys/filesystem.rb
121
+ - lib/sys/unix/sys/filesystem/structs.rb
131
122
  - lib/sys/windows
132
123
  - lib/sys/windows/sys
124
+ - lib/sys/windows/sys/filesystem.rb
133
125
  - lib/sys/windows/sys/filesystem
134
- - lib/sys/windows/sys/filesystem/helper.rb
135
126
  - lib/sys/windows/sys/filesystem/constants.rb
136
127
  - lib/sys/windows/sys/filesystem/functions.rb
137
- - lib/sys/windows/sys/filesystem.rb
128
+ - lib/sys/windows/sys/filesystem/helper.rb
129
+ - lib/sys/filesystem.rb
130
+ - lib/sys-filesystem.rb
131
+ - Rakefile
132
+ - certs
133
+ - certs/djberg96_pub.pem
134
+ - CHANGES.rdoc
135
+ - MANIFEST.rdoc
136
+ - README.rdoc
137
+ - sys-filesystem.gemspec
138
138
  homepage: https://github.com/djberg96/sys-filesystem
139
139
  licenses:
140
140
  - Apache-2.0
@@ -165,6 +165,6 @@ signing_key:
165
165
  specification_version: 4
166
166
  summary: A Ruby interface for getting file system information.
167
167
  test_files:
168
- - test/test_sys_filesystem_windows.rb
169
- - test/test_sys_filesystem_unix.rb
170
168
  - test/test_sys_filesystem.rb
169
+ - test/test_sys_filesystem_unix.rb
170
+ - test/test_sys_filesystem_windows.rb
metadata.gz.sig CHANGED
Binary file
data/README DELETED
@@ -1,74 +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' library.
56
-
57
- Park Heesob, for implementation and API ideas for the MS Windows version.
58
-
59
- Nobuyoshi Miyokawa, for adding the original FreeBSD and OS X support.
60
-
61
- = License
62
- Apache-2.0
63
-
64
- = Copyright
65
- (C) 2003-2019 Daniel J. Berger
66
- All Rights Reserved
67
-
68
- = Warranty
69
- This library is provided "as is" and without any express or
70
- implied warranties, including, without limitation, the implied
71
- warranties of merchantability and fitness for a particular purpose.
72
-
73
- = Author
74
- Daniel J. Berger