win32-dir 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +5 -0
- data/lib/win32/dir.rb +1 -1
- data/lib/win32/dir/constants.rb +7 -2
- data/test/test_win32_dir.rb +1 -1
- data/win32-dir.gemspec +3 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25ed1b84d472bc93aebe5c716279d7257ee195f8
|
4
|
+
data.tar.gz: 034fa5750ff550ee2d16b576141764ada29afe99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d497ce2b9d5e8ad5ffc218b1b135b833145a473dd2a639c4c043ca7d6424914a6cb05ec0cc1977dac7e54451e51de03908b59668b12a6b0449794cc4b8bbc9e0
|
7
|
+
data.tar.gz: b41580cef0a66660329635b7ea5ebbe613ec5f856ca0883d00de049240c52086af88dade08d45254939f42e8cb5c824a47b3ec651e14186992bb767a41583f69
|
data/CHANGES
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
== 0.4.6 - 21-Oct-2013
|
2
|
+
* Fixed the INVALID_HANDLE_VALUE and INVALID_FILE_ATTRIBUTES constants for
|
3
|
+
64-bit versions of Ruby.
|
4
|
+
* Added Rake as a development dependency.
|
5
|
+
|
1
6
|
== 0.4.5 - 23-Sep-2013
|
2
7
|
* Yet another encoding fix, this time one that affected JRuby.
|
3
8
|
* Fixed the Dir[] and Dir.glob methods so they match the spec. Thanks go
|
data/lib/win32/dir.rb
CHANGED
data/lib/win32/dir/constants.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
+
require 'ffi'
|
2
|
+
|
1
3
|
module Dir::Constants
|
4
|
+
include FFI::Library
|
5
|
+
|
2
6
|
private
|
3
7
|
|
4
8
|
FILE_DEVICE_FILE_SYSTEM = 0x00000009
|
5
|
-
INVALID_HANDLE_VALUE = 0xFFFFFFFF
|
6
|
-
INVALID_FILE_ATTRIBUTES = 0xFFFFFFFF
|
7
9
|
FILE_FLAG_OPEN_REPARSE_POINT = 0x00200000
|
8
10
|
FILE_FLAG_BACKUP_SEMANTICS = 0x02000000
|
9
11
|
FILE_ATTRIBUTE_DIRECTORY = 0x00000010
|
@@ -15,4 +17,7 @@ module Dir::Constants
|
|
15
17
|
GENERIC_WRITE = 0x40000000
|
16
18
|
SHGFI_DISPLAYNAME = 0x000000200
|
17
19
|
SHGFI_PIDL = 0x000000008
|
20
|
+
|
21
|
+
INVALID_HANDLE_VALUE = FFI::Pointer.new(-1).address
|
22
|
+
INVALID_FILE_ATTRIBUTES = FFI::Pointer.new(-1).address
|
18
23
|
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.6'
|
6
6
|
spec.authors = ['Daniel J. Berger', 'Park Heesob']
|
7
7
|
spec.license = 'Artistic 2.0'
|
8
8
|
spec.email = 'djberg96@gmail.com'
|
@@ -16,6 +16,8 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.required_ruby_version = '>= 1.9.2'
|
17
17
|
|
18
18
|
spec.add_dependency('ffi', '>= 1.0.0')
|
19
|
+
|
20
|
+
spec.add_development_dependency('rake')
|
19
21
|
spec.add_development_dependency('test-unit', '>= 2.4.0')
|
20
22
|
|
21
23
|
spec.description = <<-EOF
|
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.6
|
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: 2013-
|
12
|
+
date: 2013-10-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
@@ -25,6 +25,20 @@ dependencies:
|
|
25
25
|
- - '>='
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 1.0.0
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
28
42
|
- !ruby/object:Gem::Dependency
|
29
43
|
name: test-unit
|
30
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
98
|
version: '0'
|
85
99
|
requirements: []
|
86
100
|
rubyforge_project: win32utils
|
87
|
-
rubygems_version: 2.
|
101
|
+
rubygems_version: 2.1.9
|
88
102
|
signing_key:
|
89
103
|
specification_version: 4
|
90
104
|
summary: Extra constants and methods for the Dir class on Windows.
|