sys-cpu 0.8.1 → 1.0.1

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: 4cb6cd9291a34891912b829319c1bfe83076fab74de62c4ed66f0282ac1e511c
4
- data.tar.gz: 070bfb80aa72fa8d18733d986d2695bb89f82c91d1f1c65bce6dc20a23997039
3
+ metadata.gz: 3d1988f097f8efd9447e33fd135d373fccc9cbfa699a2c67257361e50367a661
4
+ data.tar.gz: e2abfb34d4afe062b47cac1bc1a73fb79a609dc55c5070d03bee09f7c841f9d9
5
5
  SHA512:
6
- metadata.gz: '0095267433095258cc36bc7eef165589c7d8022c24687c926b16f0a8f8a50ff1ad8a4f40ad99ab248b3c9829e16dadb5d9c55675d7b936f108ce42dd34f3f352'
7
- data.tar.gz: db3d73bf53eb38c1dba4f24b60b3bc3643d1f0e1bc2ca5d53bff5a70126ac955db0b9298d921871203795fc6c41ec1261e8fd48510235bd7b70101899eeb0b9a
6
+ metadata.gz: 9fd5d3cabaf78df0ea92dae46081325dcd9569cfd10af7c071cf2532d87b09ec191d15377fe1ce5aa2acf34db49d09ccfee0c6c4bdb7dec914ba4be61e57565d
7
+ data.tar.gz: c11064f1318983072179f78c2fb3b2eb4ac23b8bbe0b266c0e0ba7174e3f77b4b9ccb27184b4ffdb70c07bcef771ec36ee55b8cb3a8c0a85c2c2ee3374dfd97f
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,27 +1,50 @@
1
- == 0.8.1 - 4-Nov-2018
1
+ ## 1.0.1 - 20-Dec-2020
2
+ * Switched from rdoc to markdown.
3
+
4
+ ## 1.0.0 - 23-Oct-2020
5
+ * Fixed a bug in the Windows version where the attempt to convert the ConfigManagerErrorCode
6
+ to a string was busted. Coincidentally, this also exposed a core bug in JRuby (see PR #6443).
7
+ Thanks go to G. Gibson for reporting the issue.
8
+ * Switched the tests from test-unit to rspec.
9
+
10
+ ## 0.9.0 - 12-May-2020
11
+ * Added explicit freq, architecture, num_cpu and model methods to the Linux
12
+ version in an effort to create a common interface across platforms.
13
+ * Modified the Linux version so that method_missing will raise a NoMethodError
14
+ if you try to call access an attribute that doesn't exist.
15
+ * Some updates to the Linux tests.
16
+
17
+ ## 0.8.3 - 18-Mar-2020
18
+ * Properly include a LICENSE file as per the Apache-2.0 license.
19
+
20
+ ## 0.8.2 - 14-Jan-2020
21
+ * Added explicit .rdoc extension to README, CHANGES and MANIFEST files.
22
+ * Fixed license name in README.
23
+
24
+ ## 0.8.1 - 4-Nov-2018
2
25
  * Added metadata to the gemspec.
3
26
  * Fixed missing hyphen in license name.
4
27
 
5
- == 0.8.0 - 17-Oct-2018
28
+ ## 0.8.0 - 17-Oct-2018
6
29
  * Switched license to Apache 2.0.
7
30
  * Updated documentation for the cpu_stats method on Linux.
8
31
  * The VERSION constant is now frozen.
9
32
  * Now uses require_relative internally where needed.
10
33
 
11
- == 0.7.2 - 5-Sep-2015
34
+ ## 0.7.2 - 5-Sep-2015
12
35
  * Replaced a global array with a constant in the Linux version. Thanks go
13
36
  to Yorick Peterse for the patch.
14
37
  * Added method comments back to the Unix version.
15
38
  * Added a sys-cpu.rb stub file for your convenience.
16
39
  * This gem is now signed.
17
40
 
18
- == 0.7.1 - 2-May-2013
41
+ ## 0.7.1 - 2-May-2013
19
42
  * Added a workaround for a win32ole bug in the Windows version.
20
43
  * Reorganized code so that there is now a single gem rather than three
21
44
  separate platform gems.
22
45
  * Updated test-unit dependency which let me simplify the test files a bit.
23
46
 
24
- == 0.7.0 - 14-Dec-2011
47
+ ## 0.7.0 - 14-Dec-2011
25
48
  * Code base now uses FFI. However, HP-UX is not currently supported.
26
49
  HP-UX users should continue to use the 0.6.x version. Note that
27
50
  the code base remains unchanged on Linux and Windows.
@@ -30,7 +53,7 @@
30
53
  * The type method has been changed to cpu_type on Windows.
31
54
  * Some Rakefile and test suite updates.
32
55
 
33
- == 0.6.4 - 27-Sep-2011
56
+ ## 0.6.4 - 27-Sep-2011
34
57
  * The CPU.freq method now works on OSX.
35
58
  * The CPU.model method on OSX has been altered. Previously it
36
59
  returned the machine model. However, the information is limited.
@@ -38,7 +61,7 @@
38
61
  * The Linux and Windows gems now have a 'universal' architecture.
39
62
  * Refactored the clean task in the Rakefile.
40
63
 
41
- == 0.6.3 - 9-Oct-2010
64
+ ## 0.6.3 - 9-Oct-2010
42
65
  * Fixed a bug in the install.rb file and refactored it a bit. Thanks go
43
66
  to Di-an Jan for the spot. Note, however, that this file will eventually
44
67
  be removed and/or integrated into the Linux source file.
@@ -46,7 +69,7 @@
46
69
  * Fixed and updated the CPU.architecture method on MS Windows to handle IA64
47
70
  and x64 architectures.
48
71
 
49
- == 0.6.2 - 1-Jan-2010
72
+ ## 0.6.2 - 1-Jan-2010
50
73
  * Fixed a bug in the cpu_freq function (which would only be noticed on
51
74
  certain platforms in cases where the CPU.freq method failed). Thanks
52
75
  go to Edho P Arief for the spot.
@@ -59,13 +82,13 @@
59
82
  * Test files renamed.
60
83
  * Added test-unit 2.x as a development dependency.
61
84
 
62
- == 0.6.1 - 4-Jan-2009
85
+ ## 0.6.1 - 4-Jan-2009
63
86
  * Fix for OS X 10.5.x. Thanks go to Victor Costan for the spot and the patch.
64
87
  * Updated the gemspec and some other minor changes.
65
88
  * On MS Windows the impersonation level is now explicitly set to 'impersonate'
66
89
  to avoid issues where systems might be using an older version of WMI.
67
90
 
68
- == 0.6.0 - 26-Apr-2007
91
+ ## 0.6.0 - 26-Apr-2007
69
92
  * Added support for most BSD flavors, including OS X. The freebsd.c file is
70
93
  now just bsd.c.
71
94
  * The CPU.type method for Solaris has been changed to CPU.cpu_type to avoid
@@ -77,7 +100,7 @@
77
100
  * Improved RDoc comments in the C source files.
78
101
  * Changed CPUError to CPU::Error.
79
102
 
80
- == 0.5.5 - 17-Nov-2006
103
+ ## 0.5.5 - 17-Nov-2006
81
104
  * Fixed a bug in the Linux version where there could be a key but no
82
105
  associated value, causing a String#strip! call to fail. Now the value is
83
106
  simply left at nil.
@@ -87,14 +110,14 @@
87
110
  * Modified the gemspec so that it sets the platform properly for Linux
88
111
  and Windows.
89
112
 
90
- == 0.5.4 - 12-Jul-2006
113
+ ## 0.5.4 - 12-Jul-2006
91
114
  * Added a gemspec (and a gem on RubyForge).
92
115
  * The CPU.architecture method on HP-UX now returns nil if it cannot be
93
116
  determined instead of "Unknown" for consistency with the other
94
117
  platforms.
95
118
  * Inlined the RDoc and made some minor cosmetic source code changes.
96
119
 
97
- == 0.5.3 - 4-May-2006
120
+ ## 0.5.3 - 4-May-2006
98
121
  * Fixed in a bug in the Solaris version where CPU.load_avg returned bad values
99
122
  when compiled in 64 bit mode. Thanks go to James Hranicky for the spot and
100
123
  both James Hranicky and Peter Tribble (via comp.unix.solaris) for patches.
@@ -102,7 +125,7 @@
102
125
  which test suite to run. All platforms now use 'ts_all.rb', which will run
103
126
  the appropriate test case behind the scenes.
104
127
 
105
- == 0.5.2 - 24-Jun-2005
128
+ ## 0.5.2 - 24-Jun-2005
106
129
  * Bug fixed on Linux where empty lines could cause problems. This affected
107
130
  both the install.rb and linux.rb files, though it only seems to have been
108
131
  an issue on the 2.6+ kernel.
@@ -111,7 +134,7 @@
111
134
  is the only entry.
112
135
  * Added a sample program for Linux under the 'examples' directory.
113
136
 
114
- == 0.5.1 - 5-May-2005
137
+ ## 0.5.1 - 5-May-2005
115
138
  * Fixed a potential bug in the FreeBSD version of CPU.model.
116
139
  * Eliminated some warnings in the FreeBSD version.
117
140
  * Moved examples directory to the toplevel package directory.
@@ -124,7 +147,7 @@
124
147
  doc/linux.txt.
125
148
  * Some $LOAD_PATH setup changes in the unit tests.
126
149
 
127
- == 0.5.0 - 26-Jun-2004
150
+ ## 0.5.0 - 26-Jun-2004
128
151
  * Now requires Ruby 1.8.0 or later.
129
152
  * FreeBSD support added.
130
153
  * Replaced 'CPUException' with 'CPUError'
@@ -138,7 +161,7 @@
138
161
  * The .html files have been removed. You can generate the html on your own
139
162
  if you like.
140
163
 
141
- == 0.4.0 - 18-Sep-2003
164
+ ## 0.4.0 - 18-Sep-2003
142
165
  * Added MS Windows support
143
166
  * Changed some method names. The "cpu" has been dropped from most method
144
167
  names. See documentation for details.
@@ -150,14 +173,14 @@
150
173
  * Minor API change for the load_avg() method on HP-UX. It now accepts a
151
174
  CPU number as an argument.
152
175
 
153
- == 0.3.1 - 16-Jul-2003
176
+ ## 0.3.1 - 16-Jul-2003
154
177
  * Fixed a bug in the Solaris version that was using up and not
155
178
  freeing file descriptors.
156
179
  * Added html doc for Solaris under doc directory.
157
180
  * Minor changes to test_hpux.rb and test_sunos.rb
158
181
  * Minor README changes.
159
182
 
160
- == 0.3.0 - 30-Jun-2003
183
+ ## 0.3.0 - 30-Jun-2003
161
184
  * Added HP-UX support
162
185
  * Removed the VERSION class method. Use the constant instead
163
186
  * Changed license to "Artistic"
@@ -166,7 +189,7 @@
166
189
  * Modified extconf.rb, moving some of the dynamic test generation
167
190
  into separate files
168
191
 
169
- == 0.2.2 - 25-Mar-2003
192
+ ## 0.2.2 - 25-Mar-2003
170
193
  * fpu_type and cpu_type now return nil if not found (Solaris)
171
194
  * CPUException is now a direct subclass of StandardError
172
195
  * Modified extconf.rb script
@@ -174,19 +197,19 @@
174
197
  * Added another test to the solaris test suite
175
198
  * Important note added to INSTALL file
176
199
 
177
- == 0.2.1 - 12-Mar-2003
200
+ ## 0.2.1 - 12-Mar-2003
178
201
  * Added the cpu_stats() class method for Linux, which contains the
179
202
  data from the 'cpu' lines of /proc/stat
180
203
  * Minor fix for extconf.rb (thanks Michael Granger)
181
204
  * Some tests added to Linux test suite
182
205
  * MANIFEST correction
183
206
 
184
- == 0.2.0 - 13-Feb-2003
207
+ ## 0.2.0 - 13-Feb-2003
185
208
  * Linux support added (pure Ruby only)
186
209
  * Many changes to extconf.rb to support Linux version
187
210
  * sys-uname prerequisite dropped
188
211
  * rd2 documentation now kept separate from source
189
212
 
190
- == 0.1.0 - 3-Feb-2003
213
+ ## 0.1.0 - 3-Feb-2003
191
214
  * Initial release
192
215
  * 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
3
- * CHANGES
2
+ * LICENSE
3
+ * MANIFEST.md
4
+ * CHANGES.md
4
5
  * Rakefile
5
- * README
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
@@ -0,0 +1,75 @@
1
+ ## Description
2
+ A Ruby interface for getting cpu information.
3
+
4
+ ## Installation
5
+ `gem install sys-cpu`
6
+
7
+ ## Adding the trusted cert
8
+ `gem cert --add <(curl -Ls https://raw.githubusercontent.com/djberg96/sys-cpu/ffi/certs/djberg96_pub.pem)`
9
+
10
+ ## Notes
11
+ ### Solaris
12
+ Currently there is no +processors+ iterative method for multi-cpu systems.
13
+ I plan to add it this in a future release.
14
+
15
+ ### OS X
16
+ The CPU.model method returns very limited information. I do not yet know
17
+ how to get more detailed information.
18
+
19
+ ### Linux
20
+ This is pure Ruby. This version reads information out of /proc/cpuinfo and
21
+ /proc/loadavg, so if /proc isn't mounted it won't work.
22
+
23
+ The key-value information in /proc/cpuinfo is stored internally (i.e. in
24
+ memory) as an array of hashes when you first +require+ this package. This
25
+ overhead is exceptionally minimal, given that your average cpuinfo file
26
+ contains less than 1k of text (and I don't store whitespace or newlines).
27
+
28
+ The text documentation for Linux is dynamically generated during the
29
+ build process because the fields vary depending on your setup. So, don't
30
+ look at it until *after* you've installed it. You will see a doc/linux.txt
31
+ file after you run +rake install+ (via install.rb).
32
+
33
+ ### HP-UX
34
+ Unlike other platforms, you can get load averages for an individual cpu in
35
+ multi-cpu systems. See documentation for more details.
36
+
37
+ Note that version 0.7.x and later will not work on HP-UX because of the
38
+ switch to FFI and the lack of a testing platform. However, version 0.6.x
39
+ will work just fine.
40
+
41
+ ### MS Windows
42
+ This is a pure Ruby implementation using the win32ole package + WMI. The C
43
+ version has been scrapped.
44
+
45
+ As of version 0.5.0, the CPU.usage method has been removed in favor of the
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.
49
+
50
+ ## Acknowledgements
51
+ Thanks go to the MPlayer team for some source code that helped me on
52
+ certain versions of FreeBSD in the original C version.
53
+
54
+ ## Known Bugs
55
+ None that I'm aware of. Please report bugs on the project page at:
56
+
57
+ https://github.com/djberg96/sys-cpu
58
+
59
+ ## Future Plans
60
+ * Add iterative CPU.processors method.
61
+ * Add more information in general, such as what +prtdiag+ shows.
62
+
63
+ ## License
64
+ Apache-2.0
65
+
66
+ ## Copyright
67
+ (C) 2003-2020 Daniel J. Berger, All Rights Reserved
68
+
69
+ ## Warranty
70
+ This package is provided "as is" and without any express or
71
+ implied warranties, including, without limitation, the implied
72
+ warranties of merchantability and fitness for a particular purpose.
73
+
74
+ ## Author
75
+ Daniel J. Berger