sys-uname 1.0.4 → 1.1.0

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: f0350a4361d223981f8128c5163b9cb854717c0367baa9f947a2cf0f8f3438be
4
+ data.tar.gz: ce970f97096b73bc0d1554d0c9335b8f4ebf8c67ec79109a7fb443e0f87244bb
5
5
  SHA512:
6
- metadata.gz: 911262220b89238b3380ee18a671adde0565516d694107ac5e087d6a1fd68b8251b55ebe6c830d31d7f8157b080055597dbedf52c113c672fb02af90f8d1ab9a
7
- data.tar.gz: e5a95d3021d41ab6714d80ce1c2a59fd08f794f0a1543fbbf1b9537ddd12784ba6471b5b61e8c9c925c2e1419b5e395dfcd4e31338d2b1b889a26e4e09309ada
6
+ metadata.gz: ea807be8cc162ec2ae5fdf340cd54ca2bc75b05de5608d7b0358a5db3b438c8d62de5300098b5b17fc3f7ddbf76c40ed9666954bd8e21b860efca4afa8b6e9ca
7
+ data.tar.gz: 552c4a13d1a953bbf6eadc04dbba8abc342b4414d5dc7a9ad9de1c78ab8b8476d100b2425a278c0527cfb697773dfa2f9f17c411b6557b89f41b6c50891a5fae
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.
@@ -26,17 +26,17 @@ VERSION
26
26
 
27
27
  == Class Methods
28
28
  Uname.sysname
29
- Returns the operating system name. e.g. "SunOS"
29
+ Returns the operating system name, e.g. "SunOS"
30
30
 
31
31
  Uname.nodename
32
- Returns the nodename. This is usually, but not necessarily, the
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. e.g. "i686"
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. e.g. "2.2.16-3"
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. On Solaris, it will also include
52
- architecture and platform. On HP-UX, it will also include id_number.
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. e.g. "sparc"
60
+ Returns the instruction set architecture, e.g. "sparc"
61
61
 
62
62
  Uname.platform
63
- Returns the platform identifier. e.g. "SUNW,Sun-Blade-100"
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, e.g. "PowerBook5,1"
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. This is a String, not a Fixnum.
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. This may be added in future releases,
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. Please log any bugs on the project page at
106
- http://www.rubyforge.org/projects/sysutils.
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
- Artistic 2.0
112
+ Apache-2.0
113
113
 
114
114
  == Copyright
115
- (C) 2002-2013 Daniel J. Berger
115
+ (C) 2002-2019 Daniel J. Berger
116
116
  All Rights Reserved
117
117
 
118
118
  == Warranty
@@ -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
- 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
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
- print "\nBSD/OS X specific tests\n"
32
- puts "======================="
33
- puts 'Model: ' + Uname.model
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
- print "\nHP-UX specific tests\n"
38
- puts "========================"
39
- puts "ID: " + Uname.id
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"
@@ -1,7 +1,7 @@
1
1
  module Sys
2
2
  class Uname
3
3
  # The version of the sys-uname gem.
4
- VERSION = '1.0.4'.freeze
4
+ VERSION = '1.1.0'.freeze
5
5
  end
6
6
 
7
7
  class Platform
@@ -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.4'
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 = 'Artistic-2.0'
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']
@@ -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.4', Sys::Platform::VERSION)
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
@@ -14,7 +14,7 @@ class TC_Sys_Uname < Test::Unit::TestCase
14
14
  end
15
15
 
16
16
  test "version constant is set to expected value" do
17
- assert_equal('1.0.4', Uname::VERSION)
17
+ assert_equal('1.1.0', Uname::VERSION)
18
18
  assert_true(Uname::VERSION.frozen?)
19
19
  end
20
20
 
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
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: 2018-11-04 00:00:00.000000000 Z
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
- - Artistic-2.0
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
- rubyforge_project:
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