linux-kstat 0.2.4-universal-linux → 0.2.5-universal-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/{CHANGES.rdoc → CHANGES.md} +16 -13
- data/{MANIFEST.rdoc → MANIFEST.md} +3 -4
- data/{README.rdoc → README.md} +24 -23
- data/lib/linux/kstat.rb +1 -1
- data/linux-kstat.gemspec +2 -4
- data/spec/linux_kstat_spec.rb +2 -2
- metadata +17 -19
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80a62500cfed50f3ac32adae6d9f5a01ab616b67cb618ce988a49888a83e1344
|
4
|
+
data.tar.gz: 9a630c362757e0a56b67e8b75175655fdb690dea782258aaa1c5dd8a187d5bc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 997617497fc955a5ee149d9b3a9941b04645461ecd6e79f91cc296d05a9f92c228d627db037564837a13e19fe54d725bb1db99b59cadd2918b5a76e5e89955cd
|
7
|
+
data.tar.gz: 93e6c6a3185e9c0b899c97a12641c76e60aabe7c087c27e47f4631804ec17463a236998e21947a6f2a39a5761491a92fd13307b933549d38597022d7874516e1
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/{CHANGES.rdoc → CHANGES.md}
RENAMED
@@ -1,19 +1,22 @@
|
|
1
|
-
|
2
|
-
*
|
1
|
+
## 0.2.5 - 31-Oct-2020
|
2
|
+
* Switched from rdoc to markdown since github wasn't rendering rdoc properly.
|
3
|
+
* Minor gemspec updates.
|
3
4
|
|
4
|
-
|
5
|
-
*
|
6
|
-
displays them nicely.
|
5
|
+
## 0.2.4 - 3-Apr-2020
|
6
|
+
* Added a LICENSE file as per the Apache license requirements.
|
7
7
|
|
8
|
-
|
9
|
-
* Added the
|
8
|
+
## 0.2.3 - 8-Dec-2019
|
9
|
+
* Added .rdoc extension to the README, CHANGES and MANIFEST files.
|
10
10
|
|
11
|
-
|
11
|
+
## 0.2.2 - 5-Mar-2019
|
12
|
+
* Added the `steal`, `guest` and `guest_nice` attributes for cpu stats.
|
13
|
+
|
14
|
+
## 0.2.1 - 25-Jan-2019
|
12
15
|
* Fixed license name (missing hyphen).
|
13
16
|
* Added metadata to the gemspec.
|
14
17
|
* Updated cert, should be good for about 10 years.
|
15
18
|
|
16
|
-
|
19
|
+
## 0.2.0 - 19-Feb-2018
|
17
20
|
* Switched license to Apache 2.0.
|
18
21
|
* Added a linux-kstat.rb file for convenience.
|
19
22
|
* Rakefile now assumes rubygems 2.x.
|
@@ -22,14 +25,14 @@
|
|
22
25
|
* Some doc updates in the README for bundler.
|
23
26
|
* This gem is now signed.
|
24
27
|
|
25
|
-
|
28
|
+
## 0.1.3 - 18-Dec-2014
|
26
29
|
* Now properly ignores blank lines. Thanks go to "onlinehead" for the patch.
|
27
30
|
|
28
|
-
|
31
|
+
## 0.1.2 - 2-Nov-2014
|
29
32
|
* Updates to the gemspec and Rakefile.
|
30
33
|
|
31
|
-
|
34
|
+
## 0.1.1 - 20-May-2011
|
32
35
|
* Set the spec platform to 'universal-linux'.
|
33
36
|
|
34
|
-
|
37
|
+
## 0.1.0 - 10-Feb-2011
|
35
38
|
* Initial release.
|
data/{README.rdoc → README.md}
RENAMED
@@ -1,62 +1,63 @@
|
|
1
|
-
|
1
|
+
## Description
|
2
2
|
|
3
|
-
A Ruby library for gathering Linux kernel statistics out of
|
3
|
+
A Ruby library for gathering Linux kernel statistics out of `/proc/stat`.
|
4
4
|
|
5
|
-
|
5
|
+
## Installation
|
6
6
|
|
7
|
-
|
7
|
+
`gem install linux-kstat`
|
8
8
|
|
9
|
-
|
9
|
+
### Bundler
|
10
10
|
|
11
11
|
If you have trouble install this gem via bundler, please try this:
|
12
12
|
|
13
|
-
bundle config specific_platform true
|
13
|
+
`bundle config specific_platform true`
|
14
14
|
|
15
15
|
Then attempt to install again.
|
16
16
|
|
17
|
-
|
17
|
+
## Synopsis
|
18
|
+
```
|
19
|
+
# require 'linux-kstat' will also work
|
20
|
+
require 'linux/kstat'
|
18
21
|
|
19
|
-
|
20
|
-
require 'linux/kstat'
|
22
|
+
kstat = Linux::Kstat.new
|
21
23
|
|
22
|
-
|
24
|
+
p kstat[:cpu]
|
25
|
+
p kstat[:procs_running]
|
26
|
+
```
|
23
27
|
|
24
|
-
|
25
|
-
p kstat[:procs_running]
|
26
|
-
|
27
|
-
== Details
|
28
|
+
## Details
|
28
29
|
|
29
30
|
The values for most of the keys are a single numeric value. However, in the
|
30
31
|
case of "cpu" keys, the result is a 7 element hash of numeric values. In
|
31
32
|
the case of the "intr" key, the value is an array containing the list of
|
32
33
|
interrupts.
|
33
34
|
|
34
|
-
|
35
|
+
## Information about /proc/stat
|
35
36
|
|
36
37
|
See http://www.linuxhowtos.org/System/procstat.htm for more information
|
37
38
|
about the meaning of each of the fields.
|
38
39
|
|
39
|
-
|
40
|
+
## Known Bugs
|
40
41
|
|
41
|
-
None known. Please report any bugs on the github project page
|
42
|
+
None known. Please report any bugs on the github project page.
|
42
43
|
|
43
|
-
|
44
|
+
http://www.github.com/djberg96/linux-kstat
|
44
45
|
|
45
|
-
|
46
|
+
## License
|
46
47
|
|
47
48
|
Apache-2.0
|
48
49
|
|
49
|
-
|
50
|
+
## Copyright
|
50
51
|
|
51
|
-
(C) 2003-
|
52
|
+
(C) 2003-2020 Daniel J. Berger
|
52
53
|
All Rights Reserved.`
|
53
54
|
|
54
|
-
|
55
|
+
## Warranty
|
55
56
|
|
56
57
|
This package is provided "as is" and without any express or
|
57
58
|
implied warranties, including, without limitation, the implied
|
58
59
|
warranties of merchantability and fitness for a particular purpose.
|
59
60
|
|
60
|
-
|
61
|
+
## Author
|
61
62
|
|
62
63
|
Daniel J. Berger
|
data/lib/linux/kstat.rb
CHANGED
data/linux-kstat.gemspec
CHANGED
@@ -3,19 +3,17 @@ 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.5'
|
7
7
|
gem.license = 'Apache-2.0'
|
8
8
|
gem.author = 'Daniel J. Berger'
|
9
9
|
gem.email = 'djberg96@gmail.com'
|
10
10
|
gem.platform = Gem::Platform.new('universal-linux')
|
11
11
|
gem.homepage = 'https://github.com/djberg96/linux-kstat'
|
12
12
|
gem.summary = 'Ruby interface for Linux kernel stats in /proc/stat'
|
13
|
-
gem.test_files = Dir['
|
13
|
+
gem.test_files = Dir['spec/*_spec.rb']
|
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 = Dir['*.rdoc']
|
18
|
-
|
19
17
|
gem.add_development_dependency('rspec')
|
20
18
|
|
21
19
|
gem.metadata = {
|
data/spec/linux_kstat_spec.rb
CHANGED
@@ -11,8 +11,8 @@ 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.
|
15
|
-
expect(Linux::Kstat::VERSION
|
14
|
+
expect(Linux::Kstat::VERSION).to eql('0.2.5')
|
15
|
+
expect(Linux::Kstat::VERSION).to be_frozen
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
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.5
|
5
5
|
platform: universal-linux
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
11
|
- |
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
|
36
36
|
WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date:
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rspec
|
@@ -57,25 +57,22 @@ description: |2
|
|
57
57
|
email: djberg96@gmail.com
|
58
58
|
executables: []
|
59
59
|
extensions: []
|
60
|
-
extra_rdoc_files:
|
61
|
-
- README.rdoc
|
62
|
-
- MANIFEST.rdoc
|
63
|
-
- CHANGES.rdoc
|
60
|
+
extra_rdoc_files: []
|
64
61
|
files:
|
65
|
-
-
|
66
|
-
- MANIFEST.rdoc
|
67
|
-
- certs
|
68
|
-
- certs/djberg96_pub.pem
|
62
|
+
- Rakefile
|
69
63
|
- spec
|
70
64
|
- spec/linux_kstat_spec.rb
|
71
|
-
- linux-kstat.gemspec
|
72
|
-
- LICENSE
|
73
65
|
- lib
|
74
66
|
- lib/linux-kstat.rb
|
75
67
|
- lib/linux
|
76
68
|
- lib/linux/kstat.rb
|
77
|
-
-
|
78
|
-
-
|
69
|
+
- certs
|
70
|
+
- certs/djberg96_pub.pem
|
71
|
+
- LICENSE
|
72
|
+
- MANIFEST.md
|
73
|
+
- README.md
|
74
|
+
- CHANGES.md
|
75
|
+
- linux-kstat.gemspec
|
79
76
|
homepage: https://github.com/djberg96/linux-kstat
|
80
77
|
licenses:
|
81
78
|
- Apache-2.0
|
@@ -86,7 +83,7 @@ metadata:
|
|
86
83
|
documentation_uri: https://github.com/djberg96/linux-kstat/wiki
|
87
84
|
source_code_uri: https://github.com/djberg96/linux-kstat
|
88
85
|
wiki_uri: https://github.com/djberg96/linux-kstat/wiki
|
89
|
-
post_install_message:
|
86
|
+
post_install_message:
|
90
87
|
rdoc_options: []
|
91
88
|
require_paths:
|
92
89
|
- lib
|
@@ -101,8 +98,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
98
|
- !ruby/object:Gem::Version
|
102
99
|
version: '0'
|
103
100
|
requirements: []
|
104
|
-
rubygems_version: 3.0.
|
105
|
-
signing_key:
|
101
|
+
rubygems_version: 3.0.3
|
102
|
+
signing_key:
|
106
103
|
specification_version: 4
|
107
104
|
summary: Ruby interface for Linux kernel stats in /proc/stat
|
108
|
-
test_files:
|
105
|
+
test_files:
|
106
|
+
- spec/linux_kstat_spec.rb
|
metadata.gz.sig
CHANGED
Binary file
|