win32-file 0.8.1 → 0.8.2

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: 87b666fc442731706ed3c080f5c6e01396d05218
4
- data.tar.gz: afbf022dcf319dca0e59cf6aa0f65c2f0ff1d7f4
3
+ metadata.gz: 445b8e78d5cf93fbe76eac7ebadbd71d22520b2b
4
+ data.tar.gz: 6390c20610098969a28467e021e89c84c1ff678d
5
5
  SHA512:
6
- metadata.gz: cf58b8481a714b0097b8a6b50c7ee926c37cea871fec60e074a840a6b3a58f471aed181f2a2aff67d28021146ebc58c434c5385b5702d1dd727aa8c42d7ae30d
7
- data.tar.gz: 583471777b9642c5411c7a001baea8024c5190e5d56f7dc7205fc787dee0b3d2fb2f65608b5440648e13d8dcc7c30f3502deef3d2e866da0c45c575fdadb3777
6
+ metadata.gz: 63d6b41973b10410af73670e37fbd20f080f618308d494be831b32b71c1d568ceecb717fad67309a01d1ff1aaba5f088834b4a89becf72c266d77b3a7955e040
7
+ data.tar.gz: 5571eac4665cebd5bcc4806eaabbde04facd6173f3b9cf620bc4e6aa63f5896fb5252f730b78ea39c95988bcddcaf012a623f10c2409920424de52619f32165d
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.8.2 - 29-May-2018
2
+ * Fixes of Pathname.parent for root directory
3
+
1
4
  == 0.8.1 - 25-Jun-2016
2
5
  * Removed the custom wstrip method, use ffi-win32-extensions instead,
3
6
  which was added as a dependency.
data/Rakefile CHANGED
@@ -9,7 +9,6 @@ namespace 'gem' do
9
9
  task :create => [:clean] do
10
10
  require 'rubygems/package'
11
11
  spec = eval(IO.read('win32-file.gemspec'))
12
- spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
13
12
  Gem::Package.build(spec, true)
14
13
  end
15
14
 
@@ -1,21 +1,21 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BA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JKoZIhvcNAQEFBQAD
15
+ ggEBAHmNOCWoDVD75zHFueY0viwGDVP1BNGFC+yXcb7u2GlK+nEMCORqzURbYPf7
16
+ tL+/hzmePIRz7i30UM//64GI1NLv9jl7nIwjhPpXpf7/lu2I9hOTsvwSumb5UiKC
17
+ /sqBxI3sfj9pr79Wpv4MuikX1XPik7Ncb7NPsJPw06Lvyc3Hkg5X2XpPtLtS+Gr2
18
+ wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
19
+ EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
20
+ tGSHgAmcLlkdGgan182qsE/4kKM=
21
+ -----END CERTIFICATE-----
@@ -10,7 +10,7 @@ class File
10
10
  extend Windows::File::Functions
11
11
 
12
12
  # The version of the win32-file library
13
- WIN32_FILE_VERSION = '0.8.1'
13
+ WIN32_FILE_VERSION = '0.8.2'
14
14
 
15
15
  class << self
16
16
  alias_method :join_orig, :join
@@ -60,7 +60,7 @@ class File
60
60
 
61
61
  # Return a root path as-is.
62
62
  if PathIsRootW(wfile)
63
- return file.tr(File::SEPARATOR, File::ALT_SEPARATOR)
63
+ return file.tr(File::ALT_SEPARATOR, File::SEPARATOR)
64
64
  end
65
65
 
66
66
  ptr = FFI::MemoryPointer.from_string(wfile)
@@ -6,7 +6,7 @@ require 'test-unit'
6
6
 
7
7
  class TC_Win32_File_Misc < Test::Unit::TestCase
8
8
  test "version constant is set to expected value" do
9
- assert_equal('0.8.1', File::WIN32_FILE_VERSION)
9
+ assert_equal('0.8.2', File::WIN32_FILE_VERSION)
10
10
  end
11
11
 
12
12
  test "ffi functions are private" do
@@ -33,14 +33,14 @@ class TC_Win32_File_Path < Test::Unit::TestCase
33
33
  assert_equal("bar", File.basename("C:\\foo\\bar"))
34
34
  assert_equal("bar", File.basename("C:\\foo\\bar\\"))
35
35
  assert_equal("foo", File.basename("C:\\foo"))
36
- assert_equal("C:\\", File.basename("C:\\"))
36
+ assert_equal("C:/", File.basename("C:\\"))
37
37
  end
38
38
 
39
39
  test "basename method handles unc paths" do
40
40
  assert_equal("baz.txt", File.basename("\\\\foo\\bar\\baz.txt"))
41
41
  assert_equal("baz", File.basename("\\\\foo\\bar\\baz"))
42
- assert_equal("\\\\foo", File.basename("\\\\foo"))
43
- assert_equal("\\\\foo\\bar", File.basename("\\\\foo\\bar"))
42
+ assert_equal("//foo", File.basename("\\\\foo"))
43
+ assert_equal("//foo/bar", File.basename("\\\\foo\\bar"))
44
44
  end
45
45
 
46
46
  test "basename method handles forward slashes in standard unix paths" do
@@ -53,15 +53,15 @@ class TC_Win32_File_Path < Test::Unit::TestCase
53
53
  end
54
54
 
55
55
  test "basename method handles forward slashes in unc unix paths" do
56
- assert_equal("\\\\foo", File.basename("//foo"))
57
- assert_equal("\\\\foo\\bar", File.basename("//foo/bar"))
56
+ assert_equal("//foo", File.basename("//foo"))
57
+ assert_equal("//foo/bar", File.basename("//foo/bar"))
58
58
  end
59
59
 
60
60
  test "basename method handles forward slashes in windows paths" do
61
61
  assert_equal("bar", File.basename("C:/foo/bar"))
62
62
  assert_equal("bar", File.basename("C:/foo/bar/"))
63
63
  assert_equal("foo", File.basename("C:/foo"))
64
- assert_equal("C:\\", File.basename("C:/"))
64
+ assert_equal("C:/", File.basename("C:/"))
65
65
  assert_equal("bar", File.basename("C:/foo/bar//"))
66
66
  end
67
67
 
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'win32-file'
5
- spec.version = '0.8.1'
5
+ spec.version = '0.8.2'
6
6
  spec.authors = ['Daniel J. Berger', 'Park Heesob']
7
7
  spec.license = 'Artistic 2.0'
8
8
  spec.email = 'djberg96@gmail.com'
@@ -10,7 +10,6 @@ Gem::Specification.new do |spec|
10
10
  spec.summary = 'Extra or redefined methods for the File class on Windows.'
11
11
  spec.test_files = Dir['test/test*']
12
12
  spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
13
- spec.cert_chain = ['certs/djberg96_pub.pem']
14
13
 
15
14
  spec.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
16
15
  spec.required_ruby_version = ">= 1.9.0"
metadata CHANGED
@@ -1,37 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: win32-file
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
8
8
  - Park Heesob
9
9
  autorequire:
10
10
  bindir: bin
11
- cert_chain:
12
- - |
13
- -----BEGIN CERTIFICATE-----
14
- MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
15
- cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
16
- MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
17
- ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
18
- bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
19
- Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
20
- S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBetdV6M
21
- gr0lV/alUr7TNVBDngbXEfTWscyXh1qd7xZ4EcOdsDktCe5G45N/o3662tPQvJsi
22
- FOF0CM/KuBsa/HL1/eoEmF4B3EKIRfTHrQ3hu20Kv3RJ88QM4ec2+0dd97uX693O
23
- zv6981fyEg+aXLkxrkViM/tz2qR2ZE0jPhHTREPYeMEgptRkTmWSKAuLVWrJEfgl
24
- DtkCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFEwe
25
- nn6bfJADmuIDiMSOzedOrL+xMB0GA1UdEQQWMBSBEmRqYmVyZzk2QGdtYWlsLmNv
26
- bTAdBgNVHRIEFjAUgRJkamJlcmc5NkBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
27
- ggEBAHmNOCWoDVD75zHFueY0viwGDVP1BNGFC+yXcb7u2GlK+nEMCORqzURbYPf7
28
- tL+/hzmePIRz7i30UM//64GI1NLv9jl7nIwjhPpXpf7/lu2I9hOTsvwSumb5UiKC
29
- /sqBxI3sfj9pr79Wpv4MuikX1XPik7Ncb7NPsJPw06Lvyc3Hkg5X2XpPtLtS+Gr2
30
- wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
31
- EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
32
- tGSHgAmcLlkdGgan182qsE/4kKM=
33
- -----END CERTIFICATE-----
34
- date: 2016-06-26 00:00:00.000000000 Z
11
+ cert_chain: []
12
+ date: 2018-05-29 00:00:00.000000000 Z
35
13
  dependencies:
36
14
  - !ruby/object:Gem::Dependency
37
15
  name: ffi
@@ -172,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
150
  version: '0'
173
151
  requirements: []
174
152
  rubyforge_project:
175
- rubygems_version: 2.6.4
153
+ rubygems_version: 2.6.14
176
154
  signing_key:
177
155
  specification_version: 4
178
156
  summary: Extra or redefined methods for the File class on Windows.
@@ -1,2 +0,0 @@
1
- HJW�K�
2
- fN� ��G��#q��`w#23�ό`-wՔy
data.tar.gz.sig DELETED
@@ -1,3 +0,0 @@
1
- �p>|��
2
- ήD��{v�1-?I� �}q.a��6o�'�NA�a�z���HI�>(}mG�ۄ�?���$%�1
3
- ���e6e�A�5f�����R�js�����•��܇t��tF�"TG�����=�P Dԥi�2?��_�:{bU�����r�Rdb�Sq�󖪳v��TmA��\/�3�dXKz��\R� t0pu���S�F7U����?8�B��?���JK&z���@����ןX{�J�#9��%��=.H
metadata.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- �bQX��b���N`��J��l8�.T!�<�Z��Zm��2;��ܣ��{�h�dT�a�B�w��QlN�'�ߍ�4A��05��7��`�D'��ڧ�"�%3+��H@P�M�^��CQ��+�NF5��N#:.�d=��$����AU�$ʉc��&\��UV�d�$��M�b�#k�e#�@y�j��0�&f
2
- ����Gg��5KvH��f����Ω:bJ�?d��c(e�'��L�(����;?`5���MQ$E��D�����6