sys-proctable 0.9.6-universal-freebsd → 0.9.8-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: d024accfee56a4e24fc226a986eb918e81832627
4
- data.tar.gz: 65ca11146d9a71077841d984c0f5e4bb261337d7
3
+ metadata.gz: 21e3618add0a74c67e88fd13d41fbe56ed27cc22
4
+ data.tar.gz: 39b266cfd76a599751a4a7f850ba677cbabed564
5
5
  SHA512:
6
- metadata.gz: 03de73fbae877f06eb94b27bc83e753f39ef12fac2c9dc6d5ed519f6ecebd78f6cfbe7dacf659a12088d777111efdbd57a1e721325989c199511c822aa4885b4
7
- data.tar.gz: 2cecf7089e605418e09d8ebec0c6504f00ca143b5bb28a03ad5b829ddc5ce64c5f3ab192fbdc7f5c1dd8b90d27709c6d386a4003b7b4a7864465e845ef078d43
6
+ metadata.gz: 05c7579c0999870f7bc1dd31ddc2f887caefc04c4283663a3ceaf912588ab1f966c2d6297abd7ffe97279680c332d0534c6fd7282bc7de0171e0c99180464c7c
7
+ data.tar.gz: a2a8de13df821c129619f240c11f7a73939dc9367bd5bacc1892afba8509141fdc2fe3ae94b469e68b9233088c260c9084b3afd2beb607ee9dd2eae85b304888
data/CHANGES CHANGED
@@ -1,3 +1,15 @@
1
+ == 0.9.8 - 18-Apr-2015
2
+ * Fixed a bug in the gemspec. Last version got yanked.
3
+
4
+ == 0.9.7 - 18-Apr-2015
5
+ * Fixed a bug in the OSX code that could cause the ps method to fail. Thanks
6
+ go to Koshevoy Anton for the spot.
7
+ * Some internal refactoring of version handling. Now all platforms use a
8
+ single version file.
9
+ * Replaced vm_size_t and lwpid_t with universal data types on FreeBSD because
10
+ FFI on FreeBSD 10 no longer understands them. Thanks go to Mike Owens for
11
+ the spot.
12
+
1
13
  == 0.9.6 - 24-Feb-2015
2
14
  * Added NLWP field on Linux. Thanks go to Rich Chatterton for the patch.
3
15
 
data/MANIFEST CHANGED
@@ -16,6 +16,7 @@
16
16
  * ext/hpux/extconf.rb
17
17
  * ext/hpux/sys/proctable.c
18
18
  * lib/sys/top.rb
19
+ * lib/sys/proctable/version.rb
19
20
  * lib/aix/sys/proctable.rb
20
21
  * lib/freebsd/sys/proctable.rb
21
22
  * lib/linux/sys/proctable.rb
data/README CHANGED
@@ -43,7 +43,7 @@
43
43
  # Return the results as an array of ProcTableStructs
44
44
  a = ProcTable.ps
45
45
  a.each do |p|
46
- puts a.pid
46
+ puts p.pid
47
47
  # ...
48
48
  end
49
49
 
data/Rakefile CHANGED
@@ -191,7 +191,7 @@ namespace :gem do
191
191
  desc 'Install the sys-proctable library as a gem'
192
192
  task :install => [:create] do
193
193
  gem_name = Dir['*.gem'].first
194
- sh "gem install #{gem_name}"
194
+ sh "gem install -l #{gem_name}"
195
195
  end
196
196
  end
197
197
 
@@ -1,12 +1,10 @@
1
1
  require 'ffi'
2
+ require 'sys/proctable/version'
2
3
 
3
4
  module Sys
4
5
  class ProcTable
5
6
  extend FFI::Library
6
7
 
7
- # The version of the sys-proctable library.
8
- VERSION = '0.9.6'
9
-
10
8
  # Error typically raised if the ProcTable.ps method fails.
11
9
  class Error < StandardError; end
12
10
 
@@ -116,7 +114,7 @@ module Sys
116
114
  :ki_ngroups, :short,
117
115
  :ki_spare_short2, :short,
118
116
  :ki_groups, [:gid_t, KI_NGROUPS],
119
- :ki_size, :vm_size_t,
117
+ :ki_size, :uint32_t,
120
118
  :ki_rssize, :segsz_t,
121
119
  :ki_swrss, :segsz_t,
122
120
  :ki_tsize, :segsz_t,
@@ -152,7 +150,7 @@ module Sys
152
150
  :ki_cr_flags, :uint,
153
151
  :ki_jid, :int,
154
152
  :ki_numthreads, :int,
155
- :ki_tid, :lwpid_t,
153
+ :ki_tid, :pid_t,
156
154
  :ki_pri, Priority,
157
155
  :ki_rusage, Rusage,
158
156
  :ki_rusage_ch, Rusage,
@@ -0,0 +1,6 @@
1
+ module Sys
2
+ class ProcTable
3
+ # The version of the sys-proctable library
4
+ VERSION = '0.9.8'
5
+ end
6
+ end
@@ -2,11 +2,11 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'sys-proctable'
5
- spec.version = '0.9.6'
5
+ spec.version = '0.9.8'
6
6
  spec.author = 'Daniel J. Berger'
7
7
  spec.license = 'Artistic 2.0'
8
8
  spec.email = 'djberg96@gmail.com'
9
- spec.homepage = 'http://www.rubyforge.org/projects/sysutils'
9
+ spec.homepage = 'http://github.com/djberg96/sys-proctable'
10
10
  spec.platform = Gem::Platform::CURRENT # Probably altered by Rake task
11
11
  spec.summary = 'An interface for providing process table information'
12
12
  spec.test_files = ['test/test_sys_proctable_all.rb']
@@ -15,6 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.files = [
16
16
  'benchmarks/bench_ps.rb',
17
17
  'examples/example_ps.rb',
18
+ 'lib/sys/proctable/version.rb',
18
19
  'lib/sys/top.rb',
19
20
  'CHANGES',
20
21
  'MANIFEST',
@@ -23,7 +24,6 @@ Gem::Specification.new do |spec|
23
24
  'sys-proctable.gemspec'
24
25
  ]
25
26
 
26
- spec.rubyforge_project = 'sysutils'
27
27
  spec.extra_rdoc_files = ['CHANGES', 'README', 'MANIFEST', 'doc/top.txt']
28
28
 
29
29
  spec.add_development_dependency('test-unit')
@@ -19,7 +19,7 @@ class TC_ProcTable_All < Test::Unit::TestCase
19
19
  end
20
20
 
21
21
  def test_version
22
- assert_equal('0.9.6', ProcTable::VERSION)
22
+ assert_equal('0.9.8', ProcTable::VERSION)
23
23
  end
24
24
 
25
25
  def test_fields
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sys-proctable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.8
5
5
  platform: universal-freebsd
6
6
  authors:
7
7
  - Daniel J. Berger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-24 00:00:00.000000000 Z
11
+ date: 2015-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit
@@ -75,12 +75,13 @@ files:
75
75
  - doc/top.txt
76
76
  - examples/example_ps.rb
77
77
  - lib/freebsd/sys/proctable.rb
78
+ - lib/sys/proctable/version.rb
78
79
  - lib/sys/top.rb
79
80
  - sys-proctable.gemspec
80
81
  - test/test_sys_proctable_all.rb
81
82
  - test/test_sys_proctable_freebsd.rb
82
83
  - test/test_sys_top.rb
83
- homepage: http://www.rubyforge.org/projects/sysutils
84
+ homepage: http://github.com/djberg96/sys-proctable
84
85
  licenses:
85
86
  - Artistic 2.0
86
87
  metadata: {}
@@ -100,8 +101,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
101
  - !ruby/object:Gem::Version
101
102
  version: '0'
102
103
  requirements: []
103
- rubyforge_project: sysutils
104
- rubygems_version: 2.4.5
104
+ rubyforge_project:
105
+ rubygems_version: 2.4.6
105
106
  signing_key:
106
107
  specification_version: 4
107
108
  summary: An interface for providing process table information