win32-file 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGES +5 -0
  2. data/lib/win32/file.rb +1 -1
  3. data/win32-file.gemspec +3 -3
  4. metadata +4 -4
data/CHANGES CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.6.3 - 24-Aug-2009
2
+ * Refactored the File.directory? method so that it checks against the
3
+ INVALID_FILE_ATTRIBUTES constant instead of a hard coded value.
4
+ * Updated windows-pr dependency to 1.0.8.
5
+
1
6
  == 0.6.2 - 21-Aug-2009
2
7
  * Changed the license to Artistic 2.0.
3
8
  * Several gemspec updates, including the license and description.
@@ -493,7 +493,7 @@ class File
493
493
  def directory?(file)
494
494
  file = multi_to_wide(file)
495
495
  attributes = GetFileAttributesW(file)
496
- (attributes != -1) && (attributes & FILE_ATTRIBUTE_DIRECTORY > 0)
496
+ (attributes != INVALID_FILE_ATTRIBUTES) && (attributes & FILE_ATTRIBUTE_DIRECTORY > 0)
497
497
  end
498
498
 
499
499
  # Returns all components of the filename given in +filename+ except the
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  spec = Gem::Specification.new do |gem|
4
4
  gem.name = 'win32-file'
5
- gem.version = '0.6.2'
5
+ gem.version = '0.6.3'
6
6
  gem.authors = ['Daniel J. Berger', 'Park Heesob']
7
7
  gem.license = 'Artistic 2.0'
8
8
  gem.email = 'djberg96@gmail.com'
@@ -16,9 +16,9 @@ spec = Gem::Specification.new do |gem|
16
16
  gem.rubyforge_project = 'win32utils'
17
17
  gem.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
18
18
 
19
- gem.add_dependency('win32-api', '>= 1.4.4')
19
+ gem.add_dependency('win32-api', '>= 1.4.5')
20
20
  gem.add_dependency('win32-file-stat', '>= 1.3.2')
21
- gem.add_dependency('windows-pr', '>= 1.0.6')
21
+ gem.add_dependency('windows-pr', '>= 1.0.8')
22
22
 
23
23
  gem.add_development_dependency('test-unit', '>= 2.0.3')
24
24
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: win32-file
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-08-21 00:00:00 -06:00
13
+ date: 2009-08-24 00:00:00 -06:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -21,7 +21,7 @@ dependencies:
21
21
  requirements:
22
22
  - - ">="
23
23
  - !ruby/object:Gem::Version
24
- version: 1.4.4
24
+ version: 1.4.5
25
25
  version:
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: win32-file-stat
@@ -41,7 +41,7 @@ dependencies:
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: 1.0.6
44
+ version: 1.0.8
45
45
  version:
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: test-unit