linux-kstat 0.2.2-universal-linux → 0.2.3-universal-linux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -2
- data/{CHANGES → CHANGES.rdoc} +11 -7
- data/{MANIFEST → MANIFEST.rdoc} +3 -3
- data/README.rdoc +62 -0
- data/lib/linux/kstat.rb +1 -1
- data/linux-kstat.gemspec +2 -2
- data/spec/linux_kstat_spec.rb +1 -1
- metadata +9 -9
- metadata.gz.sig +0 -0
- data/README +0 -52
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3230217f0f42ce7f2f83b3674fc7a4bc01f3cad4971bd46c1a26ac1b5c5a589f
|
4
|
+
data.tar.gz: 3be5e39409e647972d0b5541aa74fe9e6a22cf8b59ac3e9d03b7ebf360b8a7d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f062bc2c5a6e685c5c53dce7dc781776c6364ecbd8575f2209aea6e9364ad9caac0ebb0d1852605763a9cb37b0f0c60cfc23929cfff5229c7e2e5378ae10fbd
|
7
|
+
data.tar.gz: cf6add3974b257637de7fc82c2615b68659f731d9a193ef2c564864bf83c7416c333606ba30bbd0bb8ab64b320e24b9f39517997b88fb90299985eeede6ae7ff
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
��d��ǹ��d��?��D�`y����dآBNh8%E!;��n������5dH*t�Q���i��LR�ބ�zx��&�,`�Q�;ï�{�:W�\Xo˻�4�\$�
|
1
|
+
$���s`a,f6��V��)�+���_�i^РY>����fCa}v�4���*��1w>��:&ps��#���mPY���n�U�Q�)|�xVq���g�(�Ä�?��]������t�3x�}�`y�*S��魊.�㕨[�B�����=�E�9)�-�7�3���f`Tӂ"�g����`.�Z�8H�a���Ԅ��58�d��;���gt�kxI֮�Wn.`mZ��F�4+�~��<� "�8'�u$@O������%��܋s�L.�7���B���BF G`h�8~���A�I��d���{uؿग़���J�@�xB�Ѥ��xWZ����&p��v)YFx8���M�l��٧�X.%�cǝ3��.S0� z���h�4
|
data/{CHANGES → CHANGES.rdoc}
RENAMED
@@ -1,12 +1,16 @@
|
|
1
|
-
|
1
|
+
== 0.2.3 - 8-Dec-2019
|
2
|
+
* Renamed various text files to include .rdoc extension so that github
|
3
|
+
displays them nicely.
|
4
|
+
|
5
|
+
== 0.2.2 - 5-Mar-2019
|
2
6
|
* Added the steal, guest and guest_nice attributes for cpu stats.
|
3
7
|
|
4
|
-
|
8
|
+
== 0.2.1 - 25-Jan-2019
|
5
9
|
* Fixed license name (missing hyphen).
|
6
10
|
* Added metadata to the gemspec.
|
7
11
|
* Updated cert, should be good for about 10 years.
|
8
12
|
|
9
|
-
|
13
|
+
== 0.2.0 - 19-Feb-2018
|
10
14
|
* Switched license to Apache 2.0.
|
11
15
|
* Added a linux-kstat.rb file for convenience.
|
12
16
|
* Rakefile now assumes rubygems 2.x.
|
@@ -15,14 +19,14 @@
|
|
15
19
|
* Some doc updates in the README for bundler.
|
16
20
|
* This gem is now signed.
|
17
21
|
|
18
|
-
|
22
|
+
== 0.1.3 - 18-Dec-2014
|
19
23
|
* Now properly ignores blank lines. Thanks go to "onlinehead" for the patch.
|
20
24
|
|
21
|
-
|
25
|
+
== 0.1.2 - 2-Nov-2014
|
22
26
|
* Updates to the gemspec and Rakefile.
|
23
27
|
|
24
|
-
|
28
|
+
== 0.1.1 - 20-May-2011
|
25
29
|
* Set the spec platform to 'universal-linux'.
|
26
30
|
|
27
|
-
|
31
|
+
== 0.1.0 - 10-Feb-2011
|
28
32
|
* Initial release.
|
data/{MANIFEST → MANIFEST.rdoc}
RENAMED
data/README.rdoc
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
== Description
|
2
|
+
|
3
|
+
A Ruby library for gathering Linux kernel statistics out of /proc/stat.
|
4
|
+
|
5
|
+
== Installation
|
6
|
+
|
7
|
+
gem install linux-kstat
|
8
|
+
|
9
|
+
== Bundler
|
10
|
+
|
11
|
+
If you have trouble install this gem via bundler, please try this:
|
12
|
+
|
13
|
+
bundle config specific_platform true
|
14
|
+
|
15
|
+
Then attempt to install again.
|
16
|
+
|
17
|
+
== Synopsis
|
18
|
+
|
19
|
+
# require 'linux-kstat' will also work
|
20
|
+
require 'linux/kstat'
|
21
|
+
|
22
|
+
kstat = Linux::Kstat.new
|
23
|
+
|
24
|
+
p kstat[:cpu]
|
25
|
+
p kstat[:procs_running]
|
26
|
+
|
27
|
+
== Details
|
28
|
+
|
29
|
+
The values for most of the keys are a single numeric value. However, in the
|
30
|
+
case of "cpu" keys, the result is a 7 element hash of numeric values. In
|
31
|
+
the case of the "intr" key, the value is an array containing the list of
|
32
|
+
interrupts.
|
33
|
+
|
34
|
+
== Information about /proc/stat
|
35
|
+
|
36
|
+
See http://www.linuxhowtos.org/System/procstat.htm for more information
|
37
|
+
about the meaning of each of the fields.
|
38
|
+
|
39
|
+
== Known Bugs
|
40
|
+
|
41
|
+
None known. Please report any bugs on the github project page:
|
42
|
+
|
43
|
+
http://www.github.com/djberg96/linux-kstat
|
44
|
+
|
45
|
+
== License
|
46
|
+
|
47
|
+
Apache-2.0
|
48
|
+
|
49
|
+
== Copyright
|
50
|
+
|
51
|
+
(C) 2003-2019 Daniel J. Berger
|
52
|
+
All Rights Reserved.`
|
53
|
+
|
54
|
+
== Warranty
|
55
|
+
|
56
|
+
This package is provided "as is" and without any express or
|
57
|
+
implied warranties, including, without limitation, the implied
|
58
|
+
warranties of merchantability and fitness for a particular purpose.
|
59
|
+
|
60
|
+
== Author
|
61
|
+
|
62
|
+
Daniel J. Berger
|
data/lib/linux/kstat.rb
CHANGED
data/linux-kstat.gemspec
CHANGED
@@ -3,7 +3,7 @@ require 'rbconfig'
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = 'linux-kstat'
|
6
|
-
gem.version = '0.2.
|
6
|
+
gem.version = '0.2.3'
|
7
7
|
gem.license = 'Apache-2.0'
|
8
8
|
gem.author = 'Daniel J. Berger'
|
9
9
|
gem.email = 'djberg96@gmail.com'
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.files = Dir['**/*'].reject{ |f| f.include?('git') }
|
15
15
|
gem.cert_chain = ['certs/djberg96_pub.pem']
|
16
16
|
|
17
|
-
gem.extra_rdoc_files
|
17
|
+
gem.extra_rdoc_files = Dir['*.rdoc']
|
18
18
|
|
19
19
|
gem.add_development_dependency('rspec')
|
20
20
|
|
data/spec/linux_kstat_spec.rb
CHANGED
@@ -11,7 +11,7 @@ describe Linux::Kstat do
|
|
11
11
|
|
12
12
|
context "constants" do
|
13
13
|
it "defines a version constant that is set to the expected value" do
|
14
|
-
expect(Linux::Kstat::VERSION).to eql('0.2.
|
14
|
+
expect(Linux::Kstat::VERSION).to eql('0.2.3')
|
15
15
|
expect(Linux::Kstat::VERSION.frozen?).to be(true)
|
16
16
|
end
|
17
17
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linux-kstat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: universal-linux
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
@@ -58,15 +58,11 @@ email: djberg96@gmail.com
|
|
58
58
|
executables: []
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files:
|
61
|
-
-
|
62
|
-
-
|
63
|
-
-
|
61
|
+
- MANIFEST.rdoc
|
62
|
+
- README.rdoc
|
63
|
+
- CHANGES.rdoc
|
64
64
|
files:
|
65
|
-
- CHANGES
|
66
|
-
- README
|
67
65
|
- Rakefile
|
68
|
-
- linux-kstat.gemspec
|
69
|
-
- MANIFEST
|
70
66
|
- spec
|
71
67
|
- spec/linux_kstat_spec.rb
|
72
68
|
- lib
|
@@ -75,6 +71,10 @@ files:
|
|
75
71
|
- lib/linux/kstat.rb
|
76
72
|
- certs
|
77
73
|
- certs/djberg96_pub.pem
|
74
|
+
- MANIFEST.rdoc
|
75
|
+
- README.rdoc
|
76
|
+
- CHANGES.rdoc
|
77
|
+
- linux-kstat.gemspec
|
78
78
|
homepage: https://github.com/djberg96/linux-kstat
|
79
79
|
licenses:
|
80
80
|
- Apache-2.0
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
- !ruby/object:Gem::Version
|
101
101
|
version: '0'
|
102
102
|
requirements: []
|
103
|
-
rubygems_version: 3.0.
|
103
|
+
rubygems_version: 3.0.6
|
104
104
|
signing_key:
|
105
105
|
specification_version: 4
|
106
106
|
summary: Ruby interface for Linux kernel stats in /proc/stat
|
metadata.gz.sig
CHANGED
Binary file
|
data/README
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
= Description
|
2
|
-
A Ruby library for gathering Linux kernel statistics out of /proc/stat.
|
3
|
-
|
4
|
-
= Installation
|
5
|
-
gem install linux-kstat
|
6
|
-
|
7
|
-
= Bundler
|
8
|
-
|
9
|
-
If you have trouble install this gem via bundler, please try this:
|
10
|
-
|
11
|
-
bundle config specific_platform true
|
12
|
-
|
13
|
-
Then attempt to install again.
|
14
|
-
|
15
|
-
= Synopsis
|
16
|
-
# require 'linux-kstat' will also work
|
17
|
-
require 'linux/kstat'
|
18
|
-
|
19
|
-
kstat = Linux::Kstat.new
|
20
|
-
|
21
|
-
p kstat[:cpu]
|
22
|
-
p kstat[:procs_running]
|
23
|
-
|
24
|
-
= Details
|
25
|
-
The values for most of the keys are a single numeric value. However, in the
|
26
|
-
case of "cpu" keys, the result is a 7 element hash of numeric values. In
|
27
|
-
the case of the "intr" key, the value is an array containing the list of
|
28
|
-
interrupts.
|
29
|
-
|
30
|
-
= Information about /proc/stat
|
31
|
-
See http://www.linuxhowtos.org/System/procstat.htm for more information
|
32
|
-
about the meaning of each of the fields.
|
33
|
-
|
34
|
-
= Known Bugs
|
35
|
-
None known. Please report any bugs on the github project page.
|
36
|
-
|
37
|
-
http://www.github.com/djberg96/linux-kstat
|
38
|
-
|
39
|
-
= License
|
40
|
-
Apache-2.0
|
41
|
-
|
42
|
-
= Copyright
|
43
|
-
(C) 2003-2019 Daniel J. Berger
|
44
|
-
All Rights Reserved.`
|
45
|
-
|
46
|
-
= Warranty
|
47
|
-
This package is provided "as is" and without any express or
|
48
|
-
implied warranties, including, without limitation, the implied
|
49
|
-
warranties of merchantability and fitness for a particular purpose.
|
50
|
-
|
51
|
-
= Author
|
52
|
-
Daniel J. Berger
|