win32-file-security 1.0.7 → 1.0.8
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES +4 -0
- data/README +2 -2
- data/Rakefile +1 -1
- data/lib/win32/file/security.rb +4 -1
- data/test/test_win32_file_security_ownership.rb +1 -1
- data/test/test_win32_file_security_version.rb +1 -1
- data/win32-file-security.gemspec +1 -1
- metadata +14 -8
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 13222b20957cf07e915a765e58f73b346848f4d3
|
|
4
|
+
data.tar.gz: b9c0812d391bdbbf17aa2a382f07e6fef24b1779
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3504a7d9644fddbae680008525f4fe247d1bf089afa02319305944745859545a0efbd1553faa5fb5b7325b26d0427186433082c31956b60eb16289ced3cecc97
|
|
7
|
+
data.tar.gz: db76d56db392c6c07d648b76742a9e4e31d4c2db9fd5634cb2347cb2ac31e73722136348ad74b3fd949f4f222ff92cdc0a2b4221d2791db6f45fdeb9196b0414
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/CHANGES
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
= 1.0.8 - 30-Jan-2016
|
|
2
|
+
* Fixed an issue for account names that do not contain a backslash. Thanks go
|
|
3
|
+
to Ben Jansen for the spot and patch.
|
|
4
|
+
|
|
1
5
|
= 1.0.7 - 5-Nov-2015
|
|
2
6
|
* Updated some tests so that they ignore case on ownership and permissions
|
|
3
7
|
checks. Caught by Appveyor.
|
data/README
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
p File.grpowned?('file.txt')
|
|
22
22
|
|
|
23
23
|
== Notes
|
|
24
|
-
Some of
|
|
24
|
+
Some of these methods already exist in the win32-file gem, so
|
|
25
25
|
you may not need this gem if you already have win32-file installed.
|
|
26
26
|
|
|
27
27
|
== Known issues or bugs
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
Artistic 2.0
|
|
36
36
|
|
|
37
37
|
== Copyright
|
|
38
|
-
(C) 2003-
|
|
38
|
+
(C) 2003-2016, Daniel J. Berger, All Rights Reserved
|
|
39
39
|
|
|
40
40
|
== Warranty
|
|
41
41
|
This package is provided "as is" and without any express or
|
data/Rakefile
CHANGED
|
@@ -10,7 +10,7 @@ namespace :gem do
|
|
|
10
10
|
require 'rubygems/package'
|
|
11
11
|
spec = eval(IO.read('win32-file-security.gemspec'))
|
|
12
12
|
spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
|
|
13
|
-
Gem::Package.build(spec)
|
|
13
|
+
Gem::Package.build(spec, true)
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
desc "Install the win32-file-security gem"
|
data/lib/win32/file/security.rb
CHANGED
|
@@ -12,7 +12,7 @@ class File
|
|
|
12
12
|
extend Windows::File::Functions
|
|
13
13
|
|
|
14
14
|
# The version of the win32-file library
|
|
15
|
-
WIN32_FILE_SECURITY_VERSION = '1.0.
|
|
15
|
+
WIN32_FILE_SECURITY_VERSION = '1.0.8'
|
|
16
16
|
|
|
17
17
|
class << self
|
|
18
18
|
remove_method(:chown)
|
|
@@ -407,6 +407,9 @@ class File
|
|
|
407
407
|
|
|
408
408
|
if ['BUILTIN', 'NT AUTHORITY'].include?(server.upcase)
|
|
409
409
|
wide_server = nil
|
|
410
|
+
elsif account.nil?
|
|
411
|
+
wide_server = nil
|
|
412
|
+
account = server
|
|
410
413
|
else
|
|
411
414
|
wide_server = server.wincode
|
|
412
415
|
end
|
|
@@ -37,7 +37,7 @@ class TC_Win32_File_Security_Ownership < Test::Unit::TestCase
|
|
|
37
37
|
@@domain = in_domain?
|
|
38
38
|
|
|
39
39
|
if Win32::Security.elevated_security?
|
|
40
|
-
Sys::Admin.add_user(:name => @@temp, :description => "Delete Me")
|
|
40
|
+
Sys::Admin.add_user(:name => @@temp, :description => "Delete Me", :password => 'a1b2c3D4ekd92!38d')
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
43
|
|
|
@@ -8,6 +8,6 @@ require 'win32/file/security'
|
|
|
8
8
|
|
|
9
9
|
class TC_Win32_File_Security_Version < Test::Unit::TestCase
|
|
10
10
|
test "version is set to expected value" do
|
|
11
|
-
assert_equal('1.0.
|
|
11
|
+
assert_equal('1.0.8', File::WIN32_FILE_SECURITY_VERSION)
|
|
12
12
|
end
|
|
13
13
|
end
|
data/win32-file-security.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel J. Berger
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
|
|
32
32
|
tGSHgAmcLlkdGgan182qsE/4kKM=
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date:
|
|
34
|
+
date: 2016-01-31 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: ffi
|
|
@@ -101,18 +101,24 @@ extra_rdoc_files:
|
|
|
101
101
|
- CHANGES
|
|
102
102
|
- MANIFEST
|
|
103
103
|
files:
|
|
104
|
-
- CHANGES
|
|
105
|
-
- MANIFEST
|
|
106
|
-
- README
|
|
107
|
-
- Rakefile
|
|
108
104
|
- appveyor.yml
|
|
105
|
+
- certs
|
|
109
106
|
- certs/djberg96_pub.pem
|
|
110
|
-
-
|
|
111
|
-
- lib
|
|
107
|
+
- CHANGES
|
|
108
|
+
- lib
|
|
109
|
+
- lib/win32
|
|
110
|
+
- lib/win32/file
|
|
111
|
+
- lib/win32/file/security
|
|
112
112
|
- lib/win32/file/security/constants.rb
|
|
113
113
|
- lib/win32/file/security/functions.rb
|
|
114
114
|
- lib/win32/file/security/helper.rb
|
|
115
115
|
- lib/win32/file/security/structs.rb
|
|
116
|
+
- lib/win32/file/security.rb
|
|
117
|
+
- lib/win32-file-security.rb
|
|
118
|
+
- MANIFEST
|
|
119
|
+
- Rakefile
|
|
120
|
+
- README
|
|
121
|
+
- test
|
|
116
122
|
- test/test_win32_file_security_acls.rb
|
|
117
123
|
- test/test_win32_file_security_constants.rb
|
|
118
124
|
- test/test_win32_file_security_encryption.rb
|
metadata.gz.sig
CHANGED
|
Binary file
|