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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17acf08fb33a5a5e6f014622ae6425fa14773c3d
4
- data.tar.gz: b866473ff81aaa20bbf5ffb6ba4b60726ccdd6a0
3
+ metadata.gz: 45a01c26c629faaaa1fc2959c1f2969d3462db9b
4
+ data.tar.gz: aa4df4ca62dd506a51ea4372e68ec4398e9b09bd
5
5
  SHA512:
6
- metadata.gz: 35d37cbe3d106ba3ff620b7302273f3ec7184cbb25fbf20a540be2cd356a619232906cb62b8977114c7ffc1724caedd652c0c1d100a4544b92ba3c3f7cf0e872
7
- data.tar.gz: a5219e4dd547d6db64dc7042d214ab5c37d913014c21c1ce92af6c7c10289f8d02671b6681890f6a03d8db772380534763fbee6049c0f1b66408c9f8b87e16f9
6
+ metadata.gz: 241df6da0c9de2fff0689b60bc492f356e10d159362ad6036272ab28ac491fce500139f7f04dfcf9b28b2974c0ee8dbe05b60073d2e13a6bd2671ced343ba903
7
+ data.tar.gz: 8ce11c40ba87abd194693f8c5c9a9238f5355017d415023c6ab7a2c814da34084b448f54506fb191f2faee3282e6d6c143c628c03572d757871db187527de6ad
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
@@ -1,3 +1,4 @@
1
+ * appveyor.yml
1
2
  * CHANGES
2
3
  * MANIFEST
3
4
  * README
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 this
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
- Artistic 2.0
39
+ Apache 2.0
46
40
 
47
41
  == Copyright
48
42
  (C) 2003-2016 Daniel J. Berger
@@ -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 }
@@ -21,7 +21,7 @@ module Win32
21
21
  extend Windows::Security::Functions
22
22
 
23
23
  # The version of the win32-security library
24
- VERSION = '0.4.1'
24
+ VERSION = '0.5.0'
25
25
 
26
26
  # Used by OpenProcessToken
27
27
  TOKEN_QUERY = 8
@@ -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.4'
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.encode('UTF-16LE'),
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.encode('UTF-16LE'),
272
- account.encode('UTF-16LE'),
271
+ host.wincode,
272
+ account.wincode,
273
273
  sid,
274
274
  sid_size,
275
275
  domain,
@@ -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.4.1', Win32::Security::VERSION)
12
+ assert_equal('0.5.0', Win32::Security::VERSION)
13
13
  end
14
14
 
15
15
  test "elevated security basic functionality" do
@@ -20,7 +20,7 @@ class TC_Win32_Security_Sid < Test::Unit::TestCase
20
20
  end
21
21
 
22
22
  test "version is set to expected value" do
23
- assert_equal('0.2.4', Security::SID::VERSION)
23
+ assert_equal('0.2.5', Security::SID::VERSION)
24
24
  end
25
25
 
26
26
  test "sid method basic functionality" do
@@ -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.4.1'
5
+ spec.version = '0.5.0'
6
6
  spec.authors = ['Daniel J. Berger', 'Park Heesob']
7
- spec.license = 'Artistic 2.0'
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.1
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-05-10 00:00:00.000000000 Z
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
- - Artistic 2.0
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.8
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