win32-file-stat 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ == 1.2.5 - 5-Apr-2007
2
+ * Now runs -w clean.
3
+
1
4
  == 1.2.4 - 22-Jan-2007
2
5
  * Improved block device handling.
3
6
 
data/MANIFEST CHANGED
@@ -1,11 +1,9 @@
1
- CHANGES
2
- README
3
- MANIFEST
4
- install.rb
5
- win32-file-stat.gemspec
6
-
7
- lib/win32/file/stat.rb
8
-
9
- test/sometestfile.exe
10
- test/sometestfile.txt
11
- test/tc_file_stat.rb
1
+ * CHANGES
2
+ * README
3
+ * MANIFEST
4
+ * install.rb
5
+ * win32-file-stat.gemspec
6
+ * lib/win32/file/stat.rb
7
+ * test/sometestfile.exe
8
+ * test/sometestfile.txt
9
+ * test/tc_file_stat.rb
data/install.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'rbconfig'
2
- require 'ftools'
2
+ require 'fileutils'
3
3
  include Config
4
4
 
5
5
  sitelibdir = CONFIG['sitelibdir']
@@ -9,4 +9,4 @@ file = 'lib\win32\file\stat.rb'
9
9
 
10
10
  Dir.mkdir(basedir) unless File.exists?(basedir)
11
11
  Dir.mkdir(installdir) unless File.exists?(installdir)
12
- File.copy(file, installdir, true)
12
+ FileUtils.cp(file, installdir, :verbose => true)
@@ -21,12 +21,27 @@ class File::Stat
21
21
  include Windows::Volume
22
22
  include Comparable
23
23
 
24
- VERSION = '1.2.4'
24
+ VERSION = '1.2.5'
25
25
 
26
26
  # Defined in Ruby's win32.h. Not meant for public consumption.
27
27
  S_IWGRP = 0020
28
28
  S_IWOTH = 0002
29
29
 
30
+ # This is the only way to avoid a -w warning for initialize
31
+ private
32
+ alias old_init initialize
33
+
34
+ public
35
+
36
+ # Make this package -w clean
37
+ undef_method(:atime, :blksize, :blockdev?, :blocks, :chardev?, :ctime)
38
+ undef_method(:dev, :directory?, :executable?, :file?, :ftype, :gid, :ino)
39
+ undef_method(:executable_real?, :grpowned?, :mode, :mtime, :nlink, :owned?)
40
+ undef_method(:pipe?, :readable?, :rdev, :readable_real?, :setgid?, :setuid?)
41
+ undef_method(:size, :size?, :socket?, :sticky?, :symlink?, :uid, :writable?)
42
+ undef_method(:writable_real?, :zero?)
43
+ undef_method(:pretty_print, :inspect, :<=>)
44
+
30
45
  attr_reader :dev_major, :dev_minor, :rdev_major, :rdev_minor
31
46
 
32
47
  # Creates and returns a File::Stat object, which encapsulate common status
data/test/tc_file_stat.rb CHANGED
@@ -36,7 +36,7 @@ class TC_Win32_File_Stat < Test::Unit::TestCase
36
36
  end
37
37
 
38
38
  def test_version
39
- assert_equal('1.2.4', File::Stat::VERSION)
39
+ assert_equal('1.2.5', File::Stat::VERSION)
40
40
  end
41
41
 
42
42
  # One or more tests will fail if the archive attribute on @file is not set.
@@ -2,7 +2,7 @@ require "rubygems"
2
2
 
3
3
  spec = Gem::Specification.new do |gem|
4
4
  gem.name = "win32-file-stat"
5
- gem.version = "1.2.4"
5
+ gem.version = "1.2.5"
6
6
  gem.author = "Daniel J. Berger"
7
7
  gem.email = "djberg96@gmail.com"
8
8
  gem.homepage = "http://www.rubyforge.org/projects/win32utils"
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.0.8
2
+ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: win32-file-stat
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.2.4
7
- date: 2007-01-22 00:00:00 -07:00
6
+ version: 1.2.5
7
+ date: 2007-04-05 00:00:00 -06:00
8
8
  summary: A File::Stat class tailored to MS Windows
9
9
  require_paths:
10
10
  - lib