sys-uname 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGES +4 -0
  2. data/extconf.rb +3 -3
  3. data/lib/os/unix.c +2 -2
  4. data/test/tc_uname.rb +1 -1
  5. metadata +3 -3
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.7.3 - 30-Jul-2006
2
+ * Bug fix for 64 bit platforms.
3
+ * Minor modification of the extconf.rb file.
4
+
1
5
  == 0.7.2 - 5-Jul-2006
2
6
  * Removed '?' from the struct member names on MS Windows since these are no
3
7
  longer legal.
data/extconf.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  require "mkmf"
5
5
  require "ftools"
6
6
 
7
- if File::ALT_SEPARATOR
7
+ if PLATFORM.match('mswin')
8
8
  STDERR.puts "Run 'ruby install.rb' instead for Windows"
9
9
  STDERR.puts "Exiting..."
10
10
  exit
@@ -17,8 +17,6 @@ if RUBY_PLATFORM =~ /sunos|solaris/i
17
17
  have_header("sys/systeminfo.h")
18
18
  end
19
19
 
20
- create_makefile("sys/uname")
21
-
22
20
  ########################################################################
23
21
  # Move any ".rb" files under 'lib/os/' to ".orig" to prevent mkmf from
24
22
  # installing them during the 'make site-install' phase.
@@ -26,3 +24,5 @@ create_makefile("sys/uname")
26
24
  Dir["lib/os/*.rb"].each{ |f|
27
25
  File.rename(f,"lib/os/" + File.basename(f,".rb")+".orig")
28
26
  }
27
+
28
+ create_makefile("sys/uname")
data/lib/os/unix.c CHANGED
@@ -8,7 +8,7 @@
8
8
  #include "ruby.h"
9
9
  #include <sys/utsname.h>
10
10
 
11
- #define SYS_UNAME_VERSION "0.7.2"
11
+ #define SYS_UNAME_VERSION "0.7.3"
12
12
 
13
13
  /* Solaris */
14
14
  #ifdef HAVE_SYS_SYSTEMINFO_H
@@ -290,7 +290,7 @@ void Init_uname()
290
290
  #if defined(__hpux)
291
291
  "id",
292
292
  #endif
293
- 0);
293
+ NULL);
294
294
 
295
295
  rb_define_const(cUname, "VERSION", rb_str_new2(SYS_UNAME_VERSION));
296
296
  }
data/test/tc_uname.rb CHANGED
@@ -45,7 +45,7 @@ class TC_Uname < Test::Unit::TestCase
45
45
  assert_not_nil(Uname::VERSION)
46
46
  assert_nothing_raised{ Uname::VERSION }
47
47
  assert_kind_of(String, Uname::VERSION)
48
- assert_equal("0.7.2", Uname::VERSION, "Bad version")
48
+ assert_equal("0.7.3", Uname::VERSION, "Bad version")
49
49
  end
50
50
 
51
51
  def test_machine
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: sys-uname
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.7.2
7
- date: 2006-07-05 00:00:00 -06:00
6
+ version: 0.7.3
7
+ date: 2006-07-30 00:00:00 -06:00
8
8
  summary: An interface for returning uname (platform) information
9
9
  require_paths:
10
10
  - lib
@@ -31,9 +31,9 @@ authors:
31
31
  files:
32
32
  - doc/uname.txt
33
33
  - test/tc_uname.rb
34
+ - README
34
35
  - CHANGES
35
36
  - MANIFEST
36
- - README
37
37
  - extconf.rb
38
38
  - lib/os/unix.c
39
39
  test_files: