mool 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -7
  2. data/lib/mool/cpu.rb +2 -0
  3. data/lib/mool/version.rb +1 -1
  4. metadata +54 -60
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA1:
3
- metadata.gz: f8477ba46078b98c0d9f884f5cacc89808fff854
4
- data.tar.gz: '0839c25dbe6c556890fe346672fce5a5dd14c538'
5
- SHA512:
6
- metadata.gz: 6591a0c654a4fa054a1d291cd7120216015589c63996ae4948d2f211be9707ff00579ef99cc109a91721cc42b0b322edc65067435b9ea0a60c00f9147ce3b842
7
- data.tar.gz: 856d6dae91e23b6d0b00fcb4191f79be0fe166f90057f6dcbd7a30a87dd1430cccac70f69cb105e8fc84a8ac3638fc6d51aa3549376a14a90ff19c37bef05605
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
@@ -1,3 +1,3 @@
1
1
  module Mool
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.1"
3
3
  end
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.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
- date: 2018-03-23 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.16'
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
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '10.0'
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
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '5.0'
55
- description: 'Get operative system information: Disk, Memory, Cpu, Load-average, Processes.'
56
- email:
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
- files:
62
- - ".gitignore"
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
- require_paths:
79
+
80
+ require_paths:
88
81
  - lib
89
- required_ruby_version: !ruby/object:Gem::Requirement
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
- required_rubygems_version: !ruby/object:Gem::Requirement
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
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.11
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
+