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 +4 -4
- data/CHANGES +3 -0
- data/Rakefile +0 -1
- data/certs/djberg96_pub.pem +21 -21
- data/lib/win32/file.rb +2 -2
- data/test/test_win32_file_misc.rb +1 -1
- data/test/test_win32_file_path.rb +6 -6
- data/win32-file.gemspec +1 -2
- metadata +4 -26
- checksums.yaml.gz.sig +0 -2
- data.tar.gz.sig +0 -3
- metadata.gz.sig +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 445b8e78d5cf93fbe76eac7ebadbd71d22520b2b
|
4
|
+
data.tar.gz: 6390c20610098969a28467e021e89c84c1ff678d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63d6b41973b10410af73670e37fbd20f080f618308d494be831b32b71c1d568ceecb717fad67309a01d1ff1aaba5f088834b4a89becf72c266d77b3a7955e040
|
7
|
+
data.tar.gz: 5571eac4665cebd5bcc4806eaabbde04facd6173f3b9cf620bc4e6aa63f5896fb5252f730b78ea39c95988bcddcaf012a623f10c2409920424de52619f32165d
|
data/CHANGES
CHANGED
data/Rakefile
CHANGED
data/certs/djberg96_pub.pem
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
2
|
-
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
|
3
|
-
cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
4
|
-
MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
|
5
|
-
ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT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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-----
|
data/lib/win32/file.rb
CHANGED
@@ -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.
|
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::
|
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.
|
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
|
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("
|
43
|
-
assert_equal("
|
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("
|
57
|
-
assert_equal("
|
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
|
64
|
+
assert_equal("C:/", File.basename("C:/"))
|
65
65
|
assert_equal("bar", File.basename("C:/foo/bar//"))
|
66
66
|
end
|
67
67
|
|
data/win32-file.gemspec
CHANGED
@@ -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.
|
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.
|
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.
|
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.
|
checksums.yaml.gz.sig
DELETED
data.tar.gz.sig
DELETED
metadata.gz.sig
DELETED