win32-security 0.4.1 → 0.5.0
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 +0 -0
- data/CHANGES +5 -0
- data/MANIFEST +1 -0
- data/README +2 -8
- data/appveyor.yml +2 -0
- data/lib/win32/security.rb +1 -1
- data/lib/win32/security/sid.rb +4 -4
- data/test/test_security.rb +1 -1
- data/test/test_sid.rb +1 -1
- data/win32-security.gemspec +2 -2
- metadata +4 -4
- 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: 45a01c26c629faaaa1fc2959c1f2969d3462db9b
|
4
|
+
data.tar.gz: aa4df4ca62dd506a51ea4372e68ec4398e9b09bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 241df6da0c9de2fff0689b60bc492f356e10d159362ad6036272ab28ac491fce500139f7f04dfcf9b28b2974c0ee8dbe05b60073d2e13a6bd2671ced343ba903
|
7
|
+
data.tar.gz: 8ce11c40ba87abd194693f8c5c9a9238f5355017d415023c6ab7a2c814da34084b448f54506fb191f2faee3282e6d6c143c628c03572d757871db187527de6ad
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGES
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
== 0.5.0 - 12-Jun-2016
|
2
|
+
* Changed license to Apache 2.0.
|
3
|
+
* Fixed a bug in the SID class where arguments weren't encoded properly
|
4
|
+
in Ruby 1.9.x and 2.0.x.
|
5
|
+
|
1
6
|
== 0.4.1 - 9-May-2016
|
2
7
|
* Added the ffi-win32-extensions dependency, and removed the helper file.
|
3
8
|
* The SID.new method is now a bit more flexible with regards to failures of
|
data/MANIFEST
CHANGED
data/README
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
None at the moment. Suggestions welcome.
|
28
28
|
|
29
29
|
== Known Issues
|
30
|
-
There appears to be an issue with 64-bit versions of JRuby. I believe
|
30
|
+
There appears to be an issue with 64-bit versions of JRuby. I believe it
|
31
31
|
is related to this issue: https://github.com/jruby/jruby/issues/1315. There
|
32
32
|
is nothing I can do about it here.
|
33
33
|
|
@@ -35,14 +35,8 @@
|
|
35
35
|
|
36
36
|
https://github.com/djberg96/win32-security
|
37
37
|
|
38
|
-
== Contributions
|
39
|
-
Although this library is free, please consider having your company
|
40
|
-
setup a tip if used by your company professionally.
|
41
|
-
|
42
|
-
https://gratipay.com/~djberg96/
|
43
|
-
|
44
38
|
== License
|
45
|
-
|
39
|
+
Apache 2.0
|
46
40
|
|
47
41
|
== Copyright
|
48
42
|
(C) 2003-2016 Daniel J. Berger
|
data/appveyor.yml
CHANGED
@@ -30,6 +30,8 @@ install:
|
|
30
30
|
|
31
31
|
gem update --system > $null
|
32
32
|
|
33
|
+
if ((gem query -i ffi-win32-extensions) -eq $False){ gem install ffi-win32-extensions --no-document }
|
34
|
+
|
33
35
|
if ((gem query -i sys-admin) -eq $False){ gem install sys-admin --no-document }
|
34
36
|
|
35
37
|
if ((gem query -i test-unit -v ">= 3.0") -eq $False){ gem install test-unit --no-document }
|
data/lib/win32/security.rb
CHANGED
data/lib/win32/security/sid.rb
CHANGED
@@ -14,7 +14,7 @@ module Win32
|
|
14
14
|
extend Windows::Security::Functions
|
15
15
|
|
16
16
|
# The version of the Win32::Security::SID class.
|
17
|
-
VERSION = '0.2.
|
17
|
+
VERSION = '0.2.5'
|
18
18
|
|
19
19
|
# Some constant SID's for your convenience, in string format.
|
20
20
|
# See http://support.microsoft.com/kb/243330 for details.
|
@@ -252,7 +252,7 @@ module Win32
|
|
252
252
|
account_ptr = FFI::MemoryPointer.from_string(account)
|
253
253
|
|
254
254
|
bool = LookupAccountSid(
|
255
|
-
host.
|
255
|
+
host.wincode,
|
256
256
|
account_ptr,
|
257
257
|
sid,
|
258
258
|
sid_size,
|
@@ -268,8 +268,8 @@ module Win32
|
|
268
268
|
account_ptr.free
|
269
269
|
else
|
270
270
|
bool = LookupAccountName(
|
271
|
-
host.
|
272
|
-
account.
|
271
|
+
host.wincode,
|
272
|
+
account.wincode,
|
273
273
|
sid,
|
274
274
|
sid_size,
|
275
275
|
domain,
|
data/test/test_security.rb
CHANGED
@@ -9,7 +9,7 @@ require 'win32/security'
|
|
9
9
|
|
10
10
|
class TC_Win32_Security < Test::Unit::TestCase
|
11
11
|
test "version constant is set to expected value" do
|
12
|
-
assert_equal('0.
|
12
|
+
assert_equal('0.5.0', Win32::Security::VERSION)
|
13
13
|
end
|
14
14
|
|
15
15
|
test "elevated security basic functionality" do
|
data/test/test_sid.rb
CHANGED
data/win32-security.gemspec
CHANGED
@@ -2,9 +2,9 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'win32-security'
|
5
|
-
spec.version = '0.
|
5
|
+
spec.version = '0.5.0'
|
6
6
|
spec.authors = ['Daniel J. Berger', 'Park Heesob']
|
7
|
-
spec.license = '
|
7
|
+
spec.license = 'Apache 2.0'
|
8
8
|
spec.email = 'djberg96@gmail.com'
|
9
9
|
spec.homepage = 'https://github.com/djberg96/win32-security'
|
10
10
|
spec.summary = 'A library for dealing with aspects of Windows security.'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win32-security
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
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: 2016-
|
34
|
+
date: 2016-06-12 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: ffi
|
@@ -142,7 +142,7 @@ files:
|
|
142
142
|
- win32-security.gemspec
|
143
143
|
homepage: https://github.com/djberg96/win32-security
|
144
144
|
licenses:
|
145
|
-
-
|
145
|
+
- Apache 2.0
|
146
146
|
metadata: {}
|
147
147
|
post_install_message:
|
148
148
|
rdoc_options: []
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
version: '0'
|
161
161
|
requirements: []
|
162
162
|
rubyforge_project:
|
163
|
-
rubygems_version: 2.4
|
163
|
+
rubygems_version: 2.6.4
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
166
|
summary: A library for dealing with aspects of Windows security.
|
metadata.gz.sig
CHANGED
Binary file
|