sys-uname 1.2.1 → 1.2.3
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/{CHANGES.rdoc → CHANGES.md} +48 -35
- data/Gemfile +2 -0
- data/{MANIFEST.rdoc → MANIFEST.md} +2 -1
- data/README.md +68 -0
- data/Rakefile +6 -4
- data/doc/uname.rdoc +1 -1
- data/lib/sys/platform.rb +17 -13
- data/lib/sys/uname.rb +3 -1
- data/lib/sys/unix/uname.rb +20 -35
- data/lib/sys/windows/uname.rb +221 -237
- data/lib/sys-uname.rb +2 -0
- data/spec/spec_helper.rb +12 -0
- data/spec/sys_platform_spec.rb +32 -38
- data/spec/sys_uname_spec.rb +141 -137
- data/sys-uname.gemspec +14 -9
- data.tar.gz.sig +0 -0
- metadata +68 -32
- metadata.gz.sig +0 -0
- data/README.rdoc +0 -51
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sys-uname
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
11
|
- |
|
@@ -35,22 +35,22 @@ cert_chain:
|
|
35
35
|
ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
|
36
36
|
WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date: 2023-04-09 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: ffi
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - "
|
44
|
+
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 1.
|
46
|
+
version: '1.1'
|
47
47
|
type: :runtime
|
48
48
|
prerelease: false
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: '1.1'
|
54
54
|
- !ruby/object:Gem::Dependency
|
55
55
|
name: rspec
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -65,6 +65,48 @@ dependencies:
|
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '3.9'
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: rake
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
type: :development
|
76
|
+
prerelease: false
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: rubocop
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
type: :development
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: rubocop-rspec
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
68
110
|
description: |2
|
69
111
|
The sys-uname library provides an interface for gathering information
|
70
112
|
about your current platform. The library is named after the Unix 'uname'
|
@@ -75,45 +117,39 @@ email: djberg96@gmail.com
|
|
75
117
|
executables: []
|
76
118
|
extensions: []
|
77
119
|
extra_rdoc_files:
|
78
|
-
-
|
79
|
-
- MANIFEST.rdoc
|
80
|
-
- README.rdoc
|
120
|
+
- doc/uname.rdoc
|
81
121
|
files:
|
122
|
+
- CHANGES.md
|
123
|
+
- Gemfile
|
82
124
|
- LICENSE
|
83
|
-
-
|
84
|
-
-
|
85
|
-
- spec/sys_platform_spec.rb
|
125
|
+
- MANIFEST.md
|
126
|
+
- README.md
|
86
127
|
- Rakefile
|
87
|
-
- certs
|
88
128
|
- certs/djberg96_pub.pem
|
89
|
-
-
|
90
|
-
- examples
|
129
|
+
- doc/uname.rdoc
|
91
130
|
- examples/uname_test.rb
|
92
|
-
- lib
|
93
|
-
- lib/sys
|
131
|
+
- lib/sys-uname.rb
|
94
132
|
- lib/sys/platform.rb
|
95
|
-
- lib/sys/
|
133
|
+
- lib/sys/uname.rb
|
96
134
|
- lib/sys/unix/uname.rb
|
97
|
-
- lib/sys/windows
|
98
135
|
- lib/sys/windows/uname.rb
|
99
|
-
-
|
100
|
-
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
- doc/uname.rdoc
|
104
|
-
- MANIFEST.rdoc
|
105
|
-
- README.rdoc
|
136
|
+
- spec/spec_helper.rb
|
137
|
+
- spec/sys_platform_spec.rb
|
138
|
+
- spec/sys_uname_spec.rb
|
139
|
+
- sys-uname.gemspec
|
106
140
|
homepage: http://github.com/djberg96/sys-uname
|
107
141
|
licenses:
|
108
142
|
- Apache-2.0
|
109
143
|
metadata:
|
110
144
|
homepage_uri: https://github.com/djberg96/sys-uname
|
111
145
|
bug_tracker_uri: https://github.com/djberg96/sys-uname/issues
|
112
|
-
changelog_uri: https://github.com/djberg96/sys-uname/blob/
|
146
|
+
changelog_uri: https://github.com/djberg96/sys-uname/blob/main/CHANGES.md
|
113
147
|
documentation_uri: https://github.com/djberg96/sys-uname/wiki
|
114
148
|
source_code_uri: https://github.com/djberg96/sys-uname
|
115
149
|
wiki_uri: https://github.com/djberg96/sys-uname/wiki
|
116
|
-
|
150
|
+
rubygems_mfa_required: 'true'
|
151
|
+
github_repo: https://github.com/djberg96/sys-uname
|
152
|
+
post_install_message:
|
117
153
|
rdoc_options: []
|
118
154
|
require_paths:
|
119
155
|
- lib
|
@@ -128,10 +164,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
164
|
- !ruby/object:Gem::Version
|
129
165
|
version: '0'
|
130
166
|
requirements: []
|
131
|
-
rubygems_version: 3.
|
132
|
-
signing_key:
|
167
|
+
rubygems_version: 3.3.26
|
168
|
+
signing_key:
|
133
169
|
specification_version: 4
|
134
170
|
summary: An interface for returning uname (platform) information
|
135
171
|
test_files:
|
136
|
-
- spec/sys_uname_spec.rb
|
137
172
|
- spec/sys_platform_spec.rb
|
173
|
+
- spec/sys_uname_spec.rb
|
metadata.gz.sig
CHANGED
Binary file
|
data/README.rdoc
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
== Description
|
2
|
-
A cross-platform Ruby interface for getting operating system information. The name
|
3
|
-
comes from the Unix 'uname' command, but this library works on MS Windows as well.
|
4
|
-
|
5
|
-
== Prerequisites
|
6
|
-
ffi 1.0 or later
|
7
|
-
|
8
|
-
== Installation
|
9
|
-
gem install sys-uname
|
10
|
-
|
11
|
-
== Synopsis
|
12
|
-
require 'sys/uname' # require 'sys-uname' works, too
|
13
|
-
|
14
|
-
# You now have Sys::Uname and Sys::Platform classes available.
|
15
|
-
|
16
|
-
# Get full information about your system
|
17
|
-
p Sys::Uname.uname
|
18
|
-
|
19
|
-
# Check individual platform details about your system
|
20
|
-
p Sys::Platform.linux? # => true
|
21
|
-
p Sys::Platform::ARCH # => :x86_64
|
22
|
-
|
23
|
-
== Solaris Notes
|
24
|
-
Users on SunOS get several extra methods: architecture, platform,
|
25
|
-
hw_serial, hw_provider, srpc_domain, isa_list, and dhcp_cache.
|
26
|
-
|
27
|
-
== BSD flavors, including OS X
|
28
|
-
Users on BSD platforms get the extra Uname.model method.
|
29
|
-
|
30
|
-
== HP-UX Notes
|
31
|
-
HP-UX users get the extra Uname.id_number method. This is actually a
|
32
|
-
String, not a Fixnum, because that's how it's defined in the utsname
|
33
|
-
struct.
|
34
|
-
|
35
|
-
== MS Windows Notes
|
36
|
-
The C version for Windows has been completely scrapped in favor of an OLE
|
37
|
-
plus WMI approach. It is pure Ruby. Please see the MSDN documentation for
|
38
|
-
the Win32_OperatingSystem class for a complete list of what each of the
|
39
|
-
UnameStruct members mean.
|
40
|
-
|
41
|
-
== The Platform Class
|
42
|
-
This was added both as a nicer way to check simple information about your
|
43
|
-
system, and as a replacement for the old 'Platform' gem which is no longer
|
44
|
-
maintained.
|
45
|
-
|
46
|
-
== Future Plans
|
47
|
-
I may dump the "Uname" portion of this library, and rename the project
|
48
|
-
to just sys-platform.
|
49
|
-
|
50
|
-
== Documentation
|
51
|
-
For more details, see the 'uname.rdoc' file under the 'doc' directory.
|