win32-security 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGES +5 -0
- data/Rakefile +6 -1
- data/lib/win32/security.rb +1 -1
- data/lib/win32/security/windows/constants.rb +2 -0
- data/lib/win32/security/windows/functions.rb +6 -6
- data/lib/win32/security/windows/structs.rb +2 -0
- data/test/test_acl.rb +4 -0
- data/test/test_security.rb +5 -1
- data/win32-security.gemspec +2 -1
- metadata +31 -24
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 24c9e39da5dad049f0d5458344d7e260d3827657
|
4
|
+
data.tar.gz: 58219464a85da5b713726db30ad824bd9799bfb8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e4aa6445f22883bdf06b1538e0d08480f9cb0b36e33844c58f645816ac1d74cacff3edc81e04c4c40d6ceae9caf57a101de263837c34e3f1bfadf7bf40f00c18
|
7
|
+
data.tar.gz: 839ff7dcc84f298254c7813668bbcf8ed819193be4268b3608255fc21d9dd1f987abab833c8df72c1ed085b18fe8df9b927cf5c7c8de2cd9c40da21bae771562
|
data/CHANGES
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
== 0.2.4 - 8-Nov-2013
|
2
|
+
* Added rake as a development dependency.
|
3
|
+
* Attempted to make FFI related constants and structs more private.
|
4
|
+
* Updated the gem:create task for Rubygems 2.
|
5
|
+
|
1
6
|
== 0.2.3 - 27-Jun-2013
|
2
7
|
* Fixed a bug where a sid could be inappropriately stripped. Thanks
|
3
8
|
go to Josh Cooper for the spot.
|
data/Rakefile
CHANGED
@@ -9,7 +9,12 @@ namespace :gem do
|
|
9
9
|
desc "Create the win32-security gem"
|
10
10
|
task :create => [:clean] do
|
11
11
|
spec = eval(IO.read('win32-security.gemspec'))
|
12
|
-
Gem::
|
12
|
+
if Gem::VERSION < "2.0.0"
|
13
|
+
Gem::Builder.new(spec).build
|
14
|
+
else
|
15
|
+
require 'rubygems/package'
|
16
|
+
Gem::Package.build(spec)
|
17
|
+
end
|
13
18
|
end
|
14
19
|
|
15
20
|
desc "Install the win32-security gem"
|
data/lib/win32/security.rb
CHANGED
@@ -5,12 +5,12 @@ module Windows
|
|
5
5
|
module Functions
|
6
6
|
extend FFI::Library
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
private
|
9
|
+
|
10
|
+
# Wrapper method for attach_function + private
|
11
|
+
def self.attach_pfunc(*args)
|
12
|
+
attach_function(*args)
|
13
|
+
private args[0]
|
14
14
|
end
|
15
15
|
|
16
16
|
typedef :ulong, :dword
|
data/test/test_acl.rb
CHANGED
data/test/test_security.rb
CHANGED
@@ -9,11 +9,15 @@ 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.2.
|
12
|
+
assert_equal('0.2.4', Win32::Security::VERSION)
|
13
13
|
end
|
14
14
|
|
15
15
|
test "elevated security basic functionality" do
|
16
16
|
assert_respond_to(Win32::Security, :elevated_security?)
|
17
17
|
assert_boolean(Win32::Security.elevated_security?)
|
18
18
|
end
|
19
|
+
|
20
|
+
test "ffi functions are private" do
|
21
|
+
assert_not_respond_to(Win32::Security, :CloseHandle)
|
22
|
+
end
|
19
23
|
end
|
data/win32-security.gemspec
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'win32-security'
|
5
|
-
spec.version = '0.2.
|
5
|
+
spec.version = '0.2.4'
|
6
6
|
spec.authors = ['Daniel J. Berger', 'Park Heesob']
|
7
7
|
spec.license = 'Artistic 2.0'
|
8
8
|
spec.email = 'djberg96@gmail.com'
|
@@ -16,6 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
|
17
17
|
spec.add_dependency('ffi')
|
18
18
|
|
19
|
+
spec.add_development_dependency('rake')
|
19
20
|
spec.add_development_dependency('test-unit', '>= 2.5.0')
|
20
21
|
spec.add_development_dependency('sys-admin', '>= 1.6.0')
|
21
22
|
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win32-security
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Daniel J. Berger
|
@@ -10,59 +9,68 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-
|
12
|
+
date: 2013-11-08 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: ffi
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - '>='
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: '0'
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
|
-
- -
|
25
|
+
- - '>='
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '>='
|
29
40
|
- !ruby/object:Gem::Version
|
30
41
|
version: '0'
|
31
42
|
- !ruby/object:Gem::Dependency
|
32
43
|
name: test-unit
|
33
44
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
45
|
requirements:
|
36
|
-
- -
|
46
|
+
- - '>='
|
37
47
|
- !ruby/object:Gem::Version
|
38
48
|
version: 2.5.0
|
39
49
|
type: :development
|
40
50
|
prerelease: false
|
41
51
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
52
|
requirements:
|
44
|
-
- -
|
53
|
+
- - '>='
|
45
54
|
- !ruby/object:Gem::Version
|
46
55
|
version: 2.5.0
|
47
56
|
- !ruby/object:Gem::Dependency
|
48
57
|
name: sys-admin
|
49
58
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
59
|
requirements:
|
52
|
-
- -
|
60
|
+
- - '>='
|
53
61
|
- !ruby/object:Gem::Version
|
54
62
|
version: 1.6.0
|
55
63
|
type: :development
|
56
64
|
prerelease: false
|
57
65
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
66
|
requirements:
|
60
|
-
- -
|
67
|
+
- - '>='
|
61
68
|
- !ruby/object:Gem::Version
|
62
69
|
version: 1.6.0
|
63
|
-
description:
|
64
|
-
|
65
|
-
|
70
|
+
description: |2
|
71
|
+
The win32-security library provides an interface for dealing with
|
72
|
+
security related aspects of MS Windows. At the moment it provides an
|
73
|
+
interface for inspecting or creating SID's.
|
66
74
|
email: djberg96@gmail.com
|
67
75
|
executables: []
|
68
76
|
extensions: []
|
@@ -89,27 +97,26 @@ files:
|
|
89
97
|
homepage: https://github.com/djberg96/win32-security
|
90
98
|
licenses:
|
91
99
|
- Artistic 2.0
|
100
|
+
metadata: {}
|
92
101
|
post_install_message:
|
93
102
|
rdoc_options: []
|
94
103
|
require_paths:
|
95
104
|
- lib
|
96
105
|
required_ruby_version: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
106
|
requirements:
|
99
|
-
- -
|
107
|
+
- - '>='
|
100
108
|
- !ruby/object:Gem::Version
|
101
109
|
version: '0'
|
102
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
|
-
none: false
|
104
111
|
requirements:
|
105
|
-
- -
|
112
|
+
- - '>='
|
106
113
|
- !ruby/object:Gem::Version
|
107
114
|
version: '0'
|
108
115
|
requirements: []
|
109
116
|
rubyforge_project: win32utils
|
110
|
-
rubygems_version:
|
117
|
+
rubygems_version: 2.0.3
|
111
118
|
signing_key:
|
112
|
-
specification_version:
|
119
|
+
specification_version: 4
|
113
120
|
summary: A library for dealing with aspects of Windows security.
|
114
121
|
test_files:
|
115
122
|
- test/test_acl.rb
|