sys-uname 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -0
- data/Rakefile +2 -7
- data/ext/extconf.rb +1 -1
- data/ext/{uname.c → sys/uname.c} +2 -1
- data/test/tc_uname.rb +1 -1
- metadata +46 -39
data/CHANGES
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
== 0.8.2 - 22-Nov-2007
|
2
|
+
* Fixed an issue where Ruby no longer parsed a certain type of date that
|
3
|
+
MS Windows uses. See RubyForge Bug #10646 for more information.
|
4
|
+
|
1
5
|
== 0.8.1 - 29-Aug-2007
|
2
6
|
* Made a minor modification to the build script for Linux. It turns out Linux
|
3
7
|
has sysctl, but not the necessary mibs for the Uname.model method. Thanks go
|
data/Rakefile
CHANGED
@@ -6,12 +6,10 @@ 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
|
-
FileUtils.rm_rf('sys') if File.exists?('sys')
|
10
|
-
|
11
9
|
Dir.chdir('ext') do
|
12
10
|
unless RUBY_PLATFORM.match('mswin')
|
13
|
-
FileUtils.rm_rf('sys') if File.exists?('sys')
|
14
11
|
build_file = 'uname.' + Config::CONFIG['DLEXT']
|
12
|
+
rm "sys/#{build_file}" if File.exists?("sys/#{build_file}")
|
15
13
|
sh 'make distclean' if File.exists?(build_file)
|
16
14
|
end
|
17
15
|
end
|
@@ -24,15 +22,13 @@ task :build => [:clean] do
|
|
24
22
|
ruby 'extconf.rb'
|
25
23
|
sh 'make'
|
26
24
|
build_file = 'uname.' + Config::CONFIG['DLEXT']
|
27
|
-
|
28
|
-
FileUtils.cp(build_file, 'sys')
|
25
|
+
cp build_file, 'sys' # For testing
|
29
26
|
end
|
30
27
|
end
|
31
28
|
end
|
32
29
|
|
33
30
|
desc "Run the example program"
|
34
31
|
task :example => [:build] do
|
35
|
-
Dir.mkdir('sys') unless File.exists?('sys')
|
36
32
|
if RUBY_PLATFORM.match('mswin')
|
37
33
|
sh 'ruby -Ilib examples/uname_test.rb'
|
38
34
|
else
|
@@ -43,7 +39,6 @@ end
|
|
43
39
|
if RUBY_PLATFORM.match('mswin')
|
44
40
|
desc "Install the sys-uname package (non-gem)"
|
45
41
|
task :install do
|
46
|
-
dir = File.join(CONFIG['sitelibdir'], 'sys')
|
47
42
|
Dir.mkdir(dir) unless File.exists?(dir)
|
48
43
|
FileUtils.cp('lib/sys/uname.rb', dir, :verbose => true)
|
49
44
|
end
|
data/ext/extconf.rb
CHANGED
data/ext/{uname.c → sys/uname.c}
RENAMED
@@ -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.2"
|
10
10
|
|
11
11
|
/* Solaris */
|
12
12
|
#ifdef HAVE_SYS_SYSTEMINFO_H
|
@@ -298,6 +298,7 @@ void Init_uname()
|
|
298
298
|
#endif
|
299
299
|
NULL);
|
300
300
|
|
301
|
+
/* 0.8.2: The version of this library */
|
301
302
|
rb_define_const(cUname, "VERSION", rb_str_new2(SYS_UNAME_VERSION));
|
302
303
|
}
|
303
304
|
|
data/test/tc_uname.rb
CHANGED
@@ -18,7 +18,7 @@ class TC_Uname < Test::Unit::TestCase
|
|
18
18
|
assert_not_nil(Uname::VERSION)
|
19
19
|
assert_nothing_raised{ Uname::VERSION }
|
20
20
|
assert_kind_of(String, Uname::VERSION)
|
21
|
-
assert_equal('0.8.
|
21
|
+
assert_equal('0.8.2', Uname::VERSION)
|
22
22
|
end
|
23
23
|
|
24
24
|
def test_machine
|
metadata
CHANGED
@@ -1,33 +1,30 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.4
|
3
|
-
specification_version: 1
|
4
2
|
name: sys-uname
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.8.
|
7
|
-
date: 2007-08-29 00:00:00 -06:00
|
8
|
-
summary: An interface for returning uname (platform) information
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email: djberg96@gmail.com
|
12
|
-
homepage: http://www.rubyforge.org/projects/sysutils
|
13
|
-
rubyforge_project: sysutils
|
14
|
-
description: An interface for returning uname (platform) information
|
15
|
-
autorequire:
|
16
|
-
default_executable:
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: true
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 1.8.0
|
24
|
-
version:
|
4
|
+
version: 0.8.2
|
25
5
|
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
6
|
authors:
|
30
7
|
- Daniel J. Berger
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2007-11-22 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: An interface for returning uname (platform) information
|
17
|
+
email: djberg96@gmail.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions:
|
21
|
+
- ext/extconf.rb
|
22
|
+
extra_rdoc_files:
|
23
|
+
- CHANGES
|
24
|
+
- README
|
25
|
+
- MANIFEST
|
26
|
+
- doc/uname.txt
|
27
|
+
- ext/sys/uname.c
|
31
28
|
files:
|
32
29
|
- doc/uname.txt
|
33
30
|
- test/tc_uname.rb
|
@@ -36,22 +33,32 @@ files:
|
|
36
33
|
- Rakefile
|
37
34
|
- README
|
38
35
|
- ext/extconf.rb
|
39
|
-
- ext/uname.c
|
40
|
-
|
41
|
-
|
36
|
+
- ext/sys/uname.c
|
37
|
+
has_rdoc: true
|
38
|
+
homepage: http://www.rubyforge.org/projects/sysutils
|
39
|
+
post_install_message:
|
42
40
|
rdoc_options: []
|
43
41
|
|
44
|
-
|
45
|
-
-
|
46
|
-
|
47
|
-
|
48
|
-
-
|
49
|
-
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
42
|
+
require_paths:
|
43
|
+
- lib
|
44
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 1.8.0
|
49
|
+
version:
|
50
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: "0"
|
55
|
+
version:
|
54
56
|
requirements: []
|
55
57
|
|
56
|
-
|
57
|
-
|
58
|
+
rubyforge_project: sysutils
|
59
|
+
rubygems_version: 0.9.5
|
60
|
+
signing_key:
|
61
|
+
specification_version: 2
|
62
|
+
summary: An interface for returning uname (platform) information
|
63
|
+
test_files:
|
64
|
+
- test/tc_uname.rb
|