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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 652e5437c3bb1f7b387ddb2eddd4395a82826f97
4
- data.tar.gz: 0b464c401191ad8cd20e2a04d6367fe0efa2130d
3
+ metadata.gz: 2dd8e82720ca56a50796eb33752337040883362b
4
+ data.tar.gz: 69fc3907db8e483c51966d8ce05673f32977efb5
5
5
  SHA512:
6
- metadata.gz: 1c7eb21e84df140ee2ee80a2004c5bfb474f046cfb578f266142e23ea0efb47afb17ec0e0faaf6795ca67b6b1bc4371f0fa8ed5e6f17feef50e32c53d6e4d57c
7
- data.tar.gz: 8698da48d99fb21fe9d74ce3c1b083a83ac9b33419843a9b4513fa02503ffdb0d5f87bee9a9d946fc85694b2d67d63a6c1a8a4ad1aba5b441f4ce1d6307b6574
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
@@ -1,3 +1,6 @@
1
+ == 1.1.3 - 28-Sep-2016
2
+ * Fixed an issue on OSX where the value returned for argc is invalid.
3
+
1
4
  == 1.1.2 - 18-Sep-2016
2
5
  * Fixed cmdline parsing and handling for OSX. Thanks go to Ben Mathwig for
3
6
  the spot and the patch.
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
@@ -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
@@ -1,6 +1,6 @@
1
1
  module Sys
2
2
  class ProcTable
3
3
  # The version of the sys-proctable library
4
- VERSION = '1.1.2'.freeze
4
+ VERSION = '1.1.3'.freeze
5
5
  end
6
6
  end
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'sys-proctable'
5
- spec.version = '1.1.2'
5
+ spec.version = '1.1.3'
6
6
  spec.author = 'Daniel J. Berger'
7
7
  spec.license = 'Apache 2.0'
8
8
  spec.email = 'djberg96@gmail.com'
@@ -19,7 +19,7 @@ class TC_ProcTable_All < Test::Unit::TestCase
19
19
  end
20
20
 
21
21
  test "version is set to expected value" do
22
- assert_equal('1.1.2', ProcTable::VERSION)
22
+ assert_equal('1.1.3', ProcTable::VERSION)
23
23
  end
24
24
 
25
25
  test "fields basic functionality" do
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.2
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-19 00:00:00.000000000 Z
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