sys-admin 1.5.1-x86-mswin32-60 → 1.5.2-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -0
- data/README +0 -2
- data/lib/sys/admin.rb +1 -1
- data/sys-admin.gemspec +4 -2
- data/test/test_sys_admin.rb +1 -1
- data/test/test_sys_admin_windows.rb +2 -2
- metadata +23 -4
data/CHANGES
CHANGED
data/README
CHANGED
data/lib/sys/admin.rb
CHANGED
data/sys-admin.gemspec
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
spec = Gem::Specification.new do |gem|
|
4
4
|
gem.name = 'sys-admin'
|
5
|
-
gem.version = '1.5.
|
5
|
+
gem.version = '1.5.2'
|
6
6
|
gem.author = 'Daniel J. Berger'
|
7
7
|
gem.license = 'Artistic 2.0'
|
8
8
|
gem.email = 'djberg96@gmail.com'
|
@@ -22,6 +22,7 @@ spec = Gem::Specification.new do |gem|
|
|
22
22
|
if Config::CONFIG['host_os'].match('mswin')
|
23
23
|
files += Dir["lib/sys/admin.rb"]
|
24
24
|
gem.platform = Gem::Platform::CURRENT
|
25
|
+
gem.add_dependency('win32-security', '>= 0.1.2')
|
25
26
|
else
|
26
27
|
files += Dir["ext/**/*.{c,h}"]
|
27
28
|
gem.extensions = ['ext/extconf.rb']
|
@@ -32,6 +33,8 @@ spec = Gem::Specification.new do |gem|
|
|
32
33
|
files.delete_if{ |item| item.include?('CVS') }
|
33
34
|
|
34
35
|
gem.files = files
|
36
|
+
|
37
|
+
gem.add_development_dependency('test-unit', '>= 2.0.3')
|
35
38
|
|
36
39
|
gem.description = <<-EOF
|
37
40
|
The sys-admin library is a unified, cross platform replacement for the
|
@@ -42,5 +45,4 @@ spec = Gem::Specification.new do |gem|
|
|
42
45
|
EOF
|
43
46
|
end
|
44
47
|
|
45
|
-
Gem.manage_gems if Gem::RubyGemsVersion.to_f < 1.0
|
46
48
|
Gem::Builder.new(spec).build
|
data/test/test_sys_admin.rb
CHANGED
@@ -262,8 +262,8 @@ class TC_Sys_Admin_Win32 < Test::Unit::TestCase
|
|
262
262
|
end
|
263
263
|
|
264
264
|
def test_user_dir
|
265
|
-
assert_nothing_raised{ Admin.get_user(@user_name, :localaccount => true) }
|
266
|
-
assert_kind_of(String, @
|
265
|
+
assert_nothing_raised{ @user = Admin.get_user(@user_name, :localaccount => true) }
|
266
|
+
assert_kind_of([String, NilClass], @user.dir)
|
267
267
|
end
|
268
268
|
|
269
269
|
# Group class
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sys-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: x86-mswin32-60
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
@@ -9,10 +9,29 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-08-02 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: win32-security
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.1.2
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: test-unit
|
27
|
+
type: :development
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.0.3
|
34
|
+
version:
|
16
35
|
description: " The sys-admin library is a unified, cross platform replacement for the\n 'etc' library that ships as part of the Ruby standard library. It\n provides a common interface for all platforms, including MS Windows. In\n addition, it provides an interface for adding, deleting and configuring\n users on MS Windows.\n"
|
17
36
|
email: djberg96@gmail.com
|
18
37
|
executables: []
|