sys-proctable 1.1.3-universal-freebsd → 1.1.4-universal-freebsd

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: d6cbe6eeaaa26bd60903bca1be992341a7233f9b
4
- data.tar.gz: 59b89b1095307bf5fe71e9806c2d355494f58705
3
+ metadata.gz: bea80b3ee95ec93339acb3690753384f043dc9a7
4
+ data.tar.gz: d5180e48f81934861d664766ab32308d5e647c32
5
5
  SHA512:
6
- metadata.gz: dad0e5a862293edeb0f16f9f635075e193ef6a5014277e75dd91e185c0c3c53419fcd57fa18b7f4f1d4f617bdb80f7349c7642f08601f66d14612dd74c44818d
7
- data.tar.gz: 04eec77fbca3828df51fd61a0c8829ea9ec8b07b863a7526d55e6f0cca0f8061313a7be431eecce56b147207c744a0b4c01c90315ec73b24bcd897c7d48819f4
6
+ metadata.gz: 73d98c4fdcc9efef8e6106f55daaf557ebd0eb9b284531b6a84595163c14c44adb9428e14242c7efed8b6e15c34d3555bbbb4fe3018fc3c6715d7fd6c957da7b
7
+ data.tar.gz: ad5b92246f1dc39c42dd83fbea6e6a1584af5d3ef258889e4eb541c92fb458e77fc97d2d0cbc1d55c75d03f8eaf76071698153aa53509e99a529176e9397795e
@@ -1,2 +1,3 @@
1
- �8G����RSwq��3�"�K=��#�����
2
- GZ`ƿ�_���K�̍�U��Pu��[��u���mq ����<Ⱥ�����0r\��%�bv���I�d�S�]4�!��AV9o�'�[q���ɍ��c�![��x3ה�y0�)�� 2�zsH!\�q��H/wP�Sᤳ ���� h�FU�� V�'���@���y�`��0X��Q������D:���
1
+ sH�����|��r��1p5�cʔ� 6!P]=0M� �k P���H7��҅�;0 �7 �"�I ��g,.�H�Wgv1��d�&�W�+�X��~b˝�=p��_�����;53F��v�c��Z�Ư�8M�uL,9�h/�ƔȆ�,�����)��
2
+ zT`�<'�_�=tα}
3
+ ����j���5���9�E�B���`i:j�8 ӄ�Vf�\E��X1�˞ J���d��_�
data.tar.gz.sig CHANGED
Binary file
data/CHANGES CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.1.4 - 30-Mar-2017
2
+ * Fixed a potential issue where OSX could return a struct with invalid data.
3
+ * Set the default field to :pid for OSX when using Sys::Top.
4
+ * Fixed a duplicate test warning for OSX.
5
+
1
6
  == 1.1.3 - 28-Sep-2016
2
7
  * Fixed an issue on OSX where the value returned for argc is invalid.
3
8
 
data/Rakefile CHANGED
@@ -207,8 +207,8 @@ namespace :gem do
207
207
 
208
208
  desc 'Push all gems for each supported OS'
209
209
  task :push_all do
210
- Dir["pkg/*"].each{ |dir|
211
- p dir
210
+ Dir["pkg/**/*.gem"].each{ |file|
211
+ sh "gem push #{file}"
212
212
  }
213
213
  end
214
214
 
@@ -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.3'.freeze
4
+ VERSION = '1.1.4'.freeze
5
5
  end
6
6
  end
@@ -7,21 +7,22 @@ module Sys
7
7
  class Top
8
8
 
9
9
  # The version of the sys-top library
10
- VERSION = '1.0.4'
10
+ VERSION = '1.0.5'.freeze
11
11
 
12
12
  # Returns an array of Struct::ProcTableStruct elements containing up
13
13
  # to +num+ elements, sorted by +field+. The default number of elements
14
14
  # is 10, while the default field is 'pctcpu'.
15
15
  #
16
- # Exception: the default sort field is 'pid' on AIX and Windows.
16
+ # Exception: the default sort field is 'pid' on AIX, Darwin and Windows.
17
17
  #
18
18
  def self.top(num=10, field='pctcpu')
19
19
  field = field.to_s if field.is_a?(Symbol)
20
20
 
21
21
  aix = RbConfig::CONFIG['host_os'] =~ /aix/i
22
+ darwin = RbConfig::CONFIG['host_os'] =~ /darwin/i
22
23
 
23
24
  # Sort by pid on Windows and AIX by default
24
- if (File::ALT_SEPARATOR || aix) && field == 'pctcpu'
25
+ if (File::ALT_SEPARATOR || aix || darwin) && field == 'pctcpu'
25
26
  field = 'pid'
26
27
  end
27
28
 
@@ -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.3'
5
+ spec.version = '1.1.4'
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.3', ProcTable::VERSION)
22
+ assert_equal('1.1.4', ProcTable::VERSION)
23
23
  end
24
24
 
25
25
  test "fields basic functionality" do
@@ -11,12 +11,8 @@ require 'sys/top'
11
11
  class TC_Top < Test::Unit::TestCase
12
12
  include Sys
13
13
 
14
- def setup
15
- @osx = RbConfig::CONFIG['host_os'] =~ /darwin/i
16
- end
17
-
18
14
  test "top version" do
19
- assert_equal('1.0.4', Top::VERSION)
15
+ assert_equal('1.0.5', Top::VERSION)
20
16
  end
21
17
 
22
18
  test "top basic functionality" do
@@ -24,42 +20,32 @@ class TC_Top < Test::Unit::TestCase
24
20
  end
25
21
 
26
22
  test "top works with no arguments" do
27
- omit_if(@osx)
28
23
  assert_nothing_raised{ Top.top }
29
24
  end
30
25
 
31
26
  test "top accepts optional arguments" do
32
- omit_if(@osx)
33
27
  assert_nothing_raised{ Top.top(5) }
34
28
  assert_nothing_raised{ Top.top(5, 'cmdline') }
35
29
  end
36
30
 
37
31
  test "top with no arguments returns expected results" do
38
- omit_if(@osx)
39
32
  assert_equal(10, Top.top.length)
40
33
  assert_kind_of(Struct::ProcTableStruct, Top.top.first)
41
34
  end
42
35
 
43
36
  test "top with size argument returns expected result" do
44
- omit_if(@osx)
45
37
  assert_equal(5, Top.top(5).length)
46
38
  end
47
39
 
48
40
  test "top with size and sort_by argument returns expected result" do
49
- omit_if(@osx)
50
41
  assert_equal(5, Top.top(5, :cmdline).length)
51
42
  end
52
43
 
53
44
  test "top returns an array" do
54
- omit_if(@osx)
55
45
  assert_kind_of(Array, Top.top)
56
46
  end
57
47
 
58
48
  test "top accepts a maximum of two arguments" do
59
49
  assert_raises(ArgumentError){ Top.top(1, 'foo', 2) }
60
50
  end
61
-
62
- def teardown
63
- @osx = nil
64
- end
65
51
  end
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.3
4
+ version: 1.1.4
5
5
  platform: universal-freebsd
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-28 00:00:00.000000000 Z
33
+ date: 2017-03-30 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.6
126
+ rubygems_version: 2.6.11
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