sys-uname 1.0.4 → 1.2.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: 9d865ffe873e0f538b7d613d3ee6efce9997e50e0529ded8808949bf03346868
4
- data.tar.gz: f2b344aa43000214b23bec685222e3a3380748400cbbc2df297b9d618bf7ba0e
3
+ metadata.gz: e5cbd8721570c3681f05f66562a956b366d7839da185a309acc136fceab2f9b8
4
+ data.tar.gz: 315ba4bc84cbfb0e1201a78062858218f6652148a37d9e62f90a7200c70d3d50
5
5
  SHA512:
6
- metadata.gz: 911262220b89238b3380ee18a671adde0565516d694107ac5e087d6a1fd68b8251b55ebe6c830d31d7f8157b080055597dbedf52c113c672fb02af90f8d1ab9a
7
- data.tar.gz: e5a95d3021d41ab6714d80ce1c2a59fd08f794f0a1543fbbf1b9537ddd12784ba6471b5b61e8c9c925c2e1419b5e395dfcd4e31338d2b1b889a26e4e09309ada
6
+ metadata.gz: 5c22800edea9dfd5b9057fb3fae10a76e88ecbead21e02b8d66ce7b1105294f01efe661d9ae9e9fe9653293acd8966aabd667296c40d1891225fd54289422845
7
+ data.tar.gz: 10cad4749fee0e1e6fcd5f531e046ba8f9ce9af354401d065b8d786365aa7e87d6691745e84f164cf3ef87f1a5849b52f815d7c9a517ec839005963c5ca75d7b
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,12 +1,40 @@
1
- == 1.0.3 - 31-Oct-2016
1
+ ## 1.2.2 - 30-Oct-2020
2
+ * Added a Gemfile.
3
+ * The ffi dependency is now slightly more restrictive.
4
+ * Added rake as a development dependency (which it really always was).
5
+ * Switched from rdoc to markdown because github wouldn't render it properly.
6
+
7
+ ## 1.2.1 - 17-Mar-2020
8
+ * Properly include a LICENSE file as per the Apache-2.0 license.
9
+
10
+ ## 1.2.0 - 5-Jan-2020
11
+ * Changed test suite from test-unit to rspec, which was also added as a
12
+ development dependency.
13
+ * Several new fields were added to the returned object on Windows. The fields
14
+ are encryption_level, product_type, suite_mask and system_drive.
15
+
16
+ ## 1.1.1 - 10-Dec-2019
17
+ * Renamed various text files to include explicit .rdoc extension so that
18
+ they show up more nicely on github.
19
+
20
+ ## 1.1.0 - 29-Aug-2019
21
+ * Changed license to Apache-2.0.
22
+ * Updated the doc/uname.txt file.
23
+ * Minor test updates.
24
+
25
+ ## 1.0.4 - 4-Nov-2018
26
+ * Added metadata to the gemspec.
27
+ * Updated the cert, which will expire in about 10 years.
28
+
29
+ ## 1.0.3 - 31-Oct-2016
2
30
  * Updated the gem cert. It will expire on 31-Oct-2019.
3
31
  * Minor updates to the Rakefile and gemspec.
4
32
 
5
- == 1.0.2 - 3-Sep-2015
33
+ ## 1.0.2 - 3-Sep-2015
6
34
  * The gem is now signed.
7
35
  * Modified gemspec and Rakefile to support signing.
8
36
 
9
- == 1.0.1 - 19-Aug-2015
37
+ ## 1.0.1 - 19-Aug-2015
10
38
  * Modified Platform::IMPL so that it does not include "32" as part of the
11
39
  symbol name. This isn't useful since it's the same on 32 or 64-bit Windows.
12
40
  * Reorganized code a bit so that the VERSION constant is in a single place.
@@ -14,7 +42,7 @@
14
42
  as Uname::VERSION.
15
43
  * Added a test for Sys::Platform::IMPL on Windows.
16
44
 
17
- == 1.0.0 - 19-Aug-2015
45
+ ## 1.0.0 - 19-Aug-2015
18
46
  * Added a sys-uname.rb shim so that you can require this library with
19
47
  "sys-uname" or "sys/uname".
20
48
  * Added the architecture method for MS Windows.
@@ -24,32 +52,32 @@
24
52
  * There is now just a single gem, instead of a separate gem for Windows
25
53
  and Unix, so you shouldn't need to worry about platform checking.
26
54
 
27
- == 0.9.2 - 1-May-2013
55
+ ## 0.9.2 - 1-May-2013
28
56
  * Added a workaround for a win32ole thread bug. Thanks go to Tianlong Wu
29
57
  for the spot.
30
58
  * Altered platform handling slightly for Windows in the Rakefile.
31
59
 
32
- == 0.9.1 - 3-Jan-2013
60
+ ## 0.9.1 - 3-Jan-2013
33
61
  * Made FFI functions private.
34
62
  * Properly alias uname FFI function.
35
63
  * Fixed the QuantumLength and QuantumType bug again (see 0.8.4), which I
36
64
  somehow accidentally reintroduced.
37
65
 
38
- == 0.9.0 - 8-Dec-2011
66
+ ## 0.9.0 - 8-Dec-2011
39
67
  * Conversion to FFI.
40
68
  * Added some additional methods and information for Solaris.
41
69
  * Minor tweaks for 1.9 to silence warnings.
42
70
 
43
- == 0.8.6 - 2-Sep-2011
71
+ ## 0.8.6 - 2-Sep-2011
44
72
  * Fixed a failing test for Ruby 1.9.x.
45
73
  * The gemspec for Windows is now 'universal'.
46
74
  * Some minor doc updates.
47
75
 
48
- == 0.8.5 - 11-Dec-2010
76
+ ## 0.8.5 - 11-Dec-2010
49
77
  * Removed some non-ascii characters that somehow made it into the source.
50
78
  * Some updates to the Rakefile, including a default task.
51
79
 
52
- == 0.8.4 - 29-Jan-2010
80
+ ## 0.8.4 - 29-Jan-2010
53
81
  * Bug fix for Windows 7, which appears to have removed the QuantumLength and
54
82
  QuantumType members of the Win32_OperatingSystem class. Thanks go to Mark
55
83
  Seymour for the spot. RubyForge bug # 27645.
@@ -58,23 +86,23 @@
58
86
  now all inlined within the Rakefile build task itself.
59
87
  * Minor doc updates and some code reformatting.
60
88
 
61
- == 0.8.3 - 26-Apr-2008
89
+ ## 0.8.3 - 26-Apr-2008
62
90
  * Added an explicit "require 'time'" in the Windows version because recent
63
91
  versions of Ruby now need it.
64
92
  * Changed the way I do platform checks in the Rakefile.
65
93
 
66
- == 0.8.2 - 22-Nov-2007
94
+ ## 0.8.2 - 22-Nov-2007
67
95
  * Fixed an issue where Ruby no longer parsed a certain type of date that
68
96
  MS Windows uses. See RubyForge Bug #10646 for more information.
69
97
 
70
- == 0.8.1 - 29-Aug-2007
98
+ ## 0.8.1 - 29-Aug-2007
71
99
  * Made a minor modification to the build script for Linux. It turns out Linux
72
100
  has sysctl, but not the necessary mibs for the Uname.model method. Thanks go
73
101
  to Mickey Knox (?) for the spot.
74
102
  * Removed the install.rb file. The code from that program was integrated
75
103
  directly into the Rakefile.
76
104
 
77
- == 0.8.0 - 10-Apr-2007
105
+ ## 0.8.0 - 10-Apr-2007
78
106
  * The Uname.model method should now work on most BSD platforms, not just OS X,
79
107
  since it uses the sysctl() function behind the scenes.
80
108
  * The 'id' method was changed to 'id_number' on HP-UX to avoid confusion with
@@ -85,22 +113,22 @@
85
113
  * Removed some pre-setup code from the test suite that was no longer necessary
86
114
  as a result of the Rake test task.
87
115
 
88
- == 0.7.4 - 19-Nov-2006
116
+ ## 0.7.4 - 19-Nov-2006
89
117
  * Internal layout changes, doc updates and gemspec improvements.
90
118
  * No code changes.
91
119
 
92
- == 0.7.3 - 30-Jul-2006
120
+ ## 0.7.3 - 30-Jul-2006
93
121
  * Bug fix for 64 bit platforms.
94
122
  * Minor modification of the extconf.rb file.
95
123
 
96
- == 0.7.2 - 5-Jul-2006
124
+ ## 0.7.2 - 5-Jul-2006
97
125
  * Removed '?' from the struct member names on MS Windows since these are no
98
126
  longer legal.
99
127
  * Removed duplicate definition of Uname.version on MS Windows (oops).
100
128
  * Added a gemspec.
101
129
  * Added inline rdoc documentation to the source files.
102
130
 
103
- == 0.7.1 - 5-May-2005
131
+ ## 0.7.1 - 5-May-2005
104
132
  * Removed the uname.rd file. The uname.txt file is rdoc friendly, so you
105
133
  can autogenerate html from that file if you wish.
106
134
  * Removed the version.h file - no longer needed now that the Windows version
@@ -109,7 +137,7 @@
109
137
  * Minor setup modifications to the test suite.
110
138
  * This package is now hosted on RubyForge.
111
139
 
112
- == 0.7.0 - 11-Jan-2004
140
+ ## 0.7.0 - 11-Jan-2004
113
141
  * Scrapped the C version for Windows in favor of a pure Ruby version that uses
114
142
  WMI + OLE. I highly recommend using Ruby 1.8.2 or later on Win32 systems.
115
143
  Earlier versions may cause segfaults.
@@ -121,18 +149,18 @@
121
149
  * Removed the INSTALL file. That information is now included in the README.
122
150
  * Documentation updates.
123
151
 
124
- == 0.6.1 - 25-Apr-2004
152
+ ## 0.6.1 - 25-Apr-2004
125
153
  * Simplified extconf.rb script and installation instructions.
126
154
  * Combined three test scripts into a single test script.
127
155
  * Warranty information added.
128
156
 
129
- == 0.6.0 - 25-Jun-2003
157
+ ## 0.6.0 - 25-Jun-2003
130
158
  * Added HP-UX support, including the id() class method (HP-UX only)
131
159
  * Fixed minor bug in extconf.rb (forgot 'require ftools' at top)
132
160
  * Added HP-UX specific tests and support
133
161
  * Made test.rb friendlier for folks without TestUnit installed
134
162
 
135
- == 0.5.0 - 16-Jun-2003
163
+ ## 0.5.0 - 16-Jun-2003
136
164
  * Added OS X support, including the "model" method. Thanks to Mike Hall
137
165
  for the patch
138
166
  * Removed VERSION() class method. Use the constant instead
@@ -145,17 +173,17 @@
145
173
  * Fixed up test suite. Added OS X specific tests and support. Should now
146
174
  work with TestUnit 0.1.6 or later
147
175
 
148
- == 0.4.1 - 7-Feb-2003
176
+ ## 0.4.1 - 7-Feb-2003
149
177
  * Fixed C89 issue (again) - thanks go to Daniel Zepeda for the spot
150
178
  * Fixed bugs in extconf.rb file (rescue clause, ftools)
151
179
 
152
- == 0.4.0 - 6-Feb-2003
180
+ ## 0.4.0 - 6-Feb-2003
153
181
  * MS Windows support!
154
182
  * Added a test suite and automatic test.rb creation
155
183
  * Documentation additions/fixes
156
184
  * Internal directory layout and filename changes (Changelog -> CHANGES)
157
185
 
158
- == 0.3.3 - 6-Jan-2003
186
+ ## 0.3.3 - 6-Jan-2003
159
187
  * Made the code C89 compliant for older compilers. Thanks to Paul Brannan
160
188
  for teaching me how to fix this in general.
161
189
  * Moved README to doc/uname.txt
@@ -165,14 +193,14 @@
165
193
  * Changed tarball name to reflect RAA package name
166
194
  * Minor doc changes
167
195
 
168
- == 0.3.2 - 8-Aug-2002
196
+ ## 0.3.2 - 8-Aug-2002
169
197
  * Changed the struct name returned by the 'uname()' method from
170
198
  "Uname::UnameStruct" to just "UnameStruct". This was to make it
171
199
  compliant with future versions of Ruby. The extra namespace was
172
200
  redundant anyway.
173
201
  * I include the documentation now, instead of making you install rd2 :)
174
202
 
175
- == 0.3.1 - 22-Jul-2002
203
+ ## 0.3.1 - 22-Jul-2002
176
204
  * Added the 'uname' class method, which returns a struct that contains all
177
205
  of the uname information
178
206
  * Added a test script. Do 'ruby test.rb' to run it.
@@ -182,7 +210,7 @@
182
210
  * Changed version number style to be consistent with other 'Sys' modules
183
211
  * Now installs into 'Sys-Uname-x.x.x' directory (instead of just 'Uname')
184
212
 
185
- == 0.03 - 6-June-2002
213
+ ## 0.03 - 6-June-2002
186
214
  * rd style documentation now inline
187
215
  * README.html is now uname.html - created via rdtool
188
216
  * The 'platform()' and 'architecture()' methods have been added for Solaris
@@ -190,7 +218,7 @@
190
218
  * The whole 'Sys' class has been removed. Delete your sys.so file if you
191
219
  installed a previous version of Sys-Uname
192
220
 
193
- == 0.02 - 3-June-2002
221
+ ## 0.02 - 3-June-2002
194
222
  * Potentially fatal memory problems corrected.
195
223
  * Should now build with C++ as well
196
224
  * Thanks to Mike Hall for both the spot and the fix
@@ -198,5 +226,5 @@
198
226
  * Added a README.html file
199
227
  * Added a Manifest file
200
228
 
201
- == 0.01 - 31-May-2002
229
+ ## 0.01 - 31-May-2002
202
230
  * Initial release (unannounced)
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
@@ -0,0 +1,12 @@
1
+ * CHANGES.rdoc
2
+ * MANIFEST.rdoc
3
+ * README.rdoc
4
+ * Gemfile
5
+ * Rakefile
6
+ * sys-uname.gemspec
7
+ * certs/djberg96_pub.pem
8
+ * doc/uname.rdoc
9
+ * examples/uname_test.rb
10
+ * lib/sys/uname.rb
11
+ * spec/sys_uname_spec.rb
12
+ * spec/sys_platform_spec.rb