win32-dir 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba7a9adc26183f9771184c4faad59d88fbc5bd22
4
- data.tar.gz: 62e1d08549b6806816874e5299600394f9ebf5e3
3
+ metadata.gz: 0abef2cc454787626bc32d89de4bc1d1dc1e20ce
4
+ data.tar.gz: b042f768bc130b2b5eb6eaa7699b8804c3218d4c
5
5
  SHA512:
6
- metadata.gz: 7e388fc8eff13cf9cf188e82bdab4a7d4ee6164910daaa61889baebd69bc0269d0973a1d6d8bff4b993d33975071ffc73d358dbfd54e125a366e9bd5bf1ba7bd
7
- data.tar.gz: b2fcfbe2d31741398df8cb55220f8256af771247dbb4bcaf7564e3c0bdbeceba50f4578e71cb46a0aced31380456ba3281bb9c4dfb7a66f814c797d9630cc371
6
+ metadata.gz: f3a6e1540dcecf539acc55d0de4dc465f9c811d0ab427a7fdd12e3f458718f19ba5ea9bea5121ed8b0a34b5fb200390d59e4a861c3cff68cfadce90da01c072b
7
+ data.tar.gz: 3e3c8f2ef6369233dcdba2fcbc8048c5ae18db79da9d24417ba6265bf13b43d64fae0d73ac6d067b6fad5a6edf4fa241e210f91c260541780762fdd45fc11f21
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.4.4 - 22-Sep-2013
2
+ * Yet another encoding fix. Thanks go to Rob Reynolds for the patch.
3
+
1
4
  == 0.4.3 - 24-Jul-2013
2
5
  * Changed the Dir.read_junction and CSIDL constant strings so that they
3
6
  use the default external encoding instead of UTF-16LE. This means that
data/README CHANGED
@@ -251,9 +251,15 @@ Dir::TEMPLATES
251
251
 
252
252
  == License
253
253
  Artistic 2.0
254
+
255
+ == Contributions
256
+ Although this library is free, please consider having your company
257
+ setup a gittip if used by your company professionally.
258
+
259
+ http://www.gittip.com/djberg96/
254
260
 
255
261
  == Copyright
256
- (C) 2003-2012 Daniel J. Berger, All Rights Reserved
262
+ (C) 2003-2013 Daniel J. Berger, All Rights Reserved
257
263
 
258
264
  == Warranty
259
265
  This package is provided "as is" and without any express or
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.3'
11
+ VERSION = '0.4.4'
12
12
 
13
13
  # CSIDL constants
14
14
  csidl = Hash[
@@ -88,6 +88,7 @@ class Dir
88
88
  if SHGetFolderLocation(0, value, 0, 0, ptr) == 0
89
89
  if SHGetFileInfo(ptr.read_long, 0, info, info.size, flags) != 0
90
90
  path = info[:szDisplayName].to_s
91
+ path.force_encoding(Encoding.default_external)
91
92
  end
92
93
  end
93
94
  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.3', Dir::VERSION)
28
+ assert_equal('0.4.4', 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.3'
5
+ spec.version = '0.4.4'
6
6
  spec.authors = ['Daniel J. Berger', 'Park Heesob']
7
7
  spec.license = 'Artistic 2.0'
8
8
  spec.email = 'djberg96@gmail.com'
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.3
4
+ version: 0.4.4
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-07-24 00:00:00.000000000 Z
12
+ date: 2013-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi