win32-file-security 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -0
- data/CHANGES +45 -36
- data/MANIFEST +18 -16
- data/README +47 -47
- data/Rakefile +66 -69
- data/appveyor.yml +50 -0
- data/certs/djberg96_pub.pem +21 -0
- data/lib/win32-file-security.rb +1 -0
- data/lib/win32/file/security.rb +959 -959
- data/lib/win32/file/security/constants.rb +149 -149
- data/lib/win32/file/security/functions.rb +63 -63
- data/lib/win32/file/security/helper.rb +23 -23
- data/lib/win32/file/security/structs.rb +68 -68
- data/test/test_win32_file_security_acls.rb +34 -28
- data/test/test_win32_file_security_constants.rb +54 -54
- data/test/test_win32_file_security_encryption.rb +90 -90
- data/test/test_win32_file_security_ffi.rb +33 -33
- data/test/test_win32_file_security_ownership.rb +174 -174
- data/test/test_win32_file_security_permissions.rb +88 -87
- data/test/test_win32_file_security_version.rb +13 -13
- data/win32-file-security.gemspec +27 -27
- metadata +30 -5
- metadata.gz.sig +0 -0
@@ -1,13 +1,13 @@
|
|
1
|
-
#############################################################################
|
2
|
-
# test_win32_file_security_version.rb
|
3
|
-
#
|
4
|
-
# Just a test for the version of the library.
|
5
|
-
#############################################################################
|
6
|
-
require 'test-unit'
|
7
|
-
require 'win32/file/security'
|
8
|
-
|
9
|
-
class TC_Win32_File_Security_Version < Test::Unit::TestCase
|
10
|
-
test "version is set to expected value" do
|
11
|
-
assert_equal('1.0.
|
12
|
-
end
|
13
|
-
end
|
1
|
+
#############################################################################
|
2
|
+
# test_win32_file_security_version.rb
|
3
|
+
#
|
4
|
+
# Just a test for the version of the library.
|
5
|
+
#############################################################################
|
6
|
+
require 'test-unit'
|
7
|
+
require 'win32/file/security'
|
8
|
+
|
9
|
+
class TC_Win32_File_Security_Version < Test::Unit::TestCase
|
10
|
+
test "version is set to expected value" do
|
11
|
+
assert_equal('1.0.7', File::WIN32_FILE_SECURITY_VERSION)
|
12
|
+
end
|
13
|
+
end
|
data/win32-file-security.gemspec
CHANGED
@@ -1,27 +1,27 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
|
3
|
-
Gem::Specification.new do |spec|
|
4
|
-
spec.name = 'win32-file-security'
|
5
|
-
spec.version = '1.0.
|
6
|
-
spec.authors = ['Daniel J. Berger', 'Park Heesob']
|
7
|
-
spec.license = 'Artistic 2.0'
|
8
|
-
spec.email = 'djberg96@gmail.com'
|
9
|
-
spec.homepage = 'http://github.com/djberg96/win32-file-security'
|
10
|
-
spec.summary = 'File security methods for the File class on MS Windows'
|
11
|
-
spec.test_files = Dir['test/test*']
|
12
|
-
spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
|
13
|
-
|
14
|
-
|
15
|
-
spec.extra_rdoc_files
|
16
|
-
|
17
|
-
spec.add_dependency('ffi')
|
18
|
-
spec.add_development_dependency('test-unit')
|
19
|
-
spec.add_development_dependency('win32-security')
|
20
|
-
spec.add_development_dependency('sys-admin')
|
21
|
-
|
22
|
-
spec.description = <<-EOF
|
23
|
-
The win32-file-security library adds security related methods to the
|
24
|
-
core File class for MS Windows. This includes the ability to get or
|
25
|
-
set permissions, as well as encrypt or decrypt files.
|
26
|
-
EOF
|
27
|
-
end
|
1
|
+
require 'rubygems'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = 'win32-file-security'
|
5
|
+
spec.version = '1.0.7'
|
6
|
+
spec.authors = ['Daniel J. Berger', 'Park Heesob']
|
7
|
+
spec.license = 'Artistic 2.0'
|
8
|
+
spec.email = 'djberg96@gmail.com'
|
9
|
+
spec.homepage = 'http://github.com/djberg96/win32-file-security'
|
10
|
+
spec.summary = 'File security methods for the File class on MS Windows'
|
11
|
+
spec.test_files = Dir['test/test*']
|
12
|
+
spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
|
13
|
+
spec.cert_chain = Dir['certs/djberg96_pub.pem']
|
14
|
+
|
15
|
+
spec.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
|
16
|
+
|
17
|
+
spec.add_dependency('ffi')
|
18
|
+
spec.add_development_dependency('test-unit')
|
19
|
+
spec.add_development_dependency('win32-security')
|
20
|
+
spec.add_development_dependency('sys-admin')
|
21
|
+
|
22
|
+
spec.description = <<-EOF
|
23
|
+
The win32-file-security library adds security related methods to the
|
24
|
+
core File class for MS Windows. This includes the ability to get or
|
25
|
+
set permissions, as well as encrypt or decrypt files.
|
26
|
+
EOF
|
27
|
+
end
|
metadata
CHANGED
@@ -1,15 +1,37 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win32-file-security
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
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
|
-
|
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: 2015-11-05 00:00:00.000000000 Z
|
13
35
|
dependencies:
|
14
36
|
- !ruby/object:Gem::Dependency
|
15
37
|
name: ffi
|
@@ -83,6 +105,9 @@ files:
|
|
83
105
|
- MANIFEST
|
84
106
|
- README
|
85
107
|
- Rakefile
|
108
|
+
- appveyor.yml
|
109
|
+
- certs/djberg96_pub.pem
|
110
|
+
- lib/win32-file-security.rb
|
86
111
|
- lib/win32/file/security.rb
|
87
112
|
- lib/win32/file/security/constants.rb
|
88
113
|
- lib/win32/file/security/functions.rb
|
@@ -115,8 +140,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
140
|
- !ruby/object:Gem::Version
|
116
141
|
version: '0'
|
117
142
|
requirements: []
|
118
|
-
rubyforge_project:
|
119
|
-
rubygems_version: 2.4.
|
143
|
+
rubyforge_project:
|
144
|
+
rubygems_version: 2.4.8
|
120
145
|
signing_key:
|
121
146
|
specification_version: 4
|
122
147
|
summary: File security methods for the File class on MS Windows
|
metadata.gz.sig
ADDED
Binary file
|