sys-proctable 1.2.5 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/{CHANGES.rdoc → CHANGES.md} +72 -48
- data/Gemfile +2 -0
- data/{MANIFEST.rdoc → MANIFEST.md} +11 -8
- data/README.md +8 -3
- data/Rakefile +7 -4
- data/certs/djberg96_pub.pem +26 -0
- data/lib/darwin/sys/proctable.rb +59 -22
- data/lib/freebsd/sys/proctable.rb +1 -1
- data/lib/linux/sys/proctable/cgroup_entry.rb +4 -2
- data/lib/linux/sys/proctable/smaps.rb +29 -17
- data/lib/linux/sys/proctable.rb +41 -35
- data/lib/sunos/sys/proctable.rb +2 -2
- data/lib/sys/proctable/version.rb +1 -1
- data/lib/sys/top.rb +1 -1
- data/lib/windows/sys/proctable.rb +36 -32
- data/spec/spec_helper.rb +11 -20
- data/spec/sys_proctable_aix_spec.rb +74 -76
- data/spec/sys_proctable_all_spec.rb +45 -45
- data/spec/sys_proctable_darwin_spec.rb +87 -60
- data/spec/sys_proctable_freebsd_spec.rb +111 -113
- data/spec/sys_proctable_linux_spec.rb +196 -195
- data/spec/sys_proctable_sunos_spec.rb +190 -192
- data/spec/sys_proctable_windows_spec.rb +153 -153
- data/spec/sys_top_spec.rb +20 -21
- data/sys-proctable.gemspec +15 -24
- data.tar.gz.sig +0 -0
- metadata +56 -19
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc04e64b1355f4df7eef6d44666c323d45bb3d6dde7ced1d078ab7b3a0108367
|
4
|
+
data.tar.gz: 64227d33681d13797ca0911199d2040f097e32de56656506d28f232d2adb7938
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fa256e92c462347cabca2d4992c74dc5cbfdf7985159668b74617863b321d663209239d4d5c3e00f3cf4cf8275ace09d464fe1782024b2c21855c7128c4a4f1
|
7
|
+
data.tar.gz: 6c16116b746153a4f75932c5d2f1f5ab560100d648dd5bc904b4f1aca3b434b8667ef41fd89d34e23b303fff38fa6e7a9f089d42be60d8f4628c34e46aeb87af
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/{CHANGES.rdoc → CHANGES.md}
RENAMED
@@ -1,19 +1,43 @@
|
|
1
|
-
|
1
|
+
## 1.2.7 - 28-Oct-2022
|
2
|
+
* Fix bug on Solaris where it would fail trying to read zero-byte pseudo-kernel
|
3
|
+
processes. Thanks go to Robert Waffen for the spot and the patch.
|
4
|
+
* Fixed a bug for MacOS that potentially caused it to miss thread info.
|
5
|
+
* Fixed specs for AIX that had gotten mangled when I switched to rspec
|
6
|
+
* Some gemspec updates, including the addition of rubocop as a development
|
7
|
+
dependency, and mandatory MFA.
|
8
|
+
* Lots of rubocop related updates, mostly stylistic, but in some cases things
|
9
|
+
that were always meant to be private (like C struct wrappers) have been
|
10
|
+
explicitly marked as private.
|
11
|
+
* Lots of general spec refactoring, including updates for MacOS since Catalina
|
12
|
+
and later that no longer allow you to collect env information for spawned
|
13
|
+
processes.
|
14
|
+
* Switched to github actions.
|
15
|
+
|
16
|
+
## 1.2.6 - 25-Aug-2020
|
17
|
+
* Made some updates so that it worked properly with TruffleRuby on Mac.
|
18
|
+
* Fixed an issue on Linux where non-ascii environ strings could cause failure.
|
19
|
+
Thanks go to deemytch for the spot and original patch.
|
20
|
+
* Removed the spec_helper.rb file, just use Process.spawn instead of messing
|
21
|
+
around with custom fork implementations. This also helps with implementations
|
22
|
+
that don't support fork.
|
23
|
+
* Updated the MANIFEST.
|
24
|
+
|
25
|
+
## 1.2.5 - 19-Jun-2020
|
2
26
|
* Added the delayacct_blkio_ticks, guest_time, and cguest_time fields on Linux.
|
3
27
|
These require 2.6.18 or later, but will simply be nil on earlier versions.
|
4
28
|
* Added the rsslim synonym for the rlim field for Linux.
|
5
29
|
|
6
|
-
|
30
|
+
## 1.2.4 - 18-Jun-2020
|
7
31
|
* Added the num_threads field for Linux. This was originally a dead field in
|
8
32
|
older versions of Linux that was skipped, but as of Linux 2.6+ it actually
|
9
33
|
holds meaningful data.
|
10
34
|
* Updated the specs for Linux.
|
11
35
|
|
12
|
-
|
36
|
+
## 1.2.3 - 17-Mar-2020
|
13
37
|
* Properly include a copy of Apache-2.0 in LICENSE file as part of library.
|
14
38
|
* Add explicit .rdoc extensions to CHANGES and MANIFEST files.
|
15
39
|
|
16
|
-
|
40
|
+
## 1.2.2 - 12-Aug-2019
|
17
41
|
* Added compatibility for JRuby on Mac which apparently doesn't define a
|
18
42
|
read_uint64 method, nor a CharArray. Thanks go to Adithya Pentela for
|
19
43
|
the spot.
|
@@ -26,7 +50,7 @@
|
|
26
50
|
* Cleaned up the MANIFEST file, updated the gemspec, and fixed the
|
27
51
|
license name, which was missing a hyphen.
|
28
52
|
|
29
|
-
|
53
|
+
## 1.2.1 - 8-Jun-2018
|
30
54
|
* The code for OSX is now more efficient when a pid argument is provided.
|
31
55
|
Thanks go to Nick LaMuro for his efforts.
|
32
56
|
* Added metadata to the gemspec.
|
@@ -34,7 +58,7 @@
|
|
34
58
|
Tim Meusel for the update.
|
35
59
|
* Updated the cert. Should be good for ten years now.
|
36
60
|
|
37
|
-
|
61
|
+
## 1.2.0 - 20-Feb-2018
|
38
62
|
* There has been an API change. The ProcTable.ps method now uses keyword
|
39
63
|
arguments. The 'pid' option is universal, the rest depend on the platform.
|
40
64
|
As part of this change, support for Ruby < 2.0 has been dropped.
|
@@ -46,27 +70,27 @@
|
|
46
70
|
* Lots of Rakefile updates based on the above changes.
|
47
71
|
* The cert was updated.
|
48
72
|
|
49
|
-
|
73
|
+
## 1.1.5 - 10-Aug-2017
|
50
74
|
* Fixed a warning that cropped up in Ruby 2.4.x because I was type checking
|
51
75
|
against Fixnum. Those have been replaced with Numeric.
|
52
76
|
|
53
|
-
|
77
|
+
## 1.1.4 - 30-Mar-2017
|
54
78
|
* Fixed a potential issue where OSX could return a struct with invalid data.
|
55
79
|
* Set the default field to :pid for OSX when using Sys::Top.
|
56
80
|
* Fixed a duplicate test warning for OSX.
|
57
81
|
|
58
|
-
|
82
|
+
## 1.1.3 - 28-Sep-2016
|
59
83
|
* Fixed an issue on OSX where the value returned for argc is invalid.
|
60
84
|
|
61
|
-
|
85
|
+
## 1.1.2 - 18-Sep-2016
|
62
86
|
* Fixed cmdline parsing and handling for OSX. Thanks go to Ben Mathwig for
|
63
87
|
the spot and the patch.
|
64
88
|
|
65
|
-
|
89
|
+
## 1.1.1 - 30-Jun-2016
|
66
90
|
* Added thread information for OS X.
|
67
91
|
* Fixed VERSION constant for HP-UX.
|
68
92
|
|
69
|
-
|
93
|
+
## 1.1.0 - 27-Jun-2016
|
70
94
|
* License was changed to Apache 2.0.
|
71
95
|
* The OS X version now requires OS X 10.7 or later.
|
72
96
|
* Scrapped the C implementation for OS X, and replaced it with a libproc wrapper
|
@@ -76,20 +100,20 @@
|
|
76
100
|
* Rakefile updates to accomodate the changes for OS X.
|
77
101
|
* Some test suite updates and refactoring.
|
78
102
|
|
79
|
-
|
103
|
+
## 1.0.0 - 11-Jan-2016
|
80
104
|
* Added smaps information for Linux. Thanks go to Joe Rafaniello for the patch.
|
81
105
|
* This really should not have been a major release, sorry.
|
82
106
|
|
83
|
-
|
107
|
+
## 0.9.9 - 8-Nov-2015
|
84
108
|
* Added support for cgroups on Linux. Thanks go to Dennis Günnewig for the patch.
|
85
109
|
* Added a sys-proctable.rb file for convenience.
|
86
110
|
* This gem is now signed.
|
87
111
|
* Gem related tasks in the Rakefile now assume Rubygems 2.x.
|
88
112
|
|
89
|
-
|
113
|
+
## 0.9.8 - 18-Apr-2015
|
90
114
|
* Fixed a bug in the gemspec. Last version got yanked.
|
91
115
|
|
92
|
-
|
116
|
+
## 0.9.7 - 18-Apr-2015
|
93
117
|
* Fixed a bug in the OSX code that could cause the ps method to fail. Thanks
|
94
118
|
go to Koshevoy Anton for the spot.
|
95
119
|
* Some internal refactoring of version handling. Now all platforms use a
|
@@ -98,16 +122,16 @@
|
|
98
122
|
FFI on FreeBSD 10 no longer understands them. Thanks go to Mike Owens for
|
99
123
|
the spot.
|
100
124
|
|
101
|
-
|
125
|
+
## 0.9.6 - 24-Feb-2015
|
102
126
|
* Added NLWP field on Linux. Thanks go to Rich Chatterton for the patch.
|
103
127
|
|
104
|
-
|
128
|
+
## 0.9.5 - 10-Feb-2015
|
105
129
|
* Significant cleanup and memory reduction of the OSX code. Thanks go
|
106
130
|
to Ivan (toy) for the patches.
|
107
131
|
* Skip over /proc/<file>/status if unreadable on Linux. Thanks go to Jianjun
|
108
132
|
Mao for the patch.
|
109
133
|
|
110
|
-
|
134
|
+
## 0.9.4 - 4-Mar-2014
|
111
135
|
* Added support for AIX 5.3 or later courtesy of Rick Ohnemus.
|
112
136
|
* The Solaris version now uses FFI structs instead of a packed array.
|
113
137
|
It solved issues with 64-bit versions of Ruby and it's self-documenting.
|
@@ -118,12 +142,12 @@
|
|
118
142
|
that the C code did not build on those platforms anyway, I doubt most of
|
119
143
|
you will notice. Patches for those platforms are welcome, but only using FFI.
|
120
144
|
|
121
|
-
|
145
|
+
## 0.9.3 - 17-Mar-2013
|
122
146
|
* Fixed a bug on OSX where a long command string arg could cause
|
123
147
|
a segfault. Thanks go to Nathaniel Bibler for the spot.
|
124
148
|
* Changed the gem platform from mingw to mingw32 for Windows.
|
125
149
|
|
126
|
-
|
150
|
+
## 0.9.2 - 8-Oct-2012
|
127
151
|
* Added cmdline support for OS X. Thanks go to Matthias Zirnstein for
|
128
152
|
the patch.
|
129
153
|
* Warning cleanup for 1.9.
|
@@ -131,7 +155,7 @@
|
|
131
155
|
with a two element array for Gem::Platform.new.
|
132
156
|
* MS date strings are now parse with DateTime instead of Date.
|
133
157
|
|
134
|
-
|
158
|
+
## 0.9.1 - 3-Aug-2011
|
135
159
|
* Added the pctcpu and pctmem members for Linux.
|
136
160
|
* Added Errno::ESRCH to a rescue clause on Linux that fixed a bug
|
137
161
|
where a missing entry wasn't being skipped when run as root. Thanks
|
@@ -144,7 +168,7 @@
|
|
144
168
|
* Altered the platform settings in the Rakefile so that generated gems
|
145
169
|
use 'universal' platform architectures for any particular operating system.
|
146
170
|
|
147
|
-
|
171
|
+
## 0.9.0 - 14-Oct-2009
|
148
172
|
* Changed the license to Artistic 2.0.
|
149
173
|
* Fixed a bug in the OS X code where a segfault would occur when an attempt
|
150
174
|
was made to gather resource usage information on zombie processes. From
|
@@ -163,7 +187,7 @@
|
|
163
187
|
license change and some minor formatting changes.
|
164
188
|
* The test-unit library was changed from a runtime to a development dependency.
|
165
189
|
|
166
|
-
|
190
|
+
## 0.8.1 - 6-Apr-2009
|
167
191
|
* The Linux and Solaris libraries now handle the possibility of a process
|
168
192
|
terminating in the middle of a read more gracefully. If that happens, they
|
169
193
|
merely skip to the next record, i.e. it's all or nothing. Thanks go to
|
@@ -173,7 +197,7 @@
|
|
173
197
|
* Added the comm alias back to the Solaris version. Thanks go to Jun Young Kim
|
174
198
|
for the spot.
|
175
199
|
|
176
|
-
|
200
|
+
## 0.8.0 - 26-Jan-2009
|
177
201
|
* The Linux and Solaris versions of this library are now pure Ruby. Be warned,
|
178
202
|
however, that only Solaris 8 and later are now supported. This may change
|
179
203
|
in a future release if there's demand to support 2.6 and 2.7.
|
@@ -200,7 +224,7 @@
|
|
200
224
|
confusion with actual test files.
|
201
225
|
* Added an 'example' rake task to run the example file.
|
202
226
|
|
203
|
-
|
227
|
+
## 0.7.6 - 11-Jul-2007
|
204
228
|
* Fixed the starttime for Linux. Thanks go to Yaroslav Dmitriev for the spot.
|
205
229
|
* Fixed a bug in the MS Windows version within a private method that parsed
|
206
230
|
an MS specific date format. This was caused by a backwards incompatible
|
@@ -216,11 +240,11 @@
|
|
216
240
|
to David Felstead for the code. However, see the README for more information
|
217
241
|
specific to OS X, as there are shortcomings.
|
218
242
|
|
219
|
-
|
243
|
+
## 0.7.5 - 23-Nov-2006
|
220
244
|
* Fixed int/long issues for Linux. Thanks go to Matt Lightner for the spot.
|
221
245
|
* Minor documentation fixes and changes to the extconf.rb file.
|
222
246
|
|
223
|
-
|
247
|
+
## 0.7.4 - 20-Nov-2006
|
224
248
|
* Added a patch that deals with the large file compilation issue on Solaris.
|
225
249
|
You no longer need to build Ruby with --disable-largefile, or build a
|
226
250
|
64 bit Ruby, in order for this package to work. Thanks go to Steven Jenkins
|
@@ -231,11 +255,11 @@
|
|
231
255
|
* Added preliminary support for Darwin (OS X). The code was provided by
|
232
256
|
David Felstead, but does not appear to compile successfully. Help wanted.
|
233
257
|
|
234
|
-
|
258
|
+
## 0.7.3 - 27-Oct-2005
|
235
259
|
* Fix for 1.8.3 and later (rb_pid_t). This should have only affected
|
236
260
|
Solaris.
|
237
261
|
|
238
|
-
|
262
|
+
## 0.7.2 - 15-May-2005
|
239
263
|
* Bug fix for the FreeBSD version that reads from /proc.
|
240
264
|
* Eliminated the test bug on Linux (inexplicably caused by File.copy). The
|
241
265
|
test suite should now run without segfaulting.
|
@@ -244,13 +268,13 @@
|
|
244
268
|
* The 'pct_cpu' member for the BSD/kvm version has been changed to 'pctcpu'
|
245
269
|
for consistency with other platforms.
|
246
270
|
|
247
|
-
|
271
|
+
## 0.7.1 - 8-May-2005
|
248
272
|
* Bug fixed for the cmdline info on Linux. Thanks go to Arash Abedinzadeh
|
249
273
|
for the spot.
|
250
274
|
* Added an example program.
|
251
275
|
* Minor setup fix for Win32 in tc_all.rb.
|
252
276
|
|
253
|
-
|
277
|
+
## 0.7.0 - 25-Apr-2005
|
254
278
|
* Scrapped the C implementation for Windows in favor of an OLE + WMI pure Ruby
|
255
279
|
approach. See documentation for details.
|
256
280
|
* Added an optional lkvm implementation for BSD users. This is automatically
|
@@ -273,7 +297,7 @@
|
|
273
297
|
* Some test suite cleanup and reorganization.
|
274
298
|
* Moved project to RubyForge.
|
275
299
|
|
276
|
-
|
300
|
+
## 0.6.4 - 31-Mar-2004
|
277
301
|
* Fixed a bug in the pure Ruby version for Win32. Thanks go to Mark Hudson
|
278
302
|
for the spot.
|
279
303
|
* Fixed a bug in the C implementation for Win32 where the cmdline and path
|
@@ -292,16 +316,16 @@
|
|
292
316
|
* Minor change to way process state is handled on HP-UX.
|
293
317
|
* Documentation additions and updates, including warranty information.
|
294
318
|
|
295
|
-
|
319
|
+
## 0.6.3 - 24-Feb-2004
|
296
320
|
* Fixed a bug in the Solaris version where the cmd_args array did not
|
297
321
|
necessarily contain data on 2.7 and later. The current patch still
|
298
322
|
does not quite fix the problem for 2.6 and earlier but can be easily
|
299
323
|
derived manually by parsing the cmdline string.
|
300
324
|
|
301
|
-
|
325
|
+
## 0.6.2 - 20-Jan-2004
|
302
326
|
* Fixed a small memory leak in the solaris version.
|
303
327
|
|
304
|
-
|
328
|
+
## 0.6.1 - 31-Dec-2003
|
305
329
|
* Fixed a minor bug in the cmdline field on Linux where a blank character
|
306
330
|
was being appended to the end of the field.
|
307
331
|
* Fixed a minor annoyance where the windows.rb file was being copied into
|
@@ -312,7 +336,7 @@
|
|
312
336
|
* Minor test suite changes
|
313
337
|
* MANIFEST correction and update.
|
314
338
|
|
315
|
-
|
339
|
+
## 0.6.0 - 22-Oct-2003
|
316
340
|
* Significant API change (and thus, a version jump) - only a
|
317
341
|
single argument is now accepted to the ps() method, and only a PID
|
318
342
|
(Fixnum) is regarded as a valid argument.
|
@@ -337,7 +361,7 @@
|
|
337
361
|
* Some test suite cleanup.
|
338
362
|
* Changed .rd2 extension to just '.rd'.
|
339
363
|
|
340
|
-
|
364
|
+
## 0.5.2 - 18-Jul-2003
|
341
365
|
* Modified cmdline to extend past the traditional 80 character limit on
|
342
366
|
Solaris, where possible (Solaris 2.6+ only).
|
343
367
|
* Added the cmdline_args and num_args fields on Solaris, which returns
|
@@ -350,14 +374,14 @@
|
|
350
374
|
* Added solaris.txt to doc directory.
|
351
375
|
* MANIFEST corrections.
|
352
376
|
|
353
|
-
|
377
|
+
## 0.5.1 - 16-Jul-2003
|
354
378
|
* Fixed a nasty file descriptor bug in the Linux code, where file descriptors
|
355
379
|
were continuously being used up.
|
356
380
|
* Added the BTIME (boot time) constant for Linux.
|
357
381
|
* Fixed up the test/test.rb file a bit.
|
358
382
|
* Added BTIME tests to tc_linux.rb.
|
359
383
|
|
360
|
-
|
384
|
+
## 0.5.0 - 11-Jul-200
|
361
385
|
* Added HP-UX support!
|
362
386
|
* Note that passing PID's or strings as arguments to ps() is not supported
|
363
387
|
in the HP-UX version. This functionality will be stripped out of the
|
@@ -368,7 +392,7 @@
|
|
368
392
|
* Got rid of the interactive html generation in extconf.rb.
|
369
393
|
* Changed License to Artistic.
|
370
394
|
|
371
|
-
|
395
|
+
## 0.4.3 - 30-May-2003
|
372
396
|
* Added a version.h file to store the version number. Modified all of the
|
373
397
|
C source files to use that instead of hard coding the version everywhere.
|
374
398
|
* Added a generic test.rb script for those without TestUnit installed, or
|
@@ -378,13 +402,13 @@
|
|
378
402
|
Peter Fischer for the spot and patch.
|
379
403
|
* Modified test suite to work with TestUnit 0.1.6 or 0.1.8.
|
380
404
|
|
381
|
-
|
405
|
+
## 0.4.2 - 14-Apr-2003
|
382
406
|
* Added pure Ruby version for Win32 - thanks Park Heesob.
|
383
407
|
* Modified extconf.rb file to handle pure Ruby versions.
|
384
408
|
* Added install_pure_ruby.rb file, an alternate installation
|
385
409
|
script for pure Ruby versions.
|
386
410
|
|
387
|
-
|
411
|
+
## 0.4.1 - 31-Mar-2003
|
388
412
|
* Added support for Solaris 2.5.x.
|
389
413
|
* All exceptions are now a direct subclass of StandardError.
|
390
414
|
* Value returned for wchan now more meaningful (2.5.x only for now).
|
@@ -394,7 +418,7 @@
|
|
394
418
|
* Minor doc changes.
|
395
419
|
* Added License and Copyright info.
|
396
420
|
|
397
|
-
|
421
|
+
## 0.4.0 - 10-Mar-2003
|
398
422
|
* Added MS Windows support (non-cygwin).
|
399
423
|
* Added environment information for Linux version.
|
400
424
|
* Added real exceptions (type depends on platform).
|
@@ -407,14 +431,14 @@
|
|
407
431
|
* Changed package name to lower case.
|
408
432
|
* Doc changes, including license information.
|
409
433
|
|
410
|
-
|
434
|
+
## 0.3.1 - 16-Aug-2002
|
411
435
|
* Added a "comm" field to the sunos version. I am going to try to make this a
|
412
436
|
common field for all platforms to help reduce RUBY_PLATFORM checking.
|
413
437
|
* Fixed the release date for 0.3.0 (was accidentally marked *July*).
|
414
438
|
* Added an INSTALL file.
|
415
439
|
* Minor documentation change to the sunos.c source file.
|
416
440
|
|
417
|
-
|
441
|
+
## 0.3.0 - 11-Aug-2002
|
418
442
|
* Added FreeBSD support!
|
419
443
|
* Struct name changed to just "ProcTableStruct" to be compliant with future
|
420
444
|
versions of Ruby.
|
@@ -426,10 +450,10 @@
|
|
426
450
|
with access to a FreeBSD box, which is how I was able to provide FreeBSD
|
427
451
|
support. Thanks Sean!
|
428
452
|
|
429
|
-
|
453
|
+
## 0.2.0 - 19-Jul-2002
|
430
454
|
* Added the ability to search by process name.
|
431
455
|
* test.rb modified to be cross-platform.
|
432
456
|
* Solaris - fixed bug with fname (was accidentally called "name").
|
433
457
|
|
434
|
-
|
458
|
+
## 0.1.0 - 2-Jul-2002
|
435
459
|
- Initial release.
|
data/Gemfile
ADDED
@@ -8,6 +8,8 @@
|
|
8
8
|
* benchmarks/bench_ips_ps.rb
|
9
9
|
* example/example_ps.rb
|
10
10
|
* lib/sys-proctable.rb
|
11
|
+
* lib/sys-top.rb
|
12
|
+
* lib/sys/proctable.rb
|
11
13
|
* lib/sys/top.rb
|
12
14
|
* lib/sys/proctable/version.rb
|
13
15
|
* lib/aix/sys/proctable.rb
|
@@ -16,11 +18,12 @@
|
|
16
18
|
* lib/linux/sys/proctable.rb
|
17
19
|
* lib/sunos/sys/proctable.rb
|
18
20
|
* lib/windows/sys/proctable.rb
|
19
|
-
*
|
20
|
-
*
|
21
|
-
*
|
22
|
-
*
|
23
|
-
*
|
24
|
-
*
|
25
|
-
*
|
26
|
-
*
|
21
|
+
* spec/spec_helper.rb
|
22
|
+
* spec/sys_proctable_aix_spec.rb
|
23
|
+
* spec/sys_proctable_all_spec.rb
|
24
|
+
* spec/sys_proctable_darwin_spec.rb
|
25
|
+
* spec/sys_proctable_freebsd_spec.rb
|
26
|
+
* spec/sys_proctable_linux_spec.rb
|
27
|
+
* spec/sys_proctable_sunos_spec.rb
|
28
|
+
* spec/sys_proctable_windows_spec.rb
|
29
|
+
* spec/sys_top_spec.rb
|
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
[![Ruby](https://github.com/djberg96/sys-proctable/actions/workflows/ruby.yml/badge.svg)](https://github.com/djberg96/sys-proctable/actions/workflows/ruby.yml)
|
2
|
+
|
1
3
|
# sys-proctable
|
2
4
|
|
3
5
|
## Description
|
@@ -6,7 +8,10 @@
|
|
6
8
|
|
7
9
|
## Prerequisites
|
8
10
|
|
9
|
-
*
|
11
|
+
* ffi
|
12
|
+
* rspec (development only)
|
13
|
+
* rake (development only)
|
14
|
+
* rubocop (development only)
|
10
15
|
|
11
16
|
## Supported Platforms
|
12
17
|
|
@@ -146,11 +151,11 @@ including platform specific notes and issues.
|
|
146
151
|
|
147
152
|
## License
|
148
153
|
|
149
|
-
Apache
|
154
|
+
Apache-2.0
|
150
155
|
|
151
156
|
## Copyright
|
152
157
|
|
153
|
-
(C) 2003-
|
158
|
+
(C) 2003-2022 Daniel J. Berger
|
154
159
|
All Rights Reserved.
|
155
160
|
|
156
161
|
## Author
|
data/Rakefile
CHANGED
@@ -3,9 +3,12 @@ require 'rake/clean'
|
|
3
3
|
require 'rake/testtask'
|
4
4
|
require 'rbconfig'
|
5
5
|
require 'rspec/core/rake_task'
|
6
|
+
require 'rubocop/rake_task'
|
6
7
|
include RbConfig
|
7
8
|
|
8
|
-
CLEAN.include('**/*.gem', '**/*.rbc')
|
9
|
+
CLEAN.include('**/*.gem', '**/*.rbc', '**/*.lock')
|
10
|
+
|
11
|
+
RuboCop::RakeTask.new
|
9
12
|
|
10
13
|
desc 'Install the sys-proctable library'
|
11
14
|
task :install do
|
@@ -51,7 +54,7 @@ end
|
|
51
54
|
|
52
55
|
desc 'Run the test suite for the sys-proctable library'
|
53
56
|
RSpec::Core::RakeTask.new(:spec) do |t|
|
54
|
-
t.pattern = ['spec/
|
57
|
+
t.pattern = ['spec/sys_proctable_all_spec.rb', 'spec/sys_top_spec.rb']
|
55
58
|
|
56
59
|
case CONFIG['host_os']
|
57
60
|
when /aix/i
|
@@ -79,9 +82,9 @@ namespace :gem do
|
|
79
82
|
desc 'Create a gem for the specified OS, or your current OS by default'
|
80
83
|
task :create => [:clean] do
|
81
84
|
require 'rubygems/package'
|
82
|
-
spec =
|
85
|
+
spec = Gem::Specification.load('sys-proctable.gemspec')
|
83
86
|
spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
|
84
|
-
Gem::Package.build(spec
|
87
|
+
Gem::Package.build(spec)
|
85
88
|
end
|
86
89
|
|
87
90
|
desc 'Install the sys-proctable library as a gem'
|
@@ -0,0 +1,26 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIEcDCCAtigAwIBAgIBATANBgkqhkiG9w0BAQsFADA/MREwDwYDVQQDDAhkamJl
|
3
|
+
cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
4
|
+
MB4XDTE4MDMxODE1MjIwN1oXDTI4MDMxNTE1MjIwN1owPzERMA8GA1UEAwwIZGpi
|
5
|
+
ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
6
|
+
bTCCAaIwDQYJKoZIhvcNAQEBBQADggGPADCCAYoCggGBALgfaroVM6CI06cxr0/h
|
7
|
+
A+j+pc8fgpRgBVmHFaFunq28GPC3IvW7Nvc3Y8SnAW7pP1EQIbhlwRIaQzJ93/yj
|
8
|
+
u95KpkP7tA9erypnV7dpzBkzNlX14ACaFD/6pHoXoe2ltBxk3CCyyzx70mTqJpph
|
9
|
+
75IB03ni9a8yqn8pmse+s83bFJOAqddSj009sGPcQO+QOWiNxqYv1n5EHcvj2ebO
|
10
|
+
6hN7YTmhx7aSia4qL/quc4DlIaGMWoAhvML7u1fmo53CYxkKskfN8MOecq2vfEmL
|
11
|
+
iLu+SsVVEAufMDDFMXMJlvDsviolUSGMSNRTujkyCcJoXKYYxZSNtIiyd9etI0X3
|
12
|
+
ctu0uhrFyrMZXCedutvXNjUolD5r9KGBFSWH1R9u2I3n3SAyFF2yzv/7idQHLJJq
|
13
|
+
74BMnx0FIq6fCpu5slAipvxZ3ZkZpEXZFr3cIBtO1gFvQWW7E/Y3ijliWJS1GQFq
|
14
|
+
058qERadHGu1yu1dojmFRo6W2KZvY9al2yIlbkpDrD5MYQIDAQABo3cwdTAJBgNV
|
15
|
+
HRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUFZsMapgzJimzsbaBG2Tm8j5e
|
16
|
+
AzgwHQYDVR0RBBYwFIESZGpiZXJnOTZAZ21haWwuY29tMB0GA1UdEgQWMBSBEmRq
|
17
|
+
YmVyZzk2QGdtYWlsLmNvbTANBgkqhkiG9w0BAQsFAAOCAYEAW2tnYixXQtKxgGXq
|
18
|
+
/3iSWG2bLwvxS4go3srO+aRXZHrFUMlJ5W0mCxl03aazxxKTsVVpZD8QZxvK91OQ
|
19
|
+
h9zr9JBYqCLcCVbr8SkmYCi/laxIZxsNE5YI8cC8vvlLI7AMgSfPSnn/Epq1GjGY
|
20
|
+
6L1iRcEDtanGCIvjqlCXO9+BmsnCfEVehqZkQHeYczA03tpOWb6pon2wzvMKSsKH
|
21
|
+
ks0ApVdstSLz1kzzAqem/uHdG9FyXdbTAwH1G4ZPv69sQAFAOCgAqYmdnzedsQtE
|
22
|
+
1LQfaQrx0twO+CZJPcRLEESjq8ScQxWRRkfuh2VeR7cEU7L7KqT10mtUwrvw7APf
|
23
|
+
DYoeCY9KyjIBjQXfbj2ke5u1hZj94Fsq9FfbEQg8ygCgwThnmkTrrKEiMSs3alYR
|
24
|
+
ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
|
25
|
+
WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
|
26
|
+
-----END CERTIFICATE-----
|