sys-proctable 1.1.2-universal-darwin → 1.1.3-universal-darwin
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.tar.gz.sig +0 -0
- data/CHANGES +3 -0
- data/Rakefile +7 -0
- data/lib/darwin/sys/proctable.rb +12 -4
- data/lib/sys/proctable/version.rb +1 -1
- data/sys-proctable.gemspec +1 -1
- data/test/test_sys_proctable_all.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dd8e82720ca56a50796eb33752337040883362b
|
4
|
+
data.tar.gz: 69fc3907db8e483c51966d8ce05673f32977efb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2788c6041c9e827c964e60bca3b430e5aa2bdc9c9e1818afeaf432ef2fd1b56cc4ec983d53b2785ff1f0127ba1d4c20132333227dfe371385706dee3059074aa
|
7
|
+
data.tar.gz: e54b332bac07cefd020b6a6434124158b19686d3d47ab8f3b0be305e266db4c8dabe5d0ca28015af6fff7b0e76b9ab084a4eb3233b823d6bab05ce7b19cf7d8a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGES
CHANGED
data/Rakefile
CHANGED
@@ -205,6 +205,13 @@ namespace :gem do
|
|
205
205
|
}
|
206
206
|
end
|
207
207
|
|
208
|
+
desc 'Push all gems for each supported OS'
|
209
|
+
task :push_all do
|
210
|
+
Dir["pkg/*"].each{ |dir|
|
211
|
+
p dir
|
212
|
+
}
|
213
|
+
end
|
214
|
+
|
208
215
|
desc 'Install the sys-proctable library as a gem'
|
209
216
|
task :install => [:create] do
|
210
217
|
gem_name = Dir['*.gem'].first
|
data/lib/darwin/sys/proctable.rb
CHANGED
@@ -251,9 +251,9 @@ module Sys
|
|
251
251
|
tinfo[:pth_system_time],
|
252
252
|
tinfo[:pth_cpu_usage],
|
253
253
|
tinfo[:pth_policy],
|
254
|
-
tinfo[:pth_run_state],
|
255
|
-
tinfo[:pth_flags],
|
256
|
-
tinfo[:pth_sleep_time],
|
254
|
+
tinfo[:pth_run_state],
|
255
|
+
tinfo[:pth_flags],
|
256
|
+
tinfo[:pth_sleep_time],
|
257
257
|
tinfo[:pth_curpri],
|
258
258
|
tinfo[:pth_priority],
|
259
259
|
tinfo[:pth_maxpriority],
|
@@ -298,7 +298,7 @@ module Sys
|
|
298
298
|
# Parse the rest of the information out of a big, ugly string
|
299
299
|
array = buf.read_bytes(len.read_ulong).split(0.chr)
|
300
300
|
array.delete('') # Delete empty strings
|
301
|
-
|
301
|
+
|
302
302
|
# The format that sysctl outputs is as follows:
|
303
303
|
#
|
304
304
|
# [full executable path]
|
@@ -313,6 +313,14 @@ module Sys
|
|
313
313
|
# What is left is the name, arguments, and environment variables
|
314
314
|
array = array[1..-3]
|
315
315
|
|
316
|
+
# It seems that argc sometimes returns a bogus value. In that case, delete
|
317
|
+
# any environment variable strings, and reset the argc value.
|
318
|
+
#
|
319
|
+
if argc > array.size
|
320
|
+
array.delete_if{ |e| e.include?('=') }
|
321
|
+
argc = array.size
|
322
|
+
end
|
323
|
+
|
316
324
|
cmdline = ''
|
317
325
|
|
318
326
|
# Extract the full command line and it's arguments from the array
|
data/sys-proctable.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sys-proctable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: universal-darwin
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
A943I/wqE6xbYQpHxkndWo5uLDUbZh+XxG+fhZKpeqLIqHaFuU6wdO5odt32kB/B
|
31
31
|
nCjVswaVYlu1U2iLPCqE+MrjmTA=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2016-09-
|
33
|
+
date: 2016-09-28 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: test-unit
|
metadata.gz.sig
CHANGED
Binary file
|