mool 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/lib/mool/cpu.rb +2 -0
- data/lib/mool/version.rb +1 -1
- metadata +54 -60
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
---
|
2
|
+
SHA512:
|
3
|
+
data.tar.gz: 83945122ab24e7570389494da0c0bb08edc9b539491abceb5e323d4bcdbe3778ed906e36386057cb8d5ef67ef59d60ad350df9003347049157dfea14e41dd146
|
4
|
+
metadata.gz: 82afc99c49a49973608bb159f3ca1a18f1b413508bec179865b25bce6ccb3401b85fb13ec52160c43cb8550bb4de4480bceadfb62d28d7d1329a63e2b3fa3be9
|
5
|
+
SHA1:
|
6
|
+
data.tar.gz: ac1de01482a2aee4316ab061c0a7f34c8647d5ad
|
7
|
+
metadata.gz: 1d753d3999e131e0c44b335b618fc6f7d81d431c
|
data/lib/mool/cpu.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
module Mool
|
2
2
|
class Cpu
|
3
3
|
attr_reader :cpu_name,
|
4
|
+
:id,
|
4
5
|
:model_name,
|
5
6
|
:cores,
|
6
7
|
:usr,
|
@@ -24,6 +25,7 @@ module Mool
|
|
24
25
|
end
|
25
26
|
result = opt.empty? ? Mool::Command.cpuinfo[process_number.to_s] : opt
|
26
27
|
@cpu_name = "cpu_#{process_number}"
|
28
|
+
@id = process_number
|
27
29
|
@model_name = result['model_name']
|
28
30
|
@cores = result['cpu_cores'].to_i
|
29
31
|
@usr = result['%usr'].to_f
|
data/lib/mool/version.rb
CHANGED
metadata
CHANGED
@@ -1,65 +1,57 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mool
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- g.edera
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
|
12
|
+
date: 2018-03-26 00:00:00 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.16'
|
20
|
-
type: :development
|
21
16
|
prerelease: false
|
22
|
-
|
23
|
-
requirements:
|
24
|
-
- -
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version:
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '10.0'
|
17
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: "1.16"
|
34
22
|
type: :development
|
23
|
+
version_requirements: *id001
|
24
|
+
- !ruby/object:Gem::Dependency
|
25
|
+
name: rake
|
35
26
|
prerelease: false
|
36
|
-
|
37
|
-
requirements:
|
38
|
-
- -
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version:
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: minitest
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '5.0'
|
27
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ~>
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: "10.0"
|
48
32
|
type: :development
|
33
|
+
version_requirements: *id002
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: minitest
|
49
36
|
prerelease: false
|
50
|
-
|
51
|
-
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version:
|
55
|
-
|
56
|
-
|
37
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ~>
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: "5.0"
|
42
|
+
type: :development
|
43
|
+
version_requirements: *id003
|
44
|
+
description: "Get operative system information: Disk, Memory, Cpu, Load-average, Processes."
|
45
|
+
email:
|
57
46
|
- gab.edera@gmail.com
|
58
47
|
executables: []
|
48
|
+
|
59
49
|
extensions: []
|
50
|
+
|
60
51
|
extra_rdoc_files: []
|
61
|
-
|
62
|
-
|
52
|
+
|
53
|
+
files:
|
54
|
+
- .gitignore
|
63
55
|
- Gemfile
|
64
56
|
- LICENSE.txt
|
65
57
|
- README.md
|
@@ -78,28 +70,30 @@ files:
|
|
78
70
|
- lib/mool/version.rb
|
79
71
|
- mool.gemspec
|
80
72
|
homepage: https://github.com/gedera/mool
|
81
|
-
licenses:
|
73
|
+
licenses:
|
82
74
|
- MIT
|
83
|
-
metadata:
|
75
|
+
metadata:
|
84
76
|
allowed_push_host: https://rubygems.org
|
85
77
|
post_install_message:
|
86
78
|
rdoc_options: []
|
87
|
-
|
79
|
+
|
80
|
+
require_paths:
|
88
81
|
- lib
|
89
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
90
|
-
requirements:
|
91
|
-
-
|
92
|
-
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
version: '0'
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- &id004
|
85
|
+
- ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: "0"
|
88
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- *id004
|
99
91
|
requirements: []
|
92
|
+
|
100
93
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.6.
|
94
|
+
rubygems_version: 2.6.12
|
102
95
|
signing_key:
|
103
96
|
specification_version: 4
|
104
97
|
summary: Get operative system information (Linux).
|
105
98
|
test_files: []
|
99
|
+
|