I am using version 0.3.2
Checked it 3 ways
1. irb - non-conclusive
C:\Documents and Settings\Owner>irb
irb(main):001:0> require 'win32/dir'
=> true
irb(main):002:0> Dir::VERSION
(irb):2: warning: toplevel constant VERSION referenced by Dir::VERSION
=> "1.8.6"
2. extra from rdoc on my system
Class Dir
In: lib/win32/dir.rb
Parent: Object
Methods
create_junction empty? junction?
Included Modules
Windows::Directory Windows::Shell Windows::Error Windows::File
Windows::DeviceIO
Constants
VERSION = '0.3.2'
3. gem list
C:\Documents and Settings\Owner>gem query -n win32-dir
*** LOCAL GEMS ***
win32-dir (0.3.2)
Extra constants and methods for the Dir class on Windows.
It may have been placed in version 0.3.1 but it is not in version
0.3.2
···
On Aug 14, 3:46 pm, Daniel Berger <djber...@gmail.com> wrote:
On Aug 14, 1:15 pm, bbiker <ren...@nc.rr.com> wrote:
> It does not seem to work on my system
> C:\Documents and Settings\Owner>irb
> irb(main):001:0> require 'win32/dir'
> => true
> irb(main):002:0> Dir::empty?('./')
> NoMethodError: undefined method `empty?' for Dir:Class
> from (irb):2> using win32-dir version 0.3.2
I doubt it:
C:\>irb
irb(main):001:0> require 'win32/dir'
=> true
irb(main):002:0> Dir.empty?('./')
=> falseYou're probably using 0.3.0. The Dir.empty? method was added in 0.3.1.
You can check the Dir::VERSION.Regards,
Dan