win32-dir 0.4.5 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc264e17d1f2e530579a3a8fcc10b3551a3614f9
4
- data.tar.gz: 33499544ea2cd22078cc9270de270cb66a19d1f9
3
+ metadata.gz: 25ed1b84d472bc93aebe5c716279d7257ee195f8
4
+ data.tar.gz: 034fa5750ff550ee2d16b576141764ada29afe99
5
5
  SHA512:
6
- metadata.gz: aa1143644ec25286a8e5da0842e549c4d43435b8322f9c266ee153ff06c3122adb4c1469f500687881b85476b05111636b7c88a7d5b87f3f90c9127cdf41207c
7
- data.tar.gz: c18966592a496f45d5338a3c3772d30692975d96031914f7522f586dc42fb0a369e9489ec374de9ec3cf6ebff440663c92e64e4bc78baf909faa2ff1fcd7151d
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
@@ -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.5'
11
+ VERSION = '0.4.6'
12
12
 
13
13
  # CSIDL constants
14
14
  csidl = Hash[
@@ -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
@@ -25,7 +25,7 @@ class TC_Win32_Dir < Test::Unit::TestCase
25
25
  end
26
26
 
27
27
  test "version number is set to expected value" do
28
- assert_equal('0.4.5', Dir::VERSION)
28
+ assert_equal('0.4.6', Dir::VERSION)
29
29
  end
30
30
 
31
31
  test 'glob handles backslashes' do
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'
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.5
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-09-23 00:00:00.000000000 Z
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.0.3
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.