sys-uname 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES +9 -0
- data/doc/uname.txt +15 -15
- data/examples/uname_test.rb +15 -15
- data/lib/sys/uname.rb +1 -1
- data/sys-uname.gemspec +2 -2
- data/test/test_sys_platform.rb +2 -1
- data/test/test_sys_uname.rb +1 -1
- metadata +4 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0350a4361d223981f8128c5163b9cb854717c0367baa9f947a2cf0f8f3438be
|
4
|
+
data.tar.gz: ce970f97096b73bc0d1554d0c9335b8f4ebf8c67ec79109a7fb443e0f87244bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea807be8cc162ec2ae5fdf340cd54ca2bc75b05de5608d7b0358a5db3b438c8d62de5300098b5b17fc3f7ddbf76c40ed9666954bd8e21b860efca4afa8b6e9ca
|
7
|
+
data.tar.gz: 552c4a13d1a953bbf6eadc04dbba8abc342b4414d5dc7a9ad9de1c78ab8b8476d100b2425a278c0527cfb697773dfa2f9f17c411b6557b89f41b6c50891a5fae
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGES
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
== 1.1.0 - 29-Aug-2019
|
2
|
+
* Changed license to Apache-2.0.
|
3
|
+
* Updated the doc/uname.txt file.
|
4
|
+
* Minor test updates.
|
5
|
+
|
6
|
+
== 1.0.4 - 4-Nov-2018
|
7
|
+
* Added metadata to the gemspec.
|
8
|
+
* Updated the cert, which will expire in about 10 years.
|
9
|
+
|
1
10
|
== 1.0.3 - 31-Oct-2016
|
2
11
|
* Updated the gem cert. It will expire on 31-Oct-2019.
|
3
12
|
* Minor updates to the Rakefile and gemspec.
|
data/doc/uname.txt
CHANGED
@@ -26,17 +26,17 @@ VERSION
|
|
26
26
|
|
27
27
|
== Class Methods
|
28
28
|
Uname.sysname
|
29
|
-
Returns the operating system name
|
29
|
+
Returns the operating system name, e.g. "SunOS"
|
30
30
|
|
31
31
|
Uname.nodename
|
32
|
-
Returns the nodename.
|
32
|
+
Returns the nodename. This is usually, but not necessarily, the
|
33
33
|
same as the system's hostname.
|
34
34
|
|
35
35
|
You cannot currently set the nodename (root or otherwise). This may
|
36
36
|
be added in a future release.
|
37
37
|
|
38
38
|
Uname.machine
|
39
|
-
Returns the machine hardware type
|
39
|
+
Returns the machine hardware type, e.g. "i686"
|
40
40
|
|
41
41
|
Uname.version
|
42
42
|
Returns the operating system version. e.g. "5.8". In the case of MS
|
@@ -44,12 +44,12 @@ Uname.version
|
|
44
44
|
a hyphen, e.g. "2915-Service Pack 2".
|
45
45
|
|
46
46
|
Uname.release
|
47
|
-
Returns the operating system release
|
47
|
+
Returns the operating system release, e.g. "2.2.16-3"
|
48
48
|
|
49
49
|
Uname.uname
|
50
50
|
Returns a struct of type UnameStruct that contains sysname, nodename,
|
51
|
-
machine, version, and release.
|
52
|
-
architecture and platform.
|
51
|
+
machine, version, and release. On Solaris, it will also include
|
52
|
+
architecture and platform. On HP-UX, it will also include id_number.
|
53
53
|
|
54
54
|
MS Windows - there are many more, and different, fields in the struct.
|
55
55
|
Please see the MSDN documenation on the Win32_OperatingSystem WMI class
|
@@ -57,10 +57,10 @@ Uname.uname
|
|
57
57
|
|
58
58
|
== Solaris Only
|
59
59
|
Uname.architecture
|
60
|
-
Returns the instruction set architecture
|
60
|
+
Returns the instruction set architecture, e.g. "sparc"
|
61
61
|
|
62
62
|
Uname.platform
|
63
|
-
Returns the platform identifier
|
63
|
+
Returns the platform identifier, e.g. "SUNW,Sun-Blade-100"
|
64
64
|
|
65
65
|
Uname.isa_list
|
66
66
|
Returns a space separated string containing a list of all variant
|
@@ -85,15 +85,15 @@ Uname.dhcp_cache
|
|
85
85
|
|
86
86
|
== BSD Platforms Only (including OS X)
|
87
87
|
Uname.model
|
88
|
-
Returns the model type,
|
88
|
+
Returns the model type, e.g. "PowerBook5,1"
|
89
89
|
|
90
90
|
== HP-UX Only
|
91
91
|
Uname.id
|
92
|
-
Returns the id number, e.g. 234233587.
|
92
|
+
Returns the id number, e.g. 234233587. This is a String, not a Fixnum.
|
93
93
|
|
94
94
|
== Notes
|
95
95
|
Not all of the information that you might be used to seeing with
|
96
|
-
a 'uname -a' is available.
|
96
|
+
a 'uname -a' is available. This may be added in future releases,
|
97
97
|
but since different implementations provide different information
|
98
98
|
(via different header files) it will be a bit of a pain.
|
99
99
|
|
@@ -102,17 +102,17 @@ Uname.id
|
|
102
102
|
UnameStruct members mean.
|
103
103
|
|
104
104
|
== Known Bugs
|
105
|
-
None that I'm aware of.
|
106
|
-
|
105
|
+
None that I'm aware of. Please log any bugs on the project page at
|
106
|
+
https://github.com/djberg96/sys-uname
|
107
107
|
|
108
108
|
== Future Plans
|
109
109
|
Add additional info for Linux, Solaris, BSD.
|
110
110
|
|
111
111
|
== License
|
112
|
-
|
112
|
+
Apache-2.0
|
113
113
|
|
114
114
|
== Copyright
|
115
|
-
(C) 2002-
|
115
|
+
(C) 2002-2019 Daniel J. Berger
|
116
116
|
All Rights Reserved
|
117
117
|
|
118
118
|
== Warranty
|
data/examples/uname_test.rb
CHANGED
@@ -16,27 +16,27 @@ puts 'Release: ' + Uname.release
|
|
16
16
|
puts 'Machine: ' + Uname.machine # May be "unknown" on Win32
|
17
17
|
|
18
18
|
if RbConfig::CONFIG['host_os'] =~ /sun|solaris/i
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
19
|
+
print "\nSolaris specific tests\n"
|
20
|
+
puts "==========================="
|
21
|
+
puts 'Architecture: ' + Uname.architecture
|
22
|
+
puts 'Platform: ' + Uname.platform
|
23
|
+
puts 'Instruction Set List: ' + Uname.isa_list.split.join(", ")
|
24
|
+
puts 'Hardware Provider: ' + Uname.hw_provider
|
25
|
+
puts 'Serial Number: ' + Uname.hw_serial_number.to_s
|
26
|
+
puts 'SRPC Domain: ' + Uname.srpc_domain # might be empty
|
27
|
+
puts 'DHCP Cache: ' + Uname.dhcp_cache # might be empty
|
28
28
|
end
|
29
29
|
|
30
30
|
if RbConfig::CONFIG['host_os'] =~ /powerpc|darwin|bsd|mach/i
|
31
|
-
|
32
|
-
|
33
|
-
|
31
|
+
print "\nBSD/OS X specific tests\n"
|
32
|
+
puts "======================="
|
33
|
+
puts 'Model: ' + Uname.model
|
34
34
|
end
|
35
35
|
|
36
36
|
if RbConfig::CONFIG['host_os'] =~ /hpux/i
|
37
|
-
|
38
|
-
|
39
|
-
|
37
|
+
print "\nHP-UX specific tests\n"
|
38
|
+
puts "========================"
|
39
|
+
puts "ID: " + Uname.id
|
40
40
|
end
|
41
41
|
|
42
42
|
print "\nTest finished successfully\n"
|
data/lib/sys/uname.rb
CHANGED
data/sys-uname.gemspec
CHANGED
@@ -2,12 +2,12 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'sys-uname'
|
5
|
-
spec.version = '1.0
|
5
|
+
spec.version = '1.1.0'
|
6
6
|
spec.author = 'Daniel J. Berger'
|
7
7
|
spec.email = 'djberg96@gmail.com'
|
8
8
|
spec.homepage = 'http://github.com/djberg96/sys-uname'
|
9
9
|
spec.summary = 'An interface for returning uname (platform) information'
|
10
|
-
spec.license = '
|
10
|
+
spec.license = 'Apache-2.0'
|
11
11
|
spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
|
12
12
|
spec.test_files = Dir['test/test*.rb']
|
13
13
|
spec.cert_chain = ['certs/djberg96_pub.pem']
|
data/test/test_sys_platform.rb
CHANGED
@@ -14,7 +14,8 @@ class TC_Sys_Platform < Test::Unit::TestCase
|
|
14
14
|
end
|
15
15
|
|
16
16
|
test "the VERSION constant is set to the expected value" do
|
17
|
-
assert_equal('1.0
|
17
|
+
assert_equal('1.1.0', Sys::Platform::VERSION)
|
18
|
+
assert_true(Sys::Platform::VERSION.frozen?)
|
18
19
|
end
|
19
20
|
|
20
21
|
test "the ARCH constant is defined" do
|
data/test/test_sys_uname.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sys-uname
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
|
36
36
|
WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date:
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: ffi
|
@@ -91,7 +91,7 @@ files:
|
|
91
91
|
- certs/djberg96_pub.pem
|
92
92
|
homepage: http://github.com/djberg96/sys-uname
|
93
93
|
licenses:
|
94
|
-
-
|
94
|
+
- Apache-2.0
|
95
95
|
metadata:
|
96
96
|
homepage_uri: https://github.com/djberg96/sys-uname
|
97
97
|
bug_tracker_uri: https://github.com/djberg96/sys-uname/issues
|
@@ -114,8 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
|
-
|
118
|
-
rubygems_version: 2.7.6
|
117
|
+
rubygems_version: 3.0.6
|
119
118
|
signing_key:
|
120
119
|
specification_version: 4
|
121
120
|
summary: An interface for returning uname (platform) information
|
metadata.gz.sig
CHANGED
Binary file
|