sys-uname 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +7 -1
- data/MANIFEST +2 -3
- data/Rakefile +5 -1
- data/ext/extconf.rb +4 -1
- data/ext/uname.c +1 -1
- data/test/tc_uname.rb +1 -1
- metadata +4 -4
data/CHANGES
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
== 0.8.1 - 29-Aug-2007
|
2
|
+
* Made a minor modification to the build script for Linux. It turns out Linux
|
3
|
+
has sysctl, but not the necessary mibs for the Uname.model method. Thanks go
|
4
|
+
to Mickey Knox (?) for the spot.
|
5
|
+
* Removed the install.rb file. The code from that program was integrated
|
6
|
+
directly into the Rakefile.
|
7
|
+
|
1
8
|
== 0.8.0 - 10-Apr-2007
|
2
9
|
* The Uname.model method should now work on most BSD platforms, not just OS X,
|
3
10
|
since it uses the sysctl() function behind the scenes.
|
@@ -8,7 +15,6 @@
|
|
8
15
|
this package.
|
9
16
|
* Removed some pre-setup code from the test suite that was no longer necessary
|
10
17
|
as a result of the Rake test task.
|
11
|
-
* No code changes.
|
12
18
|
|
13
19
|
== 0.7.4 - 19-Nov-2006
|
14
20
|
* Internal layout changes, doc updates and gemspec improvements.
|
data/MANIFEST
CHANGED
data/Rakefile
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
require 'rake'
|
2
2
|
require 'rake/clean'
|
3
3
|
require 'rake/testtask'
|
4
|
+
require 'rbconfig'
|
5
|
+
include Config
|
4
6
|
|
5
7
|
desc "Clean the build files for the sys-uname source for UNIX systems"
|
6
8
|
task :clean do
|
@@ -41,7 +43,9 @@ end
|
|
41
43
|
if RUBY_PLATFORM.match('mswin')
|
42
44
|
desc "Install the sys-uname package (non-gem)"
|
43
45
|
task :install do
|
44
|
-
|
46
|
+
dir = File.join(CONFIG['sitelibdir'], 'sys')
|
47
|
+
Dir.mkdir(dir) unless File.exists?(dir)
|
48
|
+
FileUtils.cp('lib/sys/uname.rb', dir, :verbose => true)
|
45
49
|
end
|
46
50
|
else
|
47
51
|
desc "Install the sys-uname package"
|
data/ext/extconf.rb
CHANGED
data/ext/uname.c
CHANGED
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.1', Uname::VERSION)
|
22
22
|
end
|
23
23
|
|
24
24
|
def test_machine
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.4
|
3
3
|
specification_version: 1
|
4
4
|
name: sys-uname
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.8.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.8.1
|
7
|
+
date: 2007-08-29 00:00:00 -06:00
|
8
8
|
summary: An interface for returning uname (platform) information
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -33,8 +33,8 @@ files:
|
|
33
33
|
- test/tc_uname.rb
|
34
34
|
- CHANGES
|
35
35
|
- MANIFEST
|
36
|
-
- README
|
37
36
|
- Rakefile
|
37
|
+
- README
|
38
38
|
- ext/extconf.rb
|
39
39
|
- ext/uname.c
|
40
40
|
test_files:
|