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 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/lib/sys/uname.rb CHANGED
@@ -9,7 +9,7 @@ module Sys
9
9
  # This is the error raised if any of the Sys::Uname methods should fail.
10
10
  class Error < StandardError; end
11
11
 
12
- VERSION = '0.8.0'
12
+ VERSION = '0.8.1'
13
13
 
14
14
  fields = %w/
15
15
  boot_device
data/sys-uname.gemspec CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  spec = Gem::Specification.new do |gem|
4
4
  gem.name = 'sys-uname'
5
- gem.version = '0.8.0'
5
+ gem.version = '0.8.1'
6
6
  gem.author = 'Daniel J. Berger'
7
7
  gem.email = 'djberg96@gmail.com'
8
8
  gem.homepage = 'http://www.rubyforge.org/projects/sysutils'
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
@@ -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)