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 CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.5.2 - 2-Aug-2009
2
+ * Now compatible with Ruby 1.9.x.
3
+ * Added test-unit as a development dependency.
4
+
1
5
  == 1.5.1 - 23-Jul-2009
2
6
  * Added the User#dir attribute. This attribute contains a user's home
3
7
  directory if set, or nil if it isn't.
data/README CHANGED
@@ -159,5 +159,3 @@ Admin::Error < StandardError
159
159
 
160
160
  == Author
161
161
  Daniel J. Berger
162
- djberg96 at nospam at gmail dot com
163
- IRC nickname: imperator/mok/rubyhacker1 (freenode)
@@ -292,7 +292,7 @@ module Sys
292
292
  end
293
293
 
294
294
  class Admin
295
- VERSION = '1.5.1'
295
+ VERSION = '1.5.2'
296
296
 
297
297
  # This is the error raised in the majority of cases if anything goes wrong
298
298
  # with any of the Sys::Admin methods.
@@ -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.1'
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
@@ -16,6 +16,6 @@ end
16
16
 
17
17
  class TC_Sys_Admin_All < Test::Unit::TestCase
18
18
  def test_version
19
- assert_equal('1.5.1', Sys::Admin::VERSION)
19
+ assert_equal('1.5.2', Sys::Admin::VERSION)
20
20
  end
21
21
  end
@@ -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, @user_name.dir)
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.1
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-07-23 00:00:00 -06:00
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: []