sys-uname 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +9 -0
- data/README +20 -21
- data/Rakefile +57 -43
- data/doc/uname.txt +2 -2
- data/examples/uname_test.rb +41 -0
- data/ext/sys/uname.c +2 -2
- data/sys-uname.gemspec +27 -0
- data/test/{tc_uname.rb → test_sys_uname.rb} +53 -79
- metadata +27 -14
data/CHANGES
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
== 0.8.4 - 29-Jan-2010
|
2
|
+
* Bug fix for Windows 7, which appears to have removed the QuantumLength and
|
3
|
+
QuantumType members of the Win32_OperatingSystem class. Thanks go to Mark
|
4
|
+
Seymour for the spot. RubyForge bug # 27645.
|
5
|
+
* Changed license to Artistic 2.0.
|
6
|
+
* Refactored the Rakefile and gemspec considerably. The gem building code is
|
7
|
+
now all inlined within the Rakefile build task itself.
|
8
|
+
* Minor doc updates and some code reformatting.
|
9
|
+
|
1
10
|
== 0.8.3 - 26-Apr-2008
|
2
11
|
* Added an explicit "require 'time'" in the Windows version because recent
|
3
12
|
versions of Ruby now need it.
|
data/README
CHANGED
@@ -1,37 +1,36 @@
|
|
1
|
-
=
|
2
|
-
|
3
|
-
|
4
|
-
=== MS Windows
|
5
|
-
Ruby 1.8.2 or later. Earlier versions segfault due to OLE bugs.
|
6
|
-
Active WMI service (normally on by default).
|
1
|
+
= Description
|
2
|
+
A Ruby interface for getting operating system information. The name comes
|
3
|
+
from the Unix 'uname' command, but this library works on Windows as well.
|
7
4
|
|
8
5
|
= Installation
|
9
|
-
|
10
|
-
|
6
|
+
gem install sys-uname
|
7
|
+
|
8
|
+
# If that doesn't work and you're on Windows try this:
|
9
|
+
gem install sys-uname --platform x86-mingw32
|
11
10
|
|
12
11
|
= Synopsis
|
13
|
-
|
14
|
-
|
12
|
+
require 'sys/uname'
|
13
|
+
include Sys
|
15
14
|
|
16
|
-
|
15
|
+
p Uname.uname
|
17
16
|
|
18
17
|
= Solaris Notes
|
19
|
-
|
20
|
-
|
18
|
+
Folks building this package on SunOS get two extra methods: architecture()
|
19
|
+
and platform()
|
21
20
|
|
22
21
|
= BSD flavors, including OS X
|
23
|
-
|
22
|
+
Users on BSD platforms get the extra Uname.model method.
|
24
23
|
|
25
24
|
= HP-UX Notes
|
26
|
-
|
27
|
-
|
28
|
-
|
25
|
+
HP-UX users get the extra Uname.id_number method. This is actually a
|
26
|
+
String, not a Fixnum, because that's how it's defined in the utsname
|
27
|
+
struct.
|
29
28
|
|
30
29
|
= MS Windows Notes
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
30
|
+
The C version for Windows has been completely scrapped in favor of an OLE
|
31
|
+
plus WMI approach. It is pure Ruby. Please see the MSDN documentation for
|
32
|
+
the Win32_OperatingSystem class for a complete list of what each of the
|
33
|
+
UnameStruct members mean.
|
35
34
|
|
36
35
|
= Documentation
|
37
36
|
For more details, see the 'uname.txt' file under the 'doc' directory.
|
data/Rakefile
CHANGED
@@ -6,66 +6,80 @@ include Config
|
|
6
6
|
|
7
7
|
desc "Clean the build files for the sys-uname source for UNIX systems"
|
8
8
|
task :clean do
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
9
|
+
Dir.chdir('ext') do
|
10
|
+
unless CONFIG['host_os'] =~ /mswin|windows|mingw|cygwin|dos/i
|
11
|
+
build_file = 'uname.' + Config::CONFIG['DLEXT']
|
12
|
+
rm "sys/#{build_file}" if File.exists?("sys/#{build_file}")
|
13
|
+
sh 'make distclean' if File.exists?(build_file)
|
14
|
+
end
|
15
|
+
end
|
16
16
|
end
|
17
17
|
|
18
|
-
desc "Build the sys-uname
|
18
|
+
desc "Build the sys-uname library on UNIX systems (but don't install it)"
|
19
19
|
task :build => [:clean] do
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
20
|
+
Dir.chdir('ext') do
|
21
|
+
unless CONFIG['host_os'] =~ /mswin|windows|mingw|cygwin|dos/i
|
22
|
+
ruby 'extconf.rb'
|
23
|
+
sh 'make'
|
24
|
+
build_file = 'uname.' + Config::CONFIG['DLEXT']
|
25
|
+
cp build_file, 'sys' # For testing
|
26
|
+
end
|
27
|
+
end
|
28
28
|
end
|
29
29
|
|
30
30
|
desc "Run the example program"
|
31
31
|
task :example => [:build] do
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
32
|
+
if CONFIG['host_os'] =~ /mswin|windows|mingw|cygwin|dos/i
|
33
|
+
sh 'ruby -Ilib examples/uname_test.rb'
|
34
|
+
else
|
35
|
+
sh 'ruby -Iext examples/uname_test.rb'
|
36
|
+
end
|
37
37
|
end
|
38
38
|
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
namespace 'sys' do
|
40
|
+
desc "Install the sys-uname library (system)"
|
41
|
+
task :install do
|
42
|
+
if CONFIG['host_os'] =~ /mswin|windows|mingw|cygwin|dos/i
|
43
|
+
dir = File.join(CONFIG['sitelibdir'], 'sys')
|
42
44
|
Dir.mkdir(dir) unless File.exists?(dir)
|
43
45
|
FileUtils.cp('lib/sys/uname.rb', dir, :verbose => true)
|
44
|
-
|
45
|
-
else
|
46
|
-
desc "Install the sys-uname package"
|
47
|
-
task :install => [:build] do
|
46
|
+
else
|
48
47
|
Dir.chdir('ext') do
|
49
|
-
|
48
|
+
sh 'make install'
|
50
49
|
end
|
51
|
-
|
50
|
+
end
|
51
|
+
end
|
52
52
|
end
|
53
53
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
54
|
+
namespace 'gem' do
|
55
|
+
desc "Build the sys-uname gem"
|
56
|
+
task :build do
|
57
|
+
spec = eval(IO.read('sys-uname.gemspec'))
|
58
|
+
if CONFIG['host_os'] =~ /windows|dos|mswin|mingw|cygwin/i
|
59
|
+
spec.files = spec.files.reject{ |f| f.include?('ext') }
|
60
|
+
spec.platform = Gem::Platform::CURRENT
|
61
|
+
else
|
62
|
+
spec.files = spec.files.reject{ |f| f.include?('lib') }
|
63
|
+
spec.extensions = ['ext/extconf.rb']
|
64
|
+
spec.extra_rdoc_files += ['ext/sys/uname.c']
|
65
|
+
end
|
66
|
+
Gem::Builder.new(spec).build
|
67
|
+
end
|
68
|
+
|
69
|
+
desc "Install the sys-uname gem"
|
70
|
+
task :install => [:build] do
|
71
|
+
file = Dir['sys-uname*.gem'].first
|
72
|
+
sh "gem install #{file}"
|
73
|
+
end
|
59
74
|
end
|
60
75
|
|
61
76
|
desc "Run the test suite"
|
62
77
|
Rake::TestTask.new("test") do |t|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
t.test_files = FileList['test/tc_uname.rb']
|
78
|
+
if CONFIG['host_os'] =~ /mswin|windows|mingw|cygwin|dos/i
|
79
|
+
t.libs << 'lib'
|
80
|
+
else
|
81
|
+
task :test => :build
|
82
|
+
t.libs << 'ext'
|
83
|
+
t.libs.delete('lib')
|
84
|
+
end
|
71
85
|
end
|
data/doc/uname.txt
CHANGED
@@ -109,10 +109,10 @@ Uname.id
|
|
109
109
|
Add additional info for Linux, Solaris, BSD.
|
110
110
|
|
111
111
|
== License
|
112
|
-
|
112
|
+
Artistic 2.0
|
113
113
|
|
114
114
|
== Copyright
|
115
|
-
(C) 2002-
|
115
|
+
(C) 2002-2010 Daniel J. Berger
|
116
116
|
All Rights Reserved
|
117
117
|
|
118
118
|
== Warranty
|
@@ -0,0 +1,41 @@
|
|
1
|
+
########################################################################
|
2
|
+
# uname_test.rb
|
3
|
+
#
|
4
|
+
# Generic test script for general futzing. Modify as you see fit. This
|
5
|
+
# should generally be run via the 'rake example' task.
|
6
|
+
########################################################################
|
7
|
+
require 'sys/uname'
|
8
|
+
include Sys
|
9
|
+
|
10
|
+
puts "VERSION: " + Uname::VERSION
|
11
|
+
puts 'Nodename: ' + Uname.nodename
|
12
|
+
puts 'Sysname: ' + Uname.sysname
|
13
|
+
puts 'Version: ' + Uname.version
|
14
|
+
puts 'Release: ' + Uname.release
|
15
|
+
puts 'Machine: ' + Uname.machine # May be "unknown" on Win32
|
16
|
+
|
17
|
+
if RUBY_PLATFORM =~ /sun|solaris/i
|
18
|
+
print "\nSolaris specific tests\n"
|
19
|
+
puts "==========================="
|
20
|
+
puts 'Architecture: ' + Uname.architecture
|
21
|
+
puts 'Platform: ' + Uname.platform
|
22
|
+
puts 'Instruction Set List: ' + Uname.isa_list.split.join(", ")
|
23
|
+
puts 'Hardware Provider: ' + Uname.hw_provider
|
24
|
+
puts 'Serial Number: ' + Uname.hw_serial_number.to_s
|
25
|
+
puts 'SRPC Domain: ' + Uname.srpc_domain # might be empty
|
26
|
+
puts 'DHCP Cache: ' + Uname.dhcp_cache # might be empty
|
27
|
+
end
|
28
|
+
|
29
|
+
if RUBY_PLATFORM =~ /powerpc|darwin|bsd|mach/i
|
30
|
+
print "\nBSD/OS X specific tests\n"
|
31
|
+
puts "======================="
|
32
|
+
puts 'Model: ' + Uname.model
|
33
|
+
end
|
34
|
+
|
35
|
+
if RUBY_PLATFORM =~ /hpux/i
|
36
|
+
print "\nHP-UX specific tests\n"
|
37
|
+
puts "========================"
|
38
|
+
puts "ID: " + Uname.id
|
39
|
+
end
|
40
|
+
|
41
|
+
print "\nTest finished successfully\n"
|
data/ext/sys/uname.c
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
#include <ruby.h>
|
7
7
|
#include <sys/utsname.h>
|
8
8
|
|
9
|
-
#define SYS_UNAME_VERSION "0.8.
|
9
|
+
#define SYS_UNAME_VERSION "0.8.4"
|
10
10
|
|
11
11
|
/* Solaris */
|
12
12
|
#ifdef HAVE_SYS_SYSTEMINFO_H
|
@@ -298,7 +298,7 @@ void Init_uname()
|
|
298
298
|
#endif
|
299
299
|
NULL);
|
300
300
|
|
301
|
-
/* 0.8.
|
301
|
+
/* 0.8.4: The version of this library */
|
302
302
|
rb_define_const(cUname, "VERSION", rb_str_new2(SYS_UNAME_VERSION));
|
303
303
|
}
|
304
304
|
|
data/sys-uname.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = 'sys-uname'
|
5
|
+
spec.version = '0.8.4'
|
6
|
+
spec.license = 'Artistic 2.0'
|
7
|
+
spec.author = 'Daniel J. Berger'
|
8
|
+
spec.email = 'djberg96@gmail.com'
|
9
|
+
spec.homepage = 'http://www.rubyforge.org/projects/sysutils'
|
10
|
+
spec.platform = Gem::Platform::RUBY
|
11
|
+
spec.summary = 'An interface for returning system platform information'
|
12
|
+
spec.test_file = 'test/test_sys_uname.rb'
|
13
|
+
spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
|
14
|
+
|
15
|
+
spec.extra_rdoc_files = ['CHANGES', 'README', 'MANIFEST', 'doc/uname.txt']
|
16
|
+
spec.rubyforge_project = 'sysutils'
|
17
|
+
|
18
|
+
spec.add_development_dependency('test-unit', '>= 2.0.6')
|
19
|
+
|
20
|
+
spec.description = <<-EOF
|
21
|
+
The sys-uname library provides an interface for gathering information
|
22
|
+
about your current platform. The library is named after the Unix 'uname'
|
23
|
+
command but also works on MS Windows. Available information includes
|
24
|
+
OS name, OS version, system name and so on. Additional information is
|
25
|
+
available for certain platforms.
|
26
|
+
EOF
|
27
|
+
end
|
@@ -1,26 +1,27 @@
|
|
1
1
|
##############################################################################
|
2
|
-
#
|
2
|
+
# test_sys_uname.rb
|
3
3
|
#
|
4
4
|
# Test suite for the sys-uname package. This test suite should be run via
|
5
5
|
# the 'rake test' task.
|
6
6
|
##############################################################################
|
7
|
-
require '
|
7
|
+
require 'rubygems'
|
8
|
+
gem 'test-unit'
|
9
|
+
|
8
10
|
require 'test/unit'
|
11
|
+
require 'sys/uname'
|
9
12
|
require 'rbconfig'
|
10
13
|
include Sys
|
11
|
-
include Config
|
12
|
-
|
13
|
-
# For testing purposes only
|
14
|
-
module Boolean; end
|
15
|
-
class TrueClass; include Boolean; end
|
16
|
-
class FalseClass; include Boolean; end
|
17
14
|
|
18
|
-
class
|
15
|
+
class TC_Sys_Uname < Test::Unit::TestCase
|
16
|
+
def self.startup
|
17
|
+
@@host_os = Config::CONFIG['host_os']
|
18
|
+
end
|
19
|
+
|
19
20
|
def test_version_constant
|
20
21
|
assert_not_nil(Uname::VERSION)
|
21
22
|
assert_nothing_raised{ Uname::VERSION }
|
22
23
|
assert_kind_of(String, Uname::VERSION)
|
23
|
-
assert_equal('0.8.
|
24
|
+
assert_equal('0.8.4', Uname::VERSION)
|
24
25
|
end
|
25
26
|
|
26
27
|
def test_machine
|
@@ -54,98 +55,71 @@ class TC_Uname < Test::Unit::TestCase
|
|
54
55
|
end
|
55
56
|
|
56
57
|
def test_architecture
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
else
|
62
|
-
puts '"architecture" test skipped on this platform'
|
63
|
-
end
|
58
|
+
omit_unless(@@host_os =~ /sunos|solaris/i, "Solaris only")
|
59
|
+
assert_respond_to(Uname, :architecture)
|
60
|
+
assert_nothing_raised{ Uname.architecture }
|
61
|
+
assert_kind_of(String, Uname.architecture)
|
64
62
|
end
|
65
63
|
|
66
64
|
def test_platform
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
else
|
72
|
-
puts '"platform" test skipped on this platform'
|
73
|
-
end
|
65
|
+
omit_unless(@@host_os =~ /sunos|solaris/i, "Solaris only")
|
66
|
+
assert_respond_to(Uname, :platform)
|
67
|
+
assert_nothing_raised{ Uname.platform }
|
68
|
+
assert_kind_of(String, Uname.platform)
|
74
69
|
end
|
75
70
|
|
76
71
|
def test_isa_list
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
else
|
82
|
-
puts '"isa_list" test skipped on this platform'
|
83
|
-
end
|
72
|
+
omit_unless(@@host_os =~ /sunos|solaris/i, "Solaris only")
|
73
|
+
assert_respond_to(Uname, :isa_list)
|
74
|
+
assert_nothing_raised{ Uname.isa_list }
|
75
|
+
assert_kind_of(String, Uname.isa_list)
|
84
76
|
end
|
85
77
|
|
86
78
|
def test_hw_provider
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
else
|
92
|
-
puts '"hw_provider" test skipped on this platform'
|
93
|
-
end
|
79
|
+
omit_unless(@@host_os =~ /sunos|solaris/i, "Solaris only")
|
80
|
+
assert_respond_to(Uname,:hw_provider)
|
81
|
+
assert_nothing_raised{ Uname.hw_provider }
|
82
|
+
assert_kind_of(String, Uname.hw_provider)
|
94
83
|
end
|
95
84
|
|
96
85
|
def test_hw_serial_number
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
else
|
102
|
-
puts '"hw_serial_number" test skipped on this platform'
|
103
|
-
end
|
86
|
+
omit_unless(@@host_os =~ /sunos|solaris/i, "Solaris only")
|
87
|
+
assert_respond_to(Uname, :hw_serial_number)
|
88
|
+
assert_nothing_raised{ Uname.hw_serial_number }
|
89
|
+
assert_kind_of(Integer, Uname.hw_serial_number)
|
104
90
|
end
|
105
91
|
|
106
92
|
def test_srpc_domain
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
else
|
112
|
-
puts '"srpc_domain" test skipped on this platform'
|
113
|
-
end
|
93
|
+
omit_unless(@@host_os =~ /sunos|solaris/i, "Solaris only")
|
94
|
+
assert_respond_to(Uname, :srpc_domain)
|
95
|
+
assert_nothing_raised{ Uname.srpc_domain }
|
96
|
+
assert_kind_of(String, Uname.srpc_domain)
|
114
97
|
end
|
115
98
|
|
116
99
|
def test_dhcp_cache
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
else
|
122
|
-
puts '"srpc_domain" test skipped on this platform'
|
123
|
-
end
|
100
|
+
omit_unless(@@host_os =~ /sunos|solaris/i, "Solaris only")
|
101
|
+
assert_respond_to(Uname, :dhcp_cache)
|
102
|
+
assert_nothing_raised{ Uname.dhcp_cache }
|
103
|
+
assert_kind_of(String, Uname.dhcp_cache)
|
124
104
|
end
|
125
105
|
|
126
106
|
def test_model
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
else
|
132
|
-
puts '"model" test skipped on this platform'
|
133
|
-
end
|
107
|
+
omit_unless(@@host_os =~ /darwin|powerpc|bsd|mach/i, "BSD/Darwin only")
|
108
|
+
assert_respond_to(Uname, :model)
|
109
|
+
assert_nothing_raised{ Uname.model }
|
110
|
+
assert_kind_of(String, Uname.model)
|
134
111
|
end
|
135
112
|
|
136
113
|
def test_id_number
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
else
|
142
|
-
puts '"test_id_number" test skipped on this platform'
|
143
|
-
end
|
114
|
+
omit_unless(@@host_os =~ /hpux/i, "HP-UX only")
|
115
|
+
assert_respond_to(Uname, :id_number)
|
116
|
+
assert_nothing_raised{ Uname.id_number }
|
117
|
+
assert_kind_of(String, Uname.id_number)
|
144
118
|
end
|
145
119
|
|
146
120
|
def test_uname_struct
|
147
121
|
members = %w/sysname nodename machine version release/
|
148
|
-
case CONFIG['host_os']
|
122
|
+
case Config::CONFIG['host_os']
|
149
123
|
when /sunos|solaris/i
|
150
124
|
members.push('architecture','platform')
|
151
125
|
when /powerpc|darwin/i
|
@@ -178,7 +152,7 @@ class TC_Uname < Test::Unit::TestCase
|
|
178
152
|
end
|
179
153
|
|
180
154
|
# The following tests are win32 only
|
181
|
-
if CONFIG['host_os'] =~ /mswin|windows/i
|
155
|
+
if Config::CONFIG['host_os'] =~ /mswin|windows/i
|
182
156
|
def test_boot_device
|
183
157
|
assert_nothing_raised{ Uname.uname.boot_device }
|
184
158
|
assert_kind_of(String, Uname.uname.boot_device)
|
@@ -236,7 +210,7 @@ class TC_Uname < Test::Unit::TestCase
|
|
236
210
|
|
237
211
|
def test_debug
|
238
212
|
assert_nothing_raised{ Uname.uname.debug }
|
239
|
-
|
213
|
+
assert_boolean(Uname.uname.debug)
|
240
214
|
end
|
241
215
|
|
242
216
|
def test_description
|
@@ -246,7 +220,7 @@ class TC_Uname < Test::Unit::TestCase
|
|
246
220
|
|
247
221
|
def test_distributed
|
248
222
|
assert_nothing_raised{ Uname.uname.distributed }
|
249
|
-
|
223
|
+
assert_boolean(Uname.uname.distributed)
|
250
224
|
end
|
251
225
|
|
252
226
|
# Not yet supported - WinXP or later only
|
@@ -313,7 +287,7 @@ class TC_Uname < Test::Unit::TestCase
|
|
313
287
|
|
314
288
|
def test_max_process_memory_size
|
315
289
|
assert_nothing_raised{ Uname.uname.max_process_memory_size}
|
316
|
-
assert_kind_of(
|
290
|
+
assert_kind_of(Integer, Uname.uname.max_process_memory_size)
|
317
291
|
end
|
318
292
|
|
319
293
|
def test_name
|
@@ -377,7 +351,7 @@ class TC_Uname < Test::Unit::TestCase
|
|
377
351
|
|
378
352
|
def test_primary
|
379
353
|
assert_nothing_raised{ Uname.uname.primary}
|
380
|
-
|
354
|
+
assert_boolean(Uname.uname.primary)
|
381
355
|
end
|
382
356
|
|
383
357
|
# Not yet supported - WinXP or later only
|
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: 0.8.
|
4
|
+
version: 0.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
@@ -9,11 +9,20 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-29 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
16
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: test-unit
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 2.0.6
|
24
|
+
version:
|
25
|
+
description: " The sys-uname library provides an interface for gathering information\n about your current platform. The library is named after the Unix 'uname'\n command but also works on MS Windows. Available information includes\n OS name, OS version, system name and so on. Additional information is\n available for certain platforms.\n"
|
17
26
|
email: djberg96@gmail.com
|
18
27
|
executables: []
|
19
28
|
|
@@ -26,16 +35,20 @@ extra_rdoc_files:
|
|
26
35
|
- doc/uname.txt
|
27
36
|
- ext/sys/uname.c
|
28
37
|
files:
|
29
|
-
- doc/uname.txt
|
30
|
-
- test/tc_uname.rb
|
31
38
|
- CHANGES
|
39
|
+
- doc/uname.txt
|
40
|
+
- examples/uname_test.rb
|
41
|
+
- ext/extconf.rb
|
42
|
+
- ext/sys/uname.c
|
32
43
|
- MANIFEST
|
33
44
|
- Rakefile
|
34
45
|
- README
|
35
|
-
-
|
36
|
-
-
|
46
|
+
- sys-uname.gemspec
|
47
|
+
- test/test_sys_uname.rb
|
37
48
|
has_rdoc: true
|
38
49
|
homepage: http://www.rubyforge.org/projects/sysutils
|
50
|
+
licenses:
|
51
|
+
- Artistic 2.0
|
39
52
|
post_install_message:
|
40
53
|
rdoc_options: []
|
41
54
|
|
@@ -45,7 +58,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
45
58
|
requirements:
|
46
59
|
- - ">="
|
47
60
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
61
|
+
version: "0"
|
49
62
|
version:
|
50
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
64
|
requirements:
|
@@ -56,9 +69,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
69
|
requirements: []
|
57
70
|
|
58
71
|
rubyforge_project: sysutils
|
59
|
-
rubygems_version: 1.
|
72
|
+
rubygems_version: 1.3.5
|
60
73
|
signing_key:
|
61
|
-
specification_version:
|
62
|
-
summary: An interface for returning
|
74
|
+
specification_version: 3
|
75
|
+
summary: An interface for returning system platform information
|
63
76
|
test_files:
|
64
|
-
- test/
|
77
|
+
- test/test_sys_uname.rb
|