sys-uname 0.8.0-mswin32 → 0.8.1-mswin32
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/lib/sys/uname.rb +1 -1
- data/sys-uname.gemspec +1 -1
- data/test/tc_uname.rb +1 -1
- metadata +3 -4
- data/install.rb +0 -30
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/lib/sys/uname.rb
CHANGED
data/sys-uname.gemspec
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
|
@@ -35,7 +35,6 @@ files:
|
|
35
35
|
- doc
|
36
36
|
- examples
|
37
37
|
- ext
|
38
|
-
- install.rb
|
39
38
|
- lib
|
40
39
|
- MANIFEST
|
41
40
|
- Rakefile
|
data/install.rb
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
###############################################
|
2
|
-
# install.rb
|
3
|
-
#
|
4
|
-
# This is used for MS Windows only.
|
5
|
-
###############################################
|
6
|
-
require "ftools"
|
7
|
-
require "rbconfig"
|
8
|
-
include Config
|
9
|
-
|
10
|
-
unless RUBY_PLATFORM.match('mswin')
|
11
|
-
STDERR.puts "Run 'ruby extconf.rb; make; make site-install' instead"
|
12
|
-
STDERR.puts "Exiting..."
|
13
|
-
end
|
14
|
-
|
15
|
-
sitelibdir = CONFIG["sitelibdir"]
|
16
|
-
file = nil
|
17
|
-
|
18
|
-
file = "lib/sys/uname.rb"
|
19
|
-
install_dir = sitelibdir + "/sys"
|
20
|
-
|
21
|
-
unless File.exist?(install_dir)
|
22
|
-
begin
|
23
|
-
Dir.mkdir(install_dir)
|
24
|
-
rescue Exception => e
|
25
|
-
STDERR.puts "Unable to create #{install_dir}: #{e}"
|
26
|
-
exit
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
File.copy(file, install_dir, true)
|