sys-proctable 1.1.4-universal-darwin → 1.1.5-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: ab19802eaa8c764de655146264c9d60804c993ab
4
- data.tar.gz: 1acdf47db24542fe7be5da187462563d9fac9da5
3
+ metadata.gz: 0022c7f1e80ad30649705b9f481d63431f8857f5
4
+ data.tar.gz: b45d6f5f9c8d228ddc4fe5872778a924204293d8
5
5
  SHA512:
6
- metadata.gz: a9b7db449e6936a73125a72d7cf530c2047abe4d4b1d7aec4853f343afd70ef06b05bb354278a9c8b0ac1808c2b5bc35825ca495a79a95ca26bc78e909900693
7
- data.tar.gz: 9be1631fe872ebc1d918f8e2fce9028fd246f6cd9d446b5fcec3c6cae0ed250b3c5a60aa5ecd9aff923c12b5a8f3f9913670d1a748a88d6ea2d1b37da48045f5
6
+ metadata.gz: 975cc157340cd4a40a6658ba34665601b536860da03426132823f78489c386cebc3ed661605240f273b1443d135ad3164af650c778b855d4210268aac4f8ad4a
7
+ data.tar.gz: dc8b8db6e17167e3e2df500753b6ec2eaafa6aba28f899e16fdb56be5fa57d5fd8d006771a9ac37d75116236ec3590fdbe26941bcf8e43f94b47cb648299b9d4
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.1.5 - 10-Aug-2017
2
+ * Fixed a warning that cropped up in Ruby 2.4.x because I was type checking
3
+ against Fixnum. Those have been replaced with Numeric.
4
+
1
5
  == 1.1.4 - 30-Mar-2017
2
6
  * Fixed a potential issue where OSX could return a struct with invalid data.
3
7
  * Set the default field to :pid for OSX when using Sys::Top.
data/README CHANGED
@@ -57,6 +57,16 @@
57
57
  A kvm interface is used. That means the owner of the process using the
58
58
  sys-proctable library needs to be a member of the kvm group (or root).
59
59
 
60
+ === Bundler
61
+ Bundler seems to have trouble installing the proper gem because of the
62
+ platform specific gem names. To deal with that, run this command first:
63
+
64
+ bundle config specific_platform true
65
+
66
+ You can follow the issue at:
67
+
68
+ https://github.com/bundler/bundler/issues/5536
69
+
60
70
  === Solaris
61
71
  The cmdline member on Solaris is limited to 80 characters unless you (or
62
72
  your program) own the process. This is a Solaris design flaw/feature.
@@ -160,7 +160,7 @@ module Sys
160
160
  # p ProcTable.ps(1001)
161
161
  #
162
162
  def self.ps(pid = nil)
163
- raise TypeError unless pid.is_a?(Fixnum) if pid
163
+ raise TypeError unless pid.is_a?(Numeric) if pid
164
164
 
165
165
  num = proc_listallpids(nil, 0)
166
166
  ptr = FFI::MemoryPointer.new(:pid_t, num)
@@ -328,7 +328,7 @@ module Sys
328
328
 
329
329
  cmdline = ''
330
330
 
331
- # Extract the full command line and it's arguments from the array
331
+ # Extract the full command line and its arguments from the array
332
332
  argc.times do
333
333
  cmdline << ' ' + array.shift
334
334
  end
@@ -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.4'.freeze
4
+ VERSION = '1.1.5'.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.4'
5
+ spec.version = '1.1.5'
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.4', ProcTable::VERSION)
22
+ assert_equal('1.1.5', ProcTable::VERSION)
23
23
  end
24
24
 
25
25
  test "fields basic functionality" do
@@ -43,43 +43,43 @@ class TC_ProcTable_Darwin < Test::Unit::TestCase
43
43
 
44
44
  test "pid struct member is defined and returns expected value" do
45
45
  assert_respond_to(@ptable, :pid)
46
- assert_kind_of(Fixnum, @ptable.pid)
46
+ assert_kind_of(Numeric, @ptable.pid)
47
47
  assert_equal(@ptable.pid, @@pid)
48
48
  end
49
49
 
50
50
  test "ppid struct member is defined and returns expected value" do
51
51
  assert_respond_to(@ptable, :ppid)
52
- assert_kind_of(Fixnum, @ptable.ppid)
52
+ assert_kind_of(Numeric, @ptable.ppid)
53
53
  assert_equal(Process.pid, @ptable.ppid)
54
54
  end
55
55
 
56
56
  test "pgid struct member is defined and returns expected value" do
57
57
  assert_respond_to(@ptable, :pgid)
58
- assert_kind_of(Fixnum, @ptable.pgid)
58
+ assert_kind_of(Numeric, @ptable.pgid)
59
59
  assert_equal(Process.getpgrp, @ptable.pgid)
60
60
  end
61
61
 
62
62
  test "ruid struct member is defined and returns expected value" do
63
63
  assert_respond_to(@ptable, :ruid)
64
- assert_kind_of(Fixnum, @ptable.ruid)
64
+ assert_kind_of(Numeric, @ptable.ruid)
65
65
  assert_equal(Process.uid, @ptable.ruid)
66
66
  end
67
67
 
68
68
  test "rgid struct member is defined and returns expected value" do
69
69
  assert_respond_to(@ptable, :rgid)
70
- assert_kind_of(Fixnum, @ptable.rgid)
70
+ assert_kind_of(Numeric, @ptable.rgid)
71
71
  assert_equal(Process.gid, @ptable.rgid)
72
72
  end
73
73
 
74
74
  test "svuid struct member is defined and returns expected value" do
75
75
  assert_respond_to(@ptable, :svuid)
76
- assert_kind_of(Fixnum, @ptable.svuid)
76
+ assert_kind_of(Numeric, @ptable.svuid)
77
77
  assert_equal(Process.uid, @ptable.svuid) # not valid for all processes
78
78
  end
79
79
 
80
80
  test "svgid struct member is defined and returns expected value" do
81
81
  assert_respond_to(@ptable, :svgid)
82
- assert_kind_of(Fixnum, @ptable.svgid)
82
+ assert_kind_of(Numeric, @ptable.svgid)
83
83
  assert_equal(Process.gid, @ptable.svgid) # not valid for all processes
84
84
  end
85
85
 
@@ -110,7 +110,8 @@ class TC_ProcTable_Darwin < Test::Unit::TestCase
110
110
  test "environ struct member is defined and returns expected value" do
111
111
  assert_respond_to(@ptable, :environ)
112
112
  assert_kind_of(Hash, @ptable.environ)
113
- assert_equal({'A' => 'B', 'Z' => nil}, @ptable.environ)
113
+ assert_equal(@ptable.environ['A'], 'B')
114
+ assert_nil(@ptable.environ['Z'])
114
115
  end
115
116
 
116
117
  def teardown
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
4
+ version: 1.1.5
5
5
  platform: universal-darwin
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -12,25 +12,25 @@ cert_chain:
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
14
14
  cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
15
- MB4XDTE2MDkxOTAzNDY0NVoXDTE3MDkxOTAzNDY0NVowPzERMA8GA1UEAwwIZGpi
15
+ MB4XDTE2MTAzMTE4NTcyNVoXDTE3MTAzMTE4NTcyNVowPzERMA8GA1UEAwwIZGpi
16
16
  ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
17
- bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM0eOHOQRpLOeqkyeK7O
18
- DGHYLkO0Wq7gStVVVyHXahgyCopLN6JVBwGy5aCpKFcy5sFz2DdnISj+hQ7FctDa
19
- yz6Lq9TvAF8Jkis8dDFLQKeHilB/AM4ssQAsGQyoQnoE4v5tCOSW4e3YHFDp/dMZ
20
- s7Hkoim6PeEdkh4hB5LCa90OrHSPe8nlMFsVhRIGj86xNTRazEiWPZCOKmN9rZgW
21
- ziheP/6hC2c7vNRevv5iE/K+NqaL/WOdMquOSZoF2mdBcoMIPDDBNzh/oHinPQ3N
22
- 1oOvoET0+Tj+O5tXX/L1TAsUrwZX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sDp
30
- A943I/wqE6xbYQpHxkndWo5uLDUbZh+XxG+fhZKpeqLIqHaFuU6wdO5odt32kB/B
31
- nCjVswaVYlu1U2iLPCqE+MrjmTA=
26
+ ggEBAEYzyGzoleAO3i6mOBi/Px1yWdVuU4ejvxrj8axHRK+wHQ+bYvx9eEosuRHB
27
+ mXjRvpN9UnOiY7wYbK36MpAALBq3swpcBpYXyfBOdv0JQvjMEGmKqXJS7AbNHNPc
28
+ ZbpPrVSdJJ+aTWEDvybl693eEUvEuiSkVIz8w4yNcJP1zOBRBKxG2viJdMKz5Ho7
29
+ 2M9INmGCv3GCv4bljYlIIg4YYAyOaBbSQeAb2/F5XAlOR2oEB8ipB+RKGZXR8rq5
30
+ EkhPwYAx+jZ4KyPve9JKm34Du9veVFEzq3aW+opaveK167NEorK7xLpmdEcdo9bR
31
+ 9CkYV0lClarK7w1ykAePuEeXD7k=
32
32
  -----END CERTIFICATE-----
33
- date: 2017-03-30 00:00:00.000000000 Z
33
+ date: 2017-08-10 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: test-unit
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.6.11
126
+ rubygems_version: 2.6.12
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: An interface for providing process table information
metadata.gz.sig CHANGED
Binary file