sys-cpu 0.8.2 → 1.0.2

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
  SHA256:
3
- metadata.gz: 204a857e1da67ff544e124e88c0e94d45381f1e83bc2f2ead79d87f337e7286c
4
- data.tar.gz: d39b0686af6c00617a39bd1591e3157f229a846981ce7d972ac38e30f605c756
3
+ metadata.gz: c9b8cf15d0019738569df3847184952320df08960cc039e52ed819ae7a649d3f
4
+ data.tar.gz: b38dc203121fa564f8c6d156e99821eb33ea1b7db7070e261262458531b7393a
5
5
  SHA512:
6
- metadata.gz: 5b1fe1e9231fd1357d18412b6cdf203160db830d01c3c2bf3ff11b1ee321967fb6b8c7ece8744b5cde5433a035bda4ab808d90abc6b9d6f8a47f50c692987ac2
7
- data.tar.gz: 911e6984160e4303ffe6da647970da124e58c1745424a61c6944c98d90bd8588a48ac53eec1006b06db646f56fd34e497017a179a8ef3e1f374b2aeb71e77bd0
6
+ metadata.gz: 7bbce2f399977b559cbbd799b0b2fb9c5343627e316d8d8c1a58fd61878452491ffd3bf4dc18851c1a8c76d383b7b9aea2e9f7b8bae03e465fd94cd602f1e802
7
+ data.tar.gz: 1ac9b193bf154c24b884ac0638a6bc2ff7ee959adaf0dac0d05eb8e47a4f4eadbc5e0f019cd50100cc5e30c0ac02ec8db6f10c89b1acf3404f30f64ea5341818
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,31 +1,53 @@
1
- == 0.8.2 - 14-Jan-2020
1
+ ## 1.0.2 - 25-Jan-2021
2
+ * Fixed issues where things that were meant to be private weren't actually private.
3
+
4
+ ## 1.0.1 - 20-Dec-2020
5
+ * Switched from rdoc to markdown.
6
+
7
+ ## 1.0.0 - 23-Oct-2020
8
+ * Fixed a bug in the Windows version where the attempt to convert the ConfigManagerErrorCode
9
+ to a string was busted. Coincidentally, this also exposed a core bug in JRuby (see PR #6443).
10
+ Thanks go to G. Gibson for reporting the issue.
11
+ * Switched the tests from test-unit to rspec.
12
+
13
+ ## 0.9.0 - 12-May-2020
14
+ * Added explicit freq, architecture, num_cpu and model methods to the Linux
15
+ version in an effort to create a common interface across platforms.
16
+ * Modified the Linux version so that method_missing will raise a NoMethodError
17
+ if you try to call access an attribute that doesn't exist.
18
+ * Some updates to the Linux tests.
19
+
20
+ ## 0.8.3 - 18-Mar-2020
21
+ * Properly include a LICENSE file as per the Apache-2.0 license.
22
+
23
+ ## 0.8.2 - 14-Jan-2020
2
24
  * Added explicit .rdoc extension to README, CHANGES and MANIFEST files.
3
25
  * Fixed license name in README.
4
26
 
5
- == 0.8.1 - 4-Nov-2018
27
+ ## 0.8.1 - 4-Nov-2018
6
28
  * Added metadata to the gemspec.
7
29
  * Fixed missing hyphen in license name.
8
30
 
9
- == 0.8.0 - 17-Oct-2018
31
+ ## 0.8.0 - 17-Oct-2018
10
32
  * Switched license to Apache 2.0.
11
33
  * Updated documentation for the cpu_stats method on Linux.
12
34
  * The VERSION constant is now frozen.
13
35
  * Now uses require_relative internally where needed.
14
36
 
15
- == 0.7.2 - 5-Sep-2015
37
+ ## 0.7.2 - 5-Sep-2015
16
38
  * Replaced a global array with a constant in the Linux version. Thanks go
17
39
  to Yorick Peterse for the patch.
18
40
  * Added method comments back to the Unix version.
19
41
  * Added a sys-cpu.rb stub file for your convenience.
20
42
  * This gem is now signed.
21
43
 
22
- == 0.7.1 - 2-May-2013
44
+ ## 0.7.1 - 2-May-2013
23
45
  * Added a workaround for a win32ole bug in the Windows version.
24
46
  * Reorganized code so that there is now a single gem rather than three
25
47
  separate platform gems.
26
48
  * Updated test-unit dependency which let me simplify the test files a bit.
27
49
 
28
- == 0.7.0 - 14-Dec-2011
50
+ ## 0.7.0 - 14-Dec-2011
29
51
  * Code base now uses FFI. However, HP-UX is not currently supported.
30
52
  HP-UX users should continue to use the 0.6.x version. Note that
31
53
  the code base remains unchanged on Linux and Windows.
@@ -34,7 +56,7 @@
34
56
  * The type method has been changed to cpu_type on Windows.
35
57
  * Some Rakefile and test suite updates.
36
58
 
37
- == 0.6.4 - 27-Sep-2011
59
+ ## 0.6.4 - 27-Sep-2011
38
60
  * The CPU.freq method now works on OSX.
39
61
  * The CPU.model method on OSX has been altered. Previously it
40
62
  returned the machine model. However, the information is limited.
@@ -42,7 +64,7 @@
42
64
  * The Linux and Windows gems now have a 'universal' architecture.
43
65
  * Refactored the clean task in the Rakefile.
44
66
 
45
- == 0.6.3 - 9-Oct-2010
67
+ ## 0.6.3 - 9-Oct-2010
46
68
  * Fixed a bug in the install.rb file and refactored it a bit. Thanks go
47
69
  to Di-an Jan for the spot. Note, however, that this file will eventually
48
70
  be removed and/or integrated into the Linux source file.
@@ -50,7 +72,7 @@
50
72
  * Fixed and updated the CPU.architecture method on MS Windows to handle IA64
51
73
  and x64 architectures.
52
74
 
53
- == 0.6.2 - 1-Jan-2010
75
+ ## 0.6.2 - 1-Jan-2010
54
76
  * Fixed a bug in the cpu_freq function (which would only be noticed on
55
77
  certain platforms in cases where the CPU.freq method failed). Thanks
56
78
  go to Edho P Arief for the spot.
@@ -63,13 +85,13 @@
63
85
  * Test files renamed.
64
86
  * Added test-unit 2.x as a development dependency.
65
87
 
66
- == 0.6.1 - 4-Jan-2009
88
+ ## 0.6.1 - 4-Jan-2009
67
89
  * Fix for OS X 10.5.x. Thanks go to Victor Costan for the spot and the patch.
68
90
  * Updated the gemspec and some other minor changes.
69
91
  * On MS Windows the impersonation level is now explicitly set to 'impersonate'
70
92
  to avoid issues where systems might be using an older version of WMI.
71
93
 
72
- == 0.6.0 - 26-Apr-2007
94
+ ## 0.6.0 - 26-Apr-2007
73
95
  * Added support for most BSD flavors, including OS X. The freebsd.c file is
74
96
  now just bsd.c.
75
97
  * The CPU.type method for Solaris has been changed to CPU.cpu_type to avoid
@@ -81,7 +103,7 @@
81
103
  * Improved RDoc comments in the C source files.
82
104
  * Changed CPUError to CPU::Error.
83
105
 
84
- == 0.5.5 - 17-Nov-2006
106
+ ## 0.5.5 - 17-Nov-2006
85
107
  * Fixed a bug in the Linux version where there could be a key but no
86
108
  associated value, causing a String#strip! call to fail. Now the value is
87
109
  simply left at nil.
@@ -91,14 +113,14 @@
91
113
  * Modified the gemspec so that it sets the platform properly for Linux
92
114
  and Windows.
93
115
 
94
- == 0.5.4 - 12-Jul-2006
116
+ ## 0.5.4 - 12-Jul-2006
95
117
  * Added a gemspec (and a gem on RubyForge).
96
118
  * The CPU.architecture method on HP-UX now returns nil if it cannot be
97
119
  determined instead of "Unknown" for consistency with the other
98
120
  platforms.
99
121
  * Inlined the RDoc and made some minor cosmetic source code changes.
100
122
 
101
- == 0.5.3 - 4-May-2006
123
+ ## 0.5.3 - 4-May-2006
102
124
  * Fixed in a bug in the Solaris version where CPU.load_avg returned bad values
103
125
  when compiled in 64 bit mode. Thanks go to James Hranicky for the spot and
104
126
  both James Hranicky and Peter Tribble (via comp.unix.solaris) for patches.
@@ -106,7 +128,7 @@
106
128
  which test suite to run. All platforms now use 'ts_all.rb', which will run
107
129
  the appropriate test case behind the scenes.
108
130
 
109
- == 0.5.2 - 24-Jun-2005
131
+ ## 0.5.2 - 24-Jun-2005
110
132
  * Bug fixed on Linux where empty lines could cause problems. This affected
111
133
  both the install.rb and linux.rb files, though it only seems to have been
112
134
  an issue on the 2.6+ kernel.
@@ -115,7 +137,7 @@
115
137
  is the only entry.
116
138
  * Added a sample program for Linux under the 'examples' directory.
117
139
 
118
- == 0.5.1 - 5-May-2005
140
+ ## 0.5.1 - 5-May-2005
119
141
  * Fixed a potential bug in the FreeBSD version of CPU.model.
120
142
  * Eliminated some warnings in the FreeBSD version.
121
143
  * Moved examples directory to the toplevel package directory.
@@ -128,7 +150,7 @@
128
150
  doc/linux.txt.
129
151
  * Some $LOAD_PATH setup changes in the unit tests.
130
152
 
131
- == 0.5.0 - 26-Jun-2004
153
+ ## 0.5.0 - 26-Jun-2004
132
154
  * Now requires Ruby 1.8.0 or later.
133
155
  * FreeBSD support added.
134
156
  * Replaced 'CPUException' with 'CPUError'
@@ -142,7 +164,7 @@
142
164
  * The .html files have been removed. You can generate the html on your own
143
165
  if you like.
144
166
 
145
- == 0.4.0 - 18-Sep-2003
167
+ ## 0.4.0 - 18-Sep-2003
146
168
  * Added MS Windows support
147
169
  * Changed some method names. The "cpu" has been dropped from most method
148
170
  names. See documentation for details.
@@ -154,14 +176,14 @@
154
176
  * Minor API change for the load_avg() method on HP-UX. It now accepts a
155
177
  CPU number as an argument.
156
178
 
157
- == 0.3.1 - 16-Jul-2003
179
+ ## 0.3.1 - 16-Jul-2003
158
180
  * Fixed a bug in the Solaris version that was using up and not
159
181
  freeing file descriptors.
160
182
  * Added html doc for Solaris under doc directory.
161
183
  * Minor changes to test_hpux.rb and test_sunos.rb
162
184
  * Minor README changes.
163
185
 
164
- == 0.3.0 - 30-Jun-2003
186
+ ## 0.3.0 - 30-Jun-2003
165
187
  * Added HP-UX support
166
188
  * Removed the VERSION class method. Use the constant instead
167
189
  * Changed license to "Artistic"
@@ -170,7 +192,7 @@
170
192
  * Modified extconf.rb, moving some of the dynamic test generation
171
193
  into separate files
172
194
 
173
- == 0.2.2 - 25-Mar-2003
195
+ ## 0.2.2 - 25-Mar-2003
174
196
  * fpu_type and cpu_type now return nil if not found (Solaris)
175
197
  * CPUException is now a direct subclass of StandardError
176
198
  * Modified extconf.rb script
@@ -178,19 +200,19 @@
178
200
  * Added another test to the solaris test suite
179
201
  * Important note added to INSTALL file
180
202
 
181
- == 0.2.1 - 12-Mar-2003
203
+ ## 0.2.1 - 12-Mar-2003
182
204
  * Added the cpu_stats() class method for Linux, which contains the
183
205
  data from the 'cpu' lines of /proc/stat
184
206
  * Minor fix for extconf.rb (thanks Michael Granger)
185
207
  * Some tests added to Linux test suite
186
208
  * MANIFEST correction
187
209
 
188
- == 0.2.0 - 13-Feb-2003
210
+ ## 0.2.0 - 13-Feb-2003
189
211
  * Linux support added (pure Ruby only)
190
212
  * Many changes to extconf.rb to support Linux version
191
213
  * sys-uname prerequisite dropped
192
214
  * rd2 documentation now kept separate from source
193
215
 
194
- == 0.1.0 - 3-Feb-2003
216
+ ## 0.1.0 - 3-Feb-2003
195
217
  * Initial release
196
218
  * Currently supports Solaris (only)
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org' do
2
+ gem 'ffi', '~> 1.1'
3
+ group 'test' do
4
+ gem 'rake'
5
+ gem 'rspec', '~> 3.9'
6
+ end
7
+ end
data/LICENSE ADDED
@@ -0,0 +1,177 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
@@ -1,8 +1,9 @@
1
1
  * install.rb
2
- * MANIFEST.rdoc
3
- * CHANGES.rdoc
2
+ * LICENSE
3
+ * MANIFEST.md
4
+ * CHANGES.md
4
5
  * Rakefile
5
- * README.rdoc
6
+ * README.md
6
7
  * sys-cpu.gemspec
7
8
  * certs/djberg96_pub.pem
8
9
  * doc/bsd.txt
@@ -19,9 +20,10 @@
19
20
  * lib/sys/linux/sys/cpu.rb
20
21
  * lib/sys/unix/sys/cpu.rb
21
22
  * lib/sys/windows/sys/cpu.rb
22
- * test/test_sys_cpu.rb
23
- * test/test_sys_cpu_bsd.rb
24
- * test/test_sys_cpu_hpux.rb
25
- * test/test_sys_cpu_sunos.rb
26
- * test/test_sys_cpu_linux.rb
27
- * test/test_sys_cpu_windows.rb
23
+ * spec/spec_helper.rb
24
+ * spec/sys_cpu_spec.rb
25
+ * spec/sys_cpu_bsd_spec.rb
26
+ * spec/sys_cpu_hpux_spec.rb
27
+ * spec/sys_cpu_linux_spec.rb
28
+ * spec/sys_cpu_sunos_spec.rb
29
+ * spec/sys_cpu_windows_spec.rb
@@ -1,22 +1,22 @@
1
- = Description
1
+ ## Description
2
2
  A Ruby interface for getting cpu information.
3
3
 
4
- = Installation
5
- gem install sys-cpu
4
+ ## Installation
5
+ `gem install sys-cpu`
6
6
 
7
- = Adding the trusted cert
8
- gem cert --add <(curl -Ls https://raw.githubusercontent.com/djberg96/sys-cpu/ffi/certs/djberg96_pub.pem)
7
+ ## Adding the trusted cert
8
+ `gem cert --add <(curl -Ls https://raw.githubusercontent.com/djberg96/sys-cpu/ffi/certs/djberg96_pub.pem)`
9
9
 
10
- = Notes
11
- == Solaris
10
+ ## Notes
11
+ ### Solaris
12
12
  Currently there is no +processors+ iterative method for multi-cpu systems.
13
13
  I plan to add it this in a future release.
14
14
 
15
- == OS X
15
+ ### OS X
16
16
  The CPU.model method returns very limited information. I do not yet know
17
17
  how to get more detailed information.
18
18
 
19
- == Linux
19
+ ### Linux
20
20
  This is pure Ruby. This version reads information out of /proc/cpuinfo and
21
21
  /proc/loadavg, so if /proc isn't mounted it won't work.
22
22
 
@@ -30,7 +30,7 @@ build process because the fields vary depending on your setup. So, don't
30
30
  look at it until *after* you've installed it. You will see a doc/linux.txt
31
31
  file after you run +rake install+ (via install.rb).
32
32
 
33
- == HP-UX
33
+ ### HP-UX
34
34
  Unlike other platforms, you can get load averages for an individual cpu in
35
35
  multi-cpu systems. See documentation for more details.
36
36
 
@@ -38,38 +38,38 @@ Note that version 0.7.x and later will not work on HP-UX because of the
38
38
  switch to FFI and the lack of a testing platform. However, version 0.6.x
39
39
  will work just fine.
40
40
 
41
- == MS Windows
41
+ ### MS Windows
42
42
  This is a pure Ruby implementation using the win32ole package + WMI. The C
43
43
  version has been scrapped.
44
44
 
45
45
  As of version 0.5.0, the CPU.usage method has been removed in favor of the
46
46
  CPU.load_avg method. This does not (currently) use a perf counter, so there
47
- is no longer any delay. Also, the +processors+ method has been added and the
48
- +supported+ method has been dropped. See the documentation for other changes.
47
+ is no longer any delay. Also, the +processors+ method has been added and the
48
+ +supported+ method has been dropped. See the documentation for other changes.
49
49
 
50
- = Acknowledgements
50
+ ## Acknowledgements
51
51
  Thanks go to the MPlayer team for some source code that helped me on
52
52
  certain versions of FreeBSD in the original C version.
53
53
 
54
- = Known Bugs
54
+ ## Known Bugs
55
55
  None that I'm aware of. Please report bugs on the project page at:
56
56
 
57
57
  https://github.com/djberg96/sys-cpu
58
58
 
59
- = Future Plans
59
+ ## Future Plans
60
60
  * Add iterative CPU.processors method.
61
61
  * Add more information in general, such as what +prtdiag+ shows.
62
62
 
63
- = License
63
+ ## License
64
64
  Apache-2.0
65
65
 
66
- = Copyright
67
- (C) 2003-2020 Daniel J. Berger, All Rights Reserved
66
+ ## Copyright
67
+ (C) 2003-2021 Daniel J. Berger, All Rights Reserved
68
68
 
69
- = Warranty
69
+ ## Warranty
70
70
  This package is provided "as is" and without any express or
71
71
  implied warranties, including, without limitation, the implied
72
72
  warranties of merchantability and fitness for a particular purpose.
73
73
 
74
- = Author
74
+ ## Author
75
75
  Daniel J. Berger