win32-file-stat 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +3 -0
- data/MANIFEST +9 -11
- data/install.rb +2 -2
- data/lib/win32/file/stat.rb +16 -1
- data/test/tc_file_stat.rb +1 -1
- data/win32-file-stat.gemspec +1 -1
- metadata +3 -3
data/CHANGES
CHANGED
data/MANIFEST
CHANGED
@@ -1,11 +1,9 @@
|
|
1
|
-
CHANGES
|
2
|
-
README
|
3
|
-
MANIFEST
|
4
|
-
install.rb
|
5
|
-
win32-file-stat.gemspec
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
test/
|
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 '
|
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
|
-
|
12
|
+
FileUtils.cp(file, installdir, :verbose => true)
|
data/lib/win32/file/stat.rb
CHANGED
@@ -21,12 +21,27 @@ class File::Stat
|
|
21
21
|
include Windows::Volume
|
22
22
|
include Comparable
|
23
23
|
|
24
|
-
VERSION = '1.2.
|
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
data/win32-file-stat.gemspec
CHANGED
@@ -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.
|
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.
|
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.
|
7
|
-
date: 2007-
|
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
|