win32-dir 0.4.8 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +7 -0
- data/Rakefile +1 -1
- data/lib/win32/dir.rb +6 -5
- data/lib/win32/dir/constants.rb +5 -2
- data/test/test_win32_dir.rb +1 -1
- data/win32-dir.gemspec +1 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1456cbfae0e2becc75774dfc3678dc58fca89468
|
4
|
+
data.tar.gz: 6bbb444fdc4d9731fd6c0e5cd67e4b7a1f3afc8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88ae27d1fdb7064e74d7b83268f7713a9dfd8131d44a1b4cd3a957f54c761ebf6f438982e465189e6b01b4c88e14c5beba4e55559bb18a0a70db4c123570f7e6
|
7
|
+
data.tar.gz: 565f653c68141e028986476ea0608e9827f067b6c30deb7c659457f692912d9e1084177aeb26da15512c491d5fe62e5fa44d3ceedd96658ee7eedb7e7d8ba43e
|
data/CHANGES
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
== 0.4.9 - 2-Jul-2014
|
2
|
+
* Fixed the INVALID_FILE_ATTRIBUTES constant. It's only a 32-bit value.
|
3
|
+
Thanks go to Ethan Brown for the patch.
|
4
|
+
* Use relative_require instead of manually doing things.
|
5
|
+
* Removed rubyforge_project from gemspec.
|
6
|
+
* Added a string_check to the Dir.junction? method.
|
7
|
+
|
1
8
|
== 0.4.8 - 27-Apr-2014
|
2
9
|
* More closely mimic Ruby's stringiness checks for overrided methods.
|
3
10
|
|
data/Rakefile
CHANGED
data/lib/win32/dir.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
require_relative 'dir/constants'
|
2
|
+
require_relative 'dir/functions'
|
3
|
+
require_relative 'dir/structs'
|
4
4
|
|
5
5
|
class Dir
|
6
6
|
include Dir::Structs
|
@@ -8,7 +8,7 @@ class Dir
|
|
8
8
|
extend Dir::Functions
|
9
9
|
|
10
10
|
# The version of the win32-dir library.
|
11
|
-
VERSION = '0.4.
|
11
|
+
VERSION = '0.4.9'
|
12
12
|
|
13
13
|
# CSIDL constants
|
14
14
|
csidl = Hash[
|
@@ -290,7 +290,7 @@ class Dir
|
|
290
290
|
# Dir.read_junction("c:/to") # => "c:/from"
|
291
291
|
#
|
292
292
|
def self.read_junction(junction)
|
293
|
-
return false unless Dir.junction?(
|
293
|
+
return false unless Dir.junction?(junction)
|
294
294
|
|
295
295
|
junction = string_check(junction).wincode
|
296
296
|
|
@@ -376,6 +376,7 @@ class Dir
|
|
376
376
|
# Returns whether or not +path+ is a junction.
|
377
377
|
#
|
378
378
|
def self.junction?(path)
|
379
|
+
string_check(path)
|
379
380
|
bool = true
|
380
381
|
|
381
382
|
attrib = GetFileAttributesW("#{path}".wincode)
|
data/lib/win32/dir/constants.rb
CHANGED
@@ -18,6 +18,9 @@ module Dir::Constants
|
|
18
18
|
SHGFI_DISPLAYNAME = 0x000000200
|
19
19
|
SHGFI_PIDL = 0x000000008
|
20
20
|
|
21
|
-
|
22
|
-
INVALID_FILE_ATTRIBUTES =
|
21
|
+
# ((DWORD)-1)
|
22
|
+
INVALID_FILE_ATTRIBUTES = 0xFFFFFFFF
|
23
|
+
|
24
|
+
# ((HANDLE)-1)
|
25
|
+
INVALID_HANDLE_VALUE = FFI::Pointer.new(-1).address
|
23
26
|
end
|
data/test/test_win32_dir.rb
CHANGED
data/win32-dir.gemspec
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'win32-dir'
|
5
|
-
spec.version = '0.4.
|
5
|
+
spec.version = '0.4.9'
|
6
6
|
spec.authors = ['Daniel J. Berger', 'Park Heesob']
|
7
7
|
spec.license = 'Artistic 2.0'
|
8
8
|
spec.email = 'djberg96@gmail.com'
|
@@ -11,7 +11,6 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.test_file = 'test/test_win32_dir.rb'
|
12
12
|
spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
|
13
13
|
|
14
|
-
spec.rubyforge_project = 'win32utils'
|
15
14
|
spec.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
|
16
15
|
spec.required_ruby_version = '>= 1.9.2'
|
17
16
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win32-dir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-07-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
|
-
rubyforge_project:
|
100
|
+
rubyforge_project:
|
101
101
|
rubygems_version: 2.2.2
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|