activesambaldap 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS.en +20 -18
- data/NEWS.ja +23 -21
- data/README.en +122 -95
- data/README.ja +125 -98
- data/Rakefile +29 -64
- data/bin/asl-groupadd +1 -1
- data/bin/asl-groupadd.help +1 -0
- data/bin/asl-groupdel +1 -1
- data/bin/asl-groupdel.help +1 -0
- data/bin/asl-groupmod +1 -1
- data/bin/asl-groupmod.help +1 -0
- data/bin/asl-groupshow +1 -1
- data/bin/asl-groupshow.help +1 -0
- data/bin/asl-passwd +1 -1
- data/bin/asl-passwd.help +1 -0
- data/bin/asl-populate +2 -2
- data/bin/asl-populate.help +1 -0
- data/bin/asl-purge +1 -1
- data/bin/asl-purge.help +1 -0
- data/bin/asl-samba-computeradd +1 -1
- data/bin/asl-samba-computeradd.help +1 -0
- data/bin/asl-samba-groupadd +1 -1
- data/bin/asl-samba-groupadd.help +1 -0
- data/bin/asl-samba-groupdel +1 -1
- data/bin/asl-samba-groupdel.help +1 -0
- data/bin/asl-samba-groupmod +1 -1
- data/bin/asl-samba-groupmod.help +1 -0
- data/bin/asl-samba-useradd +1 -1
- data/bin/asl-samba-useradd.help +1 -0
- data/bin/asl-samba-userdel +1 -1
- data/bin/asl-samba-userdel.help +1 -0
- data/bin/asl-samba-usermod +1 -1
- data/bin/asl-samba-usermod.help +1 -0
- data/bin/asl-useradd +1 -1
- data/bin/asl-useradd.help +6 -4
- data/bin/asl-userdel +1 -1
- data/bin/asl-userdel.help +1 -0
- data/bin/asl-usermod +1 -1
- data/bin/asl-usermod.help +2 -0
- data/bin/asl-usershow +1 -1
- data/bin/asl-usershow.help +1 -0
- data/data/locale/ja/LC_MESSAGES/active-samba-ldap.mo +0 -0
- data/lib/active_samba_ldap/version.rb +1 -1
- data/lib/active_samba_ldap.rb +1 -1
- data/po/ja/active-samba-ldap.po +5 -5
- data/rails/{plugin/active_samba_ldap/README → README} +0 -0
- data/rails/{plugin/active_samba_ldap/init.rb → init.rb} +1 -1
- data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/scaffold_active_samba_ldap_generator.rb +0 -0
- data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/computer.rb +0 -0
- data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/dc.rb +0 -0
- data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/group.rb +0 -0
- data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/idmap.rb +0 -0
- data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/ldap.yml +0 -0
- data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/ou.rb +0 -0
- data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/samba_controller.rb +0 -0
- data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/samba_helper.rb +0 -0
- data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/samba_index.rhtml +0 -0
- data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/samba_populate.rhtml +0 -0
- data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/samba_purge.rhtml +0 -0
- data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/unix_id_pool.rb +0 -0
- data/{rails/plugin/active_samba_ldap/generators → rails_generators}/scaffold_active_samba_ldap/templates/user.rb +0 -0
- data/test/asl-test-utils.rb +2 -2
- data/test/test_asl_usershow.rb +2 -2
- data/test/test_password.rb +2 -2
- data/test/test_user_home_directory.rb +2 -2
- data/test-unit/History.txt +76 -1
- data/test-unit/README.txt +32 -12
- data/test-unit/Rakefile +19 -1
- data/test-unit/TODO +5 -0
- data/test-unit/lib/test/unit/assertions.rb +515 -88
- data/test-unit/lib/test/unit/autorunner.rb +93 -14
- data/test-unit/lib/test/unit/collector/load.rb +1 -1
- data/test-unit/lib/test/unit/collector.rb +1 -1
- data/test-unit/lib/test/unit/color-scheme.rb +86 -0
- data/test-unit/lib/test/unit/color.rb +40 -5
- data/test-unit/lib/test/unit/diff.rb +14 -0
- data/test-unit/lib/test/unit/fixture.rb +7 -16
- data/test-unit/lib/test/unit/notification.rb +9 -0
- data/test-unit/lib/test/unit/omission.rb +14 -0
- data/test-unit/lib/test/unit/pending.rb +16 -0
- data/test-unit/lib/test/unit/priority.rb +38 -3
- data/test-unit/lib/test/unit/runner/console.rb +8 -2
- data/test-unit/lib/test/unit/testcase.rb +263 -12
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +58 -30
- data/test-unit/lib/test/unit/util/method-owner-finder.rb +28 -0
- data/test-unit/lib/test/unit/version.rb +1 -1
- data/test-unit/lib/test/unit.rb +62 -0
- data/test-unit/sample/test_user.rb +22 -0
- data/test-unit/test/collector/{test_descendant.rb → test-descendant.rb} +0 -0
- data/test-unit/test/collector/{test_load.rb → test-load.rb} +1 -1
- data/test-unit/test/{test_attribute.rb → test-attribute.rb} +0 -0
- data/test-unit/test/test-color-scheme.rb +56 -0
- data/test-unit/test/{test_color.rb → test-color.rb} +10 -0
- data/test-unit/test/{test_diff.rb → test-diff.rb} +0 -0
- data/test-unit/test/{test_emacs_runner.rb → test-emacs-runner.rb} +0 -0
- data/test-unit/test/test-fixture.rb +287 -0
- data/test-unit/test/{test_notification.rb → test-notification.rb} +4 -4
- data/test-unit/test/{test_omission.rb → test-omission.rb} +6 -6
- data/test-unit/test/{test_pending.rb → test-pending.rb} +12 -6
- data/test-unit/test/{test_priority.rb → test-priority.rb} +30 -0
- data/test-unit/test/{test_testcase.rb → test-testcase.rb} +100 -4
- data/test-unit/test/test_assertions.rb +462 -73
- data/test-unit/test/{testunit_test_util.rb → testunit-test-util.rb} +4 -2
- data/test-unit/test/ui/test_testrunmediator.rb +1 -1
- data/test-unit/test/util/test-method-owner-finder.rb +38 -0
- metadata +69 -79
- data/test-unit/test/test_fixture.rb +0 -275
data/bin/asl-samba-groupmod
CHANGED
data/bin/asl-samba-groupmod.help
CHANGED
data/bin/asl-samba-useradd
CHANGED
data/bin/asl-samba-useradd.help
CHANGED
data/bin/asl-samba-userdel
CHANGED
data/bin/asl-samba-userdel.help
CHANGED
data/bin/asl-samba-usermod
CHANGED
data/bin/asl-samba-usermod.help
CHANGED
data/bin/asl-useradd
CHANGED
data/bin/asl-useradd.help
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
Usage: asl-useradd [options] USER_NAME
|
2
2
|
-o, --ou=OU add the user in the organizational unit OU
|
3
3
|
(relative to the user suffix)
|
4
|
-
|
4
|
+
--[no-]computer-account is a Windows Workstation
|
5
5
|
(otherwise, Windows user)
|
6
6
|
(false)
|
7
7
|
-u, --uid=UID uid
|
8
8
|
-g, --gid=GID gid
|
9
|
-
|
9
|
+
--groups=GID1,GID2,GID3 supplementary groups (comma separated)
|
10
10
|
--[no-]create-group create a group for the user
|
11
11
|
(true)
|
12
|
-
|
12
|
+
-c, --comment=COMMENT set the GECOS field for the new user account
|
13
13
|
-s, --shell=SHELL shell
|
14
|
-
|
14
|
+
-G, --given-name=NAME given name
|
15
15
|
-N, --common-name=NAME common name
|
16
16
|
-S, --surname=NAME surname
|
17
17
|
-d, --home-directory=HOME_DIR home directory
|
@@ -22,6 +22,7 @@ Usage: asl-useradd [options] USER_NAME
|
|
22
22
|
--skeleton-directory
|
23
23
|
--time=TIME wait TIME seconds before exiting
|
24
24
|
(0)
|
25
|
+
|
25
26
|
For samba accounts:
|
26
27
|
-e, --expire-date=DATE expire date
|
27
28
|
-C, --[no-]can-change-password can change password
|
@@ -36,6 +37,7 @@ For samba accounts:
|
|
36
37
|
(profile directory, like '\\PDC\profiles\user')
|
37
38
|
--samba-account-flags=FLAGS sambaAcctFlags
|
38
39
|
(samba account control bits, like '[NDHTUMWSLXI]')
|
40
|
+
|
39
41
|
Common options:
|
40
42
|
--config=CONFIG Specify configuration file
|
41
43
|
Default configuration files:
|
data/bin/asl-userdel
CHANGED
data/bin/asl-userdel.help
CHANGED
data/bin/asl-usermod
CHANGED
data/bin/asl-usermod.help
CHANGED
@@ -18,6 +18,7 @@ Usage: asl-usermod [options] USER_NAME
|
|
18
18
|
--given-name=NAME given name
|
19
19
|
-N, --common-name=NAME common name
|
20
20
|
-S, --surname=NAME surname
|
21
|
+
|
21
22
|
For samba accounts:
|
22
23
|
-e, --expire-date=DATE expire date
|
23
24
|
-C, --[no-]can-change-password can change password
|
@@ -34,6 +35,7 @@ For samba accounts:
|
|
34
35
|
(samba account control bits, like '[NDHTUMWSLXI]')
|
35
36
|
-D, --[no-]disable-user disable this user
|
36
37
|
-E, --[no-]enable-user enable this user
|
38
|
+
|
37
39
|
Common options:
|
38
40
|
--config=CONFIG Specify configuration file
|
39
41
|
Default configuration files:
|
data/bin/asl-usershow
CHANGED
data/bin/asl-usershow.help
CHANGED
Binary file
|
data/lib/active_samba_ldap.rb
CHANGED
@@ -8,7 +8,7 @@ require_gem_if_need = Proc.new do |library_name, gem_name, *options|
|
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
-
required_active_ldap_version = ">= 1.0
|
11
|
+
required_active_ldap_version = ">= 1.1.0"
|
12
12
|
require_gem_if_need.call("active_ldap", "activeldap",
|
13
13
|
required_active_ldap_version)
|
14
14
|
|
data/po/ja/active-samba-ldap.po
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Japanese translations for Ruby/ActiveSambaLdap.
|
2
|
-
# Copyright (C) 2007 Kouhei Sutou
|
2
|
+
# Copyright (C) 2007-2009 Kouhei Sutou
|
3
3
|
# This file is distributed under the same license as the Ruby/ActiveSambaLdap
|
4
4
|
# package.
|
5
|
-
# Kouhei Sutou <kou@
|
5
|
+
# Kouhei Sutou <kou@clear-code.com>, 2007.
|
6
6
|
#
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: Ruby/ActiveSambaLdap 0.0.
|
9
|
+
"Project-Id-Version: Ruby/ActiveSambaLdap 0.0.7\n"
|
10
10
|
"POT-Creation-Date: 2007-09-16 22:47+0900\n"
|
11
|
-
"PO-Revision-Date:
|
12
|
-
"Last-Translator: Kouhei Sutou <kou@
|
11
|
+
"PO-Revision-Date: 2009-07-11 09:41+0900\n"
|
12
|
+
"Last-Translator: Kouhei Sutou <kou@clear-code.com>\n"
|
13
13
|
"Language-Team: Japanese\n"
|
14
14
|
"MIME-Version: 1.0\n"
|
15
15
|
"Content-Type: text/plain; charset=UTF-8\n"
|
File without changes
|
@@ -14,7 +14,7 @@ ldap_configuration_file = File.join(RAILS_ROOT, 'config', 'ldap.yml')
|
|
14
14
|
if File.exist?(ldap_configuration_file)
|
15
15
|
ActiveSambaLdap::Base.configurations =
|
16
16
|
ActiveSambaLdap::Configuration.read(ldap_configuration_file)
|
17
|
-
ActiveSambaLdap::Base.
|
17
|
+
ActiveSambaLdap::Base.setup_connection
|
18
18
|
else
|
19
19
|
ActiveLdap::Base.class_eval do
|
20
20
|
format = _("You should run 'script/generator scaffold_active_samba_ldap' " \
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/test/asl-test-utils.rb
CHANGED
@@ -53,7 +53,7 @@ module AslTestUtils
|
|
53
53
|
module Connection
|
54
54
|
def setup
|
55
55
|
super
|
56
|
-
ActiveSambaLdap::Base.
|
56
|
+
ActiveSambaLdap::Base.setup_connection(update_configuration)
|
57
57
|
end
|
58
58
|
|
59
59
|
def teardown
|
@@ -76,7 +76,7 @@ module AslTestUtils
|
|
76
76
|
|
77
77
|
def teardown
|
78
78
|
super
|
79
|
-
ActiveSambaLdap::Base.
|
79
|
+
ActiveSambaLdap::Base.setup_connection(update_configuration)
|
80
80
|
ActiveSambaLdap::Base.purge
|
81
81
|
ActiveSambaLdap::Base.load(@dumped_data)
|
82
82
|
end
|
data/test/test_asl_usershow.rb
CHANGED
@@ -10,12 +10,12 @@ class AslUserShowTest < Test::Unit::TestCase
|
|
10
10
|
|
11
11
|
def test_exist_user
|
12
12
|
make_dummy_user do |user, password|
|
13
|
-
user.class.
|
13
|
+
user.class.setup_connection("reference")
|
14
14
|
begin
|
15
15
|
user = user.class.find(user.uid)
|
16
16
|
assert_equal([true, user.to_ldif, ""], run_command(user.uid))
|
17
17
|
ensure
|
18
|
-
user.class.
|
18
|
+
user.class.setup_connection("update")
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
data/test/test_password.rb
CHANGED
@@ -31,7 +31,7 @@ class PasswordTest < Test::Unit::TestCase
|
|
31
31
|
klass = Class.new(@user_class)
|
32
32
|
assert_nothing_raised do
|
33
33
|
configuration = reference_configuration.merge(:password_hash_type => type)
|
34
|
-
klass.
|
34
|
+
klass.setup_connection(configuration)
|
35
35
|
klass.ldap_mapping
|
36
36
|
end
|
37
37
|
yield(klass, klass.configuration[:password_hash_type]) if block_given?
|
@@ -43,7 +43,7 @@ class PasswordTest < Test::Unit::TestCase
|
|
43
43
|
klass = Class.new(@user_class)
|
44
44
|
assert_raises(ActiveSambaLdap::InvalidConfigurationValueError) do
|
45
45
|
configuration = reference_configuration.merge(:password_hash_type => type)
|
46
|
-
klass.
|
46
|
+
klass.setup_connection(configuration)
|
47
47
|
end
|
48
48
|
ensure
|
49
49
|
klass.remove_connection
|
@@ -23,7 +23,7 @@ class UserHomeDirectoryTest < Test::Unit::TestCase
|
|
23
23
|
klass = Class.new(@user_class)
|
24
24
|
assert_nothing_raised do
|
25
25
|
config = reference_configuration.merge(:user_home_directory_mode => type)
|
26
|
-
klass.
|
26
|
+
klass.setup_connection(config)
|
27
27
|
klass.ldap_mapping
|
28
28
|
end
|
29
29
|
yield(klass, klass.configuration[:user_home_directory_mode]) if block_given?
|
@@ -35,7 +35,7 @@ class UserHomeDirectoryTest < Test::Unit::TestCase
|
|
35
35
|
klass = Class.new(@user_class)
|
36
36
|
assert_raises(ActiveSambaLdap::InvalidConfigurationValueError) do
|
37
37
|
config = reference_configuration.merge(:user_home_directory_mode => type)
|
38
|
-
klass.
|
38
|
+
klass.setup_connection(config)
|
39
39
|
end
|
40
40
|
ensure
|
41
41
|
klass.remove_connection
|
data/test-unit/History.txt
CHANGED
@@ -1,4 +1,79 @@
|
|
1
|
-
=== 2.0.
|
1
|
+
=== 2.0.3 / 2009-07-17
|
2
|
+
|
3
|
+
* 6 major enhancements
|
4
|
+
* add assert_predicate.
|
5
|
+
* add assert_not_predicate.
|
6
|
+
* [#24210] assert_kind_of supports an array of classes or modules.
|
7
|
+
[Daniel Berger]
|
8
|
+
* assert_instance_of supports an array of classes or modules.
|
9
|
+
* add --default-priority option.
|
10
|
+
* [#26627] add --order option. [Daniel Berger]
|
11
|
+
|
12
|
+
* 4 minor enhancements
|
13
|
+
* use yellow foreground + black background for error.
|
14
|
+
* don't show diff for long string.
|
15
|
+
* accept "*term-color" TERM environment as colorizable terminal.
|
16
|
+
(e.g. Apple's Terminal)
|
17
|
+
* [#26268] add a workaround for test-spec's after_all. [Angelo Lakra]
|
18
|
+
|
19
|
+
* 1 bug fix
|
20
|
+
* [#23586] re-support ruby 1.9.1. [Diego Pettenò]
|
21
|
+
|
22
|
+
* Thanks
|
23
|
+
* Diego Pettenò
|
24
|
+
* Daniel Berger
|
25
|
+
* Angelo Lakra
|
26
|
+
|
27
|
+
=== 2.0.2 / 2008-12-21
|
28
|
+
|
29
|
+
* 2 major enhancements
|
30
|
+
|
31
|
+
* re-support ruby 1.8.5.
|
32
|
+
* improve exception object comparison.
|
33
|
+
|
34
|
+
* 3 bug fixes
|
35
|
+
|
36
|
+
* [#22723]: collector fails on anonymous classes
|
37
|
+
* [#22986]: Test names with '?' blow up on Windows
|
38
|
+
* [#22988]: don't create .test-result on non-priority mode.
|
39
|
+
|
40
|
+
* Thanks
|
41
|
+
|
42
|
+
* Erik Hollensbe
|
43
|
+
* Daniel Berger
|
44
|
+
* Bill Lear
|
45
|
+
|
46
|
+
=== 2.0.1 / 2008-11-09
|
47
|
+
|
48
|
+
* 19 major enhancements
|
49
|
+
|
50
|
+
* support ruby 1.9.1.
|
51
|
+
* add run_test method to be extensible.
|
52
|
+
* improve priority-mode auto off.
|
53
|
+
* improve startup/shutdown RDoc. [Daniel Berger]
|
54
|
+
* add assert_compare. [#20851] [Designing Patterns]
|
55
|
+
* add assert_fail_assertion. [#20851] [Designing Patterns]
|
56
|
+
* add assert_raise_message. [#20851] [Designing Patterns]
|
57
|
+
* support folded diff.
|
58
|
+
* add assert_raise_kind_of. [Daniel Berger]
|
59
|
+
* ingore inherited test for nested test case.
|
60
|
+
* add assert_const_defined.
|
61
|
+
* add assert_not_const_defined.
|
62
|
+
* support assert_raise with an exception object.
|
63
|
+
* support assert_raise with no arguments that asserts any
|
64
|
+
exception is raised. [#22602] [Daniel Berger]
|
65
|
+
* support folded dot progress.
|
66
|
+
* add --progress-row-max option.
|
67
|
+
* support color scheme customize.
|
68
|
+
* support configuration file. (YAML)
|
69
|
+
* recognize test-XXX.rb files as test files not only test_XXX.rb
|
70
|
+
|
71
|
+
* Thanks
|
72
|
+
|
73
|
+
* Daniel Berger
|
74
|
+
* Designing Patterns
|
75
|
+
|
76
|
+
=== 2.0.0 / 2008-06-18
|
2
77
|
|
3
78
|
* 15 major enhancements
|
4
79
|
|
data/test-unit/README.txt
CHANGED
@@ -1,13 +1,17 @@
|
|
1
|
-
= Test::Unit
|
1
|
+
= Test::Unit 2.x
|
2
2
|
|
3
3
|
* http://rubyforge.org/projects/test-unit/
|
4
4
|
|
5
|
-
== DESCRIPTION
|
5
|
+
== DESCRIPTION
|
6
6
|
|
7
|
-
Test::Unit
|
8
|
-
|
7
|
+
Test::Unit 2.x - Improved version of Test::Unit bundled in
|
8
|
+
Ruby 1.8.x.
|
9
9
|
|
10
|
-
|
10
|
+
Ruby 1.9.x bundles miniunit not Test::Unit. Test::Unit
|
11
|
+
bundled in Ruby 1.8.x had not been improved but unbundled
|
12
|
+
Test::Unit (Test::Unit 2.x) will be improved actively.
|
13
|
+
|
14
|
+
== FEATURES
|
11
15
|
|
12
16
|
* Test::Unit 1.2.3 is the original Test::Unit, taken
|
13
17
|
straight from the ruby distribution. It is being
|
@@ -15,18 +19,34 @@ externalized from the ruby project as a gem (for tool developers).
|
|
15
19
|
stand-alone package. (The test framework in ruby is going
|
16
20
|
to radically change very soon).
|
17
21
|
|
18
|
-
*
|
19
|
-
|
22
|
+
* Test::Unit 2.x will be improved actively and may break
|
23
|
+
compatiblity with Test::Unit 1.2.3. (We will not hope it
|
24
|
+
if it isn't needed.)
|
25
|
+
|
26
|
+
* Some features exist as separated gems like GUI test
|
27
|
+
runner. (Tk, GTK+ and Fox) test-unit-full gem package
|
28
|
+
provides for installing all Test::Unit related gems
|
29
|
+
easily.
|
30
|
+
|
31
|
+
== INSTALL
|
20
32
|
|
21
|
-
|
22
|
-
original Test::Unit (== Tset::Unit 1.2.3).
|
33
|
+
% sudo gem install test-unit
|
23
34
|
|
24
|
-
|
35
|
+
If you want to use full Test::Unit features:
|
25
36
|
|
26
|
-
|
37
|
+
% sudo gem install test-unit-full
|
27
38
|
|
28
|
-
== LICENSE
|
39
|
+
== LICENSE
|
29
40
|
|
30
41
|
(The Ruby License)
|
31
42
|
|
32
43
|
This software is distributed under the same terms as ruby.
|
44
|
+
|
45
|
+
== Thanks
|
46
|
+
|
47
|
+
* Daniel Berger: Suggestions and bug reports.
|
48
|
+
* Designing Patterns: Suggestions.
|
49
|
+
* Erik Hollensbe: Suggestions.
|
50
|
+
* Bill Lear: A suggestion.
|
51
|
+
* Diego Pettenò: A bug report.
|
52
|
+
* Angelo Lakra: A bug report.
|
data/test-unit/Rakefile
CHANGED
@@ -1,10 +1,17 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
|
+
gem 'rdoc'
|
4
5
|
require 'hoe'
|
5
6
|
require './lib/test/unit/version.rb'
|
6
7
|
|
7
|
-
|
8
|
+
ENV["NODOT"] = "yes"
|
9
|
+
|
10
|
+
version = Test::Unit::VERSION
|
11
|
+
ENV["VERSION"] = version
|
12
|
+
Hoe.spec('test-unit') do |p|
|
13
|
+
Hoe::Test::SUPPORTED_TEST_FRAMEWORKS[:testunit2] = "test/run-test.rb"
|
14
|
+
p.version = version
|
8
15
|
p.developer('Kouhei Sutou', 'kou@cozmixng.org')
|
9
16
|
p.developer('Ryan Davis', 'ryand-ruby@zenspider.com')
|
10
17
|
|
@@ -13,10 +20,21 @@ Hoe.new('test-unit', Test::Unit::VERSION) do |p|
|
|
13
20
|
end
|
14
21
|
|
15
22
|
task :check_manifest => :clean_test_result
|
23
|
+
task :check_manifest => :clean_coverage
|
16
24
|
|
17
25
|
task :clean_test_result do
|
18
26
|
test_results = Dir.glob("**/.test-result")
|
19
27
|
sh("rm", "-rf", *test_results) unless test_results.empty?
|
20
28
|
end
|
21
29
|
|
30
|
+
task :clean_coverage do
|
31
|
+
sh("rm", "-rf", "coverage")
|
32
|
+
end
|
33
|
+
|
34
|
+
task :tag do
|
35
|
+
message = "Released Test::Unit #{version}!"
|
36
|
+
base = "svn+ssh://#{ENV['USER']}@rubyforge.org/var/svn/test-unit/"
|
37
|
+
sh 'svn', 'copy', '-m', message, "#{base}trunk", "#{base}tags/#{version}"
|
38
|
+
end
|
39
|
+
|
22
40
|
# vim: syntax=Ruby
|