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 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
@@ -1,12 +1,11 @@
1
- * install.rb
2
1
  * MANIFEST
3
2
  * CHANGES
4
- * Rakefile
5
3
  * README
4
+ * Rakefile
6
5
  * sys-uname.gemspec
7
6
  * doc/uname.txt
8
7
  * examples/uname_test.rb
9
8
  * ext/extconf.rb
10
9
  * ext/uname.c
11
10
  * lib/sys/uname.rb
12
- * test/tc_uname.rb
11
+ * test/tc_uname.rb
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
- sh 'ruby install.rb'
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
@@ -1,6 +1,9 @@
1
1
  require 'mkmf'
2
2
 
3
- have_func('sysctl')
3
+ # Linux has sysctl, but not the expected mibs
4
+ unless RUBY_PLATFORM.match('linux')
5
+ have_func('sysctl')
6
+ end
4
7
 
5
8
  if RUBY_PLATFORM =~ /sunos|solaris/i
6
9
  have_header('sys/systeminfo.h')
data/ext/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.0"
9
+ #define SYS_UNAME_VERSION "0.8.1"
10
10
 
11
11
  /* Solaris */
12
12
  #ifdef HAVE_SYS_SYSTEMINFO_H
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.0', Uname::VERSION)
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
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.0
7
- date: 2007-04-11 00:00:00 -06:00
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: